Datasets:
func_before stringlengths 12 22.8k | func_after stringlengths 11 24.7k | commit_msg stringlengths 1 32.6k ⌀ | commit_url stringlengths 48 124 | cve_id stringclasses 530
values | cwe_id stringclasses 134
values | file_name stringlengths 4 244 | vulnerability_score int64 0 4 | extension stringclasses 6
values | is_test bool 1
class | date stringdate 1999-11-10 02:42:49 2024-01-29 16:00:57 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|
function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return true;return false} | function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1} | Update vendor libs | https://github.com/cockpit-hq/cockpit/commit/690016208850f2d788ebc3c67884d4c692587eb8 | CVE-2023-1160 | ['CWE-1103'] | modules/App/assets/vendor/lodash.js | 0 | js | false | 2023-02-22T01:10:02Z |
private CompletableFuture<String> authorize() {
HttpClient.DerivedClientBuilder builder = client.newBuilder();
builder.addOrReplaceInterceptor(TokenRefreshInterceptor.NAME, null);
HttpClient clone = builder.build();
URL url;
try {
url = new URL(URLUtils.join(config.getMasterUrl(), AUTHORIZATI... | private CompletableFuture<String> authorize() {
HttpClient.DerivedClientBuilder builder = client.newBuilder();
builder.addOrReplaceInterceptor(TokenRefreshInterceptor.NAME, null);
HttpClient clone = builder.build();
URL url;
try {
url = new URL(URLUtils.join(config.getMasterUrl(), AUTHORIZATI... | review: address comments regarding test scenarios for PATCH
Signed-off-by: Marc Nuri <marc@marcnuri.com> | https://github.com/fabric8io/kubernetes-client/commit/88a9dde129610a174fa801eedcb0e87395138e70 | null | null | openshift-client/src/main/java/io/fabric8/openshift/client/internal/OpenShiftOAuthInterceptor.java | 0 | java | false | 2022-12-20T15:30:05Z |
function m(u,F){G=!1;var C=null!=u.Text&&u.Text.t?u.Text:null!=u.Value&&u.Value.t?u.Value:
null!=u.Lane_0&&u.Lane_0.t?u.Lane_0:null;null==C&&null!=u.State?u.State.t&&(C=u.State):null==C&&null!=u.Note?u.Note.t&&(C=u.Note):null==C&&null!=u.Title?u.Title.t&&(C=u.Title):u.t&&(C=u);null==C&&null!=u.TextAreas?null!=u.TextAre... | function m(u,F){G=!1;var D=null!=u.Text&&u.Text.t?u.Text:null!=u.Value&&u.Value.t?u.Value:
null!=u.Lane_0&&u.Lane_0.t?u.Lane_0:null;null==D&&null!=u.State?u.State.t&&(D=u.State):null==D&&null!=u.Note?u.Note.t&&(D=u.Note):null==D&&null!=u.Title?u.Title.t&&(D=u.Title):u.t&&(D=u);null==D&&null!=u.TextAreas?null!=u.TextAre... | 21.6.3 release | https://github.com/jgraph/drawio/commit/1db2c2c653aa245d175d30c210239e3946bfcb95 | CVE-2023-3973 | ['CWE-79'] | src/main/webapp/js/extensions.min.js | 0 | js | false | 2023-07-18T17:20:28Z |
void registerServer() {
VersionAgnosticCommandManager.get().registerServerCommand(
CommandManager.literal(Modget.NAMESPACE_SERVER)
.then(CommandManager.literal(COMMAND_PARTS[0])
.then(CommandManager.literal(COMMAND_PARTS[1])
.then(CommandMa... | void registerServer() {
VersionAgnosticServerCommandManager.get().register(
CommandManager.literal(Modget.NAMESPACE_SERVER)
.then(CommandManager.literal(COMMAND_PARTS[0])
.then(CommandManager.literal(COMMAND_PARTS[1])
.then(CommandManager.a... | Don't upload modget-core build artifacts | https://github.com/ReviversMC/modget-minecraft/commit/17f5235f98d112ceb086533d1c4901e7a2a3fce9 | null | null | modget-core/src/main/java/com/github/reviversmc/modget/minecraft/command/ReposAddCommand.java | 0 | java | false | 2022-08-12T14:50:34Z |
@Override
public void run() {
// The first time running this, need to setup the block list if a reset:
if ( position == 0 ) {
if ( runSetupCancelAutoResets() ) {
// If the reset should be canceled then just return, and that will
// terminate the reset. There is nothing else that needs to be done.
... | @Override
public void run() {
// The first time running this, need to setup the block list if a reset:
if ( position == 0 ) {
if ( runSetupCancelAutoResets() ) {
// If the reset should be canceled then just return, and that will
// terminate the reset. There is nothing else that needs to be done.
... | Mine resets: Fixed an issue when dealing with zero-block resets on a very small mine, such as a one block mine in that the 5 second delay was preventing from rapid resets.
Bypass both 5 second cooldown on resets and blockmatching when 25 blocks or less for the mine size.
With running resets in async mode, with rapid re... | https://github.com/PrisonTeam/Prison/commit/a91dbdae13c0bf0874a9d6af970684f0b028a8ae | null | null | prison-mines/src/main/java/tech/mcprison/prison/mines/tasks/MinePagedResetAsyncTask.java | 0 | java | false | 2022-06-20T05:07:28Z |
function ViewConsumable() {
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, ViewConsumable);
/**
* Map of consumable elements. If {@link module:engine/view/element~Element element} ... | function ViewConsumable() {
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, ViewConsumable);
/**
* Map of consumable elements. If {@link module:engine/view/element~Element element} is used as... | DEV: changed routes in vue.js part questiongroupedit.js and deleted old controller+views | https://github.com/LimeSurvey/LimeSurvey/commit/d7a309bf1a73e95187528982b9db7ec03fee6913 | CVE-2020-23710 | ['CWE-79'] | assets/packages/questiongroup/build/js/questiongroupedit.js | 0 | js | false | 2020-06-08T09:23:29Z |
public void seslInitConfigurations(Context var1) {
ViewConfiguration var2 = ViewConfiguration.get(var1);
Resources var3 = var1.getResources();
this.mTouchSlop = var2.getScaledTouchSlop();
this.mSeslTouchSlop = var2.getScaledTouchSlop();
this.mSeslPagingTouchSlop = var2.getScaledP... | public void seslInitConfigurations(Context var1) {
ViewConfiguration var2 = ViewConfiguration.get(var1);
Resources var3 = var1.getResources();
this.mTouchSlop = var2.getScaledTouchSlop();
this.mSeslTouchSlop = var2.getScaledTouchSlop();
this.mSeslPagingTouchSlop = var2.getScaledP... | app: OneUI 4 DetailedColorPicker, GoToTop, Preference text size (#62)
* app: OneUI 4 DetailedColorPicker, GoToTop, Preference text size
Signed-off-by: BlackMesa123 <giangrecosalvo9@gmail.com>
* app: fix SwipeRefreshLayout scale down anim, night mode DetailedColorPicker tabs
Signed-off-by: BlackMesa123 <giangrecosal... | https://github.com/OneUIProject/OneUI-Design-Library/commit/7d82261d6821ece4c02d4e8157560a41156436eb | null | null | yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/view/RecyclerView.java | 0 | java | false | null |
function updateRole(userId, meetingId, role) {
check(userId, String);
check(meetingId, String);
check(role, String);
const selector = {
userId,
meetingId,
};
const modifier = {
$set: {
role,
},
};
try {
UsersPersistentData.update(selector, modifier);
} catch (err) {
Lo... | async function updateRole(userId, meetingId, role) {
check(userId, String);
check(meetingId, String);
check(role, String);
const selector = {
userId,
meetingId,
};
const modifier = {
$set: {
role,
},
};
try {
await UsersPersistentData.updateAsync(selector, modifier);
} cat... | Merge branch 'v2.6.x-release' of github.com:bigbluebutton/bigbluebutton into ssrf-fix | https://github.com/bigbluebutton/bigbluebutton/commit/22de2b49a5d218910923a1048bb73395e53c99bf | CVE-2023-33176 | ['CWE-918'] | bigbluebutton-html5/imports/api/users-persistent-data/server/modifiers/updateRole.js | 0 | js | false | 2023-04-13T12:40:07Z |
def invoke_defer_method(self):
"""Method to easily redefine triggers which are being used in child classes."""
trigger_start_time = utcnow()
self.defer(
trigger=KubernetesPodTrigger(
pod_name=self.pod.metadata.name,
pod_namespace=self.pod.metadata.name... | def invoke_defer_method(self):
"""Method to easily redefine triggers which are being used in child classes."""
trigger_start_time = utcnow()
self.defer(
trigger=KubernetesPodTrigger(
pod_name=self.pod.metadata.name,
pod_namespace=self.pod.metadata.name... | load the config file in the triggerer instead of loading it in the worker and pass it as a dict | https://github.com/apache/airflow/commit/e7b0e39557602ae215cc8722a97ec6b43df1c3ab | null | null | airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py | 0 | py | false | 2023-02-21T00:28:45Z |
function ImageTextAlternativeEditing() {
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ImageTextAlternativeEditing);
return Object(_var_www_lime25_limesurvey_assets_packages_questiongr... | function ImageTextAlternativeEditing() {
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ImageTextAlternativeEditing);
return Object(_var_www_limedev_assets_packages_questiongroup_node_modules_bab... | DEV: changed routes in vue.js part questiongroupedit.js and deleted old controller+views | https://github.com/LimeSurvey/LimeSurvey/commit/d7a309bf1a73e95187528982b9db7ec03fee6913 | CVE-2020-23710 | ['CWE-79'] | assets/packages/questiongroup/build/js/questiongroupedit.js | 0 | js | false | 2020-06-08T09:23:29Z |
def latest_partition(
cls,
table_name: str,
schema: Optional[str],
database: Database,
show_first: bool = False,
) -> Tuple[List[str], Optional[List[str]]]:
"""Returns col name and the latest (max) partition value for a table
:param table_name: the name of th... | def latest_partition(
cls,
table_name: str,
schema: str | None,
database: Database,
show_first: bool = False,
) -> tuple[list[str], list[str] | None]:
"""Returns col name and the latest (max) partition value for a table
:param table_name: the name of the tabl... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/db_engine_specs/presto.py | 0 | py | false | 2023-06-05T08:42:54Z |
def get_ndb_model_from_beam_entity(beam_entity):
"""Returns an NDB model equivalent to the given Apache Beam entity.
Args:
beam_entity: beam_datastore_types.Entity. The Apache Beam entity.
Returns:
datastore_services.Model. The NDB model.
"""
ndb_key = get_ndb_key_from_beam_key(bea... | def get_ndb_model_from_beam_entity(
beam_entity: beam_datastore_types.Entity
) -> datastore_services.Model:
"""Returns an NDB model equivalent to the given Apache Beam entity.
Args:
beam_entity: beam_datastore_types.Entity. The Apache Beam entity.
Returns:
datastore_services.Model. The... | Merge remote-tracking branch 'upstream/develop' into secure-redirection | https://github.com/oppia/oppia/commit/11a7838e2269729b17513eca910b04951daa83ee | null | null | jobs/job_utils.py | 0 | py | false | 2021-09-25T13:52:17Z |
@Override
public void onAttach(@NonNull Context context) {
super.onAttach(context);
// This makes sure that the container activity has implemented
// the callback interfaces. If not, it throws an exception
try {
mToolbarAndFABCallback = (ToolbarAndFABCallback) context;
... | @Override
public void onAttach(@NonNull Context context) {
super.onAttach(context);
// This makes sure that the container activity has implemented
// the callback interfaces. If not, it throws an exception
try {
mToolbarAndFABCallback = (ToolbarAndFABCallback) context;
... | update volley to 1.2.1 | https://github.com/gateship-one/odyssey/commit/1c6c859c8805bdf1c1c488f874f6324c457fa866 | null | null | app/src/main/java/org/gateshipone/odyssey/fragments/MyMusicFragment.java | 0 | java | false | 2021-10-25T15:43:13Z |
def _render_job_button_for_obj(job_button, obj, context, content_type):
"""
Helper method for job_buttons templatetag to reduce repetition of code.
Returns:
(str, str): (button_html, form_html)
"""
# Pass select context data when rendering the JobButton text as Jinja2
button_context = {
... | def _render_job_button_for_obj(job_button, obj, context, content_type):
"""
Helper method for job_buttons templatetag to reduce repetition of code.
Returns:
(str, str): (button_html, form_html)
"""
# Pass select context data when rendering the JobButton text as Jinja2
button_context = {
... | s/SAFE_EMPTY/SAFE_EMPTY_STR/ | https://github.com/nautobot/nautobot/commit/1d6f8b855ff3303bf76787dbbad19c1b189a2b3c | null | null | nautobot/extras/templatetags/job_buttons.py | 0 | py | false | null |
def retry_building_docs_if_needed(
all_build_errors,
all_spelling_errors,
args,
docs_only,
jobs,
package_build_errors,
package_spelling_errors,
current_packages,
spellcheck_only,
):
to_retry_packages = [
package_name
for package_name, errors in package_build_error... | def retry_building_docs_if_needed(
all_build_errors: dict[str, list[DocBuildError]],
all_spelling_errors: dict[str, list[SpellingError]],
args: argparse.Namespace,
docs_only: bool,
jobs: int,
package_build_errors: dict[str, list[DocBuildError]],
originally_built_packages: list[str],
rebu... | Merge branch 'main' into trigger_encryption | https://github.com/apache/airflow/commit/bbc7408e175819eb8a2666acddd5bc48f403baf7 | null | null | docs/build_docs.py | 0 | py | false | 2024-01-08T23:50:49Z |
public static int setVideoQuality(Object[] qualities, int quality, Object qInterface, String qIndexMethod) {
int preferredQuality;
Field[] fields;
if (!ReVancedUtils.isNewVideoStarted() && !userChangedQuality || qInterface == null) {
return quality;
}
Class<?> intType... | public static int setVideoQuality(Object[] qualities, int quality, Object qInterface, String qIndexMethod) {
int preferredQuality;
Field[] fields;
if (!(newVideo || userChangedQuality) || qInterface == null) {
return quality;
}
Class<?> intType = Integer.TYPE;
... | fix: `default-video-quality` patch crashing (#100) | https://github.com/ReVanced/revanced-integrations/commit/c6b7528eaea76cf04851f4085d6e6a48731fb2dc | null | null | app/src/main/java/app/revanced/integrations/patches/VideoQualityPatch.java | 0 | java | false | null |
public Map<String, String> getAuthScriptAsMap() {
return Map.of("auth_script", this.getAuthRefreshScript(), "refresh_interval", String.valueOf(getAuthRefreshInterval()));
} | public Map<String, String> getAuthScriptAsMap() {
return Map.of("auth_script", this.getAuthRefreshScript(), "auth_refresh", String.valueOf(getAuthRefreshInterval()));
} | Update quarkus to latest version | https://github.com/Endava/cats/commit/0b8736cdd7403b1471e7cd5ef2f59c40e6fd026b | null | null | src/main/java/com/endava/cats/args/AuthArguments.java | 0 | java | false | null |
def load_or_create_client_key(key_file):
"""Load the ACME account key from a file, creating it if it does not exist.
Args:
key_file (str): name of the file to use as the account key
"""
# this is based on txacme.endpoint.load_or_create_client_key, but doesn't
# hardcode the 'client.key' fil... | def load_or_create_client_key(key_file: str) -> JWKRSA:
"""Load the ACME account key from a file, creating it if it does not exist.
Args:
key_file: name of the file to use as the account key
"""
# this is based on txacme.endpoint.load_or_create_client_key, but doesn't
# hardcode the 'client... | Merge remote-tracking branch 'origin/develop' into clokep/template-clean-up | https://github.com/matrix-org/synapse/commit/ba7f48a37848dcec60e99bc23ecd5e16137d2b45 | null | null | synapse/handlers/acme_issuing_service.py | 0 | py | false | 2021-01-27T13:35:31Z |
function Q(){var b;return 93===a.charCodeAt(vc)?(b=hc,vc++):(b=X,0===Bc&&g(ic)),b} | function Q(){var b;return 93===a.charCodeAt(sc)?(b=ec,sc++):(b=X,0===xc&&g(fc)),b} | fix for prototype pollution vulnerability | https://github.com/linkedin/dustjs/commit/ddb6523832465d38c9d80189e9de60519ac307c3 | CVE-2021-4264 | ['CWE-1321'] | dist/dust-full.min.js | 0 | js | false | 2021-09-08T00:12:45Z |
static Image *ReadWEBPImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
#define ThrowWEBPException(severity,tag) \
{ \
if (stream != (unsigned char *) NULL) \
stream=(unsigned char*) RelinquishMagickMemory(stream); \
if (webp_image != (WebPDecBuffer *) NULL) \
WebPFreeDecBuffer(webp_image); \... | static Image *ReadWEBPImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
#define ThrowWEBPException(severity,tag) \
{ \
if (stream != (unsigned char *) NULL) \
stream=(unsigned char*) RelinquishMagickMemory(stream); \
if (webp_image != (WebPDecBuffer *) NULL) \
WebPFreeDecBuffer(webp_image); \... | https://github.com/ImageMagick/ImageMagick/issues/639 | https://github.com/ImageMagick/ImageMagick/commit/06ccb0ccdcca8219862a05c5589329903473235f | null | null | coders/webp.c | 0 | c | false | null |
public void showMultichoicePoiFilterDialog(final MapActivity mapActivity, final DismissListener listener) {
final OsmandApplication app = getApplication();
final PoiFiltersHelper poiFilters = app.getPoiFilters();
final ContextMenuAdapter adapter = new ContextMenuAdapter(app);
final List<PoiUIFilter> list = new ... | public void showMultichoicePoiFilterDialog(final MapActivity mapActivity, final DismissListener listener) {
final OsmandApplication app = getApplication();
final PoiFiltersHelper poiFilters = app.getPoiFilters();
final ContextMenuAdapter adapter = new ContextMenuAdapter(app);
final List<PoiUIFilter> list = new ... | Fix configure map dialogs crash | https://github.com/osmandapp/OsmAnd/commit/0ae8e376ec7c31009c0aecc043629dc20ac1103e | null | null | OsmAnd/src/net/osmand/plus/views/MapLayers.java | 0 | java | false | null |
function L(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&"__lodash_placeholder__"!==o||(n[r]="__lodash_placeholder__",i[u++]=r)}return i} | function L(n,t){for(var r=n.length;r--&&y(t,n[r],0)>-1;);return r} | Update vendor libs | https://github.com/cockpit-hq/cockpit/commit/690016208850f2d788ebc3c67884d4c692587eb8 | CVE-2023-1160 | ['CWE-1103'] | modules/App/assets/vendor/lodash.js | 0 | js | false | 2023-02-22T01:10:02Z |
function parseAttributes(attrs) {
if (Object(lodash_es__WEBPACK_IMPORTED_MODULE_29__["isPlainObject"])(attrs)) {
attrs = Object(_ckeditor_ckeditor5_utils_src_objecttomap__WEBPACK_IMPORTED_MODULE_26__["default"])(attrs);
} else {
attrs = new Map(attrs);
}
var _iteratorNormalCompletion7 = true;
var _di... | function parseAttributes(attrs) {
if (Object(lodash_es__WEBPACK_IMPORTED_MODULE_29__["isPlainObject"])(attrs)) {
attrs = Object(_ckeditor_ckeditor5_utils_src_objecttomap__WEBPACK_IMPORTED_MODULE_26__["default"])(attrs);
} else {
attrs = new Map(attrs);
}
var _iteratorNormalCompletion7 = true;
var _di... | DEV: changed routes in vue.js part questiongroupedit.js and deleted old controller+views | https://github.com/LimeSurvey/LimeSurvey/commit/d7a309bf1a73e95187528982b9db7ec03fee6913 | CVE-2020-23710 | ['CWE-79'] | assets/packages/questiongroup/build/js/questiongroupedit.js | 0 | js | false | 2020-06-08T09:23:29Z |
@LuaFunction
public final Object[] seek(Optional<String> whence, Optional<Long> offset) throws LuaException {
this.checkOpen();
return handleSeek(this.seekable, whence, offset);
} | @LuaFunction
public final Object[] seek( Optional<String> whence, Optional<Long> offset ) throws LuaException
{
checkOpen();
return handleSeek( seekable, whence, offset );
} | Make rightAlt only close menu, never open it. (#672)
Fixes #669 | https://github.com/cc-tweaked/cc-restitched/commit/094e0d4f33ff28462d9e4721edcb8c8d1581b410 | null | null | src/main/java/dan200/computercraft/core/apis/handles/BinaryReadableHandle.java | 0 | java | false | 2021-01-13T22:10:44Z |
static int __kprobes
do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
{
struct task_struct *tsk;
struct mm_struct *mm;
int fault, sig, code;
if (notify_page_fault(regs, fsr))
return 0;
tsk = current;
mm = tsk->mm;
/*
* If we're in an interrupt or have no user
* context, we must... | static int __kprobes
do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
{
struct task_struct *tsk;
struct mm_struct *mm;
int fault, sig, code;
if (notify_page_fault(regs, fsr))
return 0;
tsk = current;
mm = tsk->mm;
/*
* If we're in an interrupt or have no user
* context, we must... | perf: Remove the nmi parameter from the swevent and overflow interface
The nmi parameter indicated if we could do wakeups from the current
context, if not, we would set some state and self-IPI and let the
resulting interrupt do the wakeup.
For the various event classes:
- hardware: nmi=0; PMI is in fact an NMI or ... | https://github.com/torvalds/linux/commit/a8b0ca17b80e92faab46ee7179ba9e99ccb61233 | null | null | arch/arm/mm/fault.c | 0 | c | false | null |
static int _receive(gnrc_pktsnip_t *pkt)
{
/* NOTE: In receiving direction: pkt = payload, payload->next = tcp, tcp->next = nw */
uint16_t ctl = 0;
uint16_t src = 0;
uint16_t dst = 0;
uint8_t hdr_size = 0;
uint8_t syn = 0;
gnrc_pktsnip_t *ip = NULL;
gnrc_pktsnip_t *reset = NULL;
gnrc... | static int _receive(gnrc_pktsnip_t *pkt)
{
/* NOTE: In receiving direction: pkt = payload, payload->next = tcp, tcp->next = nw */
uint16_t ctl = 0;
uint16_t src = 0;
uint16_t dst = 0;
uint8_t hdr_size = 0;
uint8_t syn = 0;
gnrc_pktsnip_t *ip = NULL;
gnrc_pktsnip_t *reset = NULL;
gnrc... | gnrc_tcp: Fix memory leak | https://github.com/RIOT-OS/RIOT/commit/c6df2064aff1ffb4015d4cedbaefb8850cb50aa8 | null | null | sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c | 0 | c | false | null |
def _call(
self,
prompt: str,
stop: Optional[List[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
) -> str:
"""Call to Modal endpoint."""
params = self.model_kwargs or {}
response = requests.post(
url=self.endpoint_url,
... | def _call(
self,
prompt: str,
stop: Optional[List[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
**kwargs: Any,
) -> str:
"""Call to Modal endpoint."""
params = self.model_kwargs or {}
params = {**params, **kwargs}
respon... | Merge remote-tracking branch 'upstream/master' | https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10 | null | null | langchain/llms/modal.py | 0 | py | false | 2023-06-21T06:45:39Z |
private void ini() {
set(hea);
set(len);
set(max);
add(bg);
add(cas);
add(con);
add(mus);
add(jm1);
set(jhea);
set(jlen);
set(jbg);
set(jcas);
set(jmax);
set(name);
set(jm0);
set(jmh);
add(lt);
set(loop);
set(lop);
set(loop1);
set(lop1);
set(minres);
set(minrest);
set(cos... | private void ini() {
set(hea);
set(len);
set(max);
add(bg);
add(cas);
add(con);
add(mus);
set(jhea);
set(jlen);
set(jbg);
set(jcas);
set(jmax);
set(name);
set(jm0);
set(jmh);
set(jm1);
add(lt);
set(loop);
set(lop);
set(loop1);
set(lop1);
set(minres);
set(minrest);
set(cos... | Added toggle to consider/ignore traits for certain attack types | https://github.com/battlecatsultimate/BCU-java-PC/commit/732c4b5bcf529137b46b325e97235fe479e2efb6 | null | null | src/main/java/page/info/edit/HeadEditTable.java | 0 | java | false | 2021-05-03T00:32:57Z |
public String executeXML(String sparqlQuery, int timeout) throws Exception {
logger.info("Json " + sparqlQuery);
initializeHybridStore(locationHdt);
ParsedQuery parsedQuery =
QueryParserUtil.parseQuery(QueryLanguage.SPARQL, sparqlQuery, null);
RepositoryConnection conn... | public String executeXML(String sparqlQuery, int timeout) throws Exception {
logger.info("Json " + sparqlQuery);
initializeHybridStore(locationHdt);
ParsedQuery parsedQuery =
QueryParserUtil.parseQuery(QueryLanguage.SPARQL, sparqlQuery, null);
RepositoryConnection conn... | add step crashing and start tests | https://github.com/the-qa-company/qEndpoint/commit/90451be4445b0b51472755345784c13307f2a5a1 | null | null | hdt-qs-backend/src/main/java/com/the_qa_company/q_endpoint/controller/Sparql.java | 0 | java | false | 2022-02-04T15:11:26Z |
private void addCertCaToTrustStore(String alias, Map<String, String> certData) {
try {
File certFile = File.createTempFile("tls", "-cert");
Files.write(certFile.toPath(), Base64.getDecoder().decode(certData.get(CA_CRT)));
try {
File trustStoreFile = File.creat... | private void addCertCaToTrustStore(String alias, Map<String, String> certData) {
try {
File certFile = Files.createTempFile("tls", "-cert").toFile();
Files.write(certFile.toPath(), Base64.getDecoder().decode(certData.get(CA_CRT)));
try {
File trustStoreFile = ... | Improve JavaDoc comments before moving to Java 17 (#7664)
Signed-off-by: Jakub Scholz <www@scholzj.com> | https://github.com/strimzi/strimzi-kafka-operator/commit/9b53334d5d38ac5bf7cfb60ceed5bd84b989d2f3 | null | null | operator-common/src/main/java/io/strimzi/operator/cluster/model/Ca.java | 0 | java | false | 2022-11-22T23:20:42Z |
public static void loadImages() {
for (int i = 0; i <= 20; i++) {
MANA_IMAGES.put(String.valueOf(i), FSkin.getImage(FSkinProp.valueOf("IMG_MANA_" + i), manaImageSize, manaImageSize));
}
MANA_IMAGES.put("X", FSkin.getImage(FSkinProp.IMG_MANA_X, manaImageSize, manaImageSize));
... | public static void loadImages() {
for (int i = 0; i <= 20; i++) {
MANA_IMAGES.put(String.valueOf(i), FSkin.getImage(FSkinProp.valueOf("IMG_MANA_" + i), manaImageSize, manaImageSize));
}
MANA_IMAGES.put("X", FSkin.getImage(FSkinProp.IMG_MANA_X, manaImageSize, manaImageSize));
... | - Fix auto mana payment for Chromatic Orrery and friends
- Fix the Haste icon crashing in desktop Forge | https://github.com/Card-Forge/forge/commit/71f191e71b1d3108ba6bd001fbc84c115ec16195 | null | null | forge-gui-desktop/src/main/java/forge/toolbox/CardFaceSymbols.java | 0 | java | false | null |
def del_version(request, client_id, project, version):
if request.method == 'GET':
client = Client.objects.get(id=client_id)
try:
scrapyd = get_scrapyd(client)
result = scrapyd.delete_version(project=project, version=version)
return JsonResponse(result)
ex... | def del_version(request, client_id, project, version):
if request.method == 'GET':
client = Client.objects.get(id=client_id)
scrapyd = get_scrapyd(client)
result = scrapyd.delete_version(project=project, version=version)
return JsonResponse(result) | to b1 | https://github.com/Gerapy/Gerapy/commit/e8446605eb2424717418eae199ec7aad573da2d2 | null | null | gerapy/server/core/views.py | 0 | py | false | 2020-07-06T14:57:10Z |
private static void initialize()
{
if (!dbManagerReady.get())
{
synchronized (dbManagerReady)
{
if (!dbManagerReady.get())
{
LOGGER.info("DatabaseManager starting initialization");
long start = System.cur... | private static void initialize()
{
if (!dbManagerReady.get())
{
synchronized (dbManagerReady)
{
if (!dbManagerReady.get())
{
LOGGER.info("DatabaseManager starting initialization");
long start = System.cur... | Add protocol v1_24_0 (#847)
* Add protocol v1_24_0
* Update PureClientVersions to use v1_24_0 | https://github.com/finos/legend-engine/commit/b00cd1bc8085c5d6c778827bca59174c70eaf06c | null | null | legend-engine-xt-relationalStore-executionPlan-connection/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/connection/driver/DatabaseManager.java | 0 | java | false | null |
function D(qa,O,X){if(X||q!=document.activeElement&&y!=document.activeElement){qa=!1;for(O=0;O<C.length;O++)X=C[O],da?"custom"==X.key&&(d.value=X.key,da=!1):null!=X.format&&("a4"==X.key?826==k.width?(k=mxRectangle.fromRectangle(k),k.width=827):826==k.height&&(k=mxRectangle.fromRectangle(k),k.height=827):"a5"==X.key&&(5... | function D(qa,O,X){if(X||q!=document.activeElement&&y!=document.activeElement){qa=!1;for(O=0;O<C.length;O++)X=C[O],da?"custom"==X.key&&(d.value=X.key,da=!1):null!=X.format&&("a4"==X.key?826==k.width?(k=mxRectangle.fromRectangle(k),k.width=827):826==k.height&&(k=mxRectangle.fromRectangle(k),k.height=827):"a5"==X.key&&(5... | 18.1.3 release | https://github.com/jgraph/drawio/commit/064729fec4262f9373d9fdcafda0be47cd18dd50 | CVE-2023-3398 | ['CWE-400'] | src/main/webapp/js/viewer-static.min.js | 0 | js | false | null |
public boolean canPlayerModify(Player player) {
return mainNode.isReady() && mainNode.getGrid().getSecurityService().hasPermission(player, SecurityPermissions.BUILD);
} | public boolean canPlayerModify(Player player) {
//TODO add check
return mainNode.isReady() && mainNode.getGrid().getSecurityService().hasPermission(player, SecurityPermissions.BUILD);
} | update removal | https://github.com/Team-EnderIO/EnderIO/commit/4e6a733589c3a8033e33ead854dca6b4d3e3947d | null | null | src/conduits/java/com/enderio/conduits/common/integrations/ae2/AE2InWorldConduitNodeHost.java | 0 | java | false | 2022-10-18T14:55:12Z |
public JFrame render()
{
final Colormap colormap = displaySettings.getColormap();
// X label
final String xAxisLabel = xFeature + " (" + TMUtils.getUnitsFor( xDimension, model.getSpaceUnits(), model.getTimeUnits() ) + ")";
// Find how many different dimensions
final Set< Dimension > dimensions = getUniqueV... | public JFrame render()
{
// X label
final String xAxisLabel = xFeature + " (" + TMUtils.getUnitsFor( xDimension, spaceUnits, timeUnits ) + ")";
// Find how many different dimensions
final Set< Dimension > dimensions = getUniqueValues( yFeatures, yDimensions );
// Generate one panel per different dimension
... | Use the new spot dataset in the grapher.
Required to change Set -> List to the collection of objects to plot
and the set of features to plot. | https://github.com/trackmate-sc/TrackMate/commit/c15faf6268865e90b1da8be72bbeeab0605153ec | null | null | src/main/java/fiji/plugin/trackmate/features/AbstractFeatureGrapher.java | 0 | java | false | null |
public void writeString(@NotNull String string) {
this.ensureWriting();
byte[] stringBytes = string.getBytes(CHARSET_UTF_8);
this.writeByteArray(stringBytes);
} | public void writeString(@NotNull String string) {
this.ensureWriting();
byte[] stringBytes = string.getBytes(StandardCharsets.UTF_8);
this.writeByteArray(stringBytes);
} | Fix Bukkit not sending handshake response/crashing client | https://github.com/2008Choco/VeinMiner/commit/2984ce29813e6145245466c2f7d13bf82903489e | null | null | VeinMiner-Common/src/main/java/wtf/choco/veinminer/network/PluginMessageByteBuffer.java | 0 | java | false | 2022-01-28T22:30:43Z |
public void addTrait(BeeTrait trait){
if (trait != null) {
if (trait.hasDamagePotionEffects()) {
this.potionDamageEffects.addAll(trait.getPotionDamageEffects());
}
if (trait.hasDamageImmunities()) {
this.damageImmunities.addAll(trait.getDamageI... | public void addTrait(BeeTrait trait){
if (trait != null) {
if (trait.hasDamagePotionEffects()) {
this.potionDamageEffects.addAll(trait.getPotionDamageEffects());
}
if (trait.hasDamageImmunities()) {
this.damageImmunities.addAll(trait.getDamageI... | Added initial aura code
bees can now also do other damage types with traits
the amplifier will determine how much damage each trait damage type will deal
the default sting attack will still also occur | https://github.com/Team-Resourceful/ResourcefulBees/commit/8aa5c6ce0ca209025f5a27685fb08d86bf76398f | null | null | src/main/java/com/resourcefulbees/resourcefulbees/api/beedata/TraitData.java | 0 | java | false | null |
def get_stacktrace() -> Optional[str]:
if current_app.config["SHOW_STACKTRACE"]:
return traceback.format_exc()
return None | def get_stacktrace() -> str | None:
if current_app.config["SHOW_STACKTRACE"]:
return traceback.format_exc()
return None | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/utils/core.py | 0 | py | false | 2023-06-05T08:42:54Z |
public void aiStep() {
super.aiStep();
if (this.getAttackTimer() > 0) {
this.entityData.set(ATTACK_TIMER, this.getAttackTimer() - 1);
}
if (this.getRockTimer() > 0) {
this.entityData.set(ROCK_TIMER, this.getRockTimer() - 1);
}
} | public void aiStep() {
super.aiStep();
if (this.getRockTimer() == 5) {
this.throwRocks();
}
if (this.getAttackTimer() > 0) {
this.entityData.set(ATTACK_TIMER, this.getAttackTimer() - 1);
}
if (this.getRockTimer() > 0) {
this.entityDat... | Finished Dwarf throw attack and added Dwarf sounds | https://github.com/infernalstudios/Infernal-Expansion/commit/652ce735930a0b2db7131eeb881dc997cf07a860 | null | null | src/main/java/org/infernalstudios/infernalexp/entities/BlackstoneDwarfEntity.java | 0 | java | false | null |
def _find_working_git(self):
test_cmd = 'version'
if app.GIT_PATH:
main_git = '"' + app.GIT_PATH + '"'
else:
main_git = 'git'
log.debug(u'Checking if we can use git commands: {0} {1}', main_git, test_cmd)
_, _, exit_status = self._run_git(main_git, test_... | def _find_working_git(self):
test_cmd = 'version'
main_git = app.GIT_PATH or 'git'
log.debug(u'Checking if we can use git commands: {0} {1}', main_git, test_cmd)
_, _, exit_status = self._run_git(main_git, test_cmd)
if exit_status == 0:
log.debug(u'Using: {0}', main... | Ensure that git_path is a valid file (#11138)
* Ensure that git_path is a valid file
* Update github_updater.py | https://github.com/pymedusa/Medusa/commit/66d4be8f0872bd5ddcdc5c5a58cb014d22834a45 | null | null | medusa/updater/github_updater.py | 0 | py | false | 2023-02-22T10:23:45Z |
static expr_ty
ast_for_atom(struct compiling *c, const node *n)
{
/* atom: '(' [yield_expr|testlist_comp] ')' | '[' [testlist_comp] ']'
| '{' [dictmaker|testlist_comp] '}' | NAME | NUMBER | STRING+
| '...' | 'None' | 'True' | 'False'
*/
node *ch = CHILD(n, 0);
switch (TYPE(ch)) {
case... | static expr_ty
ast_for_atom(struct compiling *c, const node *n)
{
/* atom: '(' [yield_expr|testlist_comp] ')' | '[' [testlist_comp] ']'
| '{' [dictmaker|testlist_comp] '}' | NAME | NUMBER | STRING+
| '...' | 'None' | 'True' | 'False'
*/
node *ch = CHILD(n, 0);
switch (TYPE(ch)) {
case... | Fully incorporate the code from Python 3.7.2 (#78)
This is a full port, following the recipe in update_process.md. I've also tried to keep the recipe up to date and improved the automation (see tools/script). I haven't cleaned up the commits. As of #77 there are a few tests that sanity-check this (though it's far from... | https://github.com/python/typed_ast/commit/156afcb26c198e162504a57caddfe0acd9ed7dce | null | null | ast3/Python/ast.c | 0 | c | false | 2019-01-23T03:09:26Z |
async def _complete_login(
self,
user_id: str,
login_submission: JsonDict,
callback: Optional[Callable[[LoginResponse], Awaitable[None]]] = None,
create_non_existent_users: bool = False,
ratelimit: bool = True,
auth_provider_id: Optional[str] = None,
shoul... | async def _complete_login(
self,
user_id: str,
login_submission: JsonDict,
callback: Optional[Callable[[LoginResponse], Awaitable[None]]] = None,
create_non_existent_users: bool = False,
ratelimit: bool = True,
auth_provider_id: Optional[str] = None,
shoul... | Fix typos.
Co-authored-by: David Robertson <davidr@element.io> | https://github.com/matrix-org/synapse/commit/07e16191a10c1e3355e6263acf0e8fa5eb8905c7 | null | null | synapse/rest/client/login.py | 0 | py | false | null |
int cp_vbnn_ver(const ec_t r, const bn_t z, const bn_t h, const uint8_t *id,
size_t id_len, const uint8_t *msg, int msg_len, const ec_t mpk) {
int len, result = 0;
uint8_t *buf = NULL, *buf_i, hash[RLC_MD_LEN];
bn_t n, c, _h;
ec_t Z;
ec_t t;
/* zero variables */
bn_null(n);
bn_null(c);
bn_null(_h);
ec_null... | int cp_vbnn_ver(const ec_t r, const bn_t z, const bn_t h, const uint8_t *id,
size_t id_len, const uint8_t *msg, int msg_len, const ec_t mpk) {
size_t len;
uint8_t *buf = NULL, *buf_i, hash[RLC_MD_LEN];
bn_t n, c, _h;
ec_t Z, t;
int result = 0;
/* zero variables */
bn_null(n);
bn_null(c);
bn_null(_h);
ec_nu... | Huge commit improving the API to use size_t instead of int. | https://github.com/relic-toolkit/relic/commit/34580d840469361ba9b5f001361cad659687b9ab | null | null | src/cp/relic_cp_vbnn.c | 0 | c | false | 2022-11-14T20:47:12Z |
def remove_duplicates(
items: Iterable[InputType], key: Optional[Callable[[InputType], Any]] = None
) -> List[InputType]:
"""Remove duplicate items in an iterable."""
if not key:
return list(dict.fromkeys(items).keys())
seen = set()
result = []
for item in items:
item_key = key(i... | def remove_duplicates(
items: Iterable[InputType], key: Callable[[InputType], Any] | None = None
) -> list[InputType]:
"""Remove duplicate items in an iterable."""
if not key:
return list(dict.fromkeys(items).keys())
seen = set()
result = []
for item in items:
item_key = key(item... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/utils/core.py | 0 | py | false | 2023-06-05T08:42:54Z |
static int setupStream(PRTSP_MESSAGE response, char* target, int* error) {
RTSP_MESSAGE request;
int ret;
char* transportValue;
*error = -1;
ret = initializeRtspRequest(&request, "SETUP", target);
if (ret != 0) {
if (hasSessionId) {
if (!addOption(&request, "Session", sessi... | static int setupStream(PRTSP_MESSAGE response, char* target, int* error) {
RTSP_MESSAGE request;
int ret;
char* transportValue;
*error = -1;
ret = initializeRtspRequest(&request, "SETUP", target);
if (ret != 0) {
if (hasSessionId) {
if (!addOption(&request, "Session", sessi... | API update to provide enough information to support GFE 3.0.7 | https://github.com/moonlight-stream/moonlight-common-c/commit/f57bd745b4cbed577ea654fad4701bea4d38b44c | null | null | src/RtspConnection.c | 0 | c | false | null |
public boolean isAfterLast() throws SQLException {
return !open && !emptyResultSet;
} | public boolean isAfterLast() {
return !open && !emptyResultSet;
} | fix(jdbc): getDate, getTime, and getTimestamp crash on empty text
Closes: #490 | https://github.com/xerial/sqlite-jdbc/commit/bc5174ba197e6e6a1d054542d3e63f1e7d09ccd9 | null | null | src/main/java/org/sqlite/jdbc3/JDBC3ResultSet.java | 0 | java | false | 2022-08-30T08:31:15Z |
function x(t,e){var n=L(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(b,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n} | function x(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n} | [API] Update swagger version | https://github.com/mailcow/mailcow-dockerized/commit/000894dabda7c2116f43ad6ff926962295d8095c | CVE-2022-39258 | ['CWE-200', 'CWE-451', 'CWE-601'] | data/web/api/swagger-ui-standalone-preset.js | 0 | js | false | 2022-09-26T13:56:24Z |
Dataset Card for CleanVul
CleanVul is a function-level vulnerability dataset derived from vulnerability-fixing commits. It provides paired before/after function snapshots and metadata produced by an LLM-assisted heuristic pipeline (VulSifter) to identify which changed functions are likely to correspond to vulnerability fixes.
Dataset Details
CleanVul targets the noise present in many vulnerability datasets that label all modified files or functions in vulnerability-fixing commits as vulnerability-related. The dataset is constructed by applying VulSifter, which combines LLM-based semantic inspection with filtering heuristics (e.g., to remove test-related changes). CleanVul is released in multiple confidence “threshold” variants so users can trade off dataset size and label correctness.
- Curated by: Yikun Li, Ting Zhang, Ratnadira Widyasari, Yan Naing Tun, Huu Hung Nguyen, Tan Bui, Ivana Clairine Irsan, Yiran Cheng, Xiang Lan, Han Wei Ang, et al.
- Language(s): Source code (multilingual). Reported language coverage includes Java, Python, C, JavaScript, C#, and C++.
- Paper: arXiv:2411.17274 (CleanVul: Automatic Function-Level Vulnerability Detection in Code Commits Using LLM Heuristics)
Dataset Structure
CleanVul is released in multiple score-based CSV files. Pairs are stored separately by vulnerability score and can be combined to form thresholded subsets:
vulnerability_score_3.csv: items with score = 3vulnerability_score_4.csv: items with score = 4
To reconstruct the commonly used “Threshold 3” subset (score ≥ 3), combine:
- score = 3 (6,368 items) + score = 4 (1,830 items) = 8,198 items
Citation
@article{li2024cleanvul,
title={CleanVul: Automatic Function-Level Vulnerability Detection in Code Commits Using LLM Heuristics},
author={Li, Yikun and Zhang, Ting and Widyasari, Ratnadira and Tun, Yan Naing and Nguyen, Huu Hung and Bui, Tan and Irsan, Ivana Clairine and Cheng, Yiran and Lan, Xiang and Ang, Han Wei and others},
journal={arXiv preprint arXiv:2411.17274},
year={2024}
}
- Downloads last month
- 147