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
private void saveServerPreference(String server, String user, String password, String token, String salt) { if (user != null) PreferenceUtil.getInstance(context).setUser(user); if (server != null) PreferenceUtil.getInstance(context).setServer(server); if (password != null) PreferenceUtil.getInst...
private void saveServerPreference(String server, String user, String password, String token, String salt) { if (user != null) PreferenceUtil.getInstance(context).setUser(user); if (server != null) PreferenceUtil.getInstance(context).setServer(server); if (password != null) PreferenceUtil.getInst...
Reverted corner rounding in playlist adapters
https://github.com/CappielloAntonio/tempo/commit/f109f779dcbb7db419f2ec63c1616372d061b946
null
null
app/src/main/java/com/cappielloantonio/play/ui/fragment/dialog/ServerSignupDialog.java
0
java
false
2021-08-09T10:28:34Z
def _call( self, prompt: str, stop: Optional[Sequence[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, ) -> str: """Generate text from a prompt. Args: prompt: The prompt to generate text from. stop: A list of sequences to ...
def _call( self, prompt: str, stop: Optional[Sequence[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any, ) -> str: """Generate text from a prompt. Args: prompt: The prompt to generate text from. stop: ...
Merge remote-tracking branch 'upstream/master'
https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10
null
null
langchain/llms/ctransformers.py
0
py
false
2023-06-21T06:45:39Z
@Override public FileDiffOutput getModifiedFileAgainstParent( Project.NameKey project, ObjectId newCommit, @Nullable Integer parent, String fileName, @Nullable DiffPreferencesInfo.Whitespace whitespace) throws DiffNotAvailableException { try { DiffParameters diffParams = ...
@Override public FileDiffOutput getModifiedFileAgainstParent( Project.NameKey project, ObjectId newCommit, @Nullable Integer parent, String fileName, @Nullable DiffPreferencesInfo.Whitespace whitespace) throws DiffNotAvailableException { try { DiffParameters diffParams = ...
Use faster fallback diff algorithm in case of timeouts Current logic uses the default diff algorithm "Histogram Diff". In case of timeouts, it throws an exception that is propagated to the caller. In this change, we adjust the logic to follow what was implemented in PatchListLoader (the old diff cache): If the diff e...
https://github.com/GerritCodeReview/gerrit/commit/541ac10c62fbfa3ad2204e9171c99c499ede46e7
null
null
java/com/google/gerrit/server/patch/DiffOperationsImpl.java
0
java
false
null
static void lookup_fsmonitor_settings(struct repository *r) { const char *const_str; int bool_value; if (r->settings.fsmonitor) return; /* * Overload the existing "core.fsmonitor" config setting (which * has historically been either unset or a hook pathname) to * now allow a boolean value to enable the bu...
static void lookup_fsmonitor_settings(struct repository *r) { const char *const_str; int bool_value; if (r->settings.fsmonitor) return; /* * Overload the existing "core.fsmonitor" config setting (which * has historically been either unset or a hook pathname) to * now allow a boolean value to enable the bu...
fsmonitor: reintroduce core.useBuiltinFSMonitor Reintroduce the 'core.useBuiltinFSMonitor' config setting (originally added in 0a756b2a25 (fsmonitor: config settings are repository-specific, 2021-03-05)) after its removal from the upstream version of FSMonitor. Upstream, the 'core.useBuiltinFSMonitor' setting was ren...
https://github.com/git-for-windows/git/commit/31f219515ae9ef5e3f3e32cd7c6a054de67bb58b
null
null
fsmonitor-settings.c
0
c
false
null
function m(){var b,c,d,e,f,h,i;if(b=vc,c=N(),c!==X)if(ia.test(a.charAt(vc))?(d=a.charAt(vc),vc++):(d=X,0===Bc&&g(ja)),d!==X){for(e=[],f=S();f!==X;)e.push(f),f=S();e!==X?(f=v(),f!==X?(h=o(),h!==X?(i=p(),i!==X?(wc=b,c=ka(d,f,h,i),b=c):(vc=b,b=aa)):(vc=b,b=aa)):(vc=b,b=aa)):(vc=b,b=aa)}else vc=b,b=aa;else vc=b,b=aa;return...
function m(){var b,c,d,e,f,h,i;if(b=sc,c=N(),c!==X)if(fa.test(a.charAt(sc))?(d=a.charAt(sc),sc++):(d=X,0===xc&&g(ga)),d!==X){for(e=[],f=S();f!==X;)e.push(f),f=S();e!==X?(f=v(),f!==X?(h=o(),h!==X?(i=p(),i!==X?(tc=b,c=ha(d,f,h,i),b=c):(sc=b,b=X)):(sc=b,b=X)):(sc=b,b=X)):(sc=b,b=X)}else sc=b,b=X;else sc=b,b=X;return 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
def get_available_packages( include_non_provider_doc_packages: bool = False, include_all_providers: bool = False, include_suspended: bool = False, include_removed: bool = False, include_not_ready: bool = False, ) -> list[str]: """ Return provider ids for all packages that are available curre...
def get_available_packages( include_non_provider_doc_packages: bool = False, include_all_providers: bool = False, include_suspended: bool = False, include_removed: bool = False, include_not_ready: bool = False, include_regular: bool = True, ) -> list[str]: """ Return provider ids for all...
Merge branch 'main' into trigger_encryption
https://github.com/apache/airflow/commit/bbc7408e175819eb8a2666acddd5bc48f403baf7
null
null
dev/breeze/src/airflow_breeze/utils/packages.py
0
py
false
2024-01-08T23:50:49Z
public static String activeMap() { // if (true) return "sscai/(2)Destination.scx"; // if (true) return "sscai/(2)Heartbreak Ridge.scx"; // if (true) return "sscai/(4)Roadrunner.scx"; // if (true) return "sscai/(?)*.sc?"; // Default map-pack for SSCAIT // === UMS maps - great for bot...
public static String activeMap() { // if (true) return "sscai/(2)Destination.scx"; if (true) return "sscai/(2)Heartbreak Ridge.scx"; // if (true) return "sscai/(4)Roadrunner.scx"; // if (true) return "sscai/(?)*.sc?"; // Default map-pack for SSCAIT // === UMS maps - great for bot d...
Major improvement to marines & medic coordination, marines waiting for medics in range to attack
https://github.com/Ravaelles/Atlantis/commit/81eb30b4368b10865c1d7d216b9dabea0acbe8e6
null
null
src/atlantis/config/UseMap.java
0
java
false
null
protected void moveAndRotateMatrixToMatchBone(PoseStack stack, GeoBone bone) { // First, let's move our render position to the pivot point... stack.translate(bone.getPivotX() / 16, bone.getPivotY() / 16, bone.getPivotZ() / 16); stack.mulPose(Vector3f.XP.rotationDegrees(bone.getRotationX())); stack.mulPose(Vect...
@Deprecated(forRemoval = true) protected void moveAndRotateMatrixToMatchBone(PoseStack stack, GeoBone bone) { RenderUtils.translateAndRotateMatrixForBone(stack, bone); }
Fixes vanilla armor crash
https://github.com/bernie-g/geckolib/commit/a899bbfadaa431774743d376b24fef4c5376fb95
null
null
Forge/src/main/java/software/bernie/geckolib3/renderers/geo/ExtendedGeoEntityRenderer.java
0
java
false
2022-10-31T20:10:55Z
function _u(n){return!!du(n)&&(n=Ot(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}
function _u(n){return"number"==typeof n?n:bc(n)?Cn:+n}
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
@ApiStatus.Internal public static void init() { var overlays = new HashMap<ResourceLocation, IGuiOverlay>(); var orderedOverlays = new ArrayList<ResourceLocation>(); preRegisterVanillaOverlays(overlays, orderedOverlays); var event = new RegisterGuiOverlaysEvent(overlays, orderedO...
@ApiStatus.Internal public static void init() { var overlays = new HashMap<ResourceLocation, IGuiOverlay>(); var orderedOverlays = new ArrayList<ResourceLocation>(); preRegisterVanillaOverlays(overlays, orderedOverlays); var event = new RegisterGuiOverlaysEvent(overlays, orderedO...
Multiple tweaks and fixes to the recent changes in the client refactor PR (#8836) * Add an easy way to get the NamedGuiOverlay from a vanilla overlay * Fix static member ordering crash in UnitTextureAtlasSprite * Allow boss bar rendering to be cancelled * Make fluid container datagen use the new name
https://github.com/MinecraftForge/MinecraftForge/commit/a98eeb9d089e667dee55cee65e2f9d790bc9bcdc
null
null
src/main/java/net/minecraftforge/client/gui/overlay/GuiOverlayManager.java
0
java
false
null
function remove_cluster(ids) { var data = {}; $.each(ids, function(_, cluster) { data[ "clusterid-" + cluster] = true; }); $.ajax({ type: 'POST', url: '/manage/removecluster', data: data, timeout: pcs_timeout, success: function () { $("#dialog_verify_remove_clusters.ui-dialog-conte...
function remove_cluster(ids) { var data = {}; $.each(ids, function(_, cluster) { data[ "clusterid-" + cluster] = true; }); ajax_wrapper({ type: 'POST', url: '/manage/removecluster', data: data, timeout: pcs_timeout, success: function () { $("#dialog_verify_remove_clusters.ui-dialog...
web UI auth: add js/ajax login dialog
https://github.com/ClusterLabs/pcs/commit/acdbbe8307e6f4a36b2c7754765e732e43fe8d17
CVE-2016-0721
['CWE-384']
pcsd/public/js/pcsd.js
0
js
false
2016-02-08T16:13:19Z
def _generate_message(self) -> str: msg = _( "Failed to execute %(query)s", query=self.sql_json_execution_context.get_query_details(), ) if self.failed_reason_msg: msg = msg + self.failed_reason_msg if self.suggestion_help_msg is not None: ...
def _generate_message(self) -> str: msg = _( "Failed to execute %(query)s", query=self.sql_json_execution_context.get_query_details(), ) if self.failed_reason_msg: msg = msg + self.failed_reason_msg if self.suggestion_help_msg is not None: ...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/sqllab/exceptions.py
0
py
false
2023-06-05T08:42:54Z
async prepareResult() { const { surveyId } = this.context this.setResult({ surveyId }) }
async beforeSuccess() { const { surveyId } = this.context this.setResult({ surveyId }) }
Merge branch 'master' of https://github.com/openforis/arena into sort-sql-injection-fix
https://github.com/openforis/arena/commit/b61e40964529677193491ff1145efd06b4ed38c7
CVE-2019-15567
['CWE-89']
server/modules/collectImport/service/collectImport/collectImportJob.js
0
js
false
null
@SuppressWarnings({ "unchecked", "rawtypes" }) @SubscribeEvent public static void registerModels(ModelRegistryEvent event){ //Register the global entity rendering class. RenderingRegistry.registerEntityRenderingHandler(BuilderEntity.class, new IRenderFactory<BuilderEntity>(){ @Override public Render<? super...
@SuppressWarnings({ "unchecked", "rawtypes" }) @SubscribeEvent public static void registerModels(ModelRegistryEvent event){ //Register the global entity rendering class. RenderingRegistry.registerEntityRenderingHandler(BuilderEntity.class, new IRenderFactory<BuilderEntity>(){ @Override public Render<? super...
Made permanent parts not block part removal, and always spawn when the part is added. Addresses #747.
https://github.com/DonBruce64/MinecraftTransportSimulator/commit/5deec3ce60a938570fd7d7948597ba58432c1dc5
null
null
src/main/java/minecrafttransportsimulator/rendering/components/InterfaceEventsModelLoader.java
0
java
false
2021-03-14T15:51:02Z
@SuppressWarnings({"unchecked", "rawtypes"}) public static <C> C wrap(final EventType<C> eventType, final C callback) { switch (eventType.getId()) { case REQUEST_STARTED_ID: return (C) new Supplier<Flow<Object>>() { @Override public Flow<Object> get() { ...
@SuppressWarnings({"unchecked", "rawtypes"}) public static <C> C wrap(final EventType<C> eventType, final C callback) { switch (eventType.getId()) { case REQUEST_STARTED_ID: return (C) new Supplier<Flow<Object>>() { @Override public Flow<Object> get() { ...
Attack reports with response status code and blocking status
https://github.com/DataDog/dd-trace-java/commit/6d11f4eedda162989cc2e6b4b91180d8fd619728
null
null
internal-api/src/main/java/datadog/trace/api/gateway/InstrumentationGateway.java
0
java
false
2021-10-03T21:22:04Z
AuthenticationToken newSyntheticPassword(int userId) { clearSidForUser(userId); AuthenticationToken result = AuthenticationToken.create(); saveEscrowData(result, userId); return result; }
SyntheticPassword newSyntheticPassword(int userId) { clearSidForUser(userId); SyntheticPassword result = SyntheticPassword.create(); saveEscrowData(result, userId); return result; }
Update synthetic password terminology to match new design doc Update terminology to eliminate ambiguity and to match http://go/android-locksettings-design : - The class that represents a synthetic password is now called SyntheticPassword instead of AuthenticationToken. This eliminates an inconsistency and avoids...
https://github.com/LineageOS/android_frameworks_base/commit/c37987fe0d097c3b76188ae14991634c3f8d0715
null
null
services/core/java/com/android/server/locksettings/SyntheticPasswordManager.java
0
java
false
2022-07-15T00:23:41Z
public static Message deserialize(String messageJson) { try { RawResponse rawResponse = JsonHelper.toObject(messageJson, RawResponse.class); if (rawResponse == null) throw new ApiRuntimeException("Could not parse response"); long msgId = 0; if (r...
public static Message deserialize(String messageJson) { try { RawResponse rawResponse = JsonHelper.toObject(messageJson, RawResponse.class); if (rawResponse == null) throw new ApiRuntimeException("Could not parse response"); long msgId = 0; if (r...
README updated to include latest beta. Bump version to next SNAPSHOT
https://github.com/bloxbean/cardano-client-lib/commit/6f850abb946a576673e3d9d50cbc53e944026a5a
null
null
backend-modules/ogmios/src/main/java/com/bloxbean/cardano/client/backend/ogmios/model/base/Message.java
0
java
false
2022-08-08T15:27:44Z
@SubscribeEvent public void onItemTooltip(ItemTooltipEvent event) { if (!neu.isOnSkyblock()) return; if (event.toolTip == null) return; if (event.toolTip.size() > 2 && NotEnoughUpdates.INSTANCE.config.tooltipTweaks.hideDefaultReforgeStats) { String secondLine = StringUtils.stripControlCodes(event.toolTip.get...
@SubscribeEvent public void onItemTooltip(ItemTooltipEvent event) { if (!neu.isOnSkyblock()) return; if (event.toolTip == null) return; if (event.toolTip.size() > 2 && NotEnoughUpdates.INSTANCE.config.tooltipTweaks.hideDefaultReforgeStats) { String secondLine = StringUtils.stripControlCodes(event.toolTip.get...
Added bestiary tab to pv (#177) * some progress - missing be mobs from crimson and dungeons * fix id's * works :tm: * working mobs levels (for hub and island because lazy * idk seems right * Added bestiary texture, fixed name bug, added changelog i hope i didnt mess up anything. * i did smth * use 2.1.md from ...
https://github.com/Moulberry/NotEnoughUpdates/commit/6e40cd5d2426eee681b091acc6e0822d4d7c45b5
null
null
src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java
0
java
false
2022-07-07T16:07:38Z
@Override public int onStartCommand(Intent intent, int flags, int startId) { Log.e("WallpaperService", "onStartCommand"); startForeground(3000, new NotificationCompat.Builder(this, "4000") .setSmallIcon(dev.oneuiproject.oneui.R.drawable.ic_oui_wallpaper_outline) .setC...
@Override public int onStartCommand(Intent intent, int flags, int startId) { Log.e("WallpaperService", "onStartCommand"); startForeground(3000, new NotificationCompat.Builder(this, "4000") .setSmallIcon(R.drawable.ic_oui_wallpaper_outline) .setContentTitle(getString(R...
app: v1.1.1 - fix crash with big images - bump dependencies
https://github.com/Yanndroid/DualWallpaper/commit/e0581767be1ff0030ef182545dcb22f72dbf2bec
null
null
app/src/main/java/de/dlyt/yanndroid/dualwallpaper/WallpaperService.java
0
java
false
2022-07-29T13:14:03Z
@Override public boolean gatherDictionaryValuesIndex(@NotNull final ReadOnlyIndex.SearchIterator keysToVisit, @NotNull final OrderedKeys.Iterator knownKeys, @NotNull final Index.SequentialBuilder sequentialBuilder) { final long pageFirstKey = firstRow(keysToVisit.currentValue()); ...
@Override public boolean gatherDictionaryValuesIndex( @NotNull final ReadOnlyIndex.SearchIterator keysToVisit, @NotNull final OrderedKeys.Iterator knownKeys, @NotNull final Index.SequentialBuilder sequentialBuilder) { final long dictSize = getDictionaryChunk().size(); ...
QST to graphviz DOT format; and SVG, PNG, and others (#935)
https://github.com/deephaven/deephaven-core/commit/7b2eacfb6aeb9ec889ca6bba02146d737856ed4c
null
null
DB/src/main/java/io/deephaven/db/v2/sources/regioned/ColumnRegionChunkDictionary.java
0
java
false
2021-08-26T19:49:30Z
public synchronized List<InformationLeakTest<DirectRaccoonOracleTestInfo>> getRaccoonTestResultList() { @SuppressWarnings("unchecked") ListResult<InformationLeakTest<DirectRaccoonOracleTestInfo>> listResult = (ListResult<InformationLeakTest<DirectRaccoonOracleTestInfo>>) ...
public synchronized List<InformationLeakTest<DirectRaccoonOracleTestInfo>> getRaccoonTestResultList() { @SuppressWarnings("unchecked") ListResult<InformationLeakTest<DirectRaccoonOracleTestInfo>> listResult = (ListResult<InformationLeakTest<DirectRaccoonOracleTestInfo>>) ...
renaming of attack properties in respective classes
https://github.com/tls-attacker/TLS-Scanner/commit/6bb6a655d6e49315120585db5ee7bd1c0baf7683
null
null
TLS-Server-Scanner/src/main/java/de/rub/nds/tlsscanner/serverscanner/report/ServerReport.java
0
java
false
null
static void alpha_perf_event_irq_handler(unsigned long la_ptr, struct pt_regs *regs) { struct cpu_hw_events *cpuc; struct perf_sample_data data; struct perf_event *event; struct hw_perf_event *hwc; int idx, j; __get_cpu_var(irq_pmi_count)++; cpuc = &__get_cpu_var(cpu_hw_events); /* Completely counting th...
static void alpha_perf_event_irq_handler(unsigned long la_ptr, struct pt_regs *regs) { struct cpu_hw_events *cpuc; struct perf_sample_data data; struct perf_event *event; struct hw_perf_event *hwc; int idx, j; __get_cpu_var(irq_pmi_count)++; cpuc = &__get_cpu_var(cpu_hw_events); /* Completely counting th...
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/alpha/kernel/perf_event.c
0
c
false
null
def __init__(self): super().__init__() self._scopes = [] # FLAG cyclic imports! from vyper.builtin_functions.functions import get_builtin_functions from vyper.semantics import environment from vyper.semantics.types import get_types self.update(get_types()) ...
def __init__(self): super().__init__() self._scopes = [] # NOTE cyclic imports! from vyper.builtin_functions.functions import get_builtin_functions from vyper.semantics import environment from vyper.semantics.types import get_types self.update(get_types()) ...
Merge branch 'master' into fix/dup_storage_slots
https://github.com/vyperlang/vyper/commit/7fc2d1cd39560543bc1133862085f9d8e245d859
null
null
vyper/semantics/namespace.py
0
py
false
2021-10-24T01:39:16Z
def get_fields(self, table_data: TableData, path_spec: PathSpec) -> List: if self.is_s3_platform(): if self.source_config.aws_config is None: raise ValueError("AWS config is required for S3 file sources") s3_client = self.source_config.aws_config.get_s3_client( ...
def get_fields(self, table_data: TableData, path_spec: PathSpec) -> List: if self.is_s3_platform(): if self.source_config.aws_config is None: raise ValueError("AWS config is required for S3 file sources") s3_client = self.source_config.aws_config.get_s3_client( ...
Merge branch 'master' into feat/policyFixes
https://github.com/datahub-project/datahub/commit/395a1bdeb8dfc62df94a10a3bc38b085d082feca
null
null
metadata-ingestion/src/datahub/ingestion/source/s3/source.py
0
py
false
2023-11-03T15:19:26Z
function setUsedToken(authzToken) { try { const { meetingId, requesterUserId } = extractCredentials(this.userId); check(meetingId, String); check(requesterUserId, String); check(authzToken, String); const payload = { $set: { used: true, }, }; const numberAffected = P...
async function setUsedToken(authzToken) { try { const { meetingId, requesterUserId } = extractCredentials(this.userId); check(meetingId, String); check(requesterUserId, String); check(authzToken, String); const payload = { $set: { used: true, }, }; const numberAffect...
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/presentation-upload-token/server/methods/setUsedToken.js
0
js
false
2023-04-13T12:40:07Z
@Override public Class<?> visitArray(Type.Array t, Void aVoid) { if (t.kind() == Type.Array.Kind.VECTOR) { throw new UnsupportedOperationException(); } else { return MemorySegment.class; } }
@Override public Class<?> visitArray(Type.Array t, Void aVoid) { if (t.kind() == Type.Array.Kind.VECTOR) { throw new UnsupportedOperationException("vector"); } else { return MemorySegment.class; } }
Automatic merge of foreign-memaccess+abi into foreign-jextract
https://github.com/openjdk/panama-foreign/commit/7ef6be5d209b9074a4b10c0d34fc9075e380f8be
null
null
src/jdk.incubator.jextract/share/classes/jdk/internal/jextract/impl/TypeTranslator.java
0
java
false
2021-02-18T13:25:53Z
function Model() { var _this = this; Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Model); /** * Model's marker collection. * * @readonly * @member {module:eng...
function Model() { var _this = this; Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Model); /** * Model's marker collection. * * @readonly * @member {module:engine/model/...
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 _process_sql_expression( expression: Optional[str], database_id: int, schema: str, template_processor: Optional[BaseTemplateProcessor] = None, ) -> Optional[str]: if template_processor and expression: expression = template_processor.process_template(expression) if expression: ...
def _process_sql_expression( expression: str | None, database_id: int, schema: str, template_processor: BaseTemplateProcessor | None = None, ) -> str | None: if template_processor and expression: expression = template_processor.process_template(expression) if expression: try: ...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/connectors/sqla/models.py
0
py
false
2023-06-05T08:42:54Z
@SubscribeEvent(priority = EventPriority.LOWEST) public static void onGlideTick(TickEvent.PlayerTickEvent event){ if(ArsNouveau.caelusLoaded && event.player.hasEffect(ModPotions.GLIDE_EFFECT)) CaelusHandler.setFlying(event.player); }
@SubscribeEvent(priority = EventPriority.LOWEST) public static void onGlideTick(TickEvent.PlayerTickEvent event){ if(ArsNouveau.caelusLoaded && event.player.hasEffect(ModPotions.GLIDE_EFFECT)) CaelusHandler.setFlying(event.player); // if(!event.player.level.isClientSide && event.player.h...
Block piston movement for quark
https://github.com/baileyholl/Ars-Nouveau/commit/a49fac12cbf6cf7c65c2dc85901803e44b35bb03
null
null
src/main/java/com/hollingsworth/arsnouveau/common/event/EventHandler.java
0
java
false
2021-06-23T01:12:10Z
@Override public CatalogContext catalogUpdate( String diffCommands, int expectedCatalogVersion, int nextCatalogVersion, long genId, boolean isForReplay, boolean requireCatalogDiffCmdsApplyToEE, boolean hasSchemaChange, b...
@Override public CatalogContext catalogUpdate( String diffCommands, int expectedCatalogVersion, int nextCatalogVersion, long genId, boolean isForReplay, boolean requireCatalogDiffCmdsApplyToEE, boolean hasSchemaChange, b...
ENG-22241, skip crash file in junit test (#1172) VoltDB.crashLocalVoltDB said it was declining to write a crash file in a junit test, and then did it anyway. Fixed now. We actually decline to write the crash file in a junit test. All other crash actions still apply. Other sundry cleanup. - Move crash file writer to...
https://github.com/VoltDB/voltdb/commit/11c1626969f246f2c426db29a2c7b5f46b4d4780
null
null
src/frontend/org/voltdb/RealVoltDB.java
0
java
false
2022-03-21T17:28:28Z
def generate_openlineage_events_from_dbt_cloud_run( operator: DbtCloudRunJobOperator | DbtCloudJobRunSensor, task_instance: TaskInstance ) -> OperatorLineage: """ Generate OpenLineage events from the DBT Cloud run. This function retrieves information about a DBT Cloud run, including the associated job,...
def generate_openlineage_events_from_dbt_cloud_run( operator: DbtCloudRunJobOperator | DbtCloudJobRunSensor, task_instance: TaskInstance ) -> OperatorLineage: """ Generate OpenLineage events from the DBT Cloud run. This function retrieves information about a DBT Cloud run, including the associated job,...
Merge branch 'main' into trigger_encryption
https://github.com/apache/airflow/commit/5396e4a482cce2d283bed13cf8039e3239d98438
null
null
airflow/providers/dbt/cloud/utils/openlineage.py
0
py
false
2024-01-09T22:13:52Z
private RSyntaxTextArea createSmartTextEditor(String templateYaml) { // TODO https://github.com/bobbylight/RSyntaxTextArea/issues/269 JTextComponent.removeKeymap("RTextAreaKeymap"); UIManager.put("RSyntaxTextAreaUI.actionMap", null); UIManager.put("RSyntaxTextAreaUI.inputMap", null); ...
private RSyntaxTextArea createSmartTextEditor(String templateYaml) { // TODO https://github.com/bobbylight/RSyntaxTextArea/issues/269 JTextComponent.removeKeymap("RTextAreaKeymap"); UIManager.put("RSyntaxTextAreaUI.actionMap", null); UIManager.put("RSyntaxTextAreaUI.inputMap", null); ...
Auto-complete classification information based on CVE id #12
https://github.com/projectdiscovery/nuclei-burp-plugin/commit/ee7bebf9a6977858a9ea377eaa76c819a0f5053c
null
null
src/main/java/io/projectdiscovery/nuclei/gui/TemplateGeneratorTab.java
0
java
false
null
public FutureJdbi initializeFutureJdbi(DatabaseConfig databaseConfig, String poolName) { final Jdbi jdbi = initializeJdbi(databaseConfig, poolName); final Executor dbExecutor = FutureGrpc.initializeExecutor(databaseConfig.threadCount); return new FutureJdbi(jdbi, dbExecutor); }
public FutureJdbi initializeFutureJdbi(DatabaseConfig databaseConfig, String poolName) { final var jdbi = initializeJdbi(databaseConfig, poolName); final var dbExecutor = FutureGrpc.initializeExecutor(databaseConfig.threadCount); return new FutureJdbi(jdbi, dbExecutor); }
Fix code smells suggested by sonarqube part - 6 (#2580) * Fix security hotspot suggested by sonarqube * Fix all remaining medium and low security hotspots * Fix remaining security hotspots * https://jenkins.dev.verta.ai/job/build/job/autoformat/job/modeldb-common/114/ * Fix code smells suggested by sonarqube part ...
https://github.com/VertaAI/modeldb/commit/0be544c24f0b11198f47639e66244cd93bd656d0
null
null
backend/common/src/main/java/ai/verta/modeldb/common/config/Config.java
0
java
false
2021-09-16T05:41:21Z
def get_physical_table_metadata( database: Database, table_name: str, schema_name: Optional[str] = None, ) -> List[Dict[str, Any]]: """Use SQLAlchemy inspector to get table metadata""" db_engine_spec = database.db_engine_spec db_dialect = database.get_dialect() # ensure empty schema _sch...
def get_physical_table_metadata( database: Database, table_name: str, schema_name: str | None = None, ) -> list[dict[str, Any]]: """Use SQLAlchemy inspector to get table metadata""" db_engine_spec = database.db_engine_spec db_dialect = database.get_dialect() # ensure empty schema _schema...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/connectors/sqla/utils.py
0
py
false
2023-06-05T08:42:54Z
function addWebcamSync(meetingId, videoStream) { check(videoStream, { userId: String, stream: String, name: String, pin: Boolean, floor: Boolean, lastFloorTime: String, }); const { stream, userId, name, pin, floor, lastFloorTime, } = videoStream; const deviceId = getDeviceId(stre...
async function addWebcamSync(meetingId, videoStream) { check(videoStream, { userId: String, stream: String, name: String, pin: Boolean, floor: Boolean, lastFloorTime: String, }); const { stream, userId, name, pin, floor, lastFloorTime, } = videoStream; const deviceId = getDeviceI...
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/video-streams/server/modifiers/sharedWebcam.js
0
js
false
2023-04-13T12:40:07Z
public boolean isHanging() { return entity.getAttributeInstance(PlayerAttributes.ENTITY_GRAVTY_MODIFIER).hasModifier(PlayerAttributes.BAT_HANGING); }
public boolean isHanging() { return entity.getAttributeInstance(UEntityAttributes.ENTITY_GRAVTY_MODIFIER).hasModifier(PlayerAttributes.BAT_HANGING); }
Fix server crashes due to late initialisation of registered values
https://github.com/Sollace/Unicopia/commit/cf07f5d341843c669d19760183c9d7254741abd1
null
null
src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java
0
java
false
2022-08-27T14:37:37Z
function e(e,i,n){var s=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,i,n),t.isArray(s))for(var a=0;a<s.length;a++){var l=s[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}
function e(e,i,n){var s=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,i,n),t.isArray(s))for(var a=0;a<s.length;a++){var l=s[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}
Compiled production assets
https://github.com/snipe/snipe-it/commit/8cfd00d203af61b9140155dab3b8b6e54ba17d8c
CVE-2019-10118
['CWE-79']
public/js/build/all.js
0
js
false
null
function PasteFromOffice() { Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, PasteFromOffice); return Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_r...
function PasteFromOffice() { Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, PasteFromOffice); return Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpe...
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
function xr(t,e,n){e=bi(e,t),t=Vo(t,e);var r=null==t?t:t[Jo(ga(e))];return null==r?nt:o(r,t,n)}
function xr(t,e,n){var r=Js;return function i(){null!==e.apply(null,arguments)&&$r(t,i,n,r)}}
Build assets
https://github.com/PrestaShop/PrestaShop/commit/011d8831a9a7b619aecb49208db5d0a36b9677d1
CVE-2020-6632
['CWE-79']
admin-dev/themes/new-theme/public/translations.bundle.js
0
js
false
null
def from_object(cls, trigger: BaseTrigger) -> Trigger: """Alternative constructor that creates a trigger row based directly off of a Trigger object.""" from airflow.models.crypto import get_fernet classpath, kwargs = trigger.serialize() secure_kwargs = {} fernet = get_fernet() ...
def from_object(cls, trigger: BaseTrigger) -> Trigger: """Alternative constructor that creates a trigger row based directly off of a Trigger object.""" from airflow.models.crypto import get_fernet classpath, kwargs = trigger.serialize() secure_kwargs = {} fernet = get_fernet() ...
Create a variable for encryption prefix
https://github.com/apache/airflow/commit/66e9bfe4262988f2071aa9b54efc5af5b2e4b6db
null
null
airflow/models/trigger.py
0
py
false
2024-01-08T23:53:17Z
public void onDrawScreenEventPost(ScreenEvent.DrawScreenEvent.Post event) { Screen screen = event.getScreen(); Minecraft minecraft = screen.getMinecraft(); PoseStack poseStack = event.getPoseStack(); ingredientListOverlay.updateScreen(screen, false); leftAreaDispatcher.updateScreen(screen, false); if (!dr...
public void onDrawScreenEventPost(ScreenEvent.DrawScreenEvent.Post event) { Screen screen = event.getScreen(); Minecraft minecraft = screen.getMinecraft(); PoseStack poseStack = event.getPoseStack(); ingredientListOverlay.updateScreen(screen, false); leftAreaDispatcher.updateScreen(screen, false); if (!dr...
Fix crash from "Show Recipes" tooltip
https://github.com/mezz/JustEnoughItems/commit/dcd7d2bb9a65ea4204a0a790a05f26fc63106ef1
null
null
src/main/java/mezz/jei/gui/GuiEventHandler.java
0
java
false
2022-01-03T06:18:00Z
def trigger(self, dag_id: str, session: Session = NEW_SESSION): """Triggers DAG Run.""" run_id = request.values.get("run_id", "").replace(" ", "+") origin = get_safe_url(request.values.get("origin")) unpause = request.values.get("unpause") request_conf = request.values.get("conf"...
def trigger(self, dag_id: str, session: Session = NEW_SESSION): """Triggers DAG Run.""" run_id = request.values.get("run_id", "").replace(" ", "+") origin = get_safe_url(request.values.get("origin")) unpause = request.values.get("unpause") request_conf = request.values.get("conf"...
Merge branch 'main' into disable-default-test-connection-functionality-on-ui
https://github.com/apache/airflow/commit/c62ed8a0a2f51fabc0033839d7c3b8296b620db4
null
null
airflow/www/views.py
0
py
false
2023-07-04T13:09:43Z
MeshProber.Determination buildClusterMesh(ReadDeploymentResults readDepl) { final boolean bareAtStartup = m_config.m_forceVoltdbCreate || pathsWithRecoverableArtifacts(readDepl.deployment).isEmpty(); setBare(bareAtStartup); final Supplier<Integer> hostCountSupplier = new Suppli...
MeshProber.Determination buildClusterMesh(ReadDeploymentResults readDepl) { final boolean bareAtStartup = m_config.m_forceVoltdbCreate || pathsWithRecoverableArtifacts(readDepl.deployment).isEmpty(); setBare(bareAtStartup); final Supplier<Integer> hostCountSupplier = new Suppli...
ENG-22241, skip crash file in junit test (#1172) VoltDB.crashLocalVoltDB said it was declining to write a crash file in a junit test, and then did it anyway. Fixed now. We actually decline to write the crash file in a junit test. All other crash actions still apply. Other sundry cleanup. - Move crash file writer to...
https://github.com/VoltDB/voltdb/commit/11c1626969f246f2c426db29a2c7b5f46b4d4780
null
null
src/frontend/org/voltdb/RealVoltDB.java
0
java
false
2022-03-21T17:28:28Z
@Override public AnimationPose sample(LocatorSkeleton locatorSkeleton, AnimationDataContainer.CachedPoseContainer cachedPoseContainer) { if(this.activeStates.size() > 0){ AnimationPose animationPose = this.getPoseFromState(this.activeStates.get(0), locatorSkeleton); if(this.activeSta...
@Override public AnimationPose sample(LocatorSkeleton locatorSkeleton, AnimationDataContainer.CachedPoseContainer cachedPoseContainer) { if(this.activeStates.size() > 0){ AnimationPose animationPose = this.getPoseFromState(this.activeStates.get(0), locatorSkeleton); if(this.activeSta...
First person walking and general improvements - Adjusted how attack animations are triggered (WIP), mining and item use no longer drive the attack animation (except at the end of mining) - Improved blend function to actually make sense from an interfacing perspective - Added function for getting native animation timeli...
https://github.com/Trainguy9512/trainguys-animation-overhaul/commit/ccad69c6587e3f6e24887e546a035b78bdf4a074
null
null
src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationStateMachine.java
0
java
false
null
private void startGame() { StartGamePacket startGamePacket = new StartGamePacket(); startGamePacket.setUniqueEntityId(playerEntity.getGeyserId()); startGamePacket.setRuntimeEntityId(playerEntity.getGeyserId()); startGamePacket.setPlayerGameType(switch (gameMode) { case CREATI...
private void startGame() { StartGamePacket startGamePacket = new StartGamePacket(); startGamePacket.setUniqueEntityId(playerEntity.getGeyserId()); startGamePacket.setRuntimeEntityId(playerEntity.getGeyserId()); startGamePacket.setPlayerGameType(switch (gameMode) { case CREATI...
Fix crashes when joining a server in the Nether
https://github.com/GeyserMC/Geyser/commit/886d7e5b4b44e84a7cf91139ac9305b2180c8c88
null
null
core/src/main/java/org/geysermc/geyser/session/GeyserSession.java
0
java
false
2022-11-12T15:28:53Z
function Ni(t,e,i,n,s){return t===e||(null==t||null==e||!eo(t)&&!eo(e)?t!=t&&e!=e:function(t,e,i,n,s,o){var r=Ya(t),a=Ya(e),l=r?wt:ia(t),u=a?wt:ia(e),c=(l=l==bt?Ot:l)==Ot,h=(u=u==bt?Ot:u)==Ot,d=l==u;if(d&&Ka(t)){if(!Ka(e))return!1;r=!0,c=!1}if(d&&!c)return o||(o=new Me),r||tl(t)?ts(t,e,i,n,s,o):function(t,e,i,n,s,o,r){...
function Ni(t,e,i,n,s){var r=t.def&&t.def[e];if(r)try{r(i.elm,t,i,n,s)}catch(n){q(n,i.context,"directive "+t.name+" "+e+" hook")}}
Compiled production assets
https://github.com/snipe/snipe-it/commit/8cfd00d203af61b9140155dab3b8b6e54ba17d8c
CVE-2019-10118
['CWE-79']
public/js/build/all.js
0
js
false
null
def execute(self, context: Context): vertica = VerticaHook(vertica_conn_id=self.vertica_conn_id) mysql = MySqlHook(mysql_conn_id=self.mysql_conn_id) if self.bulk_load: self._bulk_load_transfer(mysql, vertica) else: self._non_bulk_load_transfer(mysql, vertica) ...
def execute(self, context: Context): vertica = VerticaHook(vertica_conn_id=self.vertica_conn_id) mysql = MySqlHook(mysql_conn_id=self.mysql_conn_id, local_infile=self.bulk_load) if self.bulk_load: self._bulk_load_transfer(mysql, vertica) else: self._non_bulk_load...
Move local_infile option from extra to hook parameter This change is to move local_infile parameter from connection extra to Hook. Since this feature is only used for very specific cases, it belongs to the "action" it executes not to the connection defined in general. For example in Hive and Vertica transfers, the cap...
https://github.com/apache/airflow/commit/a8c0e9c9655ccc6bd5cc1fe5de8b228996b23bf5
null
null
airflow/providers/mysql/transfers/vertica_to_mysql.py
0
py
false
2023-01-09T18:52:43Z
function ListItemView(locale) { var _this; Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ListItemView); _this = Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_nod...
function ListItemView(locale) { var _this; Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ListItemView); _this = Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runt...
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
void dirpool_make_dirtraverse(Dirpool *dp) { Id parent, i, *dirtraverse; if (!dp->ndirs) return; dp->dirs = solv_extend_resize(dp->dirs, dp->ndirs, sizeof(Id), DIR_BLOCK); dirtraverse = solv_calloc_block(dp->ndirs, sizeof(Id), DIR_BLOCK); for (parent = 0, i = 0; i < dp->ndirs; i++) { if (dp->dir...
void dirpool_make_dirtraverse(Dirpool *dp) { Id parent, i, *dirtraverse; if (!dp->ndirs) return; dp->dirs = solv_extend_resize(dp->dirs, dp->ndirs, sizeof(Id), DIR_BLOCK); dirtraverse = solv_calloc_block(dp->ndirs, sizeof(Id), DIR_BLOCK); for (i = 0; i < dp->ndirs; i++) { if (dp->dirs[i] > 0) c...
Don't set values that are never read
https://github.com/openSUSE/libsolv/commit/2d7b115fbbe6b2f2894221e010cd75638a8eaa37
null
null
src/dirpool.c
0
c
false
null
def _call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, ) -> str: r"""Call out to GPT4All's generate method. Args: prompt: The prompt to pass into the model. stop: A list of strin...
def _call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any, ) -> str: r"""Call out to GPT4All's generate method. Args: prompt: The prompt to pass into the model. ...
Merge remote-tracking branch 'upstream/master'
https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10
null
null
langchain/llms/gpt4all.py
0
py
false
2023-06-21T06:45:39Z
function handleGuestWaitingLeft({ body }, meetingId) { const { userId } = body; check(meetingId, String); check(userId, String); return removeGuest(meetingId, userId); }
async function handleGuestWaitingLeft({ body }, meetingId) { const { userId } = body; check(meetingId, String); check(userId, String); const result = await removeGuest(meetingId, userId); return result; }
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/guest-users/server/handlers/guestWaitingLeft.js
0
js
false
2023-04-13T12:40:07Z
public int weight() { int result = 0; if (oldPath().isPresent()) { result += stringSize(oldPath().get()); } if (newPath().isPresent()) { result += stringSize(newPath().get()); } result += 20 + 20; // old and new commit IDs result += 4; // comparison type result += 4; // chang...
public int weight() { int result = 0; if (oldPath().isPresent()) { result += stringSize(oldPath().get()); } if (newPath().isPresent()) { result += stringSize(newPath().get()); } result += 20 + 20; // old and new commit IDs result += 4; // comparison type result += 4; // chang...
Use faster fallback diff algorithm in case of timeouts Current logic uses the default diff algorithm "Histogram Diff". In case of timeouts, it throws an exception that is propagated to the caller. In this change, we adjust the logic to follow what was implemented in PatchListLoader (the old diff cache): If the diff e...
https://github.com/GerritCodeReview/gerrit/commit/541ac10c62fbfa3ad2204e9171c99c499ede46e7
null
null
java/com/google/gerrit/server/patch/filediff/FileDiffOutput.java
0
java
false
null
@Override public void start(String strSql) { this.sql = strSql; if (this.checkPartition(strSql)) { service.writeErrMessage(ErrorCode.ER_UNSUPPORTED_PS, " unsupported load data with Partition"); clear(); return; } try { statement = (MyS...
@Override public void start(String strSql) { this.sql = strSql; if (this.checkPartition(strSql)) { service.writeErrMessage(ErrorCode.ER_UNSUPPORTED_PS, " unsupported load data with Partition"); clear(); return; } try { statement = (MyS...
fix bug that "set autocommit=1" doesn't work,eg set autocommit=0;set autocommit=1;dml;rollback; dml is rollback
https://github.com/actiontech/dble/commit/9d7a16c06fe4b5e9188bc1403058c2821023bb36
null
null
src/main/java/com/actiontech/dble/server/handler/ServerLoadDataInfileHandler.java
0
java
false
2021-05-12T07:58:46Z
protected InternalNode<T> fatBinarySearchExact(final LongArrayBitVector v, final long[] state, long a, long b) { if (DDDEBUG) System.err.println("fatBinarySearchExact(" + v + ", [" + a + ".." + b + "])"); // We actually keep track of (a..b] a--; assert a <= b : a + " >= " + b; final long length = v.length(...
protected InternalNode<T> fatBinarySearchExact(final LongArrayBitVector v, final long[] state, long a, long b) { if (DDDEBUG) System.err.println("fatBinarySearchExact(" + v + ", [" + a + ".." + b + "])"); // We actually keep track of (a..b] a--; assert a <= b : a + " >= " + b; final long length = v.length(...
Reinstated check to avoid infinite loops
https://github.com/vigna/Sux4J/commit/ba927153e2b53cb41df2b74dd3deb8a6708a53e4
null
null
src/it/unimi/dsi/sux4j/util/ZFastTrie.java
0
java
false
2021-03-26T00:13:26Z
def _llm_type(self) -> str: """Return type of llm.""" return "alpeh_alpha"
def _llm_type(self) -> str: """Return type of llm.""" return "aleph_alpha"
merge
https://github.com/hwchase17/langchain/commit/37f4f246d797db6eecfab0e35748101a33667b12
null
null
langchain/llms/aleph_alpha.py
0
py
false
2023-06-20T08:05:46Z
static bool nfc_worker_read_mf_classic(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx) { furi_assert(nfc_worker->callback); bool read_success = false; nfc_debug_pcap_prepare_tx_rx(nfc_worker->debug_pcap_worker, tx_rx, false); do { // Try to read supported card FURI_LOG_I(TAG, "Try ...
static bool nfc_worker_read_mf_classic(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx) { furi_assert(nfc_worker->callback); bool read_success = false; if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) { reader_analyzer_prepare_tx_rx(nfc_worker->reader_analyzer, tx_rx, false); reader_an...
Merge branch 'dev' into mifare_ul_buffer_overflow
https://github.com/flipperdevices/flipperzero-firmware/commit/c3299268123d2767205cda8846635c43bf2f6d8a
null
null
lib/nfc/nfc_worker.c
0
c
false
2022-09-05T10:12:03Z
static inline bool ecma_object_check_class_name_is_object (ecma_object_t *obj_p) /**< object */ { #ifndef JERRY_NDEBUG return (ecma_builtin_is_global (obj_p) #if JERRY_BUILTIN_TYPEDARRAY || ecma_builtin_is (obj_p, ECMA_BUILTIN_ID_ARRAYBUFFER_PROTOTYPE) #if JERRY_BUILTIN_SHAREDARRAYBUFFER || ecma_b...
static inline bool ecma_object_check_class_name_is_object (ecma_object_t *obj_p) /**< object */ { #ifndef JERRY_NDEBUG return (ecma_builtin_is_global (obj_p) #if JERRY_BUILTIN_TYPEDARRAY || ecma_builtin_is (obj_p, ECMA_BUILTIN_ID_ARRAYBUFFER_PROTOTYPE) #if JERRY_BUILTIN_SHAREDARRAYBUFFER || ecma_b...
Add missing object types for ecma_object_get_class_name This patch fixes #4937 and fixes #4938. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
https://github.com/jerryscript-project/jerryscript/commit/b0625e61819e1f5823f16f2463f5def4ab16bdfb
null
null
jerry-core/ecma/operations/ecma-objects.c
0
c
false
null
public void updateControlsVisibility(boolean topControlsVisible, boolean bottomControlsVisible) { AndroidUiHelper.updateVisibility(mapActivity.findViewById(R.id.map_center_info), topControlsVisible); AndroidUiHelper.updateVisibility(mapActivity.findViewById(R.id.map_left_widgets_panel), topControlsVisible); Andro...
public void updateControlsVisibility(boolean topControlsVisible, boolean bottomControlsVisible) { int topControlsVisibility = topControlsVisible ? View.VISIBLE : View.GONE; AndroidUiHelper.setVisibility(mapActivity, topControlsVisibility, R.id.map_center_info, R.id.map_left_widgets_panel, R.id.map_right...
Fix #14118 Osmand crashes when detail button is clicked
https://github.com/osmandapp/OsmAnd/commit/0d508430bd9012e0cd43ff0d4b19fa8f2e2b51d4
null
null
OsmAnd/src/net/osmand/plus/views/mapwidgets/WidgetsVisibilityHelper.java
0
java
false
null
def read_config(self, config, **kwargs): self.server_name = config["server_name"] self.server_context = config.get("server_context", None) try: parse_and_validate_server_name(self.server_name) except ValueError as e: raise ConfigError(str(e)) self.pid_fi...
def read_config(self, config, **kwargs): self.server_name = config["server_name"] self.server_context = config.get("server_context", None) try: parse_and_validate_server_name(self.server_name) except ValueError as e: raise ConfigError(str(e)) self.pid_fi...
Apply additional IPv6 to custom blacklists.
https://github.com/matrix-org/synapse/commit/4e1c7bbb311caa7dde8c1b98f774da7cb5668ddf
null
null
synapse/config/server.py
0
py
false
2021-01-27T15:21:33Z
function lsStream (cache) { const indexDir = bucketDir(cache) const stream = new Minipass({ objectMode: true }) readdirOrEmpty(indexDir).then(buckets => Promise.all( buckets.map(bucket => { const bucketPath = path.join(indexDir, bucket) return readdirOrEmpty(bucketPath).then(subbuckets => Promise...
function lsStream (cache) { const indexDir = bucketDir(cache) const stream = new Minipass({ objectMode: true }) // Set all this up to run on the stream and then just return the stream Promise.resolve().then(async () => { const buckets = await readdirOrEmpty(indexDir) await Promise.all(buckets.map(async...
deps: upgrade npm to 8.11.0
https://github.com/nodejs/node/commit/ebd4e9c165627e473cf043d2fafbc9862d11dae2
CVE-2022-29244
['CWE-200', 'NVD-CWE-noinfo']
deps/npm/node_modules/cacache/lib/entry-index.js
0
js
false
2022-05-25T21:26:36Z
protected void registerModels(){ ArcanaDataGenerators.WOODS.forEach((name, texture) -> { fenceInventory(name + "_fence_inventory", texture); fencePost(name + "_fence", texture); fenceSide(name + "_fence", texture); fenceGate(name + "_fence_gate", texture); fenceGateOpen(name + "_fence_gate", textur...
protected void registerModels(){ ArcanaDataGenerators.WOODS.forEach((name, texture) -> { slab(name + "_slab", texture, texture, texture); slabTop(name + "_slab_top", texture, texture, texture); stairs(name + "_stairs", texture, texture, texture); stairsInner(name + "_stairs_inner", texture, texture, textu...
Jar recipes
https://github.com/ArcanaMod/Arcana/commit/63e3b12b2619d1ecdeea987a0282b82b7e96a000
null
null
src/main/java/net/arcanamod/datagen/BlockModels.java
0
java
false
null
function Ge(e){return null!=(a=e)&&He(a.length)&&!Ie(a)?we(e):xe(e);var a}
function Ge(e){return na(e)||ta(e)||!!(re&&e&&e[re])}
YetiForce CRM ver. 6.4.0 (#16359) * Added improvements in record collector * Integration with UaYouControl.php (#16293) Co-authored-by: Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com> * Integration with UaYouControl.php (#16293) * Add external link to NoBrregEnhetsregisteret. (#16292) * Add external...
https://github.com/yetiforcecompany/yetiforcecrm/commit/2c14baaf8dbc7fd82d5c585f2fa0c23528450618
CVE-2022-1340
['CWE-79']
public_html/layouts/basic/modules/Chat/Chat.vue.js
0
js
false
2022-08-19T11:40:16Z
static belle_sip_messageParser_max_forwards_return max_forwards(pbelle_sip_messageParser ctx) { belle_sip_messageParser_max_forwards_return retval; /* Initialize rule variables */ retval.start = LT(1); retval.stop = retval.start; { // ../grammars/belle_sip_message.g:1036:13: ( ( DIGIT ...
static belle_sip_messageParser_max_forwards_return max_forwards(pbelle_sip_messageParser ctx) { belle_sip_messageParser_max_forwards_return retval; /* Initialize rule variables */ retval.start = LT(1); retval.stop = retval.start; { // ../grammars/belle_sip_message.g:1040:13: ( ( DIGIT ...
Fix crash while receiving some kind of invalid from header.
https://github.com/BelledonneCommunications/belle-sip/commit/116e3eb48fe43ea63eb9f3c4b4b30c48d58d6ff0
null
null
src/grammars/belle_sip_messageParser.c
0
c
false
2021-05-13T14:08:12Z
@Override public void tick() { if (level.isClientSide) { EntityHelpers.startOrStop(sittingAnimation, isSitting(), tickCount); EntityHelpers.startOrStop(sleepingAnimation, isSleeping(), tickCount); } super.tick(); }
@Override public void tick() { if (level.isClientSide) { EntityHelpers.startOrStop(sittingAnimation, isSitting(), tickCount); EntityHelpers.startOrStop(sleepingAnimation, isSleeping(), tickCount); } super.tick(); if (needsCommandUpdate && command.a...
fix cat attack behavior by standardizing it as a different behavior
https://github.com/TerraFirmaCraft/TerraFirmaCraft/commit/209586124a49673308b1ab271473921a00a91c9b
null
null
src/main/java/net/dries007/tfc/common/entities/livestock/pet/TamableMammal.java
0
java
false
2022-11-01T16:43:02Z
@Override public void renderComponent(MatrixStack matrices, float delta) { DrawPosition pos = getPos(); int lastY = 1; int i = 0; for (ItemUtil.ItemStorage item : this.added) { if (i > 5) { matrices.pop(); return; } ...
@Override public void renderComponent(MatrixStack matrices, float delta) { DrawPosition pos = getPos(); int lastY = 1; int i = 0; for (ItemUtil.ItemStorage item : this.added) { if (i > 5) { return; } TextCollector message = new Text...
Fix crash
https://github.com/DarkKronicle/KronHUD/commit/443939d0a4a0a5dc8486b26d19aa1ffbe3554251
null
null
src/main/java/io/github/darkkronicle/kronhud/gui/hud/item/ItemUpdateHud.java
0
java
false
null
@Override protected String[] mandatoryHeaders() { return new String[] { GITHUB_ID_HEADER, }; }
@Override protected String[][] mandatoryHeaders() { return new String[][] { GIT_ID_HEADERS, }; }
[#1661] Upgrade to Gradle 7 (#1780) The Liferay plugin has recently been updated with annotations for Gradle 7. As Gradle 7 is now available for use, this also means that the Shadow plugin can be updated to the latest version. There are some deprecated features that will be removed in a future Gradle 8 release. These...
https://github.com/reposense/RepoSense/commit/c8d50d43598a69497ca437365dea83f817439df1
null
null
src/main/java/reposense/parser/AuthorConfigCsvParser.java
0
java
false
2022-07-26T14:39:13Z
@GET @Path("/{tenant}/{namespace}/{topic}/subscribeRate") @ApiOperation(value = "Get subscribe rate configuration for specified topic.") @ApiResponses(value = {@ApiResponse(code = 403, message = "Don't have admin permission"), @ApiResponse(code = 404, message = "Topic does not exist"), ...
@GET @Path("/{tenant}/{namespace}/{topic}/subscribeRate") @ApiOperation(value = "Get subscribe rate configuration for specified topic.") @ApiResponses(value = {@ApiResponse(code = 403, message = "Don't have admin permission"), @ApiResponse(code = 404, message = "Topic does not exist"), ...
Update/fix Swagger Annotation for param: authoritative (#16222) * Update/fix Swagger Annotation for param: authoritative * Fix Checkstyle
https://github.com/apache/pulsar/commit/b4ef4a3f4b752749277ae460d7e0739cf32672bc
null
null
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java
0
java
false
2022-07-12T23:58:26Z
def load_explore_json_into_cache( # pylint: disable=too-many-locals job_metadata: Dict[str, Any], form_data: Dict[str, Any], response_type: Optional[str] = None, force: bool = False, ) -> None: cache_key_prefix = "ejr-" # ejr: explore_json request user = ( security_manager.get_user_by...
def load_explore_json_into_cache( # pylint: disable=too-many-locals job_metadata: dict[str, Any], form_data: dict[str, Any], response_type: str | None = None, force: bool = False, ) -> None: cache_key_prefix = "ejr-" # ejr: explore_json request user = ( security_manager.get_user_by_id...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/tasks/async_queries.py
0
py
false
2023-06-05T08:42:54Z
function sendExportedPresentationChatMsg(meetingId, presentationId, fileURI) { const CHAT_CONFIG = Meteor.settings.public.chat; const PUBLIC_GROUP_CHAT_ID = CHAT_CONFIG.public_group_id; const PUBLIC_CHAT_SYSTEM_ID = CHAT_CONFIG.system_userid; const CHAT_EXPORTED_PRESENTATION_MESSAGE = CHAT_CONFIG.system_message...
async function sendExportedPresentationChatMsg(meetingId, presentationId, fileURI) { const CHAT_CONFIG = Meteor.settings.public.chat; const PUBLIC_GROUP_CHAT_ID = CHAT_CONFIG.public_group_id; const PUBLIC_CHAT_SYSTEM_ID = CHAT_CONFIG.system_userid; const CHAT_EXPORTED_PRESENTATION_MESSAGE = CHAT_CONFIG.system_m...
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/presentations/server/handlers/sendExportedPresentationChatMsg.js
0
js
false
2023-04-13T12:40:07Z
public void bind(int position) { Permission permission = getItem(position); appOpsRefStateView.setVisibility(View.GONE); if (permission.isReferenced() == null) { referenceView.setBackgroundColor(PackageAdapter.ORANGE); } else if (!permission.isReferenced()) { referenceView.setBa...
public void bind(int position) { Permission permission = getItem(position); appOpsRefStateView.setVisibility(View.GONE); if (permission.isReferenced() == null) { referenceView.setBackgroundColor(PackageAdapter.ORANGE); } else if (!permission.isReferenced()) { referenceView.setBa...
Bump library versions
https://github.com/mirfatif/PermissionManagerX/commit/a73b6999996e43e52238f5dc31c037bb97efd5fa
null
null
app/src/main/java/com/mirfatif/permissionmanagerx/ui/PermissionAdapter.java
0
java
false
2021-02-15T23:50:27Z
private void makeUploadRequest(byte[] json, String tags) throws IOException { // use RequestBody.create(MediaType, byte[]) to avoid changing Content-Type to // "Content-Type: application/json; charset=UTF-8" which is not recognized int contentLength = json.length; RequestBody body = RequestBody.create(A...
private void makeUploadRequest(byte[] json, String tags) throws IOException { // use RequestBody.create(MediaType, byte[]) to avoid changing Content-Type to // "Content-Type: application/json; charset=UTF-8" which is not recognized int contentLength = json.length; RequestBody body = RequestBody.create(A...
Merge pull request #3559 from DataDog/glopes/dependencies Telemetry; support for reporting dependencies
https://github.com/DataDog/dd-trace-java/commit/47a0d0e37c81c79cb84ef4fac01a7cf55209acdf
null
null
dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/uploader/BatchUploader.java
0
java
false
2022-07-28T18:52:18Z
@Override public String getCommandUsage(ICommandSender arg0) { return "/" + getCommandName() + " <zombie/spider/wolf/fishing/catacombs/mythological/auto/off> [winter/festival/spooky/session/f(1-7)]"; }
@Override public String getCommandUsage(ICommandSender arg0) { return "/" + getCommandName() + " <zombie/spider/wolf/fishing/catacombs/mythological/ghost/auto/off> [winter/festival/spooky/session/f(1-7)]"; }
Added Ghost Tracker/ Fixed Installer crashes due to renaming ModID
https://github.com/bowser0000/SkyblockMod/commit/ed93b04124db9b8944ddd1ed33d0f4dabf4a486b
null
null
src/main/java/me/Danker/commands/DisplayCommand.java
0
java
false
2021-03-11T18:48:53Z
public void addPurl(String purl) { this.purls.add(purl); }
public void addPurl(String purl) { var newPurls = getPurls(); newPurls.add(purl); setPurls(newPurls); }
Regenerated JOOQ classes with 3.14.4 to match metadata plugin.
https://github.com/fasten-project/fasten/commit/2b6b0cceb18d56dbfe2348010df5b5de4a56aa37
null
null
core/src/main/java/eu/fasten/core/data/vulnerability/Vulnerability.java
0
java
false
2021-10-17T11:38:02Z
@Override public void onLocationChanged(@NonNull Location location) { String response = Utils.buildCoordinatesResponse(location.getLatitude(), location.getLongitude()); Utils.sendSms(smsManager, response, sender); }
@Override public void onLocationChanged(@NonNull Location location) { Log.d("SmsHandler", "Going to send coordinates: " + location.getLatitude() + " " + location.getLongitude()); String response = Utils.buildCoordinatesResponse(location.getLatitude(), ...
Update README.md
https://github.com/xfarrow/locatemydevice/commit/5ed13652f380d501a62a6cfb7a7e3c267c27bfd3
null
null
src/app/src/main/java/com/xfarrow/locatemydevice/SmsHandler.java
0
java
false
2022-11-08T22:02:54Z
void registerServer() { VersionAgnosticCommandManager.get().registerServerCommand( CommandManager.literal(Modget.NAMESPACE_SERVER) .then(CommandManager.literal(COMMAND) .requires(source -> source.hasPermissionLevel(PERMISSION_LEVEL)) .executes(...
void registerServer() { VersionAgnosticServerCommandManager.get().register( CommandManager.literal(Modget.NAMESPACE_SERVER) .then(CommandManager.literal(COMMAND) .requires(source -> source.hasPermissionLevel(PERMISSION_LEVEL)) .executes(context...
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/ListCommand.java
0
java
false
2022-08-12T14:50:34Z
private static String exactReasonToString(int reason) { switch (reason) { case EXACT_ALLOW_REASON_ALLOW_LIST: return "allow-listed"; case EXACT_ALLOW_REASON_COMPAT: return "compat"; case EXACT_ALLOW_REASON_PERMISSION: return "pe...
private static String exactReasonToString(int reason) { switch (reason) { case EXACT_ALLOW_REASON_ALLOW_LIST: return "allow-listed"; case EXACT_ALLOW_REASON_COMPAT: return "compat"; case EXACT_ALLOW_REASON_PERMISSION: return "pe...
Add a metrics reason code for USE_EXACT_ALARM Updating the reason code logging to better differentiate between usage of both the permissions. The only functional changes expected from this change are the values of exactAllowReason in an alarm: - Prioritized alarms change from "Permission" to "Not applicable" - When c...
https://github.com/LineageOS/android_frameworks_base/commit/4d56d13e01d2f752e7c6f30ad7c09c7973e32d69
null
null
apex/jobscheduler/service/java/com/android/server/alarm/Alarm.java
0
java
false
null
public static void run(Context context1, BillInfo billInfo) { if (billInfo.isAuto()) { Log.i(TAG, "自动记录账单..."); goApp(context1, billInfo); return; } Log.i(TAG, "唤起自动记账面板..."); MMKV mmkv = MMKV.defaultMMKV(); Log.i(TAG, "记账请求发起,账单初始信息:\n" + bil...
public static void run(Context context1, BillInfo billInfo) { if (billInfo.isAuto()) { Log.i(TAG, "自动记录账单..."); goApp(context1, billInfo); return; } Log.i(TAG, "唤起自动记账面板..."); MMKV mmkv = MMKV.defaultMMKV(); Log.i(TAG, "记账请求发起,账单初始信息:\n" + bil...
Fix: lock screen crash Signed-off-by: dreamncn <dream@dreamn.cn>
https://github.com/AutoAccountingOrg/Qianji_auto/commit/4520227b2c20202b45a821e19e4372a88290c1a4
null
null
app/src/main/java/cn/dreamn/qianji_auto/bills/SendDataToApp.java
0
java
false
null
@SuppressLint("NewApi") private void createNotification(MessageObject messageObject, boolean forBitmap) { String songName = messageObject.getMusicTitle(); String authorName = messageObject.getMusicAuthor(); AudioInfo audioInfo = MediaController.getInstance().getAudioInfo(); Intent i...
@SuppressLint("NewApi") private void createNotification(MessageObject messageObject, boolean forBitmap) { String songName = messageObject.getMusicTitle(); String authorName = messageObject.getMusicAuthor(); AudioInfo audioInfo = MediaController.getInstance().getAudioInfo(); Intent i...
build(deps): bump checker-qual from 3.24.0 to 3.25.0 (#49) Bumps [checker-qual](https://github.com/typetools/checker-framework) from 3.24.0 to 3.25.0. - [Release notes](https://github.com/typetools/checker-framework/releases) - [Changelog](https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md) -...
https://github.com/PreviousAlone/Nnngram/commit/f43ec04f5d65146a313da682fb3bcee82ee1aa4e
null
null
TMessagesProj/src/main/java/org/telegram/messenger/MusicPlayerService.java
0
java
false
2022-09-09T14:36:49Z
static void sent_by(pbelle_sip_messageParser ctx) { const char* host93; #undef RETURN_TYPE_host93 #define RETURN_TYPE_host93 const char* belle_sip_messageParser_port_return port94; #undef RETURN_TYPE_port94 #define RETURN_TYPE_port94 belle_sip_messageParser_port_return /* Initialize rule v...
static void sent_by(pbelle_sip_messageParser ctx) { const char* host93; #undef RETURN_TYPE_host93 #define RETURN_TYPE_host93 const char* belle_sip_messageParser_port_return port94; #undef RETURN_TYPE_port94 #define RETURN_TYPE_port94 belle_sip_messageParser_port_return /* Initialize rule v...
Fix crash while receiving some kind of invalid from header.
https://github.com/BelledonneCommunications/belle-sip/commit/116e3eb48fe43ea63eb9f3c4b4b30c48d58d6ff0
null
null
src/grammars/belle_sip_messageParser.c
0
c
false
2021-05-13T14:08:12Z
function K(t){return P(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}
function K(t){return Array.isArray(t)||g(t)}
YetiForce CRM ver. 6.4.0 (#16359) * Added improvements in record collector * Integration with UaYouControl.php (#16293) Co-authored-by: Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com> * Integration with UaYouControl.php (#16293) * Add external link to NoBrregEnhetsregisteret. (#16292) * Add external...
https://github.com/yetiforcecompany/yetiforcecrm/commit/2c14baaf8dbc7fd82d5c585f2fa0c23528450618
CVE-2022-1340
['CWE-79']
public_html/layouts/resources/views/KnowledgeBase/KnowledgeBase.vue.js
0
js
false
2022-08-19T11:40:16Z
function je(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}
function je(t,e){if(!(e&&(t._directInactive=!0,Oe(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)je(t.$children[n]);Pe(t,"deactivated")}}
Build assets
https://github.com/PrestaShop/PrestaShop/commit/011d8831a9a7b619aecb49208db5d0a36b9677d1
CVE-2020-6632
['CWE-79']
admin-dev/themes/new-theme/public/translations.bundle.js
0
js
false
null
function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Dt(u);var d=Rt;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=It(e,e===Ps?Rs:0),t=Rt,0===r)null!==n&&(n!==...
function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Bt(s),c=1<<l,u=o[l];if(-1===u){if(0==(c&r)||0!=(c&i)){u=t,Rt(c);var d=Dt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=It(e,e===Ms?Ds:0),t=Dt,0===r)null!==n&&(n!==...
fix: OPTIC-179: Properly ensure content is escaped (#4926) * fix: OPTIC-179: Properly ensure content is escaped * ci: Build frontend Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/6567480699 * update types * ci: Build frontend Workflow run: https://github.com/HumanSignal/label-st...
https://github.com/HumanSignal/label-studio/commit/a7a71e594f32ec4af8f3f800d5ccb8662e275da3
CVE-2023-47115
['CWE-79']
label_studio/frontend/dist/react-app/index.js
0
js
false
2023-10-19T01:22:32Z
async def action_for_event_by_user( self, event: EventBase, context: EventContext ) -> None: """Given an event and context, evaluate the push rules, check if the message should increment the unread count, and insert the results into the event_push_actions_staging table. """ ...
async def action_for_event_by_user( self, event: EventBase, context: EventContext ) -> None: """Given an event and context, evaluate the push rules, check if the message should increment the unread count, and insert the results into the event_push_actions_staging table. """ ...
Merge remote-tracking branch 'origin/develop' into squah/fix_rejected_events_in_state
https://github.com/matrix-org/synapse/commit/be4c8ebc2f3dc2747b21647378e11569cc642f1e
null
null
synapse/push/bulk_push_rule_evaluator.py
0
py
false
2022-09-15T14:37:47Z
@Overwrite public void open(URI uri) { CompletableFuture.runAsync(() -> { try { this.open(uri.toURL()); } catch (MalformedURLException e) { System.err.println("Couldn't open uri '" + uri + "'"); e.printStackTrace(); } ...
@Overwrite(aliases = {"method_673", "m_137648_"}, remap = false) public void open(URI uri) { CompletableFuture.runAsync(() -> { try { this.open(uri.toURL()); } catch (MalformedURLException e) { System.err.println("Couldn't open uri '" + uri + "'"); ...
MC-46766, MC-215531, MC-217716, MC-69216, MC-119417, MC-119754, MC-129909, MC-193343, MC-215530 only save config on launch once and only if there is a difference only register bug fix if it hasn't already been registered (2+ mixins per fix) fix crash with forge from arch bug (MC-148149) closes #33
https://github.com/isXander/Debugify/commit/fa3a1c3d38f5ba67cb0b75c85d53110ffd8b7f48
null
null
common/src/main/java/cc/woverflow/debugify/mixins/client/mc148149/OperatingSystemMixin.java
0
java
false
2022-03-31T19:10:19Z
public void allocation(int i) { allocation = bounds(0,i,MAX_SPENDING_TICKS); }
public void allocation(int i) { allocation = bounds(0,i,MAX_SPENDING_TICKS); view().owner().flagColoniesToRecalcSpending(); }
Inofficial 0.93a (#62) * Replaced many isPlayer() by isPlayerControlled() This leads to a more fluent experience on AutoPlay. Note: the council-voting acts weird when you try that there, getting you stuck, and the News-Broadcasts also seem to use a differnt logic and are always shown. * Orion-guard-handling Avoid s...
https://github.com/rayfowler/rotp-public/commit/5a12028c875d802c26f3adf1352c61a7e720bfb9
null
null
src/rotp/model/empires/SpyNetwork.java
0
java
false
2021-06-03T16:54:07Z
function D(n){if(Rn.test(n)){for(var t=On.lastIndex=0;On.test(n);)++t;n=t}else n=Qn(n);return n}
function D(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);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
@Override public void releaseUsing(ItemStack stack, Level level, LivingEntity living, int timeLeft) { // need player if (!(living instanceof Player player)) { return; } // no broken ToolStack tool = ToolStack.from(stack); if (tool.isBroken()) { return; } // TODO: modifier ...
@Override public void releaseUsing(ItemStack stack, Level level, LivingEntity living, int timeLeft) { // need player if (!(living instanceof Player player)) { return; } // no broken ToolStack tool = ToolStack.from(stack); if (tool.isBroken()) { return; } // TODO: modifier ...
Tweak bow stats a bit more Removed power, will just use velocity Instead of average, stats are additive Bows no longer have attack speed from materials
https://github.com/SlimeKnights/TinkersConstruct/commit/5c86c3411a1e6e764ef063b9212d3ef47360b8cf
null
null
src/main/java/slimeknights/tconstruct/tools/item/ModifiableBowItem.java
0
java
false
2022-12-04T06:47:21Z
private static void resolveStack(final Game game, final Player opponent) { // TODO: This needs to set an AI controller for all opponents, in case of multiplayer. opponent.runWithController(new Runnable() { @Override public void run() { final Set<Card> allAffectedC...
public static void resolveStack(final Game game, final Player opponent) { // TODO: This needs to set an AI controller for all opponents, in case of multiplayer. opponent.runWithController(new Runnable() { @Override public void run() { final Set<Card> allAffectedCa...
Fix crash from combat triggers when planning ahead of current phase
https://github.com/Card-Forge/forge/commit/595cd10451d5ad157f35d7b36b5151d27b1d1228
null
null
forge-ai/src/main/java/forge/ai/simulation/GameSimulator.java
0
java
false
2021-11-27T21:28:39Z
@Override public void visitBefore(SAXElement element, ExecutionContext executionContext) throws IOException { final Invocation<SAXVisitBefore> invocation = new Invocation<SAXVisitBefore>() { @Override public Object invoke(SAXVisitBefore visitor) { try { ...
@Override public void visitBefore(SAXElement element, ExecutionContext executionContext) throws IOException { final Invocation<SAXVisitBefore> invocation = new Invocation<SAXVisitBefore>() { @Override public Object invoke(SAXVisitBefore visitor) { try { ...
test: replace TestNg with JUnit (#424)
https://github.com/smooks/smooks/commit/46252769fb6b098c2cf805e88d5681688a2de5b1
null
null
core/src/main/java/org/smooks/engine/delivery/interceptor/EventInterceptor.java
0
java
false
2021-03-05T15:35:17Z
def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) -> None: """Run on agent end.""" # st.write requires two spaces before a newline to render it st.write(finish.log.replace("\n", " \n"))
def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) -> None: """Run on agent end.""" # st.write requires two spaces before a newline to render it self.st.write(finish.log.replace("\n", " \n"))
Merge remote-tracking branch 'upstream/master'
https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10
null
null
langchain/callbacks/streamlit.py
0
py
false
2023-06-21T06:45:39Z
private boolean shouldSlideInVolumeTray() { return mContext.getDisplay().getRotation() != RotationPolicy.NATURAL_ROTATION; }
private boolean shouldSlideInVolumeTray() { return mContext.getDisplay().getRotation() != RotationPolicy.getNaturalRotation(); }
Configurable 0, 90, 180 and 270 degree rotation Change-Id: Ia1859c51d71ef9d01cec2d13c6468ed89c6ac53e Contributor: jonasl - Add system setting Author: Tim Schumacher <timschumi@gmx.de> Date: Wed Nov 28 21:44:18 2018 +0100 Add back ACCELEROMETER_ROTATION_ANGLES and update references This needed to move bac...
https://github.com/LineageOS/android_frameworks_base/commit/4bd00b8482437e66dc89ecd55ee182bc6cb9a328
null
null
packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
0
java
false
2013-11-04T01:56:16Z
def historical_metrics_data(self): """Returns cluster activity historical metrics.""" start_date = _safe_parse_datetime(request.args.get("start_date")) end_date = _safe_parse_datetime(request.args.get("end_date")) with create_session() as session: # DagRuns dag_ru...
def historical_metrics_data(self): """Returns cluster activity historical metrics.""" start_date = _safe_parse_datetime(request.args.get("start_date")) end_date = _safe_parse_datetime(request.args.get("end_date")) with create_session() as session: # DagRuns dag_ru...
Merge branch 'main' into disable-default-test-connection-functionality-on-ui
https://github.com/apache/airflow/commit/c62ed8a0a2f51fabc0033839d7c3b8296b620db4
null
null
airflow/www/views.py
0
py
false
2023-07-04T13:09:43Z
public void initTempDeleteArray() { this.tempdeleteBitMap = new BitArrayDisk(this.hdt.getTriples().getNumberOfElements(), this.locationHdt + "triples-delete-temp.arr"); }
public void initTempDeleteArray() { this.tempdeleteBitMap = new BitArrayDisk(this.hdt.getTriples().getNumberOfElements(), hybridStoreFiles.getTripleDeleteTempArr()); }
add step crashing and start tests
https://github.com/the-qa-company/qEndpoint/commit/217106e7f5f46e24673c6f5724517c44c30f1457
null
null
hdt-qs-backend/src/main/java/com/the_qa_company/q_endpoint/hybridstore/HybridStore.java
0
java
false
2022-02-02T17:04:44Z
def get_language_pack(locale: str) -> Optional[Dict[str, Any]]: """Get/cache a language pack Returns the language pack from cache if it exists, caches otherwise >>> get_language_pack('fr')['Dashboards'] "Tableaux de bords" """ pack = ALL_LANGUAGE_PACKS.get(locale) if not pack: file...
def get_language_pack(locale: str) -> Optional[dict[str, Any]]: """Get/cache a language pack Returns the language pack from cache if it exists, caches otherwise >>> get_language_pack('fr')['Dashboards'] "Tableaux de bords" """ pack = ALL_LANGUAGE_PACKS.get(locale) if not pack: file...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/translations/utils.py
0
py
false
2023-06-05T08:42:54Z
def _call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, ) -> str: """Call the Petals API.""" params = self._default_params inputs = self.tokenizer(prompt, return_tensors="pt")["input_ids"] ...
def _call( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any, ) -> str: """Call the Petals API.""" params = self._default_params params = {**params, **kwargs} inputs = sel...
Merge remote-tracking branch 'upstream/master'
https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10
null
null
langchain/llms/petals.py
0
py
false
2023-06-21T06:45:39Z
def _set_proxy_info(repo): proxy = "" # Worth passing in proxy config info to from_ent_cert_content()? # That would decouple Repo some proxy_host = CFG.get('server', 'proxy_hostname') # proxy_port as string is fine here proxy_port = CFG.get('server', 'proxy_port') ...
def _set_proxy_info(repo): proxy = "" # Worth passing in proxy config info to from_ent_cert_content()? # That would decouple Repo some proxy_host = conf['server']['proxy_hostname'] # proxy_port as string is fine here proxy_port = conf['server']['proxy_port'] if p...
Provide DBus objects for configuration, facts, and registration. This commit creates DBus objects off the com.redhat.RHSM1 namespace. Objects include Facts which is meant to gather all the relevant system facts, Config which gives access to the subscription-manager configuration settings, and RegisterServer which open...
https://github.com/candlepin/subscription-manager/commit/2aa48ef65
null
null
src/subscription_manager/repolib.py
0
py
false
2017-01-04T17:56:15Z
def after_delete( cls, _mapper: Mapper, connection: Connection, target: Union[Dashboard, FavStar, Slice, Query, SqlaTable], ) -> None: session = Session(bind=connection) # delete row from `tagged_objects` session.query(TaggedObject).filter( Tagged...
def after_delete( cls, _mapper: Mapper, connection: Connection, target: Dashboard | FavStar | Slice | Query | SqlaTable, ) -> None: session = Session(bind=connection) # delete row from `tagged_objects` session.query(TaggedObject).filter( TaggedObj...
Merge branch 'master' into fix/db-val-param-perms
https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213
null
null
superset/tags/models.py
0
py
false
2023-06-05T08:42:54Z
void registerServer() { VersionAgnosticCommandManager.get().registerServerCommand( CommandManager.literal(Modget.NAMESPACE_SERVER) .then(CommandManager.literal(COMMAND_PARTS[0]) .then(CommandManager.literal(COMMAND_PARTS[1]) .requires(sourc...
void registerServer() { VersionAgnosticServerCommandManager.get().register( CommandManager.literal(Modget.NAMESPACE_SERVER) .then(CommandManager.literal(COMMAND_PARTS[0]) .then(CommandManager.literal(COMMAND_PARTS[1]) .requires(source -> so...
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/ReposListCommand.java
0
java
false
2022-08-12T14:50:34Z
def create_python_agent( llm: BaseLanguageModel, tool: PythonREPLTool, callback_manager: Optional[BaseCallbackManager] = None, verbose: bool = False, prefix: str = PREFIX, agent_executor_kwargs: Optional[Dict[str, Any]] = None, **kwargs: Dict[str, Any], ) -> AgentExecutor: """Construct a...
def create_python_agent( llm: BaseLanguageModel, tool: PythonREPLTool, agent_type: AgentType = AgentType.ZERO_SHOT_REACT_DESCRIPTION, callback_manager: Optional[BaseCallbackManager] = None, verbose: bool = False, prefix: str = PREFIX, agent_executor_kwargs: Optional[Dict[str, Any]] = None, ...
merge
https://github.com/hwchase17/langchain/commit/37f4f246d797db6eecfab0e35748101a33667b12
null
null
langchain/agents/agent_toolkits/python/base.py
0
py
false
2023-06-20T08:05:46Z
def fetch_projects(): if self.server is None: return all_project_map for project in TSC.Pager(self.server.projects): all_project_map[project.id] = TableauProject( id=project.id, name=project.name, parent...
def fetch_projects(): if self.server is None: return all_project_map for project in TSC.Pager(self.server.projects): all_project_map[project.id] = TableauProject( id=project.id, name=project.name, parent...
Merge branch 'master' into feat/policyFixes
https://github.com/datahub-project/datahub/commit/395a1bdeb8dfc62df94a10a3bc38b085d082feca
null
null
metadata-ingestion/src/datahub/ingestion/source/tableau.py
0
py
false
2023-11-03T15:19:26Z