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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|
def fetch_data(
cls, cursor: Any, limit: Optional[int] = None
) -> List[Tuple[Any, ...]]:
# pylint: disable=import-outside-toplevel
import pyhive
from TCLIService import ttypes
state = cursor.poll()
if state.operationState == ttypes.TOperationState.ERROR_STATE:
... | def fetch_data(cls, cursor: Any, limit: int | None = None) -> list[tuple[Any, ...]]:
# pylint: disable=import-outside-toplevel
import pyhive
from TCLIService import ttypes
state = cursor.poll()
if state.operationState == ttypes.TOperationState.ERROR_STATE:
raise Exce... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/db_engine_specs/hive.py | 0 | py | false | 2023-06-05T08:42:54Z |
@Override
public int spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, AbstractRandom random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) {
int i = cursor.getCharge();
if (i != 0 && random.nextInt(1) == 0) {
BlockPos blockPos = cursor.g... | @Override
public int spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, AbstractRandom random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) {
int i = cursor.getCharge();
if (i != 0 && random.nextInt(1) == 0) {
BlockPos blockPos = cursor.g... | fix crash | https://github.com/FrozenBlock/WilderWild/commit/02b051d649cd307d0c3b98e6a30d79a6f1cd2e0b | null | null | src/main/java/net/frozenblock/wilderwild/block/SculkBoneBlock.java | 0 | java | false | null |
def get_filter(resource: KeyValueResource, key: Union[int, UUID]) -> KeyValueFilter:
try:
filter_: KeyValueFilter = {"resource": resource.value}
if isinstance(key, UUID):
filter_["uuid"] = key
else:
filter_["id"] = key
return filter_
except ValueError as e... | def get_filter(resource: KeyValueResource, key: int | UUID) -> KeyValueFilter:
try:
filter_: KeyValueFilter = {"resource": resource.value}
if isinstance(key, UUID):
filter_["uuid"] = key
else:
filter_["id"] = key
return filter_
except ValueError as ex:
... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/key_value/utils.py | 0 | py | false | 2023-06-05T08:42:54Z |
def calendar(self, dag_id: str, session: Session = NEW_SESSION):
"""Get DAG runs as calendar."""
def _convert_to_date(session, column):
"""Convert column to date."""
if session.bind.dialect.name == "mssql":
return column.cast(Date)
else:
... | def calendar(self, dag_id: str, session: Session = NEW_SESSION):
"""Get DAG runs as calendar."""
def _convert_to_date(session, column):
"""Convert column to date."""
if session.bind.dialect.name == "mssql":
return column.cast(Date)
else:
... | 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 |
function X(t){return(null==t?ut():u(t)?s(t)?t.entrySeq():t:at(t)).toSetSeq()} | function X(t){return"undefined"==typeof BigInt?K:t} | [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 |
void trustedSetEncryptedDkgPolyAES(int *errStatus, char *errString, uint8_t *encrypted_poly, uint32_t enc_len) {
LOG_INFO(__FUNCTION__);
INIT_ERROR_STATE
CHECK_STATE(encrypted_poly);
memset(getThreadLocalDecryptedDkgPoly(), 0, DKG_BUFER_LENGTH);
int status = AES_decrypt(encrypted_poly, enc_len, (... | void trustedSetEncryptedDkgPolyAES(int *errStatus, char *errString, uint8_t *encrypted_poly, uint64_t enc_len) {
LOG_INFO(__FUNCTION__);
INIT_ERROR_STATE
CHECK_STATE(encrypted_poly);
memset(getThreadLocalDecryptedDkgPoly(), 0, DKG_BUFER_LENGTH);
int status = AES_decrypt(encrypted_poly, enc_len, (... | SKALE-3205-restart | https://github.com/skalenetwork/sgxwallet/commit/77425c862ad20cd270d42c54f3d63e1eb4e02195 | null | null | secure_enclave/secure_enclave.c | 0 | c | false | 2020-09-08T12:30:59Z |
async def _atake_next_step(
self,
name_to_tool_map: Dict[str, BaseTool],
color_mapping: Dict[str, str],
inputs: Dict[str, str],
intermediate_steps: List[Tuple[AgentAction, str]],
run_manager: Optional[AsyncCallbackManagerForChainRun] = None,
) -> Union[AgentFinish, Li... | async def _atake_next_step(
self,
name_to_tool_map: Dict[str, BaseTool],
color_mapping: Dict[str, str],
inputs: Dict[str, str],
intermediate_steps: List[Tuple[AgentAction, str]],
run_manager: Optional[AsyncCallbackManagerForChainRun] = None,
) -> Union[AgentFinish, Li... | Merge remote-tracking branch 'upstream/master' | https://github.com/hwchase17/langchain/commit/e12294f00cb3c6d3afd6eaf0541dc3056029fc10 | null | null | langchain/agents/agent.py | 0 | py | false | 2023-06-21T06:45:39Z |
def _is_not_av_media(content_type: bytes) -> bool:
return not content_type.lower().startswith(
b"video/"
) and not content_type.lower().startswith(b"audio/") | def _is_not_av_media(content_type: bytes) -> bool:
"""Returns False if the content type is audio or video."""
content_type = content_type.lower()
return not content_type.startswith(
b"video/"
) and not content_type.startswith(b"audio/") | Improve readability of `_is_not_av_media`.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | https://github.com/matrix-org/synapse/commit/5a97a0839ce75e5591d7b35c434c0f2f5ccb3c69 | null | null | synapse/rest/media/v1/preview_url_resource.py | 0 | py | false | null |
private void buildProcessingList(List<ElementProcessor> processingList, Element element, boolean isRoot) {
String elementName;
List<ContentHandlerBinding<DOMVisitBefore>> processingBefores;
List<ContentHandlerBinding<DOMVisitAfter>> processingAfters;
List<ContentHandlerBinding<VisitLifec... | private void buildProcessingList(List<ElementProcessor> processingList, Element element, boolean isRoot) {
String elementName;
List<ContentHandlerBinding<DOMVisitBefore>> processingBefores;
List<ContentHandlerBinding<DOMVisitAfter>> processingAfters;
List<ContentHandlerBinding<VisitLifec... | test: replace TestNg with JUnit (#424) | https://github.com/smooks/smooks/commit/46252769fb6b098c2cf805e88d5681688a2de5b1 | null | null | core/src/main/java/org/smooks/engine/delivery/dom/SmooksDOMFilter.java | 0 | java | false | 2021-03-05T15:35:17Z |
public static PacketByteBuf writeStop(int playerId) {
return writePlay(playerId, false, StopSymbol);
} | public static PacketByteBuf writeStop(int playerId) {
return writePlay(playerId, false, StopSymbol, 0);
} | Update readme | https://github.com/ZsoltMolnarrr/BetterCombat/commit/ed5d72a9f46c086a739b77a3fbaf631900f37c09 | null | null | src/main/java/net/bettercombat/network/Packets.java | 0 | java | false | 2022-06-29T18:02:59Z |
private void onPaymentFailure(@NonNull String status, @Nullable ActiveSubscription.ChargeFailure chargeFailure, long timestamp, boolean isForKeepAlive) {
SignalStore.donationsValues().setShouldCancelSubscriptionBeforeNextSubscribeAttempt(true);
if (isForKeepAlive){
Log.d(TAG, "Is for a keep-alive and we h... | private void onPaymentFailure(@NonNull String status, @Nullable ActiveSubscription.ChargeFailure chargeFailure, long timestamp, boolean isForKeepAlive) {
SignalStore.donationsValues().setShouldCancelSubscriptionBeforeNextSubscribeAttempt(true);
if (isForKeepAlive){
Log.d(TAG, "Is for a keep-alive and we h... | Fix crash when outcomeReason is null. | https://github.com/signalapp/Signal-Android/commit/f9c0156757a116d147c8587f093a05f271f7adb7 | null | null | app/src/main/java/org/thoughtcrime/securesms/jobs/SubscriptionReceiptRequestResponseJob.java | 0 | java | false | 2022-07-18T12:28:57Z |
function fetchMessagePerPage(chatId, page) {
try {
const { meetingId, requesterUserId } = extractCredentials(this.userId);
check(meetingId, String);
check(requesterUserId, String);
check(chatId, String);
check(page, Number);
const User = Users.findOne({ userId: requesterUserId, meetingId });... | async function fetchMessagePerPage(chatId, page) {
try {
const { meetingId, requesterUserId } = extractCredentials(this.userId);
check(meetingId, String);
check(requesterUserId, String);
check(chatId, String);
check(page, Number);
const User = await Users.findOneAsync({ userId: requesterUser... | 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/group-chat-msg/server/methods/fetchMessagePerPage.js | 0 | js | false | 2023-04-13T12:40:07Z |
@Override
public Fragment apply(RepeatMaskerRepeat r) {
Fragment f = null;
if (rng.nextBoolean()) {
// start with repeat
f = createFragment(r.begin, fragmentLength, true);
if (repeats.get(f.getHighBreakend().end) != null) return null; // other end of fragment is also in a repeat
} e... | @Override
public Fragment apply(RepeatMaskerRepeat r) {
Fragment f = null;
// TODO: break at random position in the repeat instead of always including the full repeat unit in the fragment
// TODO: allow the other side to also fall within a repeat
// TODO: prevent/allow overlapping fragments/ampl... | Fixed simulation entry point crash; simulation VCF now using 4.4 notation | https://github.com/PapenfussLab/gridss/commit/100f871fea5adc292be556391533e50edb9f5cb1 | null | null | src/main/java/au/edu/wehi/idsv/sim/RepeatFragmentedChromosome.java | 0 | java | false | 2022-04-04T05:52:43Z |
@Override
public void onPacketSending(PacketEvent event) {
if (event.getPlayer() == null) return;
if (event.getPacket() == null) return;
int entityID = event.getPacket().getIntegers().read(0);
// See if this packet should be c... | @Override
public void onPacketSending(PacketEvent event) {
if (event.getPlayer() == null) return;
if (event.getPacket() == null) return;
int entityID = event.getPacket().getIntegers().read(0);
// See if this packet should be c... | Changes and fixes:
- Fixed event scoreboard cooldown second doesn't match message cooldown second
- Fixed cannot use bypass command in events
- Reverted Skin Cache method from imanity tablist | https://github.com/diamond-rip/Eden/commit/bdf43ff2e9637ce5b855684648302d95de2827e2 | null | null | src/main/java/rip/diamond/practice/util/EntityHider.java | 0 | java | false | 2023-01-30T10:27:21Z |
function Za(e,t){return Ba(e,t,"monthsShort")} | function Za(e,t){var n=new Ja({ctx:e.ctx,options:t,chart:e});Ut.configure(e,n,t),Ut.addBox(e,n),e.legend=n} | fixed xss issue at datagrid | https://github.com/krayin/laravel-crm/commit/882dc2e7e7e9149b96cf1ccacf34900960b92fb7 | CVE-2021-41924 | ['CWE-79'] | packages/Webkul/UI/publishable/assets/js/ui.js | 0 | js | false | 2021-09-14T14:46:14Z |
SpanStatusBuilder setStatus(StatusCode statusCode, String description); | @CanIgnoreReturnValue
SpanStatusBuilder setStatus(StatusCode statusCode, String description); | Bump errorProneVersion from 2.16 to 2.17.0 (#7489)
Bumps `errorProneVersion` from 2.16 to 2.17.0.
Updates `error_prone_annotations` from 2.16 to 2.17.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/google/error-prone/releases">error_prone_annotations's
releases</a>.</em></p... | https://github.com/open-telemetry/opentelemetry-java-instrumentation/commit/0a045e3a0053aed1edbd39fdafa3a59262a6553e | null | null | instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/SpanStatusBuilder.java | 0 | java | false | null |
private void createAndSetChildrenCPAs(
final CPAConfig cpaConfig,
CPAFactory factory,
List<ConfigurableProgramAnalysis> cpas,
final CFA cfa,
final Specification specification,
AggregatedReachedSets pAggregatedReachedSets)
throws InvalidConfigurationException, CPAException {
... | private void createAndSetChildrenCPAs(
final CPAConfig cpaConfig,
CPAFactory factory,
List<ConfigurableProgramAnalysis> cpas,
final CFA cfa,
final Specification specification,
AggregatedReachedSets pAggregatedReachedSets)
throws InvalidConfigurationException, CPAException, Inte... | Fix an Exception if __builtin_types_compatible_p is called with void
git-svn-id: https://svn.sosy-lab.org/software/cpachecker/trunk@40790 4712c6d2-40bb-43ae-aa4b-fec3f1bdfe4c | https://github.com/sosy-lab/cpachecker/commit/e813e12f78194181ab6040b505bc995094968217 | null | null | src/org/sosy_lab/cpachecker/core/CPABuilder.java | 0 | java | false | 2022-06-08T12:42:55Z |
def get_imports_info(
imports, pypi_server="https://pypi.python.org/pypi/", proxy=None):
result = []
for item in imports:
try:
logging.warning(
'Import named "%s" not found locally.'
'Trying to resolve it at the PyPI server.',
item
... | def get_imports_info(
imports, pypi_server="https://pypi.python.org/pypi/", proxy=None):
result = []
for item in imports:
try:
logging.warning(
'Import named "%s" not found locally. '
'Trying to resolve it at the PyPI server.',
item
... | add whitespaces to pep8 formatted strings | https://github.com/bndr/pipreqs/commit/2103371746b727f6db341d301214d16c0dfba59b | null | null | pipreqs/pipreqs.py | 0 | py | false | null |
function Fr(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Fr(cr.call(e,0,t.maxStringLength),t)+r}return Nr(lr.call(lr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Gr),"single",t)} | function Fr(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1} | feat/CryptoModule (#339)
* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts not wanting me to specific about trivia... | https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 | CVE-2023-26154 | ['CWE-331'] | dist/web/pubnub.min.js | 0 | js | false | 2023-10-16T11:14:10Z |
private Button createButtonImport(Composite parent) {
Button button = new Button(parent, SWT.PUSH);
button.setText("");
button.setToolTipText(IMPORT_TITLE);
button.setImage(ApplicationImageFactory.getInstance().getImage(IApplicationImage.IMAGE_IMPORT, IApplicationImage.SIZE_16x16));
button.addSelectionListen... | private Button createButtonImport(Composite parent) {
Button button = new Button(parent, SWT.PUSH);
button.setText("");
button.setToolTipText(IMPORT_TITLE);
button.setImage(ApplicationImageFactory.getInstance().getImage(IApplicationImage.IMAGE_IMPORT, IApplicationImage.SIZE_16x16));
button.addSelectionListen... | Fixed #143 - PeakReviewDirectMSD crashes when the boundary is too wide | https://github.com/OpenChrom/openchrom/commit/521366ba41890ef1aaf504a93c09d2836708c32b | null | null | openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/src/net/openchrom/xxd/process/supplier/templates/ui/swt/TemplateReviewEditor.java | 0 | java | false | 2021-10-22T07:59:05Z |
public static TxnLogEntry deserializeTxn(byte[] txnBytes) throws IOException {
TxnHeader hdr = new TxnHeader();
final ByteArrayInputStream bais = new ByteArrayInputStream(txnBytes);
InputArchive ia = BinaryInputArchive.getArchive(bais);
hdr.deserialize(ia, "hdr");
bais.mark(bais... | public static TxnLogEntry deserializeTxn(byte[] txnBytes) throws IOException {
TxnHeader hdr = new TxnHeader();
final ByteArrayInputStream bais = new ByteArrayInputStream(txnBytes);
InputArchive ia = BinaryInputArchive.getArchive(bais);
hdr.deserialize(ia, "hdr");
bais.mark(bais... | ZOOKEEPER-4494: Fix error message format
cc maoling eolivelli
Author: tison <wander4096@gmail.com>
Reviewers: maoling <maoling@apache.org>
Closes #1838 from tisonkun/patch-2 | https://github.com/apache/zookeeper/commit/a160981e37d2907717284ec9f6eab5e17e8aecfa | null | null | zookeeper-server/src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java | 0 | java | false | null |
@Override
public boolean onBufferLongClicked(final Buffer b) {
if (b == null)
return false;
ArrayList<String> itemList = new ArrayList<String>();
final String[] items;
Server s = b.getServer();
if (buffer == null || b.getBid() != buffer.getBid())
ite... | @Override
public boolean onBufferLongClicked(final Buffer b) {
if (b == null)
return false;
ArrayList<String> itemList = new ArrayList<String>();
final String[] items;
Server s = b.getServer();
if (buffer == null || b.getBid() != buffer.getBid())
ite... | Fix a few crashes | https://github.com/irccloud/android/commit/f2276765f6d6113fdcb58275ecebfa8f016ded73 | null | null | src/com/irccloud/android/activity/MainActivity.java | 0 | java | false | 2021-06-09T16:57:44Z |
@Override
public void preInit()
{
addMinecarts();
BulletHelper.batchRegisterHandler(new PenetrationHandlerSteel(), ITContent.blockMetalMultiblock,
ITContent.blockMetalMultiblock1, ITContent.blockMetalBarrel, ITContent.blockMetalDevice,
ITContent.blockMetalTrash, ITContent.blockMetalDevice0Dummy, ITConten... | @Override
public void preInit()
{
addMinecarts();
/*
addMinecartToItem("trashcan_item", EntityMinecartTrashcanItem::new,
() -> new ItemStack(ITContent.blockMetalTrash, 1, BlockType_MetalTrash.TRASH_ITEM.getMeta()));
addMinecartToItem("trashcan_fluid", EntityMinecartTrashcanFluid::new,
() -> new ItemS... | Added Data Connector compat for OpenComputers and ComputerCraft
Updated gradle dependencies | https://github.com/Team-Immersive-Intelligence/ImmersiveIntelligence/commit/2b14be364eaebebf6bf233e94db1a437b719b147 | null | null | src/main/java/pl/pabilo8/immersiveintelligence/common/compat/it/ImmersiveTechnologyHelper.java | 0 | java | false | 2022-08-21T16:34:00Z |
public void export(Person person, long time) throws IOException {
// Set the person's birthdate temporarily to the accurate seed record version of the birthdate.
long originalBirthDate = (long) person.attributes.get(Person.BIRTHDATE);
if (Generator.fixedRecordGroupManager != null) {
person.attributes... | public void export(Person person, long time) throws IOException {
String personID = patient(person, time);
for (Encounter encounter : person.record.encounters) {
String encounterID = encounter(person, personID, encounter);
String payerID = encounter.claim.payer.uuid;
claim(person, encounte... | WIP: Runs the example file without crashing | https://github.com/synthetichealth/synthea/commit/3569cce5ef4351bbb9861aa1f0e31a8141c856ce | null | null | src/main/java/org/mitre/synthea/export/CSVExporter.java | 0 | java | false | 2022-01-03T22:20:08Z |
async function computeModules() {
if (process.argv.length > 2) {
// Modules are passed as arguments
for (let i = 2; i < process.argv.length; i++) {
modules.push(`vaadin-${process.argv[i]}-flow-parent`);
}
} else {
// Read modules from the parent pom.xml
const parentJs = await xml2js.parseS... | async function computeModules() {
if (process.argv.length > 2) {
// Modules are passed as arguments
for (let i = 2; i < process.argv.length; i++) {
modules.push(`vaadin-${process.argv[i]}-flow-parent`);
}
} else {
// Read modules from the parent pom.xml
const parentJs = await xml2js.parseS... | Merge branch 'master' into fix/treegrid-key-provider | https://github.com/vaadin/flow-components/commit/46ba6e4f3c22ce36fe590853fb88d46c35ca5501 | CVE-2022-29567 | ['CWE-200'] | scripts/mergeITs.js | 0 | js | false | null |
def get_columns(
cls, inspector: Inspector, table_name: str, schema: Optional[str]
) -> List[Dict[str, Any]]:
"""
Get all columns from a given schema and table
:param inspector: SqlAlchemy Inspector instance
:param table_name: Table name
:param schema: Schema name. I... | def get_columns(
cls, inspector: Inspector, table_name: str, schema: str | None
) -> list[dict[str, Any]]:
"""
Get all columns from a given schema and table
:param inspector: SqlAlchemy Inspector instance
:param table_name: Table name
:param schema: Schema name. If o... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/db_engine_specs/base.py | 0 | py | false | 2023-06-05T08:42:54Z |
def create_pandas_dataframe_agent(
llm: BaseLanguageModel,
df: Any,
callback_manager: Optional[BaseCallbackManager] = None,
prefix: Optional[str] = None,
suffix: Optional[str] = None,
input_variables: Optional[List[str]] = None,
verbose: bool = False,
return_intermediate_steps: bool = Fa... | def create_pandas_dataframe_agent(
llm: BaseLanguageModel,
df: Any,
agent_type: AgentType = AgentType.ZERO_SHOT_REACT_DESCRIPTION,
callback_manager: Optional[BaseCallbackManager] = None,
prefix: Optional[str] = None,
suffix: Optional[str] = None,
input_variables: Optional[List[str]] = None,
... | merge | https://github.com/hwchase17/langchain/commit/37f4f246d797db6eecfab0e35748101a33667b12 | null | null | langchain/agents/agent_toolkits/pandas/base.py | 0 | py | false | 2023-06-20T08:05:46Z |
def memoized_func(
key: Optional[str] = None, cache: Cache = cache_manager.cache
) -> Callable[..., Any]:
"""
Decorator with configurable key and cache backend.
@memoized_func(key="{a}+{b}", cache=cache_manager.data_cache)
def sum(a: int, b: int) -> int:
return a + b
In the... | def memoized_func(
key: str | None = None, cache: Cache = cache_manager.cache
) -> Callable[..., Any]:
"""
Decorator with configurable key and cache backend.
@memoized_func(key="{a}+{b}", cache=cache_manager.data_cache)
def sum(a: int, b: int) -> int:
return a + b
In the ex... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/utils/cache.py | 0 | py | false | 2023-06-05T08:42:54Z |
function MutationHandler(editor) {
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, MutationHandler);
/**
* Editor instance for which mutations are handled.
*
* @readonly
... | function MutationHandler(editor) {
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, MutationHandler);
/**
* Editor instance for which mutations are handled.
*
* @readonly
* @mem... | 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 static GameProfile loadGameProfile(String apiRoot, String username) {
//Doc (https://wiki.vg/Mojang_API#Playernames_-.3E_UUIDs)
Gson gson = new GsonBuilder().registerTypeAdapter(UUID.class, new UUIDTypeAdapter()).create();
HttpResponce responce = HttpRequestUtil.makeHttpRequest(
... | public static GameProfile loadGameProfile(String apiRoot, String username) {
//Doc (https://wiki.vg/Mojang_API#Playernames_-.3E_UUIDs)
Gson gson = new GsonBuilder().registerTypeAdapter(UUID.class, new UUIDTypeAdapter()).create();
HttpRequestUtil.HttpResponce responce = HttpRequestUtil.makeHttpR... | Enhanced default skin loaders. (#157)
* Enhance ICustomSkinLoaderPlugin.
* Support auto update config file per snapshot. Fix crash with forge 1.14.2 ~ 1.15.2.
* ElyByAPI should check root now.
* Remove unnecessary packages, add some deprecated loaders.
* Reformat imports.
* Move forge stuffs to another commit.
*... | https://github.com/xfl03/MCCustomSkinLoader/commit/6c9494970f1183a1a9b3d0d7f178109ab30b48a6 | null | null | Common/source/customskinloader/loader/MojangAPILoader.java | 0 | java | false | 2021-04-24T02:33:18Z |
public void drawWindow() {
// check if we are dragging our window and update position accordingly
if (mouseOver(position.x, position.y, width, bar) && getGUI().getMouse().isLeftHeld())
setDragging(true);
if (isDragging())
setPosition(new Vec2f(position.x + (getGUI().getM... | public void drawWindow() {
// check if we are dragging our window and update position accordingly
if (mouseOver(position.x, position.y, width, bar) && getGUI().getMouse().isLeftHeld())
setDragging(true);
if (isDragging())
setPosition(new Vec2f(position.x + (getGUI().getM... | [IMPL] Universal Client Primary Color & Fix Crash in PopManager | https://github.com/momentumdevelopment/cosmos/commit/6ecca066977ca196232976aa126ac1f4703899e1 | null | null | src/main/java/cope/cosmos/client/clickgui/windowed/window/Window.java | 0 | java | false | 2021-09-14T00:48:40Z |
@GET
@Path("/{tenant}/{namespace}/{topic}/partitions")
@ApiOperation(value = "Get partitioned topic metadata.")
@ApiResponses(value = {
@ApiResponse(code = 307, message = "Current broker doesn't serve the namespace of this topic"),
@ApiResponse(code = 401, message = "Don't have permi... | @GET
@Path("/{tenant}/{namespace}/{topic}/partitions")
@ApiOperation(value = "Get partitioned topic metadata.")
@ApiResponses(value = {
@ApiResponse(code = 307, message = "Current broker doesn't serve the namespace of this topic"),
@ApiResponse(code = 401, message = "Don't have permi... | Update/fix Swagger Annotation for param: authoritative (#16222)
* Update/fix Swagger Annotation for param: authoritative
* Fix Checkstyle
(cherry picked from commit b4ef4a3f4b752749277ae460d7e0739cf32672bc) | https://github.com/apache/pulsar/commit/78cba462b0df73b49a135b3e70913378a52a52a6 | null | null | pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/NonPersistentTopics.java | 0 | java | false | 2022-07-12T23:58:26Z |
void Bezier(double x1,double y1,double x2,double y2,double x3,double y3) {
outpos +=
sprintf(outpos,"\n %12.3f %12.3f %12.3f %12.3f %12.3f %12.3f c",x1,y1,x2,y2,x3,y3);
} | void Bezier(double x1,double y1,double x2,double y2,double x3,double y3) {
sprintf(outputbuffer,"\n %12.3f %12.3f %12.3f %12.3f %12.3f %12.3f c",x1,y1,x2,y2,x3,y3);
sendClean(outputbuffer);
} | axohelp 1.3
git-svn-id: svn://tug.org/texlive/trunk/Build/source@52042 c570f23f-e606-0410-a88d-b1316a301751 | https://github.com/TeX-Live/texlive-source/commit/9216833a3888a4105a18e8c349f65b045ddb1079 | null | null | utils/axodraw2/axodraw2-src/axohelp.c | 0 | c | false | 2019-09-06T22:26:30Z |
function mjml2html(mjml, options = {}) {
let content = ''
let errors = []
if (typeof options.skeleton === 'string') {
/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
options.skeleton = require(options.skeleton.charAt(0) === '.'
? path.resolve(process.cwd(), op... | function mjml2html(mjml, options = {}) {
let content = ''
let errors = []
if (typeof options.skeleton === 'string') {
/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
options.skeleton = require(options.skeleton.charAt(0) === '.'
? path.resolve(process.cwd(), op... | expose ignoreIncludes on mjml2html | https://github.com/mjmlio/mjml/commit/30e29ed2cdaec8684d60a6d12ea07b611c765a12 | CVE-2020-12827 | ['CWE-22'] | packages/mjml-core/src/index.js | 0 | js | false | null |
def get_df_payload(
self,
query_obj: QueryObject,
force_cached: Optional[bool] = False,
) -> Dict[str, Any]:
return self._processor.get_df_payload(
query_obj=query_obj,
force_cached=force_cached,
) | def get_df_payload(
self,
query_obj: QueryObject,
force_cached: bool | None = False,
) -> dict[str, Any]:
return self._processor.get_df_payload(
query_obj=query_obj,
force_cached=force_cached,
) | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/common/query_context.py | 0 | py | false | 2023-06-05T08:42:54Z |
private String exploitAlertDescription(SystemView sv) {
Empire sysEmp = sv.empire();
if ((sysEmp == null) || !sysEmp.isPlayer())
return null;
String eventMessage = randomEventStatus(sv);
if (!eventMessage.isEmpty()) {
if (sv.empire() == player())
... | private String exploitAlertDescription(SystemView sv) {
Empire sysEmp = sv.empire();
if ((sysEmp == null) || !sysEmp.isPlayer())
return null;
String eventMessage = randomEventStatus(sv);
if (!eventMessage.isEmpty()) {
if (sv.empire() == player())
... | more troops/transports in transit messages on the system descriptions of
the Systems Exploit & Exterminate tabs | https://github.com/rayfowler/rotp-public/commit/4b5aa2a567cacaf0dff3d385ba65769411b55352 | null | null | src/rotp/ui/map/SystemsUI.java | 0 | java | false | null |
db_result_t
relation_process_select(void *handle_ptr)
{
db_handle_t *handle;
aql_adt_t *adt;
db_result_t result;
unsigned attribute_count;
struct source_dest_map *attr_map_ptr, *attr_map_end;
attribute_t *result_attr;
unsigned char *from_ptr;
unsigned char *to_ptr;
operand_value_t operand_value;
uin... | db_result_t
relation_process_select(void *handle_ptr)
{
db_handle_t *handle;
aql_adt_t *adt;
db_result_t result;
unsigned attribute_count;
struct source_dest_map *attr_map_ptr, *attr_map_end;
attribute_t *result_attr;
unsigned char *from_ptr;
unsigned char *to_ptr;
operand_value_t operand_value;
uin... | Enhanced LVM error checking. | https://github.com/contiki-ng/contiki-ng/commit/f9bc65eab2b416152f06590f8b620904bfd1aae2 | null | null | os/storage/antelope/relation.c | 0 | c | false | 2018-08-20T13:00:10Z |
function InputObserver(view) {
var _this;
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, InputObserver);
_this = Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_nod... | function InputObserver(view) {
var _this;
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, InputObserver);
_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 |
def clone_model(model, **new_values):
"""Clones the entity, adding or overriding constructor attributes.
The cloned entity will have exactly the same property values as the
original entity, except where overridden. By default, it will have no
parent entity or key name, unless supplied.
IMPORTANT: ... | def clone_model(
model: datastore_services.TYPE_MODEL_SUBCLASS, **new_values: Any
) -> datastore_services.TYPE_MODEL_SUBCLASS:
"""Clones the entity, adding or overriding constructor attributes.
The cloned entity will have exactly the same property values as the
original entity, except where overridden.... | 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 |
function copyProperty(sourceItemRules, itemRule, propertyName) {
var _iteratorNormalCompletion16 = true;
var _didIteratorError16 = false;
var _iteratorError16 = undefined;
try {
for (var _iterator16 = sourceItemRules[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()... | function copyProperty(sourceItemRules, itemRule, propertyName) {
var _iteratorNormalCompletion16 = true;
var _didIteratorError16 = false;
var _iteratorError16 = undefined;
try {
for (var _iterator16 = sourceItemRules[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()... | 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 pack_arguments(signature, args, context, stmt_expr, is_external_call):
# FLAG cyclic dep
from vyper.old_codegen.abi import abi_encode, abi_type_of
pos = getpos(stmt_expr)
# abi encoding just treats all args as a big tuple
args_tuple_t = TupleType([x.typ for x in args])
args_as_tuple = LLLn... | def pack_arguments(signature, args, context, stmt_expr, is_external_call):
# FLAG cyclic dep
from vyper.old_codegen.abi import abi_encode, abi_type_of
pos = getpos(stmt_expr)
# abi encoding just treats all args as a big tuple
args_tuple_t = TupleType([x.typ for x in args])
args_as_tuple = LLLn... | add a note about alignment | https://github.com/vyperlang/vyper/commit/53019b63964e202afbbfe9df617754adacce7b62 | null | null | vyper/old_codegen/parser_utils.py | 0 | py | false | null |
def is_mount(self):
return self._unsupported("is_mount") | def is_mount(self) -> bool:
self._unsupported("is_mount") | Merge branch 'main' into feature/make-raw-html-description-in-params-configurable | https://github.com/apache/airflow/commit/875327a18994b4a2df973e5035b802c7d1eecc2a | null | null | airflow/io/store/path.py | 0 | py | false | 2023-11-07T20:26:36Z |
private void closeCurrentTag(String text, int line, int col) {
try {
XMLLexer lexer = new XMLLexer(CharStreams.fromReader(new StringReader(text)));
Token token;
boolean wasSlash = false, wasOpen = false;
ArrayList<String> currentNames = new ArrayList<>();
... | private void closeCurrentTag(String text, int line, int col) {
try {
XMLLexer lexer = new XMLLexer(CharStreams.fromReader(new StringReader(text)));
Token token;
boolean wasSlash = false, wasOpen = false;
ArrayList<String> currentNames = new ArrayList<>();
... | - Fixed installation issue
- Fixed crash while saving in EditorFragment
- Fixed crash on doing redo | https://github.com/AndroidIDEOfficial/AndroidIDE/commit/775c00af5f978e400fc7cfa149f58e5129057ef2 | null | null | app/src/main/java/com/itsaky/androidide/fragments/EditorFragment.java | 0 | java | false | 2021-08-09T09:33:44Z |
static ANTLR3_INLINE
void mAND(pbelle_sip_messageLexer ctx)
{
ANTLR3_UINT32 _type;
_type = AND;
// ../grammars/belle_sip_message.g:2001:4: ( '&' )
// ../grammars/belle_sip_message.g:2001:6: '&'
{
MATCHC('&');
if (HASEXCEPTION())
{
goto ruleANDEx;
}
... | static ANTLR3_INLINE
void mAND(pbelle_sip_messageLexer ctx)
{
ANTLR3_UINT32 _type;
_type = AND;
// ../grammars/belle_sip_message.g:2002:4: ( '&' )
// ../grammars/belle_sip_message.g:2002:6: '&'
{
MATCHC('&');
if (HASEXCEPTION())
{
goto ruleANDEx;
}
... | Fix crash while receiving some kind of invalid from header. | https://github.com/BelledonneCommunications/belle-sip/commit/116e3eb48fe43ea63eb9f3c4b4b30c48d58d6ff0 | null | null | src/grammars/belle_sip_messageLexer.c | 0 | c | false | 2021-05-13T14:08:12Z |
def save_template(cls, db: Session, zip_file: ZipFile) -> None:
"""
Extracts and validates the contents of a zip file containing a
custom connector template, registers the template, and saves it to the database.
"""
# verify the zip file before we use it
verify_zip(zip_f... | def save_template(cls, db: Session, zip_file: ZipFile) -> None:
"""
Extracts and validates the contents of a zip file containing a
custom connector template, registers the template, and saves it to the database.
"""
# verify the zip file before we use it
verify_zip(zip_f... | Merge pull request from GHSA-p6p2-qq95-vq5h
* Removing custom connector template functions
* Updating connector template modal description
* Adding function upload tests | https://github.com/ethyca/fides/commit/5989b5fa744c8d8c340963b895a054883549358a | null | null | src/fides/api/service/connectors/saas/connector_registry_service.py | 0 | py | false | 2023-09-05T19:51:11Z |
function ii(e,t,n){var r=ei.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return ni.call(this,r,t,n)} | function ii(e,t,n){var r=ti.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return ri.call(this,r,t,n)} | feat/CryptoModule (#339)
* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts not wanting me to specific about trivia... | https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 | CVE-2023-26154 | ['CWE-331'] | dist/web/pubnub.min.js | 0 | js | false | 2023-10-16T11:14:10Z |
@Override
public Chunk loadChunk(ChunkMetadata chunkMetaData) throws IOException {
return ChunkCache.getInstance().get(chunkMetaData, context.isDebug());
} | @Override
public Chunk loadChunk(ChunkMetadata chunkMetaData) throws IOException {
return ChunkCache.getInstance().get(chunkMetaData, debug);
} | [To rel/0.12] [IOTDB-1415] Fix OOM caused by ChunkCache (#3312) | https://github.com/apache/iotdb/commit/bbc7c8b5293b54a083e28da5b6d81ad8c619deb3 | null | null | server/src/main/java/org/apache/iotdb/db/query/reader/chunk/DiskChunkLoader.java | 0 | java | false | 2021-06-04T07:16:01Z |
def verify_bounce_message(msg):
"""
Verify an SES/SNS bounce(event) notification message.
"""
warnings.warn(
'utils.verify_bounce_message is deprecated. It is renamed to verify_event_message.',
RemovedInDjangoSES20Warning,
)
return verify_event_message(msg) | def verify_bounce_message(msg):
"""
Verify an SES/SNS bounce(event) notification message.
"""
warnings.warn(
"utils.verify_bounce_message is deprecated. It is renamed to verify_event_message.",
RemovedInDjangoSES20Warning,
)
return verify_event_message(msg) | Restrict amazonaws allowed certificate URLs. | https://github.com/django-ses/django-ses/commit/b71b5f413293a13997b6e6314086cb9c22629795 | null | null | django_ses/utils.py | 0 | py | false | 2023-05-21T15:35:36Z |
static belle_sip_messageParser_m_type_return
m_type(pbelle_sip_messageParser ctx)
{
belle_sip_messageParser_m_type_return retval;
/* Initialize rule variables
*/
retval.start = LT(1); retval.stop = retval.start;
{
// ../grammars/belle_sip_message.g:891:3: ( token )
// ../gramma... | static belle_sip_messageParser_m_type_return
m_type(pbelle_sip_messageParser ctx)
{
belle_sip_messageParser_m_type_return retval;
/* Initialize rule variables
*/
retval.start = LT(1); retval.stop = retval.start;
{
// ../grammars/belle_sip_message.g:895:3: ( token )
// ../gramma... | 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 |
public static List<AdjustOption> getToolList() {
List<AdjustOption> toolList = new ArrayList<>();
toolList.add(AdjustOption.BRIGHTNESS);
toolList.add(AdjustOption.CONTRAST);
toolList.add(AdjustOption.HDR);
toolList.add(AdjustOption.WHITE_POINT);
toolList.add(AdjustOption.HIGHLIGHTS);
toolList.add(AdjustOp... | public static List<AdjustOption> getToolList() {
List<AdjustOption> toolList = new ArrayList<>();
toolList.add(AdjustOption.BRIGHTNESS);
toolList.add(AdjustOption.CONTRAST);
toolList.add(AdjustOption.WHITE_POINT);
toolList.add(AdjustOption.HIGHLIGHTS);
toolList.add(AdjustOption.SHADOWS);
toolList.add(Adju... | Fixed crop crash; Extended white point and highlight range; Fixed slider touch issue; Removed unused filters | https://github.com/stingle/stingle-photos-android/commit/8a42b92f042e12ff0bd9646f3b9d2ccb617d3da5 | null | null | StinglePhotos/src/main/java/org/stingle/photos/Editor/core/AdjustOption.java | 0 | java | false | 2022-03-24T16:59:44Z |
function ListCommand(editor, type) {
var _this;
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, ListCommand);
_this = Object(_var_www_lime25_limesurvey_assets_packages_questiongroup... | function ListCommand(editor, type) {
var _this;
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__["default"])(this, ListCommand);
_this = Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_... | 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 select_star( # pylint: disable=too-many-arguments,too-many-locals
cls,
database: Database,
table_name: str,
engine: Engine,
schema: Optional[str] = None,
limit: int = 100,
show_cols: bool = False,
indent: bool = True,
latest_partition: bool = ... | def select_star( # pylint: disable=too-many-arguments,too-many-locals
cls,
database: Database,
table_name: str,
engine: Engine,
schema: str | None = None,
limit: int = 100,
show_cols: bool = False,
indent: bool = True,
latest_partition: bool = Tru... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/db_engine_specs/base.py | 0 | py | false | 2023-06-05T08:42:54Z |
async def bulk_update_stats_delta(
self, ts: int, updates: Dict[str, Dict[str, Dict[str, Counter]]], stream_id: int
) -> None:
"""Bulk update stats tables for a given stream_id and updates the stats
incremental position.
Args:
ts: Current timestamp in ms
upda... | async def bulk_update_stats_delta(
self, ts: int, updates: Dict[str, Dict[str, Counter[str]]], stream_id: int
) -> None:
"""Bulk update stats tables for a given stream_id and updates the stats
incremental position.
Args:
ts: Current timestamp in ms
updates: T... | Merge remote-tracking branch 'origin/develop' into clokep/template-clean-up | https://github.com/matrix-org/synapse/commit/ba7f48a37848dcec60e99bc23ecd5e16137d2b45 | null | null | synapse/storage/databases/main/stats.py | 0 | py | false | 2021-01-27T13:35:31Z |
function d(e,t){if(o.isBuffer(t)){var n=0|v(t.length);return e=i(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||W(t.length)?i(e,0):f(e,t);if("Buffer"===t.type&&X(t.data))return f(e,t.data)}throw new TypeErr... | function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}} | Build assets | https://github.com/PrestaShop/PrestaShop/commit/011d8831a9a7b619aecb49208db5d0a36b9677d1 | CVE-2020-6632 | ['CWE-79'] | admin-dev/themes/new-theme/public/cms_page_form.bundle.js | 0 | js | false | null |
@Override
public void tick() {
super.tick();
if (this.targetEntity == null || !this.targetEntity.isAlive()) {
this.resetTask();
} else if (this.goalOwner.getDistanceSq(this.targetEntity) < 1) {
EntityDeathWorm deathWorm = (EntityDeathWorm) this.goalOwner;
... | @Override
public void tick() {
super.tick();
if (this.targetEntity == null || !this.targetEntity.isAlive()) {
this.resetTask();
} else if (this.goalOwner.getDistanceSq(this.targetEntity) < 1) {
EntityDeathWorm deathWorm = (EntityDeathWorm) this.goalOwner;
... | Updated deathworm ai.
Deathworms can now correctly eat tnt.
Deathworms now prioritize eating tnt.
Deathworms no longer get stuck at the bottom of the desert. Fixes #3805
Deathworms now properly attack their target. | https://github.com/AlexModGuy/Ice_and_Fire/commit/be02e81cc7459e154c0bdf7c3303c40dc13dbf09 | null | null | src/main/java/com/github/alexthe666/iceandfire/entity/ai/DeathwormAITargetItems.java | 0 | java | false | 2022-05-14T15:09:44Z |
public static boolean isOptiFineLoaded() {
return optiFineLoaded;
} | public static boolean isOptiFineLoaded() {
return sOptiFineLoaded;
} | Fix unexpected crash on blur effect | https://github.com/BloCamLimb/ModernUI/commit/3377a05e2597660c4d6d35c1462048597e7f1bfe | null | null | mod-forge/src/main/java/icyllis/modernui/forge/ModernUIForge.java | 0 | java | false | 2021-09-15T08:25:28Z |
def get(
self,
user: User = None,
cache: Cache = None,
thumb_size: Optional[WindowSize] = None,
) -> Optional[BytesIO]:
"""
Get thumbnail screenshot has BytesIO from cache or fetch
:param user: None to use current user or User Model to login and fetch
... | def get(
self,
user: User = None,
cache: Cache = None,
thumb_size: WindowSize | None = None,
) -> BytesIO | None:
"""
Get thumbnail screenshot has BytesIO from cache or fetch
:param user: None to use current user or User Model to login and fetch
:... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/utils/screenshots.py | 0 | py | false | 2023-06-05T08:42:54Z |
private void saveLastCards(MyCard[] cards, List<Card> druidBoons) {
SharedPreferences prefs;
prefs = PreferenceManager.getDefaultSharedPreferences(top);
SharedPreferences.Editor edit = prefs.edit();
edit.putInt("LastCardCount", cards.length);
int i = 0;
for (MyCard c : cards) {
// TODO: skip non-kingdom... | private void saveLastCards(MyCard[] cards, List<Card> druidBoons) {
SharedPreferences prefs;
prefs = PreferenceManager.getDefaultSharedPreferences(top);
SharedPreferences.Editor edit = prefs.edit();
edit.putInt("LastCardCount", cards.length);
int i = 0;
for (MyCard c : cards) {
// TODO: skip non-kingdom... | Fix #660: Way of the Mouse crash | https://github.com/mehtank/androminion/commit/0b527d4ed35d116d0df11a77699413460100ee47 | null | null | app/src/main/java/com/mehtank/androminion/activities/GameActivity.java | 0 | java | false | 2022-07-21T15:26:17Z |
@AttackVector(
vulnerabilityExposed = {VulnerabilityType.PATH_TRAVERSAL},
description = "UNRESTRICTED_FILE_UPLOAD_NO_VALIDATION_FILE_NAME",
payload = "UNRESTRICTED_FILE_UPLOAD_PAYLOAD_LEVEL_8")
@VulnerableAppRequestMapping(
value = LevelConstants.LEVEL_8,
... | @AttackVector(
vulnerabilityExposed = {VulnerabilityType.PATH_TRAVERSAL, VulnerabilityType.DOS},
description = "UNRESTRICTED_FILE_UPLOAD_NO_VALIDATION_FILE_NAME",
payload = "UNRESTRICTED_FILE_UPLOAD_PAYLOAD_LEVEL_8")
@VulnerableAppRequestMapping(
value = LevelConstant... | adding SSRF and DoS | https://github.com/SasanLabs/VulnerableApp/commit/8d7d150b88fe596a64157365ece7316b4175b6b9 | null | null | src/main/java/org/sasanlabs/service/vulnerability/fileupload/UnrestrictedFileUpload.java | 0 | java | false | 2022-03-21T13:54:50Z |
def parse_manifest_json(self) -> None:
try:
with open(self.manifest_file, "r") as f:
# the manifest includes non-entry files we only need entries in
# templates
full_manifest = json.load(f)
self.manifest = full_manifest.get("entrypoints... | def parse_manifest_json(self) -> None:
try:
with open(self.manifest_file) as f:
# the manifest includes non-entry files we only need entries in
# templates
full_manifest = json.load(f)
self.manifest = full_manifest.get("entrypoints", {}... | Merge branch 'master' into fix/db-val-param-perms | https://github.com/apache/superset/commit/4e2fd6f4f04c61e8c1d3ec3f233581a05f8b6213 | null | null | superset/extensions/__init__.py | 0 | py | false | 2023-06-05T08:42:54Z |
public static int computeSoulDefense(LivingEntity entity) {
double base = entity.getAttributeValue(RequiemEntityAttributes.SOUL_DEFENSE);
double maxHealth = entity.getMaxHealth();
double intrinsicArmor = getAttributeBaseValue(entity, EntityAttributes.GENERIC_ARMOR);
double intrinsicArmor... | private static int computeSoulDefense(LivingEntity entity) {
double base = entity.getAttributeValue(RequiemEntityAttributes.SOUL_DEFENSE);
double maxHealth = entity.getMaxHealth();
double intrinsicArmor = getAttributeBaseValue(entity, EntityAttributes.GENERIC_ARMOR);
double intrinsicArmo... | Change how the creative soul vessel works | https://github.com/Ladysnake/Requiem/commit/0512c724c6a230f8bf95e1a4c9fc0852e4e1c409 | null | null | src/main/java/ladysnake/requiem/common/item/EmptySoulVesselItem.java | 0 | java | false | 2021-10-08T12:39:11Z |
@SuppressLint({"SetJavaScriptEnabled", "AddJavascriptInterface"})
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
assert getArguments() != null;
URI uri;
try {
uri = new URI(getArguments().... | @SuppressLint({"SetJavaScriptEnabled", "AddJavascriptInterface"})
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
assert getArguments() != null;
URI uri;
try {
uri = new URI(getArguments().... | Fixes a bug in which the fragment crashes if the parent activity terminates whilst loading. | https://github.com/genious7/FanFictionReader/commit/b1e33d5f05cc00aceac65970b944729e994b5ff0 | null | null | fanfictionReader/src/main/java/com/spicymango/fanfictionreader/menu/CloudflareFragment.java | 0 | java | false | 2021-04-27T04:29:22Z |
function Renderer(domConverter, selection) {
Object(_var_www_lime25_limesurvey_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__["default"])(this, Renderer);
/**
* Set of DOM Documents instances.
*
* @readonly
* @member ... | function Renderer(domConverter, selection) {
Object(_var_www_limedev_assets_packages_questiongroup_node_modules_babel_runtime_corejs2_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__["default"])(this, Renderer);
/**
* Set of DOM Documents instances.
*
* @readonly
* @member {Set.<Docu... | 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 |
private void pushToTalk() {
InputUtil.Key pushToTalkKey = KeyBindingHelper.getBoundKeyOf(VoiceClient.pushToTalk);
InputUtil.Key priorityPushToTalkKey = KeyBindingHelper.getBoundKeyOf(VoiceClient.priorityPushToTalk);
boolean priorityPressed = keyPressed(priorityPushToTalkKey) && VoiceClient.getS... | private void pushToTalk() {
InputUtil.Key pushToTalkKey = KeyBindingHelper.getBoundKeyOf(VoiceClient.pushToTalk);
InputUtil.Key priorityPushToTalkKey = KeyBindingHelper.getBoundKeyOf(VoiceClient.priorityPushToTalk);
boolean priorityPressed = keyPressed(priorityPushToTalkKey) && VoiceClient.getS... | Removed the shaded JNA version | https://github.com/plasmoapp/plasmo-voice/commit/d9f6c8527537bc931a7af8b441b62381e5200e24 | null | null | src/main/java/su/plo/voice/sound/Recorder.java | 0 | java | false | 2021-09-05T09:48:36Z |
@Override
protected WidgetStringListEditEntry createListEntryWidget(int x, int y, int listIndex, boolean isOdd, String entry)
{
IConfigStringList config = this.parent.getConfig();
if (listIndex >= 0 && listIndex < config.getStrings().size())
{
String defaultValue = config.ge... | @Override
protected WidgetStringListEditEntry createListEntryWidget(int x, int y, int listIndex, boolean isOdd, String entry)
{
IConfigStringList config = this.config;
if (listIndex >= 0 && listIndex < config.getStrings().size())
{
String defaultValue = config.getDefaultStri... | Fix accidentally using Litematica's translation keys | https://github.com/maruohon/malilib/commit/6c3156ef83d573b674162fe7d2bb1a19818be71b | null | null | src/main/java/fi/dy/masa/malilib/gui/widgets/WidgetListStringListEdit.java | 0 | java | false | null |
def _colon_split(self, option, opt_str, value, parser):
if parser.values.additions is None:
parser.values.additions = {}
if value.strip() == '':
raise OptionValueError(_("You must specify an override in the form of \"name:value\" with --add."))
k, colon, v = value.partit... | def _colon_split(self, option, opt_str, value, parser):
if parser.values.additions is None:
parser.values.additions = {}
if value.strip() == '':
raise OptionValueError(_("You must specify an override in the form of \"name:value\" with --add."))
k, _colon, v = value.parti... | 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/managercli.py | 0 | py | false | 2017-01-04T17:56:15Z |
@Override
public void start() throws Exception {
LOG.info("Starting Vertx HTTP server on port {}", port);
vertx.createHttpServer().requestHandler(router::accept).listen(port, future::complete);
} | @Override
public void start() throws Exception {
LOG.info("Starting Vertx HTTP server on port {}", port);
vertx.createHttpServer().requestHandler(router).listen(port, future::complete);
} | BookKeeper-Client config to write ledger metadata with configured version (#2708)
### Motivation
We need a way to use old bookie which doesn't support metadata-version-3 and upgrade bookkeeper-client with latest version. Right now, bk-4.12 writes ledger metadata with version-3 which will not be supported by bookie an... | https://github.com/apache/bookkeeper/commit/6a19e0e3b8d76b5abb872a4cce81f99cbdf36a88 | null | null | bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java | 0 | java | false | null |
def get_versions(cls, exploration_id: str) -> List[str]:
"""This function returns a list containing versions of
ExplorationAnnotationsModel for a specific exploration_id.
Args:
exploration_id: str. ID of the exploration currently being played.
Returns:
list(str)... | def get_versions(cls, exploration_id: str) -> List[str]:
"""This function returns a list containing versions of
ExplorationAnnotationsModel for a specific exploration_id.
Args:
exploration_id: str. ID of the exploration currently being played.
Returns:
list(str)... | Merge remote-tracking branch 'upstream/develop' into secure-redirection | https://github.com/oppia/oppia/commit/11a7838e2269729b17513eca910b04951daa83ee | null | null | core/storage/statistics/gae_models.py | 0 | py | false | 2021-09-25T13:52:17Z |
@Override
public void setStates(){
//Set the states of the light selectors.
for(Entry<LightType, GUIComponentSelector> lightEntry : lightSelectors.entrySet()){
lightEntry.getValue().selectorState = vehicle.variablesOn.contains(lightEntry.getKey().lowercaseName) ? 1 : 0;
}
//Set the states of the magneto ... | @Override
public void setStates(){
//Set the states of the light selectors.
for(Entry<LightType, GUIComponentSelector> lightEntry : lightSelectors.entrySet()){
lightEntry.getValue().selectorState = vehicle.variablesOn.contains(lightEntry.getKey().lowercaseName) ? 1 : 0;
}
//Set the states of the magneto ... | Overhauled hitches a second time to prevent crashes, make things clearer, and implement rotations for mounting per #806. | https://github.com/DonBruce64/MinecraftTransportSimulator/commit/e792ebadd02e461bc970b0d8916d7d51370ae6f3 | null | null | src/main/java/minecrafttransportsimulator/guis/instances/GUIPanelAircraft.java | 0 | java | false | 2021-05-01T07:10:45Z |
@OpenApi(
path = "/v1/server/whitelist",
method = HttpMethod.POST,
summary = "Update the whitelist",
description = "Possible responses are: `success`, `failed`, `Error: duplicate entry`, and `No whitelist`.",
tags = {"Server"},
headers = {
... | @OpenApi(
path = "/v1/server/whitelist",
method = HttpMethod.POST,
summary = "Update the whitelist",
description = "Possible responses are: `success`, `failed`, `Error: duplicate entry`, and `No whitelist`.",
tags = {"Server"},
headers = {
... | Upgrade to javalin 4.1.1 (#114)
* some updates to docs site
* first pass
* Fixup openapi thing for javalin 4
* Make the authors list more accurate
* make sure the routes are in the right order | https://github.com/servertap-io/servertap/commit/554983091c5c5062b371adfaedfbb0075bddb6b8 | null | null | src/main/java/io/servertap/api/v1/ServerApi.java | 0 | java | false | 2021-12-16T00:19:29Z |
static void mark_object(struct object *obj, struct strbuf *path,
const char *name, void *data)
{
update_progress(data);
} | static void mark_object(struct object *obj, const char *name, void *data)
{
update_progress(data);
} | list-objects: pass full pathname to callbacks
When we find a blob at "a/b/c", we currently pass this to
our show_object_fn callbacks as two components: "a/b/" and
"c". Callbacks which want the full value then call
path_name(), which concatenates the two. But this is an
inefficient interface; the path is a strbuf, and ... | https://github.com/git/git/commit/de1e67d0703894cb6ea782e36abb63976ab07e60 | null | null | reachable.c | 0 | c | false | null |
@Override
public void onFullyHiddenChanged(boolean fullyHidden) {
boolean animate = true;
if (!mBypassController.getBypassEnabled()) {
animate = mDozeParameters.getAlwaysOn() && !mDozeParameters.getDisplayNeedsBlanking();
// We only want the appear animations to happen when t... | @Override
public void onFullyHiddenChanged(boolean fullyHidden) {
boolean animate = true;
if (!mBypassController.getBypassEnabled()) {
animate = mDozeParameters.getAlwaysOn() && !mDozeParameters.getDisplayNeedsBlanking();
// We only want the appear animations to happen when t... | Fix drag down animation when bypassing
The drag down animation didn't do the transition
to the full shade visually, so things would look
out of place.
Fixes: 191282610
Test: drag down while bypassing
Change-Id: Icdd62155f3762621c1046ed5271476ec0b4e2635
Merged-In: Icdd62155f3762621c1046ed5271476ec0b4e2635 | https://github.com/PixelExperience/frameworks_base/commit/286825f60c9f3e6155e9429eb8d6c312da562121 | null | null | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconAreaController.java | 0 | java | false | null |
function DocumentSelection() {
var selectable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var placeOrOffset = arguments.length > 1 ? arguments[1] : undefined;
var options = arguments.length > 2 ? arguments[2] : undefined;
Object(_var_www_lime25_limesurvey_assets_packages... | function DocumentSelection() {
var selectable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var placeOrOffset = arguments.length > 1 ? arguments[1] : undefined;
var options = arguments.length > 2 ? arguments[2] : undefined;
Object(_var_www_limedev_assets_packages_questiong... | 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 |
@Override
public void disconnectUser(@Nonnull User user, @Nonnull String message) {
this.getServer().getPlayer(user.getUUID()).ifPresent(player -> player.disconnect(AdventureUtils.createComponent(message)));
} | @Override
public void disconnectUser(@Nonnull User user, @Nonnull String message) {
this.server.getPlayer(user.getUUID()).ifPresent(player -> player.disconnect(AdventureUtils.createComponent(message)));
} | Legacy version warning, configurable attack reset interval, other improvements | https://github.com/awumii/EpicGuard/commit/4d8a2d7d188ec3bb36eb68b1d58569e7ef2985fd | null | null | velocity/src/main/java/me/xneox/epicguard/velocity/PlatformVelocity.java | 0 | java | false | 2021-05-16T18:43:15Z |
@Override
public float baseValue(TechBiologicalWeapon t) {
TechBiologicalWeapon curr = empire.tech().topBiologicalWeaponTech();
float val = 0;
if(curr != null)
val -= curr.level();
val += t.level();
val /= 3;
return val;
} | @Override
public float baseValue(TechBiologicalWeapon t) {
TechBiologicalWeapon curr = empire.tech().topBiologicalWeaponTech();
float val = 0;
if(curr != null)
val -= curr.level();
val += t.level();
val /= 10;
val = max(1, val);
return val;
} | Xilmi ai 21 06 (#59)
* 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 sen... | https://github.com/rayfowler/rotp-public/commit/5addd4cc42ce8ce945273bb5c180b870e8542482 | null | null | src/rotp/model/ai/xilmi/AIScientist.java | 0 | java | false | 2021-05-30T14:52:49Z |
function Selection() {
var selectable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var placeOrOffset = arguments.length > 1 ? arguments[1] : undefined;
var options = arguments.length > 2 ? arguments[2] : undefined;
Object(_var_www_lime25_limesurvey_assets_packages_questio... | function Selection() {
var selectable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var placeOrOffset = arguments.length > 1 ? arguments[1] : undefined;
var options = arguments.length > 2 ? arguments[2] : undefined;
Object(_var_www_limedev_assets_packages_questiongroup_nod... | 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 randomlySelectedUser({ header, body }) {
const { userIds, choice, requestedBy } = body;
const { meetingId } = header;
check(meetingId, String);
check(requestedBy, String);
check(userIds, Array);
check(choice, String);
updateRandomViewer(meetingId, userIds, choice, requestedBy);
} | async function randomlySelectedUser({ header, body }) {
const { userIds, choice, requestedBy } = body;
const { meetingId } = header;
check(meetingId, String);
check(requestedBy, String);
check(userIds, Array);
check(choice, String);
await updateRandomViewer(meetingId, userIds, choice, requestedBy);
} | 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/meetings/server/handlers/selectRandomViewer.js | 0 | js | false | 2023-04-13T12:40:07Z |
@Override
public void optionSelected(String optionText, Object optionData)
{
if (optionText != null) {
text.addParagraph(optionText, Global.getSettings().getColor("buttonText"));
}
try {
if (optionData == Menu.NEXT_PAGE) {
currentPage++;
showPaginatedMenu();
return;
} else if (optionData... | @Override
public void optionSelected(String optionText, Object optionData)
{
if (optionText != null) {
text.addParagraph(optionText, Global.getSettings().getColor("buttonText"));
}
try {
if (optionData == Menu.NEXT_PAGE) {
currentPage++;
showPaginatedMenu();
return;
} else if (optionData... | fix some bugs or exploit | https://github.com/Histidine91/Nexerelin/commit/c17ebfbfcfb1834c9fe837d3ed1262b7b17cc530 | null | null | jars/sources/ExerelinCore/exerelin/campaign/intel/agents/AgentOrdersDialog.java | 0 | java | false | 2021-04-02T08:46:49Z |
public MutableText getShortText() {
if (text2 == null) {
return new LiteralText(text1.substring(0, 2)).styled(s -> s.withColor(color1));
} else {
return new LiteralText(text1.substring(0, 1)).styled(s -> s.withColor(color1)).append(new LiteralText(text2.substring(0, 1)).styled(s -> s.withColor(color2)));
}
... | public MutableText getShortText() {
if (text2.isEmpty()) {
return new LiteralText(text1.substring(0, 2)).styled(s -> s.withColor(color1));
} else {
return new LiteralText(text1.substring(0, 1)).styled(s -> s.withColor(color1)).append(new LiteralText(text2.substring(0, 1)).styled(s -> s.withColor(color2)));
... | Added a seconds setting to BetterChat Timestamp | https://github.com/BleachDev/BleachHack/commit/f07ee2a228ed10e91b55568e96967d42c3913aa3 | null | null | BleachHack-Fabric-1.17/src/main/java/bleach/hack/util/Watermark.java | 0 | java | false | null |
private void chest(int slot) throws NoConnectionException, NotAuthorizedException {
JsonObject rews = beh.getChest(slot);
if(rews == null)
return;
for(String rew : rews.keySet())
addRew(SRC.Run.chests, rew, rews.get(rew).getAsInt());
} | private void chest(int slot) throws NoConnectionException, NotAuthorizedException {
if(!beh.isReward(slot))
return;
if(Options.is("exploits") && ConfigsV2.getBoolean(cid, currentLayer, ConfigsV2.useMultiChestExploit)) {
goMultiChestClaim = false;
for(int i=0; i<50; i++) {
Thread t = new Thread(new Runn... | implemented some exploits | https://github.com/ProjectBots/StreamRaidersBot/commit/334f08a36122f124df95800160279bc7605fed67 | null | null | StreamRaidersBot/Bot/src/run/Run.java | 0 | java | false | 2021-10-24T20:09:54Z |
public void setLandingMechanism(RocketLandingMechanismPart landingMechanism) {
this.landingMechanism = landingMechanism;
onPartChanged();
} | public void setLandingMechanism(RocketLandingMechanismPart landingMechanism) {
this.landingMechanism = landingMechanism;
initStorage();
} | fix: include generated resources in source set | https://github.com/Mixinors/Astromine/commit/81db045c3b63a9a641374cff762528ec71c1ea66 | null | null | src/main/java/com/github/mixinors/astromine/common/rocket/Rocket.java | 0 | java | false | null |
function garbageCollect (cache, opts) {
opts.log.silly('verify', 'garbage collecting content')
const indexStream = index.lsStream(cache)
const liveContent = new Set()
indexStream.on('data', (entry) => {
if (opts.filter && !opts.filter(entry)) {
return
}
liveContent.add(entry.integrity.toStrin... | async function garbageCollect (cache, opts) {
opts.log.silly('verify', 'garbage collecting content')
const indexStream = index.lsStream(cache)
const liveContent = new Set()
indexStream.on('data', (entry) => {
if (opts.filter && !opts.filter(entry)) {
return
}
liveContent.add(entry.integrity.t... | 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/verify.js | 0 | js | false | 2022-05-25T21:26:36Z |
def _get_bytes_to_sign(self):
"""
Creates the message used for signing SNS notifications.
This is used to verify the bounce message when it is received.
"""
# Depending on the message type the fields to add to the message
# differ so we handle that here.
msg_type... | def _get_bytes_to_sign(self):
"""
Creates the message used for signing SNS notifications.
This is used to verify the bounce message when it is received.
"""
# Depending on the message type the fields to add to the message
# differ so we handle that here.
msg_type... | Restrict amazonaws allowed certificate URLs. | https://github.com/django-ses/django-ses/commit/b71b5f413293a13997b6e6314086cb9c22629795 | null | null | django_ses/utils.py | 0 | py | false | 2023-05-21T15:35:36Z |
function mkdirfix (cache, p, cb) {
// we have to infer the owner _before_ making the directory, even though
// we aren't going to use the results, since the cache itself might not
// exist yet. If we mkdirp it, then our current uid/gid will be assumed
// to be correct if it creates the cache folder in the proc... | async function mkdirfix (cache, p, cb) {
// we have to infer the owner _before_ making the directory, even though
// we aren't going to use the results, since the cache itself might not
// exist yet. If we mkdirp it, then our current uid/gid will be assumed
// to be correct if it creates the cache folder in th... | 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/util/fix-owner.js | 0 | js | false | 2022-05-25T21:26:36Z |
@OnlyIn(Dist.CLIENT)
@SubscribeEvent
static void setupClient(@Nonnull FMLClientSetupEvent event) {
//SettingsManager.INSTANCE.buildAllSettings();
//UIManager.getInstance().registerMenuScreen(Registration.TEST_MENU, menu -> new TestUI());
event.getMinecraftSupplier().get().execute(() -> {... | @OnlyIn(Dist.CLIENT)
@SubscribeEvent
static void setupClient(@Nonnull FMLClientSetupEvent event) {
//SettingsManager.INSTANCE.buildAllSettings();
//UIManager.getInstance().registerMenuScreen(Registration.TEST_MENU, menu -> new TestUI());
Minecraft.getInstance().execute(() -> {
... | Fix unexpected crash on blur effect | https://github.com/BloCamLimb/ModernUI/commit/3377a05e2597660c4d6d35c1462048597e7f1bfe | null | null | mod-forge/src/main/java/icyllis/modernui/forge/Registration.java | 0 | java | false | 2021-09-15T08:25:28Z |
protected void updateSurface() {
if (!mHaveFrame) {
if (DEBUG) {
Log.d(TAG, System.identityHashCode(this) + " updateSurface: has no frame");
}
return;
}
final ViewRootImpl viewRoot = getViewRootImpl();
if (viewRoot == null) {
... | protected void updateSurface() {
if (!mHaveFrame) {
if (DEBUG) {
Log.d(TAG, System.identityHashCode(this) + " updateSurface: has no frame");
}
return;
}
final ViewRootImpl viewRoot = getViewRootImpl();
if (viewRoot == null) {
... | Don't swallow exceptions
Fixes: 260244068
Test: App in bug crashes with IAE
Change-Id: I358ecf4309d82c609863b7f4d8d3d687b7c51f4b | https://github.com/aosp-mirror/platform_frameworks_base/commit/36a47145c6b29c55cb45a7e20a026ffc9d7c5db7 | null | null | core/java/android/view/SurfaceView.java | 0 | java | false | null |
function u(P,Q,S,Y,ba){function da(Ca){N.stop();var oa=document.createElement("table");oa.className="odFileListGrid";for(var Ba=null,Ea=0,Ka=0;null!=Ca&&Ka<Ca.length;Ka++){var Fa=Ca[Ka];if(1!=ja||!Fa.webUrl||0<Fa.webUrl.indexOf("sharepoint.com/sites/")||
0>Fa.webUrl.indexOf("sharepoint.com/")){var Ha=Fa.displayName||Fa... | function u(P,Q,S,Y,ba){function da(Ca){N.stop();var oa=document.createElement("table");oa.className="odFileListGrid";for(var Ba=null,Ea=0,Ka=0;null!=Ca&&Ka<Ca.length;Ka++){var Fa=Ca[Ka];if(1!=ja||!Fa.webUrl||0<Fa.webUrl.indexOf("sharepoint.com/sites/")||
0>Fa.webUrl.indexOf("sharepoint.com/")){var Ha=Fa.displayName||Fa... | 19.0.2 release | https://github.com/jgraph/drawio/commit/3d3f819d7a04da7d53b37cc0ca4269c157ba2825 | CVE-2022-2014 | ['CWE-94'] | src/main/webapp/js/app.min.js | 0 | js | false | 2022-06-07T10:01:30Z |
@Override PruneEmptyRule toRule(); | @Override default PruneEmptyRule toRule() {
return new PruneEmptyRule(this) {
@Override public boolean matches(RelOptRuleCall call) {
RelNode node = call.rel(0);
Double maxRowCount = call.getMetadataQuery().getMaxRowCount(node);
return maxRowCount != null && maxRowCount == 0.... | [CALCITE-5314] Prune empty parts of a query by exploiting stats/metadata
Close apache/calcite#2935 | https://github.com/apache/calcite/commit/c945b7f49b99538748c871557f6ac80957be2b6e | null | null | core/src/main/java/org/apache/calcite/rel/rules/PruneEmptyRules.java | 0 | java | false | 2022-10-09T15:56:00Z |
public void seslSetGoToTopEnabled(boolean var1, boolean var2) {
Drawable var3;
if (var2) {
var3 = this.mGoToTopImageLight;
} else {
var3 = this.mContext.getResources().getDrawable(mIsOneUI4 ? R.drawable.sesl4_list_go_to_top : R.drawable.sesl_list_go_to_top, null);
... | public void seslSetGoToTopEnabled(boolean var1, boolean var2) {
Drawable var3;
if (var2) {
var3 = this.mGoToTopImageLight;
} else {
var3 = this.mContext.getResources().getDrawable(mIsOneUI4 ? R.drawable.sesl4_list_go_to_top : R.drawable.sesl_list_go_to_top, null);
... | 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 x(t){var e;if(o(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{var r=t;while(r)o(e=r.context)&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),r=r.parent}o(e=qr)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)} | function x(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}} | DEV: finished all actions in new QuestionGroupsAdministrationController.php, changed some of the routes | https://github.com/LimeSurvey/LimeSurvey/commit/d404448c9c94bd3db20a559a9a4e31a8ad803d7a | CVE-2020-23710 | ['CWE-79'] | assets/packages/admintoppanel/build.min/js/admintoppanel.js | 0 | js | false | null |
private static BufferedImage paintImage(final BufferedImage workImage,
final String image) {
BufferedImage drawImg = GuiStatics.BIG_PLANET_ROCK1;
SpaceRace race = SpaceRaceUtility.getRaceByName(image);
if (race != null) {
drawImg = race.getRaceImage();
}
if (SpaceRace.SPACE_MONSTERS.getN... | private static BufferedImage paintImage(final BufferedImage workImage,
final String image) {
BufferedImage drawImg = GuiStatics.BIG_PLANET_ROCK1;
SpaceRace race = SpaceRaceUtility.getRaceByName(image);
if (race != null) {
drawImg = race.getRaceImage();
}
if (SpaceRace.SPACE_MONSTERS.getN... | #493 Adds better tentacle attack animation.
Adds new image for space monsters. | https://github.com/tuomount/Open-Realms-of-Stars/commit/ee20f6ce3a0a9ecb8477e2895e4753f6f363e202 | null | null | src/main/java/org/openRealmOfStars/starMap/newsCorp/ImageInstruction.java | 0 | java | false | null |
private void generate(ISeedReader world, BlockPos origin, Random random, Template arena, MutableBoundingBox bounds) {
BlockPos min = origin.add(-11, -16, -11);
BlockPos max = origin.add(11, 1, 11);
arena.func_237146_a_(world, offsetPosForRotation(min, this.rotation), origin, new PlacementSettings().setRotat... | private void generate(ISeedReader world, BlockPos origin, Random random, Template arena, MutableBoundingBox bounds) {
BlockPos min = origin.add(-11, -16, -11);
BlockPos max = origin.add(11, 1, 11);
arena.func_237146_a_(world, offsetPosForRotation(min, this.rotation), origin, new PlacementSettings().setRotat... | Brood Eetle Sleeping and some polishing
* The Brood Eetle now spawns sleeping inside Eetle Nests and when gotten near, damaged, or moved off the ground, it will wake up
* The Brood Eetle now has a Boss Bar that will only appear when it has been woken up
* Fixed the Brood Eetle's slam attack damaging itself
* Added an ... | https://github.com/team-abnormals/endergetic/commit/8b59d7fd428a03edf0e2fdb7af31a736fc99200e | null | null | src/main/java/com/minecraftabnormals/endergetic/common/world/structures/pieces/EetleNestPieces.java | 0 | java | false | 2021-04-24T15:07:26Z |
function getDependenciesOfLanguage(lang) {
if (!components.languages[lang] || !components.languages[lang].require) {
return [];
}
return ($u.type(components.languages[lang].require) === "array")
? components.languages[lang].require
: [components.languages[lang].require];
} | function getDependenciesOfLanguage(lang) {
if (!components.languages[lang] || !components.languages[lang].require) {
return [];
}
return ($u.type(components.languages[lang].require) === 'array')
? components.languages[lang].require
: [components.languages[lang].require];
} | Merge branch 'master' into exhaustive-pattern-tests | https://github.com/PrismJS/prism/commit/667bda71fde64d8191dc9e6c028b423987feb760 | CVE-2021-32723 | ['CWE-400'] | assets/examples.js | 0 | js | false | 2021-05-01T15:49:52Z |
function setUserEffectiveConnectionType(effectiveConnectionType) {
try {
const REDIS_CONFIG = Meteor.settings.private.redis;
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
const EVENT_NAME = 'ChangeUserEffectiveConnectionMsg';
const { meetingId, requesterUserId } = extractCredentials(this.userId);
... | async function setUserEffectiveConnectionType(effectiveConnectionType) {
try {
const REDIS_CONFIG = Meteor.settings.private.redis;
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
const EVENT_NAME = 'ChangeUserEffectiveConnectionMsg';
const { meetingId, requesterUserId } = extractCredentials(this.use... | 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/server/methods/setUserEffectiveConnectionType.js | 0 | js | false | 2023-04-13T12:40:07Z |
public void readFromPacketBuf(PacketByteBuf buf) {
CompoundTag compound = buf.readCompoundTag();
ShulkerBoxTooltip.synchronisedWithServer = true;
if (compound.contains("server", NbtType.COMPOUND)) {
CompoundTag serverTag = compound.getCompound("server");
if (serverTag.contains("clientIntegrati... | public void readFromPacketBuf(PacketByteBuf buf) {
NbtCompound compound = buf.readNbt();
ShulkerBoxTooltip.synchronisedWithServer = true;
if (compound.contains("server", NbtType.COMPOUND)) {
NbtCompound serverTag = compound.getCompound("server");
if (serverTag.contains("clientIntegration", Nbt... | WIP compile-only port to 1.17-pre2
Only compiles (with many warnings) for now
Large portions of code are commented out
Does not launch without crashing | https://github.com/MisterPeModder/ShulkerBoxTooltip/commit/911b28e6df6b61868da15e786590787ce8854200 | null | null | src/main/java/com/misterpemodder/shulkerboxtooltip/impl/config/Configuration.java | 0 | java | false | 2021-06-06T01:16:06Z |
def get_workunits_internal(self) -> Iterable[Union[MetadataWorkUnit, SqlWorkUnit]]:
# Add all schemas to the schema resolver
for wu in super().get_workunits_internal():
urn = wu.get_urn()
schema_metadata = wu.get_aspect_of_type(SchemaMetadataClass)
if schema_metadata:... | def get_workunits_internal(self) -> Iterable[Union[MetadataWorkUnit, SqlWorkUnit]]:
# Add all schemas to the schema resolver
yield from super().get_workunits_internal()
if self.config.include_table_lineage or self.config.include_usage_statistics:
self.report.report_ingestion_stage_s... | Merge branch 'master' into feat/policyFixes | https://github.com/datahub-project/datahub/commit/395a1bdeb8dfc62df94a10a3bc38b085d082feca | null | null | metadata-ingestion/src/datahub/ingestion/source/sql/teradata.py | 0 | py | false | 2023-11-03T15:19:26Z |
@Override
public void stop() {
if(registry != null){
try {// close rmi registry
registry.unbind(objectName);
UnicastRemoteObject.unexportObject(registry, true);
} catch (RemoteException | NotBoundException e) {
e.printStackTrace();
... | @Override
public void stop() {
if(registry != null){
try {// close rmi registry
registry.unbind(objectName);
UnicastRemoteObject.unexportObject(registry, true);
} catch (RemoteException | NotBoundException e) {
e.printStackTrace();
... | fix shiro rce exploits | https://github.com/wh1t3p1g/ysomap/commit/bd6e42dddd10f040e28ae981fad06ad27d7b5d3f | null | null | core/src/main/java/ysomap/exploits/rmi/RMIRefListener.java | 0 | java | false | 2021-06-24T14:30:41Z |
def clone(project_id: int, author_id: int):
""" Clone project """
cloned_project = Project.get(project_id)
# Remove clone from session so we can reinsert it as a new object
db.session.expunge(cloned_project)
make_transient(cloned_project)
# Re-initialise counters and m... | def clone(project_id: int, author_id: int):
""" Clone project """
cloned_project = Project.get(project_id)
# Remove clone from session so we can reinsert it as a new object
db.session.expunge(cloned_project)
make_transient(cloned_project)
# Re-initialise counters and m... | Do not apply cascade deletion on message model
Change circleci deployment branches
Enable RDS Cloudwatch Logging and transactional logs
Change ASG Policy to Target Request Count threshold
Include into migration a cleanup for task_ids on messages for tasks, which don't exist anymore
Scripts to restore deleted proje... | https://github.com/hotosm/tasking-manager/commit/3bfa8790992c7ddd809fe99fc5c6c9b4496347b3 | null | null | server/models/postgis/project.py | 0 | py | false | 2019-06-11T11:47:39Z |
make_control(column) {
if(column.field) return;
var me = this,
parent = column.field_area,
df = column.df;
// no text editor in grid
if (df.fieldtype=='Text Editor') {
df.fieldtype = 'Text';
}
var field = frappe.ui.form.make_control({
df: df,
parent: parent,
only_input: true,
with_li... | make_control(column) {
if(column.field) return;
var me = this,
parent = column.field_area,
df = column.df;
// no text editor in grid
if (df.fieldtype=='Text Editor') {
df.fieldtype = 'Text';
}
var field = frappe.ui.form.make_control({
df: df,
parent: parent,
only_input: true,
with_li... | Merge branch 'develop' into 2fa-fix | https://github.com/frappe/frappe/commit/56a29c29db2947648e93a447ac4b5a37a6ec8ee5 | CVE-2020-27508 | ['NVD-CWE-noinfo'] | frappe/public/js/frappe/form/grid_row.js | 0 | js | false | 2020-08-24T05:38:33Z |
Task QueueWatchdogMessage(string message, CancellationToken cancellationToken); | void QueueWatchdogMessage(string message); | Do not let chat message queuing hold up the watchdog | https://github.com/tgstation/tgstation-server/commit/ee1d752f4dec2930c5006bb4fbc356c8329837a8 | null | null | src/Tgstation.Server.Host/Components/Chat/IChatManager.cs | 0 | cs | false | 2023-05-21T04:59:30Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.