text
stringlengths
232
16.3k
domain
stringclasses
1 value
difficulty
stringclasses
3 values
meta
dict
<|fim_suffix|> with self._lock: self._logger.debug('Killing all jobs that belong to %r.', group) for job_ in group.jobs: self.job_manager.KillJob(job_) self._logger.debug('Waiting for jobs to quit.') # Lets block until the group is killed so we know it is completed # when we ...
code_fim
hard
{ "lang": "python", "repo": "lz-purple/Source", "path": "/app/src/main/java/com/syd/source/aosp/external/toolchain-utils/automation/server/job_group_manager.py", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> # Anybody out there? if anybody is not None: # Oh hai row.append(anybody.name) else: # Print a simple dot row.append(" .") # Print the entire row print("...
code_fim
hard
{ "lang": "python", "repo": "christianceb/cheesepy", "path": "/classes/Visualiser.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> if is_really_grid: trial_out[i] = param_eval(point[0], point[1]) else: # If `param_list_two` is empty trial_out[i] = param_eval(point) return aggr_method(trial_out) n_grid_pts = len(params) # Recording proce...
code_fim
hard
{ "lang": "python", "repo": "rodrigo-pena/gssr", "path": "/phase_transition.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> api_response = requests.get(url).content response_bytes = BytesIO(api_response) return Image.open(response_bytes) def from_file(path: str) -> Union[Image.Image, None]: if os.path.exists(path): return Image.open(path) else: return None def load_metadata(path: str, co...
code_fim
medium
{ "lang": "python", "repo": "brennanmcfarland/arc23", "path": "/data/retrieval.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> return { **init, 'locale': locale, 'official': official, 'address': ', '.join(address), 'emails': list(set(emails)), 'phones': [phone], 'faxes': [fax], 'url': url, } def main(): # Actually this file: https://www.nvsos.gov/sos/elections/voters/county-clerk-contact-in...
code_fim
hard
{ "lang": "python", "repo": "kevanloy/elections-officials", "path": "/states/nevada/main.py", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> def add_cue_words(self, arr): """ 为卡片添加cue words 提示用户输入 :param arr: :return: """ if arr: if isinstance(arr, str): arr = [arr] if 'cueWords' in self.data: self.data['cueWords'] = self.data['cueWord...
code_fim
medium
{ "lang": "python", "repo": "mlzboy/bot-sdk-python", "path": "/dueros/card/BaseCard.py", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> # paths to csv if not train_csv: print('no') train_csv,val_csv,test_csv = self.data_from_paths_to_csv(data_path,tr_path,val_path,test_path) train_csv_path = os.path.join(data_path,train_csv) train_df = pd.read_csv(train_csv_path) if 'Unname...
code_fim
hard
{ "lang": "python", "repo": "fzaidi2014/dreamai", "path": "/data_processing.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|># repo: fzaidi2014/dreamai path: /data_processing.py n (x,y) class my_image_folder(DatasetFolder): def __init__(self, root, transform=None, target_transform=None, loader=default_loader, minorities=None, diffs = None, bal_tfms=None, tta_tfms = None): super(my_i...
code_fim
hard
{ "lang": "python", "repo": "fzaidi2014/dreamai", "path": "/data_processing.py", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|># repo: fzaidi2014/dreamai path: /data_processing.py img_names = add_extension(img_names,self.extension) if val_csv: val_csv_path = os.path.join(data_path,val_csv) val_df = pd.read_csv(val_csv_path) val_targets = list(map(str,list(val_df.iloc[:,1]))) ...
code_fim
hard
{ "lang": "python", "repo": "fzaidi2014/dreamai", "path": "/data_processing.py", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> :port: (Optional) The port on which the server should start, defaulting to to 5050. Note that the next port (by default 5051) will also be used to transmit data through WebSockets. :type port: int """ return CanvasServer(file, host, port) def jupyter_canvas(buttons: bool ...
code_fim
hard
{ "lang": "python", "repo": "BufferNihility/algorithmx-python", "path": "/algorithmx/main.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> """Creates a new :class:`~api.Canvas` which will dispatch and receive events through a Jupyter widget, and which can be displayed using the IPython ``display`` function. By default, the canvas size is (400, 250), and requires the ``ctrl``/``cmd`` to be held down while zooming.""" ...
code_fim
hard
{ "lang": "python", "repo": "BufferNihility/algorithmx-python", "path": "/algorithmx/main.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> # 3. Compute gradients between model outputs and interpolated inputs. gradient_batch = compute_gradients( model=model, images=interpolated_path_input_batch, target_class=target_class, ) # Write batch indices and gradients to extend Tenso...
code_fim
hard
{ "lang": "python", "repo": "richford/hbn-pod2-qc", "path": "/docker/dl-integrated-gradients-gcp/ig/ig/integrated_gradients.py", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> ig_dataset = tf.data.Dataset.from_tensor_slices(tf.stack(ig_attributions)) tf.data.experimental.save( ig_dataset, op.join(LOCAL_OUTPUT_DIR, f"ig_{confusion_class}_{postfix}"), ) affine = np.diag([1, 1, 1, 1]) volume_niftis = [ { "b0": nib.Nifti1Imag...
code_fim
hard
{ "lang": "python", "repo": "richford/hbn-pod2-qc", "path": "/docker/dl-integrated-gradients-gcp/ig/ig/integrated_gradients.py", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> def add_input(self, input: str, frame: int) -> None: if frame in self._inputs: self._inputs[frame].append(input) else: self._inputs[frame] = [input] def poll_client_inputs(self, frame: int) -> None: # TODO: Proper prediction if not self.game...
code_fim
hard
{ "lang": "python", "repo": "PineTreePizza/roll-back-engine", "path": "/assets/game_projects/fighter/src/input_buffer.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> currPrecision = 0 currRecall = 0 currSupport = 0 currF1_Score = 0 for idx,value in enumerate([0.359,0.256,0.205,0.087,0.073,0.016]): currF1_Score += (value * df["f1_score"][idx]) currPrecision += (value * df["precision"][idx]) cu...
code_fim
hard
{ "lang": "python", "repo": "nfrn/PRI_project", "path": "/Ex2/resultsAnalysis.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> '''Compute a single peak using a NIST profile object :param object NISTpk: a peak profile computational object from the NIST XRD Fundamental Parameters Code, typically established from a call to :func:`SetupFPAcalc` :param np.Array ttArr: an evenly-spaced grid of two-theta points...
code_fim
hard
{ "lang": "python", "repo": "WONDER-project/GSAS-II-WONDER-WIN", "path": "/GSAS-II-WONDER/GSASIIfpaGUI.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|># repo: WONDER-project/GSAS-II-WONDER-WIN path: /GSAS-II-WONDER/GSASIIfpaGUI.py ojection at takeoff angle (mm)'), ('tube-tails_L-tail', -1.,'Left-side tube tails width, in projection (mm)'), ('tube-tails_R-tail', 1.,'Right-side tube tails width, in projection (mm)'), ('tube-tails_rel-I', ...
code_fim
hard
{ "lang": "python", "repo": "WONDER-project/GSAS-II-WONDER-WIN", "path": "/GSAS-II-WONDER/GSASIIfpaGUI.py", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> if set(input) - (self._charset.union(set('()+*'))): raise AutomataError('%s contains symbols not in charset.' % input) if type(node) is Node: if type(dest) is set and all([type(i) is Node for i in dest]): if len(dest): if node in...
code_fim
hard
{ "lang": "python", "repo": "max99x/automata-editor", "path": "/nfa2regex.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> end = Node('qf') network.addNode(end) for i in network.terminals: network.addDelta(i, '', end) network.remTerminal(i) network.addTerminal(end) if DEBUG: print('Dummies added: ', network) # Collapse connections for src in network.nodes: delta_tem...
code_fim
hard
{ "lang": "python", "repo": "max99x/automata-editor", "path": "/nfa2regex.py", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> //TODO (unknown): determine signature(s) to use /*public InputStream body(ReliableDownloadOptions options) { return new InputStream() { DownloadAsyncResponse response = asyncResponse; @Override public int read() throws IOException { retur...
code_fim
hard
{ "lang": "java", "repo": "bainian12345/azure-sdk-for-java", "path": "/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/DownloadResponse.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> return imie; } public void setImie(String imie) { this.imie = imie; } public int getWiek() { return wiek; } public void setWiek(int wiek) { this.wiek = wiek; } public String toString() { return imie+" "+nazwisko+" ("+wiek+")"; } }<|fim_prefix|>// repo: andrzej151/AISD path: /Aisd9...
code_fim
hard
{ "lang": "java", "repo": "andrzej151/AISD", "path": "/Aisd9/src/SortowanieKopcowe/Osoba.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: andrzej151/AISD path: /Aisd9/src/SortowanieKopcowe/Osoba.java package SortowanieKopcowe; public class Osoba { private String nazwisko; private String imie; private int wiek; public Osoba () { nazwisko =""; imie = ""; wiek = 0; } public Osoba (String Nazwisko, String Imie, int Wie...
code_fim
medium
{ "lang": "java", "repo": "andrzej151/AISD", "path": "/Aisd9/src/SortowanieKopcowe/Osoba.java", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> this.nazwisko = nazwisko; } public String getImie() { return imie; } public void setImie(String imie) { this.imie = imie; } public int getWiek() { return wiek; } public void setWiek(int wiek) { this.wiek = wiek; } public String toString() { return imie+" "+nazwisko+" ("+wiek+")"...
code_fim
medium
{ "lang": "java", "repo": "andrzej151/AISD", "path": "/Aisd9/src/SortowanieKopcowe/Osoba.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> /** * Exit a parse tree produced by {@link HaskellParser#name_boolformula_opt}. * @param ctx the parse tree */ void exitName_boolformula_opt(HaskellParser.Name_boolformula_optContext ctx); /** * Enter a parse tree produced by {@link HaskellParser#name_boolformula_and}. * @param ctx the parse ...
code_fim
hard
{ "lang": "java", "repo": "Eduardo95/COSAL", "path": "/code/src/main/java/edu/ncsu/haskell/parser/antlr/HaskellParserListener.java", "mode": "spm", "license": "Unlicense", "source": "the-stack-v2" }
<|fim_suffix|> /** * Enter a parse tree produced by {@link HaskellParser#fbinds}. * @param ctx the parse tree */ void enterFbinds(HaskellParser.FbindsContext ctx); /** * Exit a parse tree produced by {@link HaskellParser#fbinds}. * @param ctx the parse tree */ void exitFbinds(HaskellParser.FbindsContext ...
code_fim
hard
{ "lang": "java", "repo": "Eduardo95/COSAL", "path": "/code/src/main/java/edu/ncsu/haskell/parser/antlr/HaskellParserListener.java", "mode": "spm", "license": "Unlicense", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Eduardo95/COSAL path: /code/src/main/java/edu/ncsu/haskell/parser/antlr/HaskellParserListener.java ctx the parse tree */ void enterSks_vars(HaskellParser.Sks_varsContext ctx); /** * Exit a parse tree produced by {@link HaskellParser#sks_vars}. * @param ctx the parse tree */ void exit...
code_fim
hard
{ "lang": "java", "repo": "Eduardo95/COSAL", "path": "/code/src/main/java/edu/ncsu/haskell/parser/antlr/HaskellParserListener.java", "mode": "psm", "license": "Unlicense", "source": "the-stack-v2" }
<|fim_prefix|>// repo: MasterOogwayis/spring path: /base/base-test/src/main/java/com/test/demo/WorkController.java package com.test.demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapp...
code_fim
medium
{ "lang": "java", "repo": "MasterOogwayis/spring", "path": "/base/base-test/src/main/java/com/test/demo/WorkController.java", "mode": "psm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> @GetMapping public Object work() { return service.get("work"); } }<|fim_prefix|>// repo: MasterOogwayis/spring path: /base/base-test/src/main/java/com/test/demo/WorkController.java package com.test.demo; import org.springframework.beans.factory.annotation.Autowired; import org.spri...
code_fim
medium
{ "lang": "java", "repo": "MasterOogwayis/spring", "path": "/base/base-test/src/main/java/com/test/demo/WorkController.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> super(settings); } @Override public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { return new WoodenHopperBlockEntity(pos, state); } @Override public <T extends BlockEntity> BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type) { return world...
code_fim
medium
{ "lang": "java", "repo": "mindy15963/Wooden-Hoppers", "path": "/src/main/java/io/github/haykam821/woodenhoppers/block/WoodenHopperBlock.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> private Long skuId; private Integer num; private boolean locked; }<|fim_prefix|>// repo: jbzhang99/tesco-mall path: /tesco-common/src/main/java/com/jerusalem/common/vo/LockResult.java package com.jerusalem.common.vo; <|fim_middle|>import com.baomidou.mybatisplus.core.toolkit.IdWorker; import...
code_fim
hard
{ "lang": "java", "repo": "jbzhang99/tesco-mall", "path": "/tesco-common/src/main/java/com/jerusalem/common/vo/LockResult.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> private static RandomGraphComponentRecreator randomGraphComponentRecreator; private static String directory = "src" + File.separator + "test" + File.separator + "resources"; private static GraphDataGenerator graphDataGenerator; @BeforeClass public static void setUp() throws IOException { g...
code_fim
hard
{ "lang": "java", "repo": "ChristianNavolskyi/YCSB", "path": "/core/src/test/java/com/yahoo/ycsb/generator/graph/randomcomponents/TestRandomGraphComponentRecreator.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> @BeforeClass public static void setUp() throws IOException { graphDataGenerator = mock(GraphDataGenerator.class); Node mockedNode = mock(Node.class); Edge mockedEdge = mock(Edge.class); when(graphDataGenerator.getNode(anyLong())).thenReturn(mockedNode); when(graphDataGenerator.ge...
code_fim
hard
{ "lang": "java", "repo": "ChristianNavolskyi/YCSB", "path": "/core/src/test/java/com/yahoo/ycsb/generator/graph/randomcomponents/TestRandomGraphComponentRecreator.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> @Override public String getOrderColumnName() { ForeignCollectionField fcField = field.getAnnotation(ForeignCollectionField.class); return fcField == null ? "" : fcField.orderColumnName(); } @Override public boolean getOrderAscending() { ForeignCollectionField fcFiel...
code_fim
hard
{ "lang": "java", "repo": "zoozooll/MyExercise", "path": "/meep/Meep/src/com/oregonscientific/meep/database/internal/ModelBoundField.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public String getSpeakerId() { return m_speakerId; } public String getTwitterHandle() { return m_twitterHandle; } public String getSpeakerDetails() { return m_speakerDetails; } }<|fim_prefix|>// repo: Pasarus/ConferenceAppPublic path: /app/src/main/java/u...
code_fim
medium
{ "lang": "java", "repo": "Pasarus/ConferenceAppPublic", "path": "/app/src/main/java/uk/ac/aber/dcs/cs31620/conferenceapp/model/Speaker.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Pasarus/ConferenceAppPublic path: /app/src/main/java/uk/ac/aber/dcs/cs31620/conferenceapp/model/Speaker.java package uk.ac.aber.dcs.cs31620.conferenceapp.model; import java.io.Serializable; public class Speaker implements Serializable { <|fim_suffix|> public Speaker(String speakerName, Str...
code_fim
medium
{ "lang": "java", "repo": "Pasarus/ConferenceAppPublic", "path": "/app/src/main/java/uk/ac/aber/dcs/cs31620/conferenceapp/model/Speaker.java", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> return Objects.isNull(string) || string.isEmpty(); } public static final boolean nonBlank(final String string) { return !Objects.isNull(string) && !string.isEmpty(); } /** * Checks if one contains one of the others. The method returns true for the first match, otherw...
code_fim
hard
{ "lang": "java", "repo": "varietas/instrumentum-simul", "path": "/src/main/java/io/varietas/instrumentum/simul/utils/StringUtil.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public Collection<?> getTargetListB() throws ReflectiveOperationException { return (Collection<?>) AccessUtil.setAccessible(Reflection.nmsClassResolver.resolve("PathfinderGoalSelector").getDeclaredField("b")).get(getTargetSelector()); } public Collection<?> getTargetListC() throws ReflectiveOperatio...
code_fim
hard
{ "lang": "java", "repo": "InventivetalentDev/CompactNPCLib", "path": "/API/src/main/java/org/inventivetalent/npclib/npc/living/insentient/NPCInsentientAbstract.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> public void multiplayerSessionEnded(); }<|fim_prefix|>// repo: Bensge/Project-alpha path: /Project Alpha-core/src/com/project/networking/MultiplayerListener.java package com.project.networking; <|fim_middle|>/** * Created by bennokrauss on 24.12.14. */ public interface MultiplayerListener extends ...
code_fim
medium
{ "lang": "java", "repo": "Bensge/Project-alpha", "path": "/Project Alpha-core/src/com/project/networking/MultiplayerListener.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Bensge/Project-alpha path: /Project Alpha-core/src/com/project/networking/MultiplayerListener.java package com.project.networking; /** * Created by bennokrauss on 24.12.14. */ public interface MultiplayerListener extends PacketReceivedCallback <|fim_suffix|> public void multiplayerSession...
code_fim
medium
{ "lang": "java", "repo": "Bensge/Project-alpha", "path": "/Project Alpha-core/src/com/project/networking/MultiplayerListener.java", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> DatasetInfo(int key, DatasetOrigin origin, Integer sourceKey, Integer importAttempt) { this.key = key; this.origin = Preconditions.checkNotNull(origin, "origin is required"); this.sourceKey = sourceKey; this.importAttempt = importAttempt; if (origin == DatasetOrigin.RELEA...
code_fim
hard
{ "lang": "java", "repo": "MCKanpolat/backend", "path": "/dao/src/main/java/life/catalogue/dao/DatasetInfoCache.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> private DatasetInfo get(int datasetKey) throws NotFoundException { if (deleted.contains(datasetKey)) { throw NotFoundException.notFound(Dataset.class, datasetKey); } return infos.computeIfAbsent(datasetKey, key -> { try (SqlSession session = factory.openSession()) { retur...
code_fim
hard
{ "lang": "java", "repo": "MCKanpolat/backend", "path": "/dao/src/main/java/life/catalogue/dao/DatasetInfoCache.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> /** * The config map. */ private final Map<String, Object> config; /** * Constructor * * @param trustStoreFileName The trust-store public key file name. * @param trustStorePassword The trust-store public key password. * @param userName The user name. *...
code_fim
hard
{ "lang": "java", "repo": "opendxl/opendxl-databus-client-java", "path": "/src/main/java/com/opendxl/databus/credential/SSLSaslPlainCredential.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> config = new HashMap<>(); config.put(SECURITY_PROTOCOL_KEY, "SASL_SSL"); config.put(SSL_TRUSTSTORE_LOCATION_KEY, trustStoreFileName); config.put(SSL_TRUSTSTORE_PASSWORD_KEY, trustStorePassword); config.put(SASL_MECHANISM_KEY, "PLAIN"); config.put(SASL_JAAS_C...
code_fim
hard
{ "lang": "java", "repo": "opendxl/opendxl-databus-client-java", "path": "/src/main/java/com/opendxl/databus/credential/SSLSaslPlainCredential.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> String SYSTEM_PSE = "pse_system"; String SYSTEM_SMS = "sms"; String SYSTEM_EMAIL = "email"; /** * get the delivery system identified with this token * * @param token token of the delivery system * * @return instance of a delivery system or null */ DeliverySystem get(String token); /*...
code_fim
medium
{ "lang": "java", "repo": "chr-krenn/fhj-ws2015-sd13-pse", "path": "/pse/src/main/java/at/fhj/swd13/pse/db/dao/DeliverySystemDAO.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> public GuiContainerTesting(TileEntityContainerTesting te, ContainerTesting cont) { super(cont); xSize = WIDTH; ySize = HEIGHT; } @Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { mc.getTextureManager().bindTexture(background); ...
code_fim
medium
{ "lang": "java", "repo": "BackToEarth/DDocks", "path": "/src/main/java/com/curle/ddock/gui/GuiContainerTesting.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> cl.clOut = "custLogin," + cl.clUser + "," + cl.clPw; if(cl.clUser!=null){ cl.loginSK(cl.clOut); } System.out.println("cl.ipStream" + cl.ipStream); ...
code_fim
hard
{ "lang": "java", "repo": "nhuduy/FurnitureSystem", "path": "/OrtherClass/ClientSK.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> switch (num) { case 1: System.out.println("1. Account Management"); // custAccManagement(); break; case 2: // custProductManagement(); ...
code_fim
hard
{ "lang": "java", "repo": "nhuduy/FurnitureSystem", "path": "/OrtherClass/ClientSK.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: nhuduy/FurnitureSystem path: /OrtherClass/ClientSK.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package furniture; import java.io.BufferedReade...
code_fim
hard
{ "lang": "java", "repo": "nhuduy/FurnitureSystem", "path": "/OrtherClass/ClientSK.java", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> @Override public Class<? extends ElementFactory> getGraphFactoryType( final T pojo ) { return getGraphFactory( pojo.getClass() ); } @Override @SuppressWarnings( "unchecked" ) public Class<? extends ElementFactory> getGraphFactory( final Class<?> type ) { return get...
code_fim
hard
{ "lang": "java", "repo": "lazarotti/kie-wb-common", "path": "/kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/main/java/org/kie/workbench/common/stunner/core/definition/adapter/binding/AbstractBindableDefinitionAdapter.java", "mode": "spm", ...
<|fim_suffix|> protected Class<?> getNamePropertyClass() { return namePropertyClass; } protected Map<Class, Set<String>> getPropertySetsFieldNames() { return propertySetsFieldNames; } protected Map<Class, Set<String>> getPropertiesFieldNames() { return propertiesFieldNames; ...
code_fim
hard
{ "lang": "java", "repo": "lazarotti/kie-wb-common", "path": "/kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/main/java/org/kie/workbench/common/stunner/core/definition/adapter/binding/AbstractBindableDefinitionAdapter.java", "mode": "spm", ...
<|fim_suffix|> return false; } public String getName() { return NbBundle.getBundle(GlobalPropertiesAction.class).getString("GlobalProperties"); // NOI18N } public HelpCtx getHelpCtx() { return new HelpCtx (GlobalPropertiesAction.class); } protected String iconResource (...
code_fim
medium
{ "lang": "java", "repo": "apache/netbeans", "path": "/platform/core.windows/src/org/netbeans/core/windows/actions/GlobalPropertiesAction.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> Switch s = findViewById(R.id.dark_theme_switcher); s.setChecked(isDarkTheme()); s.setOnCheckedChangeListener((buttonView, isChecked) -> setThemeAndRecreate(isChecked)); findViewById(R.id.rate_app).setOnClickListener(v -> { try { IntentHelper.go...
code_fim
hard
{ "lang": "java", "repo": "chorpler/volume_control_android", "path": "/app/src/main/java/com/example/punksta/volumecontrol/MainActivity.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> @Override public abstract Class<T> getConfigurationClass(); @Override public Class<HierarchicalConfiguration> getParameterClass() { return HierarchicalConfiguration.class; } }<|fim_prefix|>// repo: stub22/glue-ai-v1_mechio-java path: /maven/projects/org.mechio.impl....
code_fim
medium
{ "lang": "java", "repo": "stub22/glue-ai-v1_mechio-java", "path": "/maven/projects/org.mechio.impl.motion/src/main/java/org/mechio/impl/motion/config/ServoControllerConfigXMLReader.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> NOT_SHIPPED, PARTIALLY_SHIPPED, SHIPPED, CANCELLED; @JsonValue public String toJson() { return name().toLowerCase(); } @JsonCreator public static ShipmentStatus fromJson(String value) { return Enum.valueOf(ShipmentStatus.class, value.toUpperCase()); } }<|fim_p...
code_fim
medium
{ "lang": "java", "repo": "Falkplan/lightspeedecom-api", "path": "/lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/domain/ShipmentStatus.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> @JsonCreator public static ShipmentStatus fromJson(String value) { return Enum.valueOf(ShipmentStatus.class, value.toUpperCase()); } }<|fim_prefix|>// repo: Falkplan/lightspeedecom-api path: /lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/domain/ShipmentStatus.java package com...
code_fim
medium
{ "lang": "java", "repo": "Falkplan/lightspeedecom-api", "path": "/lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/domain/ShipmentStatus.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> public String toString () { return "not"; } public Unary clone() { return new Unary(); } }<|fim_prefix|>// repo: MR-P17/larva-rv-tool path: /Other projects/LarvaLogicConv/Automata/src/newPEA/Unary.java package newPEA; public class Unary{ public enum Op {not}; public Op o...
code_fim
easy
{ "lang": "java", "repo": "MR-P17/larva-rv-tool", "path": "/Other projects/LarvaLogicConv/Automata/src/newPEA/Unary.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> // Render the toolbar component, if any (we use float to keep // the toolbar on the right - or left, in RTL languages - so // it has to be rendered first) UIComponent toolbar = getFacet(detailItem, CoreShowDetailItem.TOOLBAR_FACET); if (to...
code_fim
hard
{ "lang": "java", "repo": "m-y-mo/myfaces-trinidad_20165019", "path": "/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelAccordionRenderer.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> out.writeAttribute("value", icon, null); if (disabled) { out.writeAttribute("disabled", Boolean.TRUE, "disabled"); } out.endElement("input"); } out.endElement("div"); // Ending div for an individual panel // The...
code_fim
hard
{ "lang": "java", "repo": "m-y-mo/myfaces-trinidad_20165019", "path": "/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelAccordionRenderer.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public void setStateOfBirthAbbreviation(String stateOfBirthAbbreviation) { this.stateOfBirthAbbreviation = stateOfBirthAbbreviation; } public String getCountryOfBirthCode() { return this.countryOfBirthCode; } public void setCountryOfBirthCode(String countryOfBirthCode...
code_fim
hard
{ "lang": "java", "repo": "todd-fritz/secure-data-service", "path": "/sli/sif/sif-agent/src/main/java/org/slc/sli/sif/domain/slientity/BirthData.java", "mode": "spm", "license": "LicenseRef-scancode-warranty-disclaimer", "source": "the-stack-v2" }
<|fim_prefix|>// repo: todd-fritz/secure-data-service path: /sli/sif/sif-agent/src/main/java/org/slc/sli/sif/domain/slientity/BirthData.java /* * Copyright 2012-2013 inBloom, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
code_fim
hard
{ "lang": "java", "repo": "todd-fritz/secure-data-service", "path": "/sli/sif/sif-agent/src/main/java/org/slc/sli/sif/domain/slientity/BirthData.java", "mode": "psm", "license": "LicenseRef-scancode-warranty-disclaimer", "source": "the-stack-v2" }
<|fim_suffix|> public String getStateOfBirthAbbreviation() { return this.stateOfBirthAbbreviation; } public void setStateOfBirthAbbreviation(String stateOfBirthAbbreviation) { this.stateOfBirthAbbreviation = stateOfBirthAbbreviation; } public String getCountryOfBirthCode() { ...
code_fim
hard
{ "lang": "java", "repo": "todd-fritz/secure-data-service", "path": "/sli/sif/sif-agent/src/main/java/org/slc/sli/sif/domain/slientity/BirthData.java", "mode": "spm", "license": "LicenseRef-scancode-warranty-disclaimer", "source": "the-stack-v2" }
<|fim_suffix|> PopupMenu popup = new PopupMenu(this, this.mGameSetting); popup.getMenuInflater().inflate(R.menu.game_setting_menu, popup.getMenu()); popup.setOnMenuItemClickListener(item -> { switch (item.getItemId()){ case R.id.game_setting_sync: ...
code_fim
hard
{ "lang": "java", "repo": "ThiemJson/Android-CardGameCounter", "path": "/app/src/main/java/teneocto/thiemjason/android_scorecounter/ui/home/Home.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>/** * * @author J */ public class RibbonMenuContainerClipboard extends RibbonMenuContainer { //remove blue border when clicking on the button // private static final String STYLE_BORDER_OFF = "-fx-focus-color: transparent;-fx-padding:1;"; public RibbonMenuContainerClipboard() { ...
code_fim
medium
{ "lang": "java", "repo": "j574y923/MPOverviewer", "path": "/src/mpoverviewer/image_layer/ribbonmenu/RibbonMenuContainerClipboard.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: otcshare/chromium-src path: /chrome/android/feed/core/javatests/src/org/chromium/chrome/browser/feed/library/piet/ElementListAdapterTest.java ss) @Config(manifest = Config.NONE) public class ElementListAdapterTest { private static final String LIST_STYLE_ID = "manycats"; private static f...
code_fim
hard
{ "lang": "java", "repo": "otcshare/chromium-src", "path": "/chrome/android/feed/core/javatests/src/org/chromium/chrome/browser/feed/library/piet/ElementListAdapterTest.java", "mode": "psm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> assertThat(mAdapter.getBaseView().getChildCount()).isEqualTo(1); assertThat(mAdapter.getBaseView().getChildAt(0).getLayoutParams()) .isInstanceOf(LinearLayout.LayoutParams.class); assertThat(((LayoutParams) mAdapter.getBaseView().getChildAt(0).getLayoutParams()).gra...
code_fim
hard
{ "lang": "java", "repo": "otcshare/chromium-src", "path": "/chrome/android/feed/core/javatests/src/org/chromium/chrome/browser/feed/library/piet/ElementListAdapterTest.java", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> assertThat(mAdapter.getBaseView().getChildCount()).isEqualTo(0); assertThat(mAdapter.mChildAdapters).isEmpty(); } @Test public void testOnBindModel_bindingWithNoContent() { when(mFrameContext.getElementBindingValue(ELEMENT_BINDING_REF)) .thenReturn(Bind...
code_fim
hard
{ "lang": "java", "repo": "otcshare/chromium-src", "path": "/chrome/android/feed/core/javatests/src/org/chromium/chrome/browser/feed/library/piet/ElementListAdapterTest.java", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> @Test public void testDIContainerExceptionStringThrowable() { Exception cause = new Exception("Test Message1"); DIContainerException e = new DIContainerException("Test Message2", cause); assertEquals("Test Message2", e.getMessage()); assertEquals("Test Message1...
code_fim
hard
{ "lang": "java", "repo": "tamacat-cloud/tamacat-core-2.0", "path": "/src/test/java/cloud/tamacat/di/DIContainerExceptionTest.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> try { if (failed.containsKey(tags)) { long [] mark = failed.get(tags); if (cores <= mark[0]) { logger.info("skipped due to not enough cores " + cores + " <= " + mark[0]); return true; } ...
code_fim
hard
{ "lang": "java", "repo": "AcademySoftwareFoundation/OpenCue", "path": "/cuebot/src/main/java/com/imageworks/spcue/SortableShow.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public SortableShow(String show, float value) { this.show = show; this.tier = value; } public String getShowId() { return show; } public float getValue() { return tier; } public boolean isSkipped(String tags, long cores, long memory) { ...
code_fim
hard
{ "lang": "java", "repo": "AcademySoftwareFoundation/OpenCue", "path": "/cuebot/src/main/java/com/imageworks/spcue/SortableShow.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public EdgeOfTheDivinity(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W/B}"); this.subtype.add(SubType.AURA); // Enchant creature TargetPermanent auraTarget = new TargetCreaturePermanent(); this.getSpellAbil...
code_fim
medium
{ "lang": "java", "repo": "magefree/mage", "path": "/Mage.Sets/src/mage/cards/e/EdgeOfTheDivinity.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> SqlParser parser = new SqlParser(sqlFile); SqlNode node = parser.parse(); SqlNode transformedSqlNode = config.getDialect().transformSelectSqlNode(node, options); return buildSql((evaluator, expander) -> { NodePreparedSqlBuilder sqlBuilder = new NodePreparedSqlBuilder(config, SqlKind.SELECT, nul...
code_fim
hard
{ "lang": "java", "repo": "lospatitos/springboot-batch-doma", "path": "/src/main/java/data/doma/sql/Parser.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> /** * Doma2のSQLクラス生成 * * @return */ // public PreparedSql execute() { // SqlParser parser = new SqlParser(sql); // SqlNode node = parser.parse(); // NodePreparedSqlBuilder builder = new NodePreparedSqlBuilder(config, // SqlKind.SCRIPT, null, new ExpressionEvaluator(variableValues, // config...
code_fim
hard
{ "lang": "java", "repo": "lospatitos/springboot-batch-doma", "path": "/src/main/java/data/doma/sql/Parser.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public int getId() { return getData(); } }<|fim_prefix|>// repo: khanhduytran0/ExagearAndroidX11Server path: /app/src/main/java/com/eltechs/axs/proto/input/errors/BadCursor.java package com.eltechs.axs.proto.input.errors; import com.eltechs.axs.proto.input.XProtocolError; public class B...
code_fim
medium
{ "lang": "java", "repo": "khanhduytran0/ExagearAndroidX11Server", "path": "/app/src/main/java/com/eltechs/axs/proto/input/errors/BadCursor.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public BadCursor(int i) { super((byte) 6, i, String.format("Bad cursor id %d.", new Object[]{Integer.valueOf(i)})); } public int getId() { return getData(); } }<|fim_prefix|>// repo: khanhduytran0/ExagearAndroidX11Server path: /app/src/main/java/com/eltechs/axs/proto/inpu...
code_fim
easy
{ "lang": "java", "repo": "khanhduytran0/ExagearAndroidX11Server", "path": "/app/src/main/java/com/eltechs/axs/proto/input/errors/BadCursor.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>public interface AuthRepository extends MongoRepository<AuthDAO, String> { @Query("{token:'?0'}") AuthDAO findAuthByToken(String token); }<|fim_prefix|>// repo: ingaudio/brooklyn path: /event-commons/event-core/src/main/java/org/opsart/event/core/repo/AuthRepository.java package org.opsart.event.cor...
code_fim
medium
{ "lang": "java", "repo": "ingaudio/brooklyn", "path": "/event-commons/event-core/src/main/java/org/opsart/event/core/repo/AuthRepository.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>at="group in controls"><div class="block {{block.block}}" ng-repeat="block in group"><div class="control key-{{control.action}}" ng-click="calc(control.action)" ng-repeat="control in block.controls"><span ng-bind-html="control.label"></span></div></div></div></div></div></div>',link:function(scope,element...
code_fim
hard
{ "lang": "javascript", "repo": "jasesmith/feckless-cipher", "path": "/js/directives/calculator.min.js", "mode": "spm", "license": "Unlicense", "source": "the-stack-v2" }
<|fim_suffix|> const onSubmit = () => { if (submitDisabled) return; revertBranch(repo.id, refId.id, {type: "reset"}); setShow(false); }; return ( <> <ConfirmationModal show={show} onHide={onHide} msg="Are you sure you want to revert all uncommitted changes?" onCon...
code_fim
hard
{ "lang": "javascript", "repo": "Yashs911/lakeFS", "path": "/webui/src/components/ChangesPage.js", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>// Make sure to pipe `process.stdin` into your transform stream // and pipe your transform stream into `process.stdout`, like this: // process.stdin.pipe(tr).pipe(process.stdout); // To convert a buffer to a string, call `buffer.toString()`. const through = require('through2'); function write(buf...
code_fim
hard
{ "lang": "javascript", "repo": "curtisbridges/stream-adventure", "path": "/04-transform.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> //region = Uploader var _custom_media = true, _orig_send_attachment = wp.media.editor.send.attachment; $('.wpl-28-upload-btn').on('click', function (e) { var send_attachment_bkp = wp.media.editor.send.attachment; var button = jQuery(this...
code_fim
hard
{ "lang": "javascript", "repo": "mbiom/RealEstate-Plugin", "path": "/themes/wpl_twentyeight/assets/js/wp_backend.js", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> for(var i=0; i < newVersionArray.length; ++i){ $('label[for="'+ newVersionArray[i]+ '"]').after('<div class="wpl-28-config-it-new">New</div>'); } //Initialize WP Color Picker $('.my-color-field').wpColorPicker(); // Use bootstrap tab function ...
code_fim
hard
{ "lang": "javascript", "repo": "mbiom/RealEstate-Plugin", "path": "/themes/wpl_twentyeight/assets/js/wp_backend.js", "mode": "spm", "license": "BSD-3-Clause", "source": "the-stack-v2" }
<|fim_suffix|> var directive = { restrict: 'E', replace: true, templateUrl: 'modules/maps/client/views/partials/map-layers.html', scope: { project: '=', layers: '=' }, controller: 'controllerMap', controllerAs: 'mpl' }; return directive; }<|fim_prefix|>// repo: bcgov/mem-ad...
code_fim
hard
{ "lang": "javascript", "repo": "bcgov/mem-admin", "path": "/modules/maps/client/directives/maps.clients.directive.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: bcgov/mem-admin path: /modules/maps/client/directives/maps.clients.directive.js 'use strict'; angular.module('maps') .directive('tmplMap', directiveMap); <|fim_suffix|> var directive = { restrict: 'E', replace: true, templateUrl: 'modules/maps/client/views/partials/map-layers.h...
code_fim
hard
{ "lang": "javascript", "repo": "bcgov/mem-admin", "path": "/modules/maps/client/directives/maps.clients.directive.js", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> var directive = { restrict: 'E', replace: true, templateUrl: 'modules/maps/client/views/partials/map-layers.html', scope: { project: '=', layers: '=' }, controller: 'controllerMap', controllerAs: 'mpl' }; return directive; }<|fim_prefix|>// repo: bcgov/mem-a...
code_fim
hard
{ "lang": "javascript", "repo": "bcgov/mem-admin", "path": "/modules/maps/client/directives/maps.clients.directive.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|>['commands', 'aliases'].forEach(i => client[i] = new Collection()); ['commands', 'events'].forEach(i => require(`./handlers/${i}`)(client)); client.login(discordToken);<|fim_prefix|>// repo: heardyc/Moderation-Discord-Bot path: /index.js const { Client, Collection } = require('discord.js'); const { disc...
code_fim
easy
{ "lang": "javascript", "repo": "heardyc/Moderation-Discord-Bot", "path": "/index.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: heardyc/Moderation-Discord-Bot path: /index.js const { Client, Collection } = require('discord.js'); const { discordToken } = require('./config.json'); <|fim_suffix|>['commands', 'aliases'].forEach(i => client[i] = new Collection()); ['commands', 'events'].forEach(i => require(`./handlers/${i}`...
code_fim
easy
{ "lang": "javascript", "repo": "heardyc/Moderation-Discord-Bot", "path": "/index.js", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|>async function execute(args, opts) { args = simpleargs(args); const name = args._[0]; const address = args._[1]; config = getConfig(); console.log('address', address); config.instances[name] = address; configs.saveConfiguration(config); return address; }...
code_fim
medium
{ "lang": "javascript", "repo": "ajlopez/rskclitools", "path": "/lib/commands/setinstance.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: ajlopez/rskclitools path: /lib/commands/setinstance.js const rskapi = require('rskapi'); const configs = require('../config'); const simpleargs = require('simpleargs'); let config; function getConfig() { if (config) return config; config = configs.loadConfiguration(); ...
code_fim
medium
{ "lang": "javascript", "repo": "ajlopez/rskclitools", "path": "/lib/commands/setinstance.js", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> config = configs.loadConfiguration(); return config; } async function execute(args, opts) { args = simpleargs(args); const name = args._[0]; const address = args._[1]; config = getConfig(); console.log('address', address); config.instances[name] = address; ...
code_fim
medium
{ "lang": "javascript", "repo": "ajlopez/rskclitools", "path": "/lib/commands/setinstance.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|>radient", "a03500.html#acd97366027e87528d3736bc7ad748485", null ], [ "gradientAtZero", "a03500.html#adf7805724675eff5b71ddf6bde6e599b", null ], [ "logDeterminant", "a03500.html#a7370eafc6174975fe9ca36782c1b2040", null ], [ "marginalCovariance", "a03500.html#a5804f0735805b572ee335113a245d9e5", ...
code_fim
hard
{ "lang": "javascript", "repo": "gchenfc/gtsam.org-1", "path": "/doxygen/a03500.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> app.get('/api/users', function (req, res) { // use mongoose to get all todos in the database getUsers(res); }); app.get('/api/wishes', function (req, res) { // use mongoose to get all todos in the database getWishes(res); }); // create todo...
code_fim
hard
{ "lang": "javascript", "repo": "BotaoZou/CloudComputation", "path": "/Cloud-Native-Workloads-on-LinuxONE/files/mean-docker/express-server/app/routes.js", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>setTimeout(function () { runContentfulExport(usageParams) .catch(function (err) { log.error('Failed with\n', err) process.exit(1) }) }, 3000)<|fim_prefix|>// repo: geco82/contentful-export path: /bin/contentful-export #!/usr/bin/env node var log = require('npmlog') var runContentfulExport =...
code_fim
medium
{ "lang": "javascript", "repo": "geco82/contentful-export", "path": "/bin/contentful-export", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: geco82/contentful-export path: /bin/contentful-export #!/usr/bin/env node var log = require('npmlog') var runContentfulExport = require('../dist/index') var usageParams = require('../dist/usageParams') <|fim_suffix|>setTimeout(function () { runContentfulExport(usageParams) .catch(function (...
code_fim
medium
{ "lang": "javascript", "repo": "geco82/contentful-export", "path": "/bin/contentful-export", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: dagariya2/react-crypt-gsm path: /example/example.js const reactCryptGsm = require("./../lib/index.js") //For live : r<|fim_suffix|>pt("sample text"); const decryptedText = reactCryptGsm.decrypt(encryptedText); console.log(encryptedText); console.log(decryptedText);<|fim_middle|>equire("react-c...
code_fim
medium
{ "lang": "javascript", "repo": "dagariya2/react-crypt-gsm", "path": "/example/example.js", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|>yptedText); console.log(encryptedText); console.log(decryptedText);<|fim_prefix|>// repo: dagariya2/react-crypt-gsm path: /example/example.js const reactCryptGsm = require("./../lib/index.js") //For live : r<|fim_middle|>equire("react-crypt-gsm") const encryptedText = reactCryptGsm.encrypt("sample text...
code_fim
medium
{ "lang": "javascript", "repo": "dagariya2/react-crypt-gsm", "path": "/example/example.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> error.requested = requested; throw error; } this.walk(0); return this; } /** * Check the remaining bytes with bufferVisitor.mustHas method and then walk. * @param steps steps to consume. * @param message message to throw. */ must...
code_fim
hard
{ "lang": "javascript", "repo": "haozhao10/DAFML", "path": "/APP/Backup/Nov11/fabric/chaincode/BlockLearn/javascript/node_modules/@fidm/asn1/build/common.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: haozhao10/DAFML path: /APP/Backup/Nov11/fabric/chaincode/BlockLearn/javascript/node_modules/@fidm/asn1/build/common.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); // **Github:** https://github.com/fidm/x509 // // **License:** MIT /** * BufferVisitor is a visit t...
code_fim
hard
{ "lang": "javascript", "repo": "haozhao10/DAFML", "path": "/APP/Backup/Nov11/fabric/chaincode/BlockLearn/javascript/node_modules/@fidm/asn1/build/common.js", "mode": "psm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> return this; } /** * The buffer should have remaining the "steps" of bytes to consume, * otherwise it will throw an error with given message. * @param steps steps to consume. * @param message message to throw. */ mustHas(steps, message = 'Too few bytes to parse....
code_fim
hard
{ "lang": "javascript", "repo": "haozhao10/DAFML", "path": "/APP/Backup/Nov11/fabric/chaincode/BlockLearn/javascript/node_modules/@fidm/asn1/build/common.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> var choices = this.props.choices; for (var i = 0; i < choices.length; i++) { var weaponAndRangeAndTokens = choices[i]; var rangeToDefendersArray = weaponAndRangeAndTokens.rangeToDefenders; for (var j = 0; j < rangeToDefendersArray.length; j...
code_fim
hard
{ "lang": "javascript", "repo": "jmthompson2015/vizzini", "path": "/game/starfightersquadrons/src/main/js/process/ui/WeaponAndDefenderChooser.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> selectionChanged: function(event) { LOGGER.debug("selectionChanged()"); var weaponName = event.currentTarget.dataset.weaponName; var defenderId = event.currentTarget.dataset.defenderId; LOGGER.debug("weaponName = " + weaponName + " defenderId = " + defenderI...
code_fim
hard
{ "lang": "javascript", "repo": "jmthompson2015/vizzini", "path": "/game/starfightersquadrons/src/main/js/process/ui/WeaponAndDefenderChooser.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|>sName={`open-iconic open-iconic-bar-chart-icon ${props.className}`} > <path d="M0 0v7h8V6H1V0H0zm5 0v5h2V0H5zM2 2v3h2V2H2z" /> </svg> ); }<|fim_prefix|>// repo: JKD22/profile path: /client/node_modules/react-open-iconic-svg/lib/BarChartIcon.js import React from "react"; export default fun...
code_fim
medium
{ "lang": "javascript", "repo": "JKD22/profile", "path": "/client/node_modules/react-open-iconic-svg/lib/BarChartIcon.js", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }