blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
46e5affa680c2833075c70e0956b9914e2f798ce
8c4cd2a8725f8f04e5b2fee3bc8f67fb7b4af446
/benchmarks/benchmark_dual_dmp.py
9369f7b297cea7f2ea2c075f8b349b3127e99a0d
[ "BSD-3-Clause" ]
permissive
dfki-ric/movement_primitives
37c08aade84f5abc4248b7281e6a1c441cf642a9
327b192608747e20e555f59671903854045c4713
refs/heads/main
2023-07-20T07:57:52.938054
2023-05-22T13:10:47
2023-05-22T13:10:47
429,049,411
97
29
NOASSERTION
2023-07-18T08:58:30
2021-11-17T13:06:49
Python
UTF-8
Python
false
false
881
py
from functools import partial import numpy as np from movement_primitives.dmp import DualCartesianDMP import timeit start_y = np.array([0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0]) goal_y = np.array([1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0]) dt = 0.01 int_dt = 0....
[ "afabisch@googlemail.com" ]
afabisch@googlemail.com
69dcf77fe8c8f4bf7999ba12fd6efc072ff19e6a
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/servicecatalog_read/provisioned-product-output_get.py
01fe1a4ce4eb011dd07c8fc189e38f995cc52cf0
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import read_no_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/servicecatalog/get-provisioned-product-outputs.htm...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
c934f71b537bf189c6aefbe18b994545c9942e1c
04401ec5768d909ef95b3021dd39d280cdac7356
/flags/flags2_common.py
5a073a5e08ad15b91c298578cf78dbcec4edf52c
[ "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
pythonfluente/concorrencia2020
82f826fbcfc36c41cda251cbeaf370a6822b3cdf
62b1f506fd69b77b67a20aedf6b204f543912c82
refs/heads/master
2021-04-03T12:32:48.565498
2020-12-20T01:03:20
2020-12-20T01:03:20
248,353,395
7
7
BSD-3-Clause
2020-04-21T14:28:29
2020-03-18T22:06:21
Python
UTF-8
Python
false
false
5,097
py
"""Utilities for second set of flag examples. """ import os import time import sys import string import argparse from collections import namedtuple from enum import Enum Result = namedtuple('Result', 'status data') HTTPStatus = Enum('Status', 'ok not_found error') POP20_CC = ('CN IN US ID BR PK NG BD RU JP ' ...
[ "luciano@ramalho.org" ]
luciano@ramalho.org
1dc8801b64037a4f969242a0a4870dc67f6ad153
e43f0e33bc07f9c8866dd7db88c80576e5d3d9c3
/tests/parsers_umls_test.py
d55f67cd98b4b5d8af0fb0904f95307780051333
[]
no_license
bearnd/mt-ingester
ef5fc47d57d4bade7ce76f303425f861f74c00d8
cc4503b715d862af0ec82fdea666386e9265e56e
refs/heads/master
2023-03-08T10:54:22.682969
2019-09-14T13:45:26
2019-09-14T13:45:26
338,612,426
0
0
null
null
null
null
UTF-8
Python
false
false
6,301
py
# coding=utf-8 import os import unittest from mt_ingester.parsers import ParserUmlsSat from mt_ingester.parsers import ParserUmlsConso from mt_ingester.parsers import ParserUmlsDef from tests.assets.samples_umls import get_sample_file from tests.assets.samples_umls import EnumUmlsFileSample class ParserUmlsSatTest...
[ "somada141@gmail.com" ]
somada141@gmail.com
2ae2bdf8815a466c8b0684f4c105ab6bdd9fe01d
190d03cf370844548b9e8c89952dfbaec4d0c5c8
/p622.py
ca9b0956d3c39375b432f18dfc33e341c309628f
[]
no_license
alainlou/leetcode
446d101a9fd2f9eaa2229252e5909e7df36b4a74
fe500bcb067be59aa048259e3860e9da6f98344d
refs/heads/master
2022-10-16T12:20:44.726963
2022-09-18T15:29:05
2022-09-18T15:29:05
178,775,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
class MyCircularQueue: def __init__(self, k: int): self.k = k self.arr = [None]*k self.front = 0 self.rear = 0 def enQueue(self, value: int) -> bool: if self.isFull(): return False else: if self.isEmpty(): self.arr[self.re...
[ "az2lou@uwaterloo.ca" ]
az2lou@uwaterloo.ca
a3157751b8c0617b6c1de79a6d8a459cd0630e40
241b3cef3f7146ca332b45a8e3d4005a9e93d024
/kestrel/plugins/kestrel_tasks.py
0f84c537dcba24810ff5e77e0a22b82406883da7
[ "Apache-2.0" ]
permissive
joelimome/Kestrel
c5ec380ec0395df3213e63cd7389f68551350b62
199075569e57d72676512a4eaf64e82c21248460
refs/heads/master
2021-01-18T06:44:00.105322
2010-10-11T14:35:11
2010-10-11T14:35:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,690
py
# Kestrel: An XMPP-based Job Scheduler # Author: Lance Stout <lancestout@gmail.com> # # Credits: Nathan Fritz <fritzy@netflint.net> # # Copyright 2010 Lance Stout # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
[ "lancestout@gmail.com" ]
lancestout@gmail.com
09c98f2636180514e61419c174e02ce50a07fb96
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/oxf7b7vroXvWBJ9Nq_18.py
c91857e0445c9860163566659cc778edc4feb4b3
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
import re ​ def discount(n, txt): if not len(txt): return n discounts = sorted(txt.split(", "), key=lambda x: x[-1]) for d in discounts: if d[-1] == "%": n -= float(d[:-1])/100*n else: n -= float(d) sol = "{:.2f}".format(n) return int(sol[:-3]) if sol[-3:] ==...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7432e39a052baa01c42ba905cda58827685faba5
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptdiagp/porttestsetbt.py
3ad8df35a3b2c025a8b87153e3ac3134883bd056
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
6,214
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
a8b518462a18be00cb11ef084cc3170c03798e9e
9e19b20d5a63d6e7693ad85eba37c8d1d1507192
/Python/441_Arranging Coins.py
68b8ab9baf05220ed1854c4304608a9507247475
[]
no_license
Eddie02582/Leetcode
eacbfdfa0075c16ee7b3eb297c116fe42e7c8550
b5c25f976866eefec33b96c638a4c5e127319e74
refs/heads/master
2022-10-22T20:51:06.739926
2022-10-17T07:43:38
2022-10-17T07:43:38
189,950,613
1
0
null
null
null
null
UTF-8
Python
false
false
893
py
''' You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number of full staircase rows that can be formed. n is a non-negative integer and fits within the range of a 32-bit signed integer. Example 1: n = 5 The coins ...
[ "38853252+Eddie02582@users.noreply.github.com" ]
38853252+Eddie02582@users.noreply.github.com
8e862dda517f499add536302544e6aafb9fae6e4
7ad0808c8e3f77b1de5e9d3148941dc1404d3432
/modules/core/system/queue_controller.py
e0f42bae7333d641ea4967a8dc9be090500c4148
[]
no_license
Budabot/Tyrbot
addadfb6d265d371d5bbef1195a41d53736bf5dc
bf04a5180dac129f56b6d2231ab26070d8b6d2cc
refs/heads/master
2023-08-04T10:44:29.861252
2023-07-26T15:02:54
2023-07-26T15:02:54
120,727,804
27
38
null
2023-08-15T18:43:24
2018-02-08T07:40:12
Python
UTF-8
Python
false
false
1,314
py
from core.command_param_types import Const, Any from core.decorators import instance, command @instance() class QueueController: def inject(self, registry): self.bot = registry.get_instance("bot") self.command_alias_service = registry.get_instance("command_alias_service") self.command_serv...
[ "email1@jkbff.com" ]
email1@jkbff.com
093e614f902f69b5827e4236c41809ee21e3d461
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/modules/test_global_batch_gather.py
3653c7d5bb759c2d7bdae6249247d70c87908203
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
2,335
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
[ "noreply@github.com" ]
Oneflow-Inc.noreply@github.com
7411091b34332232c549ad28678e225515310812
7d90d2ce27c6ee0af74391b09909edbd45fdc2f0
/renix_py_api/api_gen/ResultView_Autogen.py
016622ef5e523d60fed961c68f0489c4b254c5cc
[]
no_license
gaoxingyu-hub/54testframework-master-e284
d7ea0d4a715b65c8652430e963a86b9522a7237a
57dd2197e7d91b8ad8fb2bd0e3503f10afa08544
refs/heads/master
2023-04-30T05:50:41.542402
2021-05-28T09:19:37
2021-05-28T09:19:37
309,922,838
0
0
null
null
null
null
UTF-8
Python
false
false
2,180
py
""" Auto-generated File Create Time: 2019-12-27 02:33:25 """ from .ROMEnum_Autogen import * from renix_py_api.renix_common_api import * from renix_py_api import rom_manager from .ROMObject_Autogen import ROMObject @rom_manager.rom class ResultView(ROMObject): def __init__(self, ViewName=None, DataClassName=None,...
[ "gaoxingyu@example.com" ]
gaoxingyu@example.com
f11af8e0e76f04055392f05a6934c6acb8dbaa2d
1c29f2609b0cb9a72972fb94e630ed8335b5e4e4
/scripts/CreateAndCleanupMarkerGraph.py
8dc351afb0b541ceef2db839c9f6120ead0bba6c
[ "MIT", "Zlib", "LicenseRef-scancode-public-domain" ]
permissive
tw7649116/shasta
4bef2b878bca0adcb003902c619ab3f388b13498
8612d46fd3de5ed51d19f05c4d811b5736d516ad
refs/heads/master
2020-04-28T02:44:06.973416
2019-03-06T19:35:49
2019-03-06T19:35:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
#!/usr/bin/python3 import shasta import GetConfig import sys # Read the config file. config = GetConfig.getConfig() # Initialize the assembler and access what we need. a = shasta.Assembler() a.accessReadsReadOnly() a.accessKmers() a.accessMarkers() a.accessAlignmentData() a.accessReadGraph() a.accessChimericReadsFla...
[ "paoloczi@users.noreply.github.com" ]
paoloczi@users.noreply.github.com
1c934fe5e03fbd7d00b58d1b16e4a2d2a0a5c435
aca253ff1a97c96a1a0a9a5802aa623789662bb1
/p030/dialog_demo.py
e568b7f233a493e3aef167358b74b2a0a0b09abf
[]
no_license
KD-huhu/PyQt5
a6128a34b93f6e2da7216d5818f66dc9614216bc
1c33a6549c2fcf663168256553d8c24e25d9a69c
refs/heads/master
2022-07-03T07:37:29.837547
2020-05-17T14:54:39
2020-05-17T14:54:39
261,768,854
0
1
null
null
null
null
UTF-8
Python
false
false
1,136
py
import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QDialogDemo(QMainWindow): def __init__(self): super(QDialogDemo,self).__init__() self.initUI() def initUI(self): self.setWindowTitle('QDialog案例') self.resize(300,20...
[ "noreply@github.com" ]
KD-huhu.noreply@github.com
2c40f53838408287189e489b19df5fc1ec20aa1a
8b675ca56bae3a1b622eff991f8786963712d12f
/a301/__init__.py
e85022d2ce213a276ce0bce421a914b1172f3500
[ "MIT" ]
permissive
KayhanB21/a301_code
b4dd7d8bdb2a4170211965abee707f48da4cbb23
4237b4e538bd999f5ac1b20f6b25b4c4e03bb09c
refs/heads/master
2021-09-23T14:39:14.333193
2018-09-24T19:44:50
2018-09-24T19:44:50
150,385,043
1
0
null
null
null
null
UTF-8
Python
false
false
633
py
from pathlib import Path # # open the VERSION file and read it into a301.__version__ # https://github.com/pypa/setuptools/issues/1316 # __version_file__=Path(__file__).parent / Path('VERSION') # # if __version_file__ doesn't exist, try to create it and # write 'no_version', if that doesn't work (no write permission),...
[ "paustin@eos.ubc.ca" ]
paustin@eos.ubc.ca
9545e13460cfa481d9ae30dc5b02b4f93977fc49
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/03_model_fitting/merraRF882/61-tideGauge.py
e49c8cf3e8885cfd243aea28ac1f410de445d6df
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
7,454
py
# -*- coding: utf-8 -*- """ Created on Mon May 4 15:51:30 2020 This program is designed to validate a Random Forest model by using the KFOLD method @author: Michael Tadesse """ #import packages import os import glob import numpy as np import pandas as pd from sklearn import metrics from scipy import stats import se...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
0de82ef4d599b7fcb1e8c91a95fdb1238c215f5d
a5a4cee972e487512275c34f308251e6cc38c2fa
/examples/Ni__eam__born_exp_fs__postprocessing/Reduced_TSNE_qoi_in_param/configuration/configure_final_plot.py
bb505c0bb91236afab1d0c898c0312a5a119c4d8
[ "MIT" ]
permissive
eragasa/pypospack
4f54983b33dcd2dce5b602bc243ea8ef22fee86b
21cdecaf3b05c87acc532d992be2c04d85bfbc22
refs/heads/master
2021-06-16T09:24:11.633693
2019-12-06T16:54:02
2019-12-06T16:54:02
99,282,824
4
1
null
null
null
null
UTF-8
Python
false
false
1,007
py
from collections import OrderedDict from pypospack.pyposmat.data.pipeline import PyposmatPipeline pipeline_configuration = OrderedDict() # define first segment (plotting) pipeline_configuration[0] = OrderedDict() pipeline_configuration[0]['segment_type'] = 'plot' pipeline_configuration[0]['function_calls'] = Ordered...
[ "seatonullberg@gmail.com" ]
seatonullberg@gmail.com
a25199bba01db10b42a11ff3f9af31b72b291e1c
ed538eba0bb81713d8353dea5baafd038913d52c
/photos/urls.py
af4fb96be4ef12b78a66dbe5fbb0f4a0609e76be
[]
no_license
Ansagan-Kabdolla/photo_site
78cf738ff948cbf7d2207bff6166dcbe44679e1e
19228dc3abeab9cc301962c970b15fcf040e2577
refs/heads/master
2022-06-04T20:06:07.798864
2020-05-02T20:05:28
2020-05-02T20:05:28
260,765,175
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
from django.urls import path from .views import * from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', index), path('subservices/<int:pk>', subservice_example, name = 'subservices') ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
[ "ansagankabdolla4@gmail.com" ]
ansagankabdolla4@gmail.com
5820dfd31c14197589ff85b20ee3c09ef20a8d93
434d5256fa47c6bec0e5d79917f2d09b52490fa0
/tests/pypint/plugins_tests/implicit_solvers_tests/__init__.py
540bd2c49fa5e3540bed00c4ec8613618cf57d42
[]
no_license
Parallel-in-Time/PyPinT
2d0a54d21a6b50863c6acef69eb9a86d3bcc7fcf
90aed34cf43d633e44f56444f6c5d4fa39619663
refs/heads/master
2016-08-03T18:58:05.269042
2014-06-10T08:27:30
2014-06-10T08:32:45
19,447,961
0
2
null
2014-06-02T14:26:08
2014-05-05T07:39:20
Python
UTF-8
Python
false
false
168
py
# coding=utf-8 import unittest class ImplicitSolversTests(unittest.TestSuite): def __init__(self): pass if __name__ == "__main__": unittest.main()
[ "t.klatt@fz-juelich.de" ]
t.klatt@fz-juelich.de
0d7ef97c64cbb51cb2f664c2765cc5b6d54098a1
09aee268ce72d282f53fe94f42478e2b3b48127d
/CBVProject_3/manage.py
ba051715cec14ce97e5ac0aec7233658f5f881dd
[]
no_license
keshava519/Django_Projects
c95d0f8c55d4cc946291be6fb058b7298aefe596
99584892b9d9ec6b6395a382c684b4d036d07874
refs/heads/main
2023-02-23T03:44:32.110742
2021-01-27T15:15:13
2021-01-27T15:15:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CBVProject_3.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that...
[ "keshava.cadcam@gmail.com" ]
keshava.cadcam@gmail.com
8064c42bc3d64fe11d2c1fd47af31b2a447da64d
02b73216f3970a981dc4bb8eea67f876edc8797f
/funcs.py
fe84dcb18d1b1a6db59299839394a4877e94586a
[]
no_license
Coul33t/LinkReader
b44eff04a8979af3884e70ccbe165ee9d8e7ae8c
7396fc8888eec7182783f5cb08e338dbac314637
refs/heads/master
2020-04-19T14:49:18.764694
2019-02-01T00:10:20
2019-02-01T00:10:20
168,254,995
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
import csv import random as rn import pdb from constants import VIDEO_LIST class LinkReader: def __init__(self): self.links = [] def has_links(self): return len(self.links) def import_links(self, csv_file): with open(csv_file, newline='') as csvfile: contents = csv.rea...
[ "Coulis1990@gmail.com" ]
Coulis1990@gmail.com
3480b284dcaed2749f6f58fa86e06e8053cb57ff
81fe7f2faea91785ee13cb0297ef9228d832be93
/HackerRank/Contests/RegularExpresso2.py
cb6b298b2549f14cd035b21bfb764ca316fc44b7
[]
no_license
blegloannec/CodeProblems
92349c36e1a35cfc1c48206943d9c2686ea526f8
77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e
refs/heads/master
2022-05-16T20:20:40.578760
2021-12-30T11:10:25
2022-04-22T08:11:07
54,330,243
5
1
null
null
null
null
UTF-8
Python
false
false
1,107
py
#!/usr/bin/env python import sys import re #Regex_Pattern = r'(te|b|a|t|r)$' #Regex_Pattern = r'^(A{1,3})?(a{1,3}A{1,3})*(a{1,3})?$' #Regex_Pattern = r'(.)\1\1.{,2}.{20}$|(.)\2\2.{,2}.{15}$|(.)\3\3.{,2}.{10}$|(.)\4\4.{,2}.{5}$|(.)\5\5.{,2}$|(.).{4}\6.{4}\6' #Regex_Pattern = r'10(11|00)*$' Regex_Pattern = r'(00|11...
[ "blg@gmx.com" ]
blg@gmx.com
a15d8a2d61f046759905ecfabae1a224bd13de50
527af27858f7cd937915268ea0dccb9c793bace8
/systemdlint/systemdlint/conf/knownMandatory.py
8dec79cd6f0a8f4ee1d98f46115daceb4ffb8000
[ "BSD-2-Clause" ]
permissive
priv-kweihmann/systemdlint
b382438564ff3cff73655da634d10903027f26c3
d9909d2e2d970599bb2015e2a667d4debf063384
refs/heads/master
2023-04-12T20:26:42.106601
2021-12-21T09:51:24
2021-12-21T09:51:24
182,244,386
21
2
BSD-2-Clause
2020-10-23T18:17:24
2019-04-19T10:01:24
Python
UTF-8
Python
false
false
291
py
KNOWN_MANDATORY = { "Unit": ["Description"], "Address": ["Address"], "BridgeFDB": ["MACAddress"], "Mount": ["What", "Where"], "NetDev": ["Name"], "L2TPSession": ["Name"], "Peer": ["Name"], "IPv6AddressLabel": ["Label", "Prefix"], "NextHop": ["Gateway"] }
[ "kweihmann@outlook.com" ]
kweihmann@outlook.com
b7356056640093a86575c5fbc52bb527a04ea613
bf3c0b0b2f5eed28043caa155f001bb656ed41a5
/softboxen/client/resources/box/credentials.py
e70600381da6f261e27f63e660f92cde040fad0f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
etingof/softboxen
0787a004f13d7f3d19f4cbf090e55bc229b8470a
2a7ba85669d563de9824e3962bd48a0849482e3f
refs/heads/master
2023-03-27T16:56:14.460474
2020-04-18T12:30:11
2020-04-18T12:30:11
239,087,167
3
1
BSD-2-Clause
2020-06-26T06:50:37
2020-02-08T07:29:53
Python
UTF-8
Python
false
false
624
py
# # This file is part of softboxen software. # # Copyright (c) 2020, Ilya Etingof <etingof@gmail.com> # License: https://github.com/etingof/softboxen/LICENSE.rst # import logging from softboxen.client.resources import base LOG = logging.getLogger(__name__) class Credentials(base.Resource): """Represent user cr...
[ "etingof@gmail.com" ]
etingof@gmail.com
3be2027bbed138e20adad4a399187c7b472f9d7d
da280a226bbf15d7243410c0d3930bdca00d0088
/ex39.py
cf0099096111e4cca29e493f9986359bfb0cb6c5
[]
no_license
c4collins/PyTHWay
174cae57c73431ce5bfc90a361613c5db5c846d7
135b4b908ef2698084ee1b3fb9f1e5550c3c8843
refs/heads/master
2021-01-10T18:29:43.998528
2012-11-03T22:53:17
2012-11-03T22:53:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
ten_things = "Apples Oranges Crows Telephone Light Sugar" print "Wait there's not 10 things in that list, let's fix that." stuff = ten_things.split(' ') more_stuff = ["Day", "Night", "Song", "Frisbee", "Corn", "Banana", "Girl", "Boy"] while len(stuff) != 10: next_one = more_stuff.pop() print "Adding: ", next_...
[ "connor.collins@gmail.com" ]
connor.collins@gmail.com
3f723df5d615220111afdd7537c425100cc9e621
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python/LC_765.py
022d0738c948efc1eee48d7400433fe08f690773
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
3,098
py
""" https://leetcode.com/problems/couples-holding-hands/discuss/535314/Python-DFS-solution-with-detailed-explanation https://leetcode.com/problems/couples-holding-hands/discuss/822501/Python-99-DFS-SCC 下面我们来看一种使用联合查找Union Find的解法。该解法对于处理群组问题时非常有效,比如岛屿数量有关的题就经常使用UF解法。核心思想是用一个root数组,每个点开始初始化为不同的值,如果两个点属于相同的组,就将其中一个点的roo...
[ "taocheng984@gmail.com" ]
taocheng984@gmail.com
247b93c47254775bb6f5dca6bdf3424e935aedbb
14e2732db8f51176cc6394b4967868dd41b0ea97
/src/inout/modelica/InitModelOMC.py
91d3555d781d92aacbef5ab4a42e08efab7dd070
[]
no_license
fran-jo/EngineSSE
0c29db6db71499425738b22bb617f95e606f5b2e
0878947aefb68f5e13d2cefd2dee2ef5e293f4d8
refs/heads/master
2020-03-23T21:02:40.605127
2018-07-23T23:11:42
2018-07-23T23:11:42
142,077,897
1
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
''' Created on 11 apr 2014 @author: fragom ''' class InitModelOMC(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' def loadFile(self, _path, _model): strcommand = [] strcommand.append('loadFile(') strcommand.append('"') ...
[ "fran_jo@hotmail.com" ]
fran_jo@hotmail.com
d333c66003907d386f6eee513acacbc200c7de8f
70e047d748d503362cabc0f3ba50f3e103110ff4
/element/migrations/0002_element_kode_element.py
0de0334f2d46aeeaf317a647b8acefa1bc8f682a
[]
no_license
gofur/AHS
621e7982df7c4fbd150e9427b7b408e122a38b07
b59cba9d29e4ef5e20bf2091a646cd7ec79c3c6f
refs/heads/master
2021-01-10T10:47:20.159642
2016-02-06T12:26:59
2016-02-06T12:26:59
49,955,489
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-20 23:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('element', '0001_initial'), ] operations = [ migrations.AddField( m...
[ "you@example.com" ]
you@example.com
7cfd21c143ab586aefa2bbe9b4d2f2e0ffe3b867
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/FWh2fGH7aRWALMf3o_12.py
3ed8ee73f8657d5d9d71f3bacedbcaa8f51841d0
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
""" Create a function that takes a string (without spaces) and a word list, cleaves the string into words based on the list, and returns the correctly spaced version of the string (a sentence). If a section of the string is encountered that can't be found on the word list, return `"Cleaving stalled: Word not found"`...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fa48c0659171b8c9d8df62405784ad41278d721c
70d4ef0863906b3ca64f986075cd35b8412b871e
/pipeline/contrib/statistics/migrations/0010_auto_20190304_1747.py
16379222282ca52e23b319f90809bcf33b6776f6
[ "MIT", "BSD-3-Clause", "BSL-1.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
selinagyan/bk-sops
72db0ac33d9c307f51769e4baa181ceb8e1b279e
39e63e66416f688e6a3641ea8e975d414ece6b04
refs/heads/master
2020-05-07T16:44:33.312442
2019-04-11T02:09:25
2019-04-11T02:09:25
180,696,241
0
0
null
2019-04-11T02:07:11
2019-04-11T02:07:10
null
UTF-8
Python
false
false
2,783
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ "pagezhou@tencent.com" ]
pagezhou@tencent.com
fa284fc48436ccf4f4208b3acd8ddd6f678c9cb3
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/ml/speech/recognize.py
c88df1addbeabd4903e6f394417536ac17cee4ab
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
4,369
py
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
57f7e7a98efc2ba19453ca164616ca915aa1d1b1
f66a33f8cdd8286320da730be67c89ee00d83d8d
/ext/libelf/SConscript
535e216ddf1152e87d570cb4615bde289b7d97d3
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
H2020-COSSIM/cgem5
0d5812632757e6146f7852c9bf4abe4e9628296a
1222cc0c5618875e048f288e998187c236508a64
refs/heads/main
2023-05-13T14:08:01.665322
2023-05-08T08:39:50
2023-05-08T08:39:50
468,039,890
3
2
BSD-3-Clause
2022-10-12T14:29:33
2022-03-09T18:05:40
C++
UTF-8
Python
false
false
5,084
# -*- mode:python -*- # Copyright (c) 2004-2005 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above co...
[ "ntampouratzis@isc.tuc.gr" ]
ntampouratzis@isc.tuc.gr
f091fda178c17b28a06ec0aab0bf657492ab6016
0556754cd4765d05a1d831c48933c5f299bb095d
/Dec-18-2020/ThreadByExtending.py
12369dbbe3bf5dd33bbdee68914a580058d7eefa
[]
no_license
rohitbhatghare/python
4fa5e5883743023ced841892a13a9798b7686f39
248d265e02ecbc1270a87081af26537eb401e535
refs/heads/main
2023-02-03T04:32:15.716805
2020-12-21T11:33:27
2020-12-21T11:33:27
302,831,244
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from threading import * class Mythread(Thread): def run(self): for i in range(10): print("child class-1") t = Mythread() t.start() for i in range(10): print("main thread-1")
[ "noreply@github.com" ]
rohitbhatghare.noreply@github.com
2e78bcd54c647bec3744feb1502e4fef91bc5733
84de9423c003e22631a549dd767f7f88006f73d5
/tests/tools/profile/runtest.py
3c664934c55eae96aa200b0add25463fb790bb5a
[ "Apache-2.0" ]
permissive
Go0zx/NyuziProcessor
7c23cdad06cff0e0d6f77264e54b1fa826231e91
35264d91dafbf0455e551e3e1f3cd1a0f429c991
refs/heads/master
2020-08-07T20:51:04.594123
2019-10-05T13:07:29
2019-10-05T15:27:20
213,583,543
1
0
Apache-2.0
2019-10-08T08:04:20
2019-10-08T08:04:19
null
UTF-8
Python
false
false
2,386
py
#!/usr/bin/env python3 # # Copyright 2017 Jeff Bush # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "jeffbush001@gmail.com" ]
jeffbush001@gmail.com
88096a5c9910e54d7fb1b3d7865008e8ba9acb34
696799b824503429a3ac65ebdc28890bfbcaebe0
/plugins/com.astra.ses.spell.gui.cots_4.0.2.201806070922/win32/spell/spell/lib/dummy/config.py
bde2e0f7b4c61e25d9d920099ca1f2b5a02f09a6
[]
no_license
CalypsoCubesat/SPELL_GUI_4.0.2_win32_x86
a176886b48873b090ab270c189113a8b2c261a06
9275ecfff2195ca4d4c297f894d80c1bcfa609e3
refs/heads/master
2021-08-03T08:04:25.821703
2019-10-28T04:53:50
2019-10-28T04:53:50
217,968,357
0
0
null
2021-08-02T17:03:44
2019-10-28T04:50:59
Python
UTF-8
Python
false
false
3,382
py
############################################################################### """ (c) SES-ASTRA 2008 PACKAGE spell.lib.adapter.config FILE config.py DESCRIPTION Setup environment for correct core driver instantiation COPYRIGHT This software is the copyrighted work of SES ASTRA S.A. A...
[ "matthew.travis@aresinstitute.org" ]
matthew.travis@aresinstitute.org
09431e04feee5173a0495644128709b76257ecd9
9eec7de3670cb6a53dd2e1ac16891eed45cc796e
/xhose/urls.py
1405be00d3dccdc6388acd60de4e74ae99adcfac
[]
no_license
rudiq4/landing-page
e7c891c9d4220b74cb88b9e86e341f0faf05627d
f4ab2eb4d80620b6fbaec3d04c79c23949375bd4
refs/heads/master
2020-03-24T20:56:12.380552
2018-07-31T11:11:35
2018-07-31T11:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from django.conf.urls import url from xhose import views app_name = 'xhose' urlpatterns = [ url(r'^xhose/', views.xhose, name='xhose'), # url(r'^contacts/$', views.contacts, name='contacts'), ]
[ "rudikvovan@gmail.com" ]
rudikvovan@gmail.com
62476c413ee5a0c5b0c4c85e0d4bb4c3eec16108
9f86b4a4e31affb497dcc500ea45a57589f2f533
/detectron2/layers/nms.py
e29435e77b9edca7f01da5e4627352c81bd2920a
[]
permissive
ishann/detectron2
a68ae39960dc2594dd971908176074ac5af8b1ba
a52fcd7f6d5ebd334508d59823dbda9f81f2cd0e
refs/heads/master
2020-08-10T05:58:21.115916
2019-12-09T01:16:00
2019-12-09T01:16:00
214,275,928
0
0
Apache-2.0
2019-10-10T20:08:02
2019-10-10T20:08:02
null
UTF-8
Python
false
false
6,572
py
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch from torchvision.ops import boxes as box_ops from torchvision.ops import nms # BC-compat def batched_nms(boxes, scores, idxs, iou_threshold): """ Same as torchvision.ops.boxes.batched_nms, but safer. ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
dc6e21c252793fe6e0b0f0a7c9640fbeb83c8bac
0cb6eb8a9dc9bdd4e3552040848cecec19d25798
/FaceRecognition/settings.py
2135266da38e065cd8395bcfab3e9c68efad056e
[]
no_license
mayank2498/Face_Detection
9c89e40a0b5359466c2c49e89a2fb6204ad0be20
fdcb98923d924312038356706c3830fe13bed3da
refs/heads/master
2021-08-31T13:09:52.876858
2017-12-21T11:32:33
2017-12-21T11:32:33
114,999,145
0
0
null
null
null
null
UTF-8
Python
false
false
3,182
py
""" Django settings for FaceRecognition project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
[ "mayankchaurasia.bsp@gmail.com" ]
mayankchaurasia.bsp@gmail.com
551a6c050f045f8fac9fa97a7f453cecde40f95d
559fe08f79c297783c404caf7eccee2a269932d4
/etl/parsers/etw/Intel_Thunderbolt_App.py
93acf723184612ce60fab955eed5a1b08887f46f
[ "Apache-2.0" ]
permissive
killvxk/etl-parser
9ba70f54120887f56950054f2cde6dc6c18e0973
76b7c046866ce0469cd129ee3f7bb3799b34e271
refs/heads/master
2022-11-23T03:35:47.127241
2020-07-23T08:55:50
2020-07-23T08:55:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,292
py
# -*- coding: utf-8 -*- """ Intel-Thunderbolt-App GUID : 8ef15e41-05bf-5bcd-4aa8-4f0559564dc0 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parsers...
[ "citronneur@gmail.com" ]
citronneur@gmail.com
9e94d260f3ad0d89442a785c6b2ebbacb48b40ab
363302c0dce6f72290f19be2bb0728d7b0bdb02d
/top_like_tags/migrations/0004_fixed_hashtag_sub_title.py
911da63f8ab79c32a12580e338a476a9d5f8420c
[]
no_license
linker10/totag
87e242734c9b586e66f76f4d99740bb1f175117c
274e70174387d9ad55ab27e16816dd54f6e71699
refs/heads/master
2022-12-06T13:56:23.641080
2020-09-04T15:49:24
2020-09-04T15:49:24
292,886,963
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
# Generated by Django 3.0.6 on 2020-05-31 09:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('top_like_tags', '0003_fixed_hashtag'), ] operations = [ migrations.AddField( model_name='fixed_hashtag', name='sub_t...
[ "bilalsharif4@gmail.com" ]
bilalsharif4@gmail.com
e4850aa7a18ba29d395c5eec5ec94ea8a09818a8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_transmigrated.py
297c6c5aac3496c8827de39a106d134d7b6404d3
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
#calss header class _TRANSMIGRATED(): def __init__(self,): self.name = "TRANSMIGRATED" self.definitions = transmigrate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['transmigrate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ce5db88c9ac44022408cf0d61d9a3509c38b239c
2be679906bfd8481fde463b0ceaf7d0d8a9c4775
/tests/test_session.py
79c986120cdf916f06ad273063bb1440caa118fa
[ "MIT" ]
permissive
dayjaby/libtmux
73b8b62e47ca18043dda55ac6cb0c7d1a389a060
47a8aeb7fa6919aae7e6c0303e7aece5e7679b21
refs/heads/master
2020-07-13T16:32:07.385953
2019-08-29T11:46:48
2019-08-29T11:46:48
205,115,334
0
0
MIT
2019-08-29T08:19:44
2019-08-29T08:19:44
null
UTF-8
Python
false
false
7,807
py
# -*- coding: utf-8 -*- """Test for tmuxp Session object.""" from __future__ import absolute_import, unicode_literals, with_statement import logging import pytest from libtmux import Pane, Session, Window, exc from libtmux.common import has_gte_version from libtmux.test import TEST_SESSION_PREFIX, namer logger = lo...
[ "tony@git-pull.com" ]
tony@git-pull.com
8946b5ae8d70fc3d519899293f2227a86275f898
1bebfe3d45f11f89014dc56d27306be7d5507c5c
/flavio/_parse_errors.py
fb894885b8a77c3f8e85e754f4bdca39680f082a
[ "MIT" ]
permissive
talismanbrandi/flavio
6ed628d9f4831c6d55ff56d587eaaca2633de3bb
9c8f2ce0fa68ea1a4733977557b4a602d590a0ea
refs/heads/master
2021-01-19T06:38:17.355774
2017-12-10T10:55:23
2017-12-10T10:55:23
87,472,967
0
0
null
2017-04-06T20:40:43
2017-04-06T20:40:43
null
UTF-8
Python
false
false
7,141
py
import re from flavio.statistics.probability import * # for strings of the form '< 5.3e-8 @ 95% CL' _pattern_upperlimit = re.compile(r"^\s*<\s*([-+]?\d+\.?\d*)([eE][-+]?\d+)?\s*@\s*(\d+\.?\d*)\s*\%\s*C[\.\s]*L[\.\s]*$") # for strings of the form '1.67(3)(5) 1e-3' _pattern_brackets = re.compile(r"^\s*\(?\s*(-?\d+\.?\d*...
[ "david.straub@tum.de" ]
david.straub@tum.de
fbb477b2257116e7ff83fc702ea8d7a4dc02cb65
10e4652d4e677b2ce89abd0729424dc92c562e19
/IPython/utils/pickleutil.py
dd1f733637513cf55c58d288c710bb60c5ff6d3b
[ "BSD-3-Clause" ]
permissive
appasche/ipython
18fd6619d19c96694747aa12f435c410bb5d8f4e
d538c7ac9dcee2e75ff5e670376ac4d3ad6715ee
refs/heads/master
2021-01-21T09:06:22.830942
2015-04-19T16:26:08
2015-04-19T16:26:08
34,225,707
1
0
null
2015-04-19T21:45:07
2015-04-19T21:45:07
null
UTF-8
Python
false
false
140
py
from warnings import warn warn("IPython.utils.pickleutil has moved to ipython_kernel.pickleutil") from ipython_kernel.pickleutil import *
[ "benjaminrk@gmail.com" ]
benjaminrk@gmail.com
90d17be586bf4e63e3a8346168cf2cd7cd9755b1
4a1b61cf551db7843050cc7080cec6fd60c4f8cc
/2020/백준문제/백트래킹/14889_스타트와 링크.py
0552b5ad7fa88ee91f4b003aaaa042dbd8d4f794
[]
no_license
phoenix9373/Algorithm
4551692027ca60e714437fd3b0c86462f635d8ff
c66fd70e14bb8357318e8b8f386d2e968f0c4d98
refs/heads/master
2023-08-24T10:01:20.798430
2021-10-15T07:57:36
2021-10-15T07:57:36
288,092,774
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
# N은 짝수, 두 팀으로 나눔. # 팀 나누는 방법은 조합? def comb(idx, sidx): if sidx == N // 2: global teams teams.append(sel.copy()) return for i in range(idx, N): sel[sidx] = i comb(i + 1, sidx + 1) N = int(input()) info = [list(map(int, input().split())) for _ in range(N)] teams = [] se...
[ "phoenix9373@naver.com" ]
phoenix9373@naver.com
e8d991ff30ab7eef92e081619c6febba3569da66
e7d65f8773a8c736fc9e41e843d7da6da5cc2e0b
/py3plex/algorithms/community_detection/node_ranking.py
af80dd4bd4e6a79a2245f1f1a4d8fd843735e838
[ "BSD-3-Clause" ]
permissive
hanbei969/Py3plex
768e86b16ca00044fcb4188e01edf32c332c8a2a
1ef3e0e6d468d24bd6e6aec3bd68f20b9d9686bb
refs/heads/master
2021-01-03T18:19:24.049457
2020-02-12T16:51:14
2020-02-12T16:51:14
240,188,307
1
0
BSD-3-Clause
2020-02-13T05:57:16
2020-02-13T05:57:16
null
UTF-8
Python
false
false
5,165
py
## node ranking algorithms import numpy as np import networkx as nx import scipy.sparse as sp #from networkx.algorithms.community.community_utils import is_partition from itertools import product # def stochastic_normalization(matrix): # matrix = matrix.tolil() # try: # matrix.setdiag(0) # except T...
[ "skrljblaz@gmail.com" ]
skrljblaz@gmail.com
7dd3f312d9609c7548451d48fd24fc7858972eb4
629034462af2e1fccaf7a47e4b9a5cbd789c90e7
/algorithm/graph-embedding/configs/base.py
e8868d62ac4da3f10266e620bbaf663f22f5b386
[]
no_license
zhouxh19/Grep-project
eb17c23650aada7a87aef550492ca4bcd8ef0657
40ee7d8dcc1e46db82582bf92b86f9a909db727c
refs/heads/master
2022-12-24T13:00:40.783457
2020-09-13T14:47:15
2020-09-13T14:47:15
284,244,936
0
1
null
null
null
null
UTF-8
Python
false
false
2,055
py
from pathlib import Path base_dir = Path().resolve() config = {} feature_num = 2 max_iteration = 8 max_test_iteration = 2 k = 3 db = 'tpch' workload_num = {'tpch': 20187, 'job': 3224, 'xuetangx': 22000} table_job = {'aka_name': [], 'aka_title': [], 'cast_info': [], 'char_name': [], 'comp_cast_type': [], 'company_n...
[ "zhouxuan19@mails.tsinghua.edu.cn" ]
zhouxuan19@mails.tsinghua.edu.cn
b59bb380bb991cabe3cefb26f89a8fa5c6f3da44
1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03
/ops/core/rdb_icpocm.py
972f5c82126e411356f275269175e3db0db53953
[]
no_license
yizhong120110/CPOS
a05858c84e04ce4aa48b3bfb43ee49264ffc5270
68ddf3df6d2cd731e6634b09d27aff4c22debd8e
refs/heads/master
2021-09-01T17:59:53.802095
2017-12-28T05:43:06
2017-12-28T05:43:06
106,247,188
0
0
null
null
null
null
UTF-8
Python
false
false
2,260
py
# -*- coding: utf-8 -*- """ 通讯进程参数信息查询 """ import ops.core.rdb def get_txxx( txjclx ): """ 通过进程信息表的jclx,获得通讯进程相关的参数 返回值: {'txwj': 'ops.ocm.short_tcp.jnfs_app', 'bm': 'jnfs_app'} """ txjdxx_dic = {} with connection() as db: sql = """ sele...
[ "yizhong120110@gmail.com" ]
yizhong120110@gmail.com
e569dbc4052364132ab074eaf6c3b2e70407822b
d644b6cabb4fa88cf900c59799a2897f5a0702d8
/tests/base_tests/multipolygon_tests/strategies.py
bd202eb0721c2b567aa55e8a3372cf4acb3b6804
[ "MIT" ]
permissive
lycantropos/gon
c3f89a754c60424c8e2609e441d7be85af985455
177bd0de37255462c60adcbfcdf76bfdc343a9c1
refs/heads/master
2023-07-06T01:11:57.028646
2023-06-26T20:47:14
2023-06-27T00:30:06
194,597,548
15
1
MIT
2023-06-27T00:30:07
2019-07-01T04:06:06
Python
UTF-8
Python
false
false
1,010
py
from tests.strategies import (coordinates_strategies, coordinates_to_multipolygons, coordinates_to_points, coordinates_to_polygons, invalid_multipolygons) from tests.utils import (cleave_in_tuples, ...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
df941af2e5b59c83931a8144e389f0875fe8898b
804a81e52d5fc7fd1078268a3a2976ca80a91880
/nengo/test/test_new_api.py
14494ef583ac2047ea4e4f779770ce9dca7474ec
[ "MIT" ]
permissive
jvitku/nengo
692bbc56717acf476cfb384b3cf0affa71135c40
484b9244a32ff1011a1292b24225752db75fc3b2
refs/heads/master
2020-12-25T05:42:34.936881
2013-07-10T16:50:38
2013-07-10T19:48:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,948
py
from pprint import pprint from unittest import TestCase from matplotlib import pyplot as plt import nose import numpy as np from nengo.nonlinear import LIF from nengo.model import Model def rmse(a, b): return np.sqrt(np.mean((a - b) ** 2)) class TestNewAPI(TestCase): show = False def test_direct_mode...
[ "tbekolay@gmail.com" ]
tbekolay@gmail.com
eae545f5af90d8c3c562142d45cf233bbe774293
2f4ae73c68637306c878a5234fc3b81950de8854
/tests/compiler/test_pre_parser.py
640bc673a35ff9c272b30198c186ce9e2bdc561d
[ "MIT" ]
permissive
ltfschoen/vyper
b121cf1f320f852b7997b0d54eaff5e68163e66e
f68af5730516011007e2546ff825b881e94f030f
refs/heads/master
2020-03-11T02:42:28.688320
2018-04-17T12:42:59
2018-04-17T12:42:59
129,726,567
0
0
MIT
2018-04-16T10:34:58
2018-04-16T10:34:57
null
UTF-8
Python
false
false
1,317
py
from vyper.exceptions import StructureException from pytest import raises def test_semicolon_prohibited(get_contract): code = """@public def test() -> int128: a: int128 = 1; b: int128 = 2 return a + b """ with raises(StructureException): get_contract(code) def test_valid_semicolons(get_...
[ "jacques@dilectum.co.za" ]
jacques@dilectum.co.za
1ca1632321aee4063fff9a55b986fe6e9ff62a8b
6bdb32ddbd72c4337dab12002ff05d6966538448
/gridpack_folder/mc_request/LHEProducer/Spin-2/BulkGraviton_hh_hVVhbb_inclusive/BulkGraviton_hh_hVVhbb_inclusive_narrow_M450_13TeV-madgraph_cff.py
03b465498d74fe0f6d139a62106502f6a31c8127
[]
no_license
cyrilbecot/DibosonBSMSignal_13TeV
71db480de274c893ba41453025d01bfafa19e340
d8e685c40b16cde68d25fef9af257c90bee635ba
refs/heads/master
2021-01-11T10:17:05.447035
2016-08-17T13:32:12
2016-08-17T13:32:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
import FWCore.ParameterSet.Config as cms # link to cards: # https://github.com/cms-sw/genproductions/tree/31b6e7510443b74e0f9aac870e4eb9ae30c19d65/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_hh_hVVhbb_inclusive/BulkGraviton_hh_hVVhbb_inclusive_narrow_M450 externalLHEProducer = cms.E...
[ "syu@cern.ch" ]
syu@cern.ch
645847f61e91b01dc0dc99a5a8f3216f229bb86c
ad23b164febd12d5c6d97cfbcd91cf70e2914ab3
/TestCaseFunction/main/run_all_test_createActivity.py
fd0b6a13a6bce27051cfae09df9786c9dc4ddad3
[]
no_license
wawj901124/webtestdata
9eedf9a01dec2c157725299bda9a42e8d357ef0b
54f6412566fce07ece912760c5caea73ede819cb
refs/heads/master
2022-12-09T14:18:38.125191
2021-04-25T07:54:07
2021-04-25T07:54:07
175,773,318
1
1
null
2022-12-08T02:39:15
2019-03-15T07:49:16
Python
UTF-8
Python
false
false
4,042
py
import unittest # 在jenkins运行时经常提示找不到包,所以就需要手动添加PYTHONPATH,通过追加sys.path列表来实现 import os import sys rootpath = str(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) syspath = sys.path sys.path = [] sys.path.append(rootpath) # 将工程根目录加入到python搜索路径中 sys.path.extend([rootpath + i for i in os.lis...
[ "410287958@qq.com" ]
410287958@qq.com
3375c9d7e789e362ffbc2a148ed3e347e6f8f559
62718778da7e683be16ede27bdc2aaf1695be5ec
/routing_classifier/predict_bert.py
b730128378a6e307bd4465527d604911224486c1
[]
no_license
GihanMora/QA_LEAP
25a65685df41360dc8385391434b5ba25e115f1b
67b2bbdde471202ff6e4b69b831b8321d733fd89
refs/heads/master
2023-09-04T18:23:39.720062
2021-11-11T11:52:49
2021-11-11T11:52:49
426,982,627
0
0
null
null
null
null
UTF-8
Python
false
false
1,454
py
import ast import numpy as np import pandas as pd import torch from sklearn.metrics.pairwise import cosine_similarity from transformers import AutoTokenizer, AutoModel from routing_classifier.building_embedding_space_bert import get_mean_pooling_emb model_path = 'bert-base-uncased' vocab_path = 'bert-base-uncased' t...
[ "gihangamage.15@cse.mrt.ac.lk" ]
gihangamage.15@cse.mrt.ac.lk
524fa9c06c6a7e63bf445458738e0daf7b313979
ff871c8dc30b34070cc3e0ea6a31e658158b7c63
/PaddleVision/ImageClassification/models/mobilenet.py
4a1154e1a5bd03a241effb8e4ef05bc4d8636929
[ "Apache-2.0" ]
permissive
SunAhong1993/PaddleSolution
3da9255849b520a6fb7d7b1eda5a2da48f9127e4
46ee3812c66c0dc436c96be8330b7c7d931604b2
refs/heads/master
2020-07-05T05:06:08.133802
2019-08-20T12:19:24
2019-08-20T12:19:24
202,531,666
2
0
Apache-2.0
2019-08-20T06:39:21
2019-08-15T11:48:03
Jupyter Notebook
UTF-8
Python
false
false
6,201
py
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable l...
[ "jiangjiajun@baidu.com" ]
jiangjiajun@baidu.com
c3ed3b484ab64c7d5b85380754f2f47d6a7e4939
df716b2868b289a7e264f8d2b0ded52fff38d7fc
/tests/formatters/symantec.py
f1b0886c63474d244c14ce69700bf5c780427667
[ "Apache-2.0" ]
permissive
ir4n6/plaso
7dd3cebb92de53cc4866ae650d41c255027cf80a
010f9cbdfc82e21ed6658657fd09a7b44115c464
refs/heads/master
2021-04-25T05:50:45.963652
2018-03-08T15:11:58
2018-03-08T15:11:58
122,255,666
0
0
Apache-2.0
2018-02-20T21:00:50
2018-02-20T21:00:50
null
UTF-8
Python
false
false
1,167
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Symantec AV log file event formatter.""" from __future__ import unicode_literals import unittest from plaso.formatters import symantec from tests.formatters import test_lib class SymantecAVFormatterTest(test_lib.EventFormatterTestCase): """Tests for the...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
013f6557d21e5cb87dcc3029821b093ccc528416
dc6750f77b60b188c5161f09c831622de76f84d4
/andros/euterpe-master/euterpe/model_asr/seq2seq/v2/encrnn_decrnn_att_asr.py
6e1e3ff0bc7a0609d7c141b5c63e04a59382f627
[]
no_license
gudwns1215/latest
614edb900167178845d99a0dfdfc732b625e26f5
0d0b96aaaecb05039da5b6faf81c2f3e78d8087c
refs/heads/master
2020-06-03T22:36:13.664965
2018-10-08T03:03:50
2018-10-08T03:03:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,554
py
import sys import time import re import numpy as np import json # pytorch # import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence as pack, pad_packed_sequence as unpack # torchev # from torchev.generator import gen...
[ "kano.takatomo.km0@is.naist.jp" ]
kano.takatomo.km0@is.naist.jp
0995fea88a29d3ee76e12db1750b10190ae20cc1
080c13cd91a073457bd9eddc2a3d13fc2e0e56ae
/MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/ops/numpy_ops/np_utils_test.py
2cb8f64324e9e9d6d47bcab8981ed3a8b6d8439f
[ "Apache-2.0" ]
permissive
Portfolio-Projects42/UsefulResourceRepo2.0
1dccc8961a09347f124d3ed7c27c6d73b9806189
75b1e23c757845b5f1894ebe53551a1cf759c6a3
refs/heads/master
2023-08-04T12:23:48.862451
2021-09-15T12:51:35
2021-09-15T12:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,674
py
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
09f339b23093009144f9b4c01d6ee8320fadfc8c
8016e033484d3cb88a4ee9b82bd3ca08557c12aa
/programmingKnowledge_OOP/hello.py
bd08eca157d9b0200fdd35f8a6aa3a11dac798e7
[]
no_license
keys4words/python
72ecf5de80b14ad3a94abe1d48e82035a2f0fa3d
08431836498e6caed8e01cbc3548b295b69056fe
refs/heads/master
2021-06-16T19:42:21.294976
2020-04-30T14:40:24
2020-04-30T14:40:24
187,210,896
0
0
null
2021-03-20T01:25:04
2019-05-17T12:16:40
Python
UTF-8
Python
false
false
434
py
class Hello: def __init__(self): # self.name = name # self.age = 10 self.a = 10 self._b = 20 self.__c = 30 def public_method(self): # print(self.a) # print(self.__c) print('public') self.__private_method() def __private_method(self): ...
[ "keys4words@gmail.com" ]
keys4words@gmail.com
3074e68ae62c9b8da42116372bac38daab0eab34
1e5f2b99be2e7c1bcbe1718e09e5dce1c7a5ed4d
/23_Merge_k_Sorted_Lists/23_Merge_k_Sorted_Lists.py
63ce62aef895054cbbca668733a19e61eaf894b0
[]
no_license
superSeanLin/Algorithms-and-Structures
05706cf34ac6bbf919f14001da9d44b918c10fb8
53ec4471f1eff393c26f7575a47df1a56fb8af11
refs/heads/master
2020-03-27T09:13:30.330974
2019-10-13T05:10:32
2019-10-13T05:10:32
146,323,422
1
0
null
null
null
null
UTF-8
Python
false
false
716
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: ## Use heap to do better job def mergeKLists(self, lists): """ :type lists: List[ListNode] :rtype: ListNode """ minimum =...
[ "noreply@github.com" ]
superSeanLin.noreply@github.com
954fd295540dba8cfc19355ba45a3c7da5aa94a9
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/test/experiment.py
6a774f21b36d3719206d9df9793d4a0a31d8cb59
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
6,977
py
# =============================================================================== # Copyright 2013 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
d1fb0d046a7c0d9e863a9839b89b7b64feca1388
21b201ebf2ffbbc19fa8d74e5657e12ef597b02d
/research/pcl_rl/baseline.py
58f7893a6c9a4bb783738399016266fa483810a2
[]
no_license
alhsnouf/model
fa619691ad9d0afc7ad849a9471e6bb0643a8d47
5fe429b115634e642a7469b3f1d4bc0c5cf98782
refs/heads/master
2021-04-12T11:16:02.150045
2018-03-27T15:19:18
2018-03-27T15:19:18
126,702,717
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:4252c9a3674f2fe52c94c44905609a6f028ed27517804d6b9a68c3b4ce0b5efe size 7292
[ "alhanouf987@hotmail.com" ]
alhanouf987@hotmail.com
1485edb0101fc10707d2f472fb4c3ed4549ba608
7ab41799fd38489c93282f1beb3b20e7ef8ff165
/python/94.py
6a9b8fc33e6ab122cea451ead65017089a84d0c5
[]
no_license
scturtle/leetcode-sol
86c4095df6b31a9fcad683f2d63669ce1691633c
e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7
refs/heads/master
2020-04-23T00:01:37.016267
2015-11-21T04:15:27
2015-11-21T04:15:27
32,385,573
1
0
null
null
null
null
UTF-8
Python
false
false
381
py
class Solution(object): def inorderTraversal(self, root, ans=None): """ :type root: TreeNode :rtype: List[int] """ if ans is None: ans = [] if not root: return ans self.inorderTraversal(root.left, ans) ans.append(root.val) ...
[ "scturtle@gmail.com" ]
scturtle@gmail.com
56229b6884789b2f9643a05e87993227183ac570
f0dce7b15b55647b709300d335ddcca523ee61f7
/34_Find_First_and_Last_Position_of_Element_in_Sorted_Array.py
b4dd6bab76ed54fd3570cd6599c240a478044dc2
[]
no_license
breezekiller789/LeetCode
ecc4883f616d21e7b72d85c9f93293a8daf3dc74
51090f28eaab17e823981eddc9119abe174ceb4e
refs/heads/master
2023-06-03T20:54:29.222478
2021-06-18T14:33:05
2021-06-18T14:33:05
347,049,252
0
0
null
null
null
null
UTF-8
Python
false
false
1,012
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ # Binary search # Output: [3,4] nums = [5, 7, 7, 8, 8, 10] target = 8 # Output: [-1,-1] nums = [5, 7, 7, 8, 8, 10] target = 6 # Output: [-1,-1] nums = [5, 7, 7, 8, 8, 10] target =...
[ "breezekiller789@csie.io" ]
breezekiller789@csie.io
628e6d136054a6d06792eb383522a465965a4b1b
bcc04939aa70675c9be19c0bf4a9642877db46b1
/qa/urls.py
bab92ea3fbcf77b3fe73b3d096450528a2fbd7e2
[ "MIT" ]
permissive
zkeshtkar/gapbug
164398e2ddd8f952d5851eab19e34f9f84a080e1
eec5baf9b4346aef26bcb10e48ddcb358140d708
refs/heads/main
2023-06-20T07:39:50.084126
2021-07-16T13:31:10
2021-07-16T13:31:10
387,550,452
0
0
MIT
2021-07-19T17:53:20
2021-07-19T17:53:19
null
UTF-8
Python
false
false
1,726
py
from django.urls import path from . import views app_name = "qa" urlpatterns = [ path("", views.QuestionList.as_view(), name="index"), path("ask", views.Ask.as_view(), name="question"), path("show/<int:id>/<str:slug>", views.show, name="show"), path( "<int:id>/answer/submit", views.AnswerQues...
[ "mshirdel@gmail.com" ]
mshirdel@gmail.com
fca7b1ef9fb4de7c9a18ac5ac1b8740490e71104
a5aabe2e4057d78e687a57a6b560516a7cdb5836
/unsserv/extreme/sampling/protocol.py
b81ea0a13077b05dbebfab9cabc85dd2beb7c114
[ "MIT" ]
permissive
aratz-lasa/py-unsserv
0ffc09ddab65a11ce917d0faa8b1b5dff091e563
6f332385e55d05953186b9a8b7848bca4b878e18
refs/heads/master
2022-12-14T21:10:12.397834
2020-05-03T11:29:49
2020-05-03T11:29:49
228,329,158
5
0
MIT
2022-12-08T07:00:55
2019-12-16T07:35:20
Python
UTF-8
Python
false
false
3,695
py
from enum import IntEnum, auto from typing import Tuple, Sequence from unsserv.common.utils import parse_node from unsserv.common.structs import Node from unsserv.common.rpc.structs import Message from unsserv.common.rpc.protocol import AProtocol, ITranscoder, Command, Data, Handler from unsserv.extreme.sampling.struc...
[ "aratzml@opendeusto.es" ]
aratzml@opendeusto.es
25a25d841579b1ba7c8b6f758ec38f5162118091
bcfc082c98c13bccd4a415c30b67c61d0b91828c
/pymc_hacking/eg3/run_mcmc.py
d43d95f4d452d8ea1875956fa9da5748be328748
[]
no_license
Markus333/doing_bayesian_data_analysis
0e7375af1acfd9952044ade28e59d734974e9a71
27f144fda3e9df41dbb74f70c5bf82547d2fa649
refs/heads/master
2020-12-28T21:39:08.758946
2013-01-10T06:46:11
2013-01-10T06:46:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
#!/usr/bin/env python import two_normal_model from pymc import MCMC from pymc.Matplot import plot # do posterior sampling m = MCMC(two_normal_model) m.sample(iter=100000, burn=1000) print(m.stats()) import numpy for p in ['mean1', 'mean2', 'std_dev', 'theta']: numpy.savetxt("%s.trace" % p, m.trace(p)[:]) # draw ...
[ "matthew.kelcey@gmail.com" ]
matthew.kelcey@gmail.com
59979f1621b5032c17414f37611219c67fb481dd
c7e5d2fd3a9fdc585f335477eb74248a4416e44b
/setup.py
19611e6865b7fddf5b82ed3fc61d2ccc8153f801
[ "MIT" ]
permissive
lord63/pyhipku
d4ec626df5c9e354894f1290633132bb86388730
4037014ee4d56ed3dd62b3fe1b9681095e6f5de8
refs/heads/master
2022-03-10T16:46:10.514356
2021-10-04T11:12:48
2022-02-22T14:54:31
31,259,992
104
6
MIT
2021-10-04T11:12:54
2015-02-24T12:57:02
Python
UTF-8
Python
false
false
1,199
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import pyhipku try: import pypandoc long_description = pypandoc.convert('README.md','rst') except (IOError, ImportError): with open('README.md') as f: long_description = f.read() setup( name='pyhipku', version=p...
[ "lord63.j@gmail.com" ]
lord63.j@gmail.com
7fccc2a26214b24ed6112b3083ded4973cf22b7c
b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e
/build/shogun_lib/examples/undocumented/python_modular/preprocessor_sortwordstring_modular.py
cbeb3b9c60661aeb5b61178e97e3ba7a043908ed
[]
no_license
behollis/muViewBranch
384f8f97f67723b2a4019294854969d6fc1f53e8
1d80914f57e47b3ad565c4696861f7b3213675e0
refs/heads/master
2021-01-10T13:22:28.580069
2015-10-27T21:43:20
2015-10-27T21:43:20
45,059,082
1
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
from tools.load import LoadMatrix lm=LoadMatrix() traindna = lm.load_dna('../data/fm_train_dna.dat') testdna = lm.load_dna('../data/fm_test_dna.dat') parameter_list = [[traindna,testdna,3,0,False,False],[traindna,testdna,3,0,False,False]] def preprocessor_sortwordstring_modular (fm_train_dna=traindna,fm_test_dna=tes...
[ "prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305" ]
prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305
80d08ab26221fb1bcfb4478b7d0d7ee2bedb94d3
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_QC1702.py
cfd5953d19d3326974e9bc2e2f80559fa8e2ef50
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,647
py
# qubit number=5 # total number=51 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
6f8b3a5d8957841087142834c91c801aa460a488
8e79de4b73998dd0ee1dae4881784a2b12410615
/219/notifications.py
09294bb1d55b253633d306d9185376cafe2febce
[ "MIT" ]
permissive
alehpineda/bitesofpy
e6eb7c9413cf407a12643efece01bef5457e5dcb
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
refs/heads/master
2021-07-15T19:59:35.061049
2020-09-25T17:49:32
2020-09-25T17:49:32
209,878,791
0
0
MIT
2020-09-06T00:11:45
2019-09-20T20:49:51
Python
UTF-8
Python
false
false
268
py
from datetime import date, timedelta TODAY = date.today() def gen_bite_planning(num_bites=1, num_days=1, start_date=TODAY): days = 0 while True: days += num_days for _ in range(num_bites): yield start_date + timedelta(days=days)
[ "ale.hpineda@gmail.com" ]
ale.hpineda@gmail.com
92c31e6b240db898369e4593625739fe5d39e00f
e6b9ca7b13a21fcc5a26e787191c845698a47f17
/django_mako_plus/provider/compile.py
1090218285d818cbbd93b2b3b8f62d91c72c36ac
[ "Apache-2.0" ]
permissive
BrightBridgeWeb/django-mako-plus
c42e6b3ff4a62b5110f6412958b8df585ae78881
24690661b80562a510c1632853815df5111b606c
refs/heads/master
2020-04-15T14:47:44.565952
2019-01-02T02:29:42
2019-01-02T02:29:42
164,768,193
0
0
Apache-2.0
2019-01-09T02:06:52
2019-01-09T02:06:51
null
UTF-8
Python
false
false
7,416
py
from django.conf import settings from django.core.exceptions import ImproperlyConfigured import os import os.path import shutil import collections import logging from .base import BaseProvider from ..util import log from ..command import run_command class CompileProvider(BaseProvider): ''' Runs a command, suc...
[ "doconix@gmail.com" ]
doconix@gmail.com
df6d1e4f182172ca91145d9307cefe3d8451ec3f
4992f95174927775146f46275ed604aefe5e9699
/dstagram/config/urls.py
a7febe8b3c2ba7dc58f8b9ec32801e3465038596
[ "MIT" ]
permissive
djangojeng-e/mini_projects
55d5858628eb5f42cb4a5a5e417958fe5929d658
32014388e8c83556d83f6ae911bd0e33df2067a7
refs/heads/master
2022-12-25T21:26:23.057485
2020-05-27T08:02:20
2020-05-27T08:02:20
229,744,025
0
0
MIT
2022-12-11T05:30:16
2019-12-23T12:01:05
CSS
UTF-8
Python
false
false
1,080
py
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "headfat1218@gmail.com" ]
headfat1218@gmail.com
a1526b01102784964eeb982e8698dfbe4e2c1e4c
63e0bfa7fb4ecf0b6d4f8fd740be0316cd82ea00
/Graphs/DFSgraph.py
dd8c66f76b63d4d6e3f7eda3c8b8e87506da5a67
[]
no_license
shaheershantk/Problem-Solving-with-Algorithms-Data-Structure
7ceb025c8af97dd81890d3baebc69a82d8196801
ce8b4ba1240fed3109a767984e370ce7a7eb630b
refs/heads/master
2016-09-06T00:45:50.861117
2014-12-01T09:00:16
2014-12-01T09:00:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
from graph import Graph class DFSGraph(Graph): def __init__(self): super().__init__() self.time = 0 def dfs(self): for aVertex in self: aVertex.setColor('white') aVertex.setPred(-1) for aVertex in self: if aVertex.getColor() == 'white': ...
[ "shaheer.shan@gmail.com" ]
shaheer.shan@gmail.com
ff606cd3f830e14dcd8513ca07d6193f66176520
04afb34356de112445c3e5733fd2b773d92372ef
/Sem1/FP/Exam/board.py
ac01e707bf43b664662a7821bfd3124d34aeec33
[]
no_license
AndreeaCimpean/Uni
a4e48e5e1dcecbc0c28ad45ddd3b0989ff7985c8
27df09339e4f8141be3c22ae93c4c063ffd2b172
refs/heads/master
2020-08-21T19:12:49.840044
2020-05-15T17:22:50
2020-05-15T17:22:50
216,222,647
0
0
null
null
null
null
UTF-8
Python
false
false
4,139
py
from texttable import Texttable import random class Board: def __init__(self): self._data = [0] * 64 self.place_stars() self.place_endeavour() self.place_cruisers(3) def get_cell(self, i, j): return self._data[((ord(i) - ord('A')) * 8 + j - 1)] def set_cell(self, ...
[ "andreeacimpean.910@gmail.com" ]
andreeacimpean.910@gmail.com
3f00da3a7e49680da3280abdc9e62595162564a2
ffad717edc7ab2c25d5397d46e3fcd3975ec845f
/Python/pyesri 2/ANSWERS/countwords.py
2f99c6fb13bb5934869c3497fc0145931cb580f8
[]
no_license
shaunakv1/esri-developer-conference-2015-training
2f74caea97aa6333aa38fb29183e12a802bd8f90
68b0a19aac0f9755202ef4354ad629ebd8fde6ba
refs/heads/master
2021-01-01T20:35:48.543254
2015-03-09T22:13:14
2015-03-09T22:13:14
31,855,365
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
#!/usr/bin/python import sys if len(sys.argv) < 3: print "Syntax: countwords.py PATTERN FILE ..." sys.exit() pattern = sys.argv[1] for fname in sys.argv[2:]: count = 0 with open(fname) as f: for line in f: if pattern in line: count += 1 ...
[ "shaunakv1@gmail.com" ]
shaunakv1@gmail.com
475f9818e2bccdeb3c2faec0b8c438eb5c4c96f4
e0f1b0f8d8771e0852c9d5a118c8a1d5bac274ba
/Keras/5_Deep_Learning_for_Computer_Vision/5.2.py
d69ed0c7c87d8a147caa42dd7731c667bea73655
[]
no_license
rapsealk/TIL
cdec9a67c510ba0cc33f5f11cdace0ffb4f847e1
b1a78201fef37cc6d28f8acda41645cd7db4ef6f
refs/heads/master
2022-11-26T17:11:36.375136
2020-10-21T04:35:01
2020-10-21T04:35:01
122,223,741
3
0
null
2022-11-10T14:58:46
2018-02-20T16:26:15
Java
UTF-8
Python
false
false
6,457
py
#!/usr/bin/env python3 """ Datasets can be downloaded @ https://www.kaggle.com/c/dogs-vs-cats/data """ """ 5.2.2 """ import os, shutil original_dataset_dir = './datasets/cats_and_dogs/train' base_dir = './datasets/cats_and_dogs_small' os.mkdir(base_dir) train_dir = os.path.join(base_dir, 'train') os.mkdir(train_dir)...
[ "piono623@naver.com" ]
piono623@naver.com
4ecdb76b8e0319bfa6d4f6b7dc0e061f3c6dc767
e2345e19d448c4fa36af58a6fc908698086137f4
/woodwork/__init__.py
3c97e9a8ad0cc661bc81bca8183f7354516c0add
[ "MIT" ]
permissive
westurner/woodwork
df727eb30ea7c07399664b44f0df3afc626db371
2475f9cbc220fc57828f880014e9e2a00f547c84
refs/heads/develop
2023-01-09T07:29:48.452416
2019-07-20T12:20:40
2019-07-20T12:20:40
191,066,025
0
0
MIT
2022-12-26T20:47:39
2019-06-09T23:32:34
Makefile
UTF-8
Python
false
false
141
py
# -*- coding: utf-8 -*- """Top-level package for woodwork.""" __author__ = """Wes Turner""" __email__ = 'wes@wrd.nu' __version__ = '0.1.0'
[ "wes@wrd.nu" ]
wes@wrd.nu
3b042aa37d0a4f05387f289756ac8cbe1d169d5c
003349d700f7d762f2cc3124717e332d0091be1a
/www/src/Lib/asyncio/coroutines.py
58f1db3f88c528324bed50fd77177ba810c60fb5
[ "BSD-3-Clause" ]
permissive
Rocia/brython
bffce20d736f67b58587f503ad8b503232823fbb
4c29ad017d0b91971d195f31f6a0e18f68e28c55
refs/heads/master
2021-01-15T13:18:54.149409
2017-08-06T09:33:15
2017-08-06T09:33:15
99,669,037
1
0
null
2017-08-08T08:23:59
2017-08-08T08:23:58
null
UTF-8
Python
false
false
6,467
py
__all__ = ['coroutine', 'iscoroutinefunction', 'iscoroutine'] import functools import inspect import opcode import os import sys import traceback import types from . import events from . import futures from .log import logger # Opcode of "yield from" instruction _YIELD_FROM = opcode.opmap['YIELD_FROM'] ...
[ "jonathan.verner@matfyz.cz" ]
jonathan.verner@matfyz.cz
16fc7bcb55d17f616c53e65cc1ae9dafcc3968f6
215e3c24d9bf55c5951cdbab08d045663003331a
/Lib/hTools2/dialogs/font/__init__.py
74e3e5f5c6b36643c9ecc94222334f4bf4af2a8f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
hipertipo/hTools2
8ac14ee37d6ed78a5ce906e65befa889798cc53d
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
refs/heads/master
2022-07-10T20:37:13.869044
2018-11-21T10:42:44
2018-11-21T10:42:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
# dialogs.font '''Dialogs to do things to the current font.''' from element_set import setElementDialog from groups_print import printGroupsDialog from glyphs_rename import batchRenameGlyphs from info_copy import copyFontInfoDialog from info_print import clearFontInfoDialog from layer_delete import deleteLayerDialog ...
[ "gustavo@hipertipo.com" ]
gustavo@hipertipo.com
e60dcbd49809656ea4dc38d9856068c52d115ebc
75224b9a071a7e231c87cb984e1ac81d873a0165
/finalsweek/game/program_api/game_deck_api.py
97726ef723a21f6ee0a7388e4d0b29ad0ee1aa0c
[]
no_license
tckerr/finalsweek
94fe740f9f1db100071d3d5b04d57d8aa48f9695
dea12866919e5b37643e46d42d797d672dd83182
refs/heads/master
2021-01-23T03:52:52.777566
2017-05-20T00:58:20
2017-05-20T00:58:20
86,127,727
0
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
from game.definitions import OperationType, OperatorType from game.operation.decorators import accepts_operation, accepts_operator from game.scripting.api.program_child_api import ProgramChildApi from trace.definitions import LogLevel, LogType from trace.logger import Logger # TODO: split action card and dismissal ca...
[ "tckerr@gmail.com" ]
tckerr@gmail.com
d58981503e1312e14b20bf7ce3a549340b34779d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/142/usersdata/231/62183/submittedfiles/av2_p3_civil.py
c48a48605ffd795c38ee98f06a74012f88f0d143
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# -*- coding: utf-8 -*- def media(a): soma = 0 for i in range(0,len(a),1): soma = soma + a[i] media = soma/len(a) return (media) #ESCREVA AS DEMAIS FUNÇÕES def soma1(g): media=media(a) cont=0 for i in range(0,len(g),1): cont=cont+(g[i]-media(a)) return cont ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
33872138ea3dceeb7ec6c48bc1b0b17ef7f988e6
91e0036d8e976b09c9a9e3281f33559c4b163412
/Api/admin.py
39cdfb2cdc1835fbf3a59932392c2fba1d9315fa
[]
no_license
sirajmuneer123/LibraryApp
b1b77f817ec909899715b484788eb6f9b2e1a853
f41543ece1f513edc85508cd45b4b68c1e4b3cbc
refs/heads/master
2020-09-09T00:14:32.235343
2019-11-15T13:50:18
2019-11-15T13:50:18
221,285,778
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
from django.apps import apps from django.contrib import admin from django.contrib.admin.sites import AlreadyRegistered app_models = apps.get_app_config('Api').get_models() for model in app_models: try: admin.site.register(model) except AlreadyRegistered: pass
[ "sirajmuneer4@gmail.com" ]
sirajmuneer4@gmail.com
c30df6cdff0df25e70d3951f98834cff940e8c4f
b333dc607a2f1556f6a8adb6d16dc88fa8a30c8b
/portal/apps/epubparser/views.py
a2dac12c6e6f988b3cc1a028f3cb4ed50e01b92c
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hernan0216/utopia-cms
6558f8f600620c042dd79c7d2edf18fb77caebb8
48b48ef9acf8e3d0eb7d52601a122a01da82075c
refs/heads/main
2023-02-06T10:31:35.525180
2020-12-15T17:43:28
2020-12-15T17:43:28
321,775,279
1
0
BSD-3-Clause
2020-12-15T19:59:17
2020-12-15T19:59:16
null
UTF-8
Python
false
false
8,191
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.shortcuts import redirect from django.template import RequestContext import os, re import ebooklib from ebooklib import epub, utils from bs4 import BeautifulSoup, Tag from django.views.generic import ListView, FormView, View, DetailView from django.core.urlresol...
[ "apacheco@ladiaria.com.uy" ]
apacheco@ladiaria.com.uy
70c7ef7f60eb803955e8f403aaebada84e807bda
36f6b1d7a7355ee21e387b2a4f56ebd8dd044b2c
/snippets/try_bench.py
f416d2344f0af895df5c80c490df937f4b35e6bc
[]
no_license
sbl1996/hinas
e826936537094d7de5ba36cc78dcdb8e4de076ac
e2db5ebc219a2f7dc1b1344e5d13c97177467e08
refs/heads/main
2023-02-20T17:52:38.719867
2021-01-21T02:22:05
2021-01-21T02:22:05
301,271,639
2
0
null
null
null
null
UTF-8
Python
false
false
463
py
import numpy as np from hinas.models.nas_bench_201.search.darts import Network from hinas.models.nas_bench_201.api import SimpleNASBench201 api = SimpleNASBench201("/Users/hrvvi/Code/study/pytorch/datasets/NAS-Bench-201-v1_1-096897-simple.pth") net = Network(4, 8) val_accs = [] ranks = [] for i in range(100): ne...
[ "sbl1996@126.com" ]
sbl1996@126.com
2eb572de05a2ef49a132ba18d76c92d43849d6f6
b253452291fe7a0ebd5673bf9f6e8ead4a6825c8
/fireplace/cards/gvg/mage.py
1204db22fc7a1a231b295c5a1f01cf38318431cb
[]
no_license
rafzi/fireplace
3c75b3892848635f5de264f01fd1431c34ef6983
8fc6198c1b855b448e2fceebe7bdab5e6436e2b7
refs/heads/master
2021-01-14T08:51:54.403001
2015-07-08T13:45:09
2015-07-08T13:45:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
758
py
from ..utils import * ## # Minions # Snowchugger class GVG_002: events = [ Damage().on( lambda self, target, amount, source: source is self and [Freeze(target)] or [] ) ] # Goblin Blastmage class GVG_004: def action(self): if self.poweredUp: return [Hit(RANDOM_ENEMY_CHARACTER, 1) * 4] # Illuminato...
[ "jerome@leclan.ch" ]
jerome@leclan.ch
93ee83b0a17ef7ea90b7e103fcfa8ebc52d9406c
d1c7d493eb01ba3636482ad452aa540e253ff0e9
/python-3/beginner/1164.py
5bb22dbc2ce9dc78e4b7a81857d93a04b81e579d
[ "MIT" ]
permissive
MisaelAugusto/uri
411aa8b3915c9c046ce46ac180daab7950922109
22bee72edf44f939d7a290383336b4d061faecbb
refs/heads/master
2022-12-05T08:32:22.999188
2020-08-31T12:31:05
2020-08-31T12:31:05
268,656,367
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
# -*- coding: utf-8 -*- N = int(input()) for i in range(N): X = int(input()) total = 0 for i in range(1, int((X / 2)) + 1): if (X % i == 0): total += i print(("%d eh perfeito" % X) if (total == X) else ("%d nao eh perfeito" % X))
[ "misael.costa@ccc.ufcg.edu.br" ]
misael.costa@ccc.ufcg.edu.br
0d69a25061e8410a69ca57c98149a3ff32ec0dbd
b02a5015ecc61414834c4b24e5f33168eb99070a
/CCscripts/DrawCuts.py
4aa074ccf23b22710695a909fad2956b4ae69a06
[ "MIT" ]
permissive
mrvollger/SDA
f1aa8edf9989125d7e0c0f6ae159bca495915826
3d5e9ec8d1e7ac97121c33c6be80d635392631cf
refs/heads/master
2023-05-13T05:24:54.665854
2023-05-07T23:40:25
2023-05-07T23:40:25
101,452,926
29
5
MIT
2019-11-21T18:08:13
2017-08-26T00:58:01
Python
UTF-8
Python
false
false
605
py
#!/usr/bin/env python import ABPUtils import argparse ap = argparse.ArgumentParser(description="Plot cuts individually") ap.add_argument("graph", help="Original graph file.") ap.add_argument("cuts", help="Cuts file.") ap.add_argument("--out", help="Output file.", default="./") args = ap.parse_args() g = ABPUtils.Re...
[ "mrvollger@gmail.com" ]
mrvollger@gmail.com
04674a600e226e31aa0f8316d18ab01272775691
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_subcontracts.py
7377f23ac79db909499e908ee8af2088973acc0e
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
from xai.brain.wordbase.verbs._subcontract import _SUBCONTRACT #calss header class _SUBCONTRACTS(_SUBCONTRACT, ): def __init__(self,): _SUBCONTRACT.__init__(self) self.name = "SUBCONTRACTS" self.specie = 'verbs' self.basic = "subcontract" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
8d5a83daead27736aecc6e7ac623324c76e906dc
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/3-lists_20200405001109.py
5a0bda1428374ca1f3e46e140e448d5438925749
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# A List is a collection which is ordered and changeable. Allows duplicate members. numbers = [ 3, 23, 111, 3423, 352] print(numbers) print(type(numbers)) #using a constructor listNum = list (( 213, 11, 342, 2342, 55432)) print(listNum) fruits = ['Apples', 'Oranges', 'Grapes', 'Pears'] print(fruits[2]) #Get len pri...
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
f2eee898f0944c4b6faea8454a3765ba7fb32f35
428ee863e50fecfaedbbf64f3da95e9acb746ae4
/src/tamsin/sysmod.py
ee7671e8e91b5727f007a422a134f6c0d9003edd
[ "BSD-3-Clause", "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
catseye/Tamsin
ba53a0ee4ac882486a958e6ba7225f19eea763ef
1c9e7ade052d734fa1753d612f2426ac067d5252
refs/heads/master
2021-01-17T09:21:25.202969
2016-03-31T15:00:14
2016-03-31T15:00:14
19,212,331
12
1
null
null
null
null
UTF-8
Python
false
false
4,364
py
# encoding: UTF-8 # Copyright (c)2014 Chris Pressey, Cat's Eye Technologies. # Distributed under a BSD-style license; see LICENSE for more information. # Python version of Tamsin's $ module. import sys from tamsin.term import Atom, Constructor from tamsin.scanner import EOF TRANSLATOR = {'return': 'return_', 'pri...
[ "cpressey@catseye.tc" ]
cpressey@catseye.tc
e7436a8ac1f5eadf84e2b41f3f537b5b70bdc951
fda673f9450d6d78c542a699fe8b9064f65d9057
/spider/ms_main_update_score.py
a97faedfdf27c2b6a8d2aba18398cc1e66b7101c
[]
no_license
asdlei99/MovieSite
1221f8103ec4af63b4f9b80d89d7f7bf5a21a1c3
2a7ee09a308e13df58f6b43f6288908c68fc6271
refs/heads/master
2020-03-26T16:19:19.059927
2018-06-08T09:01:05
2018-06-08T09:01:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,946
py
# coding=utf-8 """ Update douban_addr and socre for db """ import urllib import re import os from ms_utils.db_helper import connect_db from ms_utils.html_helper import Douban from ms_utils.common import get_webdriver, get_html_content, get_douban_sn, \ get_douban_url from ms_utils.log import Log from ms_constants i...
[ "1225191678@qq.com" ]
1225191678@qq.com
7a2d0fe093e4636025d1c89079263aa7eacf5957
c6fca34b2c9cb973d9d65d23e58e40d4513e173a
/aoc2016/day25.py
f1a75d25732ce30e7e8d149f847be0996fb35b09
[]
no_license
tomkooij/AdventOfCode
8ff47c027c887194b0d441f61a8db172c4e260ea
7890d45a01498dcb48972a7e311888ce6f003bd2
refs/heads/master
2021-08-15T19:46:21.869137
2021-01-18T06:37:50
2021-01-18T06:37:50
48,421,868
7
2
null
null
null
null
UTF-8
Python
false
false
1,707
py
# adventofcode assembunny from collections import defaultdict def run(len_output, **kwargs): def int_or_reg(register): try: return int(register) except ValueError: return regs[register] regs = defaultdict(int) output = [] for key, value in kwargs.items(): ...
[ "tomkooij@tomkooij.nl" ]
tomkooij@tomkooij.nl
eacfea7464bd43192aea85f068759c41257baf5d
ca9e037a6ac24117b7250922c607ce9e5609e82b
/docrec/compatibility/sib18.py
5298bf7d77cec38ab770661ad3d5f55c27f43caa
[]
no_license
thiagopx/deeprec-cvpr20
4d4e1752fa33a17c3da26cc11433531a2e08d40c
3f04c494574790cbc390930cd60e0e207ec15b10
refs/heads/master
2022-06-02T18:31:32.664352
2022-05-16T20:50:35
2022-05-16T20:50:35
248,400,773
2
3
null
2022-05-16T20:55:20
2020-03-19T03:21:03
Python
UTF-8
Python
false
false
4,872
py
import sys import cv2 import numpy as np import math from time import time from skimage.filters import threshold_sauvola, threshold_otsu import tensorflow as tf from .algorithm import Algorithm from ..models.squeezenet import SqueezeNet class Sib18(Algorithm): ''' Proposed algorithm. ''' def __init__( ...
[ "paixao@gmail.com" ]
paixao@gmail.com
45921dd008fad6bac984470e8218cf30bc8ac73e
b2afbc68e3900ebd2a673f5152f4f04374792bca
/pm4py/objects/conversion/log/versions/to_trace_log.py
6a08685e41dbd465c77611512cf40f07a7bc4638
[]
no_license
indrawaspada/online_process_monitoring_using_incremental_state-space_expansion_an_exact_algorithm
83d0c2a3dfd7f1f9ce686564bf7f525bb534e973
2b23ab20f739e87447af86bb7f63d8816c69c9db
refs/heads/master
2022-09-18T12:15:33.172540
2020-06-04T13:58:07
2020-06-04T13:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
import pm4py from pm4py.objects.log import log as log_instance from pm4py.objects.log.util import general as log_util def apply(log, parameters=None): if isinstance(log, pm4py.objects.log.log.EventLog) and (not isinstance(log, pm4py.objects.log.log.TraceLog)): parameters = parameters if parameters ...
[ "daniel.schuster@fit.fraunhofer.de" ]
daniel.schuster@fit.fraunhofer.de
2f0d441ea6d652558924b0e2e0149d7843eebddb
25597909c9fd5ae13eb89cf255f4ae79053a6d80
/.ipynb_checkpoints/c2_model_selection-checkpoint.py
8bb516e43fa4fba192fe988c6aea97eb6256ce53
[]
no_license
FangyangJz/AI_Machine_Learning_Muke
986038941dd7e4af9d2873369408808d5a75e412
751f3b850dad31441fd80ac94e1909adbb43473a
refs/heads/master
2020-03-22T21:53:28.386637
2018-07-30T15:01:11
2018-07-30T15:01:11
140,719,785
0
1
null
null
null
null
UTF-8
Python
false
false
851
py
# !/usr/bin/env python3 # -*- coding:utf-8 -*- ''' created by Fangyang on Time:2018/7/11 ''' __author__ = 'Fangyang' import numpy as np def train_test_split(X, y, test_ratio=0.2, seed=None): '''将数据X和y按照test_ratio分割成X_train, X_test, y_train, y_test''' assert X.shape[0] == y.shape[0], \ "the size of X...
[ "fangyang.jing@hotmail.com" ]
fangyang.jing@hotmail.com
f0ef214be096340939ed6eb9684488ba392bb112
8b45916af90aca42f23eab1fd0f78833dfca5bfa
/tests/test_app.py
8af16aa31636dc536e6387f9cfcf93d8e4a4dd4d
[ "MIT" ]
permissive
bradh/rio-viz
aeeef8c3b94729092ce21ff44b7ecaf79b43b50c
bc73a06c09e49b19541543f1e758109466ca17f8
refs/heads/master
2022-03-01T02:50:23.640625
2019-07-15T15:37:31
2019-07-15T15:37:31
197,893,243
0
0
MIT
2019-07-20T07:07:08
2019-07-20T07:04:58
Python
UTF-8
Python
false
false
3,052
py
"""tests rio_viz.server.""" import os import pytest from starlette.testclient import TestClient from rio_viz.raster import RasterTiles from rio_viz.app import viz from rio_tiler.errors import TileOutsideBounds cog_path = os.path.join(os.path.dirname(__file__), "fixtures", "cog.tif") def test_viz(): """Shoul...
[ "vincent.sarago@gmail.com" ]
vincent.sarago@gmail.com
df9837844c511d1fd489c599062faa029c57ba79
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03681/s154151403.py
efacb540b804061374acf8c118541a6ce367cf52
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
def factorial_mod(n,mod): ret = 1 for i in range(1,n+1): ret *= i ret %= mod return ret def comb_mod(n,r,mod): if r > n or r < 0: ret = 0 else: fact_n = factorial_mod(n, mod) fact_r = factorial_mod(r, mod) fact_nr = factorial_mod(n-r, mod) re...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
776304ba0a3143e65e73466d9f081b897a53d0d9
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/content/test/gpu/gpu_path_util/setup_tools_perf_paths.py
5d90d6b007b2d134c53bc620913767cf22226e3e
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
228
py
# Copyright 2022 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import gpu_path_util gpu_path_util.AddDirToPathIfNeeded(gpu_path_util.TOOLS_PERF_DIR)
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
7e864297750e34096f4ed3464d0db7370279f277
657ac5489186e9e6f9aa7522cbf25ee929f8dde6
/microchip/microchip/wsgi.py
34cc8817d3d3337752078af76ec64f2d42776f9c
[]
no_license
Ginkooo/MicroChipServer
ab8f30fb87d89d9cd217b5abe7a8e940c9d3de3f
fe18496f1023f13a0dad2efba17cfa95e1748a5e
refs/heads/master
2021-01-13T05:28:46.870298
2017-05-10T10:34:47
2017-05-10T10:34:47
86,624,819
0
1
null
2017-04-02T13:16:07
2017-03-29T20:09:22
Python
UTF-8
Python
false
false
396
py
""" WSGI config for microchip project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
[ "piotr_czajka@outlook.com" ]
piotr_czajka@outlook.com