hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
18020a245499524813e55143618bee2b7b72b00e
7,863
py
Python
tests/test_nms2D.py
kevinyamauchi/stardist
951e1ba413d32e883ad1e0f620a1fe149ca00d74
[ "BSD-3-Clause" ]
221
2018-06-27T07:15:02.000Z
2021-02-28T11:58:37.000Z
tests/test_nms2D.py
kevinyamauchi/stardist
951e1ba413d32e883ad1e0f620a1fe149ca00d74
[ "BSD-3-Clause" ]
118
2018-06-28T08:13:47.000Z
2021-02-28T22:54:32.000Z
tests/test_nms2D.py
kevinyamauchi/stardist
951e1ba413d32e883ad1e0f620a1fe149ca00d74
[ "BSD-3-Clause" ]
88
2018-07-11T08:49:00.000Z
2021-02-25T06:56:51.000Z
import numpy as np import pytest from stardist import star_dist, edt_prob, non_maximum_suppression, dist_to_coord, polygons_to_label from stardist.matching import matching from csbdeep.utils import normalize from utils import random_image, real_image2d, check_similar def create_random_data(shape=(356, 299), radius=10...
40.323077
111
0.596846
be38c066aa5066c3f1ac86c733195b8453ad0be8
2,390
py
Python
intermediate-Day15-to-Day32/classQuiz/data.py
jawad5311/100-days-Python
9e2c8990365e680d4dcf579c4d7f5d8f0d804566
[ "Apache-2.0" ]
null
null
null
intermediate-Day15-to-Day32/classQuiz/data.py
jawad5311/100-days-Python
9e2c8990365e680d4dcf579c4d7f5d8f0d804566
[ "Apache-2.0" ]
null
null
null
intermediate-Day15-to-Day32/classQuiz/data.py
jawad5311/100-days-Python
9e2c8990365e680d4dcf579c4d7f5d8f0d804566
[ "Apache-2.0" ]
null
null
null
question_data = [ {"category": "Science: Computers", "type": "boolean", "difficulty": "easy", "question": "Linus Torvalds created Linux and Git.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "Science: Computers", "type": "boolean", "difficulty": "easy", "question": "The pro...
77.096774
116
0.62636
d8464b5057770f7109379745b9bdbdb7114e2bd9
645
py
Python
password.py
mhamaneamogh50/All_Python_Pro
e943d1924f160a98e5df612b920a67ef80be3b61
[ "0BSD" ]
null
null
null
password.py
mhamaneamogh50/All_Python_Pro
e943d1924f160a98e5df612b920a67ef80be3b61
[ "0BSD" ]
null
null
null
password.py
mhamaneamogh50/All_Python_Pro
e943d1924f160a98e5df612b920a67ef80be3b61
[ "0BSD" ]
null
null
null
import random print("\t*********WELLCOME TO AUTOMATIC PASSWORD GENRATEOR*************") print("\t # #\n\t # #\n\t # # ") print("\tWE DO NOT STORE ANY OF YOUR INFORMATION \n\tALL RIGHTS RESERVED BY****@Amogh****") print("\n") name= str(input("Enter Your ...
33.947368
93
0.570543
51356d50943ad38199b3417a1691ceb356cc6012
7,337
py
Python
estimator_hooks/hooks_test.py
keithyin/tensorflow_utils
65c00531b14d2328b5c46d36aa6f3eaa711bc5c9
[ "Apache-2.0" ]
3
2021-06-11T09:55:41.000Z
2021-09-27T10:08:59.000Z
estimator_hooks/hooks_test.py
keithyin/tensorflow_utils
65c00531b14d2328b5c46d36aa6f3eaa711bc5c9
[ "Apache-2.0" ]
null
null
null
estimator_hooks/hooks_test.py
keithyin/tensorflow_utils
65c00531b14d2328b5c46d36aa6f3eaa711bc5c9
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np from .hooks import LabelDistHook, GroupAucHook, RegressionHook def cnn_model_fn(features, labels, mode): """Model function for CNN.""" # Input Layer tf.add_to_collection("label", labels) input_layer = tf.reshape(features["x"], [-1, 28, 28, 1]) # Convoluti...
42.166667
110
0.632684
095b5069ba49201a854f3fd8b6ff40c4af1f39e9
74
py
Python
datetime_utils/__init__.py
borbamartin/datetime-utils
00ab8f4d15fe7436391d9adbf511e2501107e1d1
[ "BSD-2-Clause" ]
null
null
null
datetime_utils/__init__.py
borbamartin/datetime-utils
00ab8f4d15fe7436391d9adbf511e2501107e1d1
[ "BSD-2-Clause" ]
null
null
null
datetime_utils/__init__.py
borbamartin/datetime-utils
00ab8f4d15fe7436391d9adbf511e2501107e1d1
[ "BSD-2-Clause" ]
null
null
null
from .datetime_utils import rfc822, parse_timestr, DateTimeUtil, TimeUnit
37
73
0.851351
88680545fea0e2d96cb5731582f9b805247b63a8
897
py
Python
setup.py
oseau/django_render
7abef31a08d990e679edf53f7dbfd3a44febdbc1
[ "Apache-2.0" ]
null
null
null
setup.py
oseau/django_render
7abef31a08d990e679edf53f7dbfd3a44febdbc1
[ "Apache-2.0" ]
null
null
null
setup.py
oseau/django_render
7abef31a08d990e679edf53f7dbfd3a44febdbc1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: xiLin.ding from setuptools import setup, find_packages setup( name='django-render-url', version='0.9.8.7', packages=find_packages(), author='WANG Tai', author_email='i@wangtai.me', url='https://github.com/wangtai/django_render', des...
24.916667
51
0.603122
b374862ad0478064396a8f9e4d2841dc2e7f4f5c
2,088
py
Python
kipy/fileobjs/brd/header.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
2
2016-05-17T13:10:52.000Z
2018-09-03T15:18:30.000Z
kipy/fileobjs/brd/header.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
1
2016-08-03T09:31:39.000Z
2016-08-03T11:19:19.000Z
kipy/fileobjs/brd/header.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
1
2018-09-04T16:32:13.000Z
2018-09-04T16:32:13.000Z
from .brditem import BrdItem ''' Classes based on BrdItem for parsing and rendering header and trailer of .brd file. ''' class PCBNEW_BOARD(BrdItem): keyword = 'PCBNEW-BOARD' @classmethod def subparse(cls, brdpage, tokens, lineiterator): cls.checkstate(brdpage, -1, 3) brdpage.page_header =...
26.769231
63
0.6341
9ec5e2dbd03ff98e9da80cdc96cafcefa74b708a
920
py
Python
Own_Codes/Sieve_Of_Eratosthenes.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
1
2021-01-04T07:16:05.000Z
2021-01-04T07:16:05.000Z
Own_Codes/Sieve_Of_Eratosthenes.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
2
2021-01-27T04:24:50.000Z
2021-07-25T17:44:00.000Z
Own_Codes/Sieve_Of_Eratosthenes.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # Sieve of Eratosthenes : To find all primes using sieve of Eratosthenes # ============================================================================= def Sieve_of_Eratosthenes(n): arr = list(range(0, ...
27.878788
80
0.26413
b2bcd7f3ac14deea2b56ab2607d4e3e149df4223
2,019
py
Python
dizoo/mujoco/config/halfcheetah_sac_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
dizoo/mujoco/config/halfcheetah_sac_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
dizoo/mujoco/config/halfcheetah_sac_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict halfcheetah_sac_config = dict( exp_name='halfcheetah_sac_seed0', env=dict( env_id='HalfCheetah-v3', norm_obs=dict(use_norm=False, ), norm_reward=dict(use_norm=False, ), collector_env_num=1, evaluator_env_num=8, use_act_scale=True, ...
28.43662
73
0.614661
ce3ae28f21ef1b152a9845f0e75312d774443851
3,209
py
Python
fedml_api/distributed/fedgan/FedGanClientManager.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
1,120
2020-07-22T02:30:52.000Z
2022-03-31T08:10:44.000Z
fedml_api/distributed/fedgan/FedGanClientManager.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
113
2020-07-27T03:48:09.000Z
2022-03-30T03:25:56.000Z
fedml_api/distributed/fedgan/FedGanClientManager.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
381
2020-07-22T06:12:57.000Z
2022-03-30T18:38:35.000Z
import logging import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../../"))) sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../../../../FedML"))) try: from fedml_core.distributed.client.client_manager import ClientManager from fedml_core.distributed.communication...
42.223684
104
0.711437
bb2ea93db2bbfbb2c1aa4626890f4bc3ef11bc53
994
py
Python
test_project/urls.py
ninemoreminutes/celery-task-plus
0f3d9e8f70646e03d3693d31fe193930b56cddb9
[ "BSD-3-Clause" ]
null
null
null
test_project/urls.py
ninemoreminutes/celery-task-plus
0f3d9e8f70646e03d3693d31fe193930b56cddb9
[ "BSD-3-Clause" ]
null
null
null
test_project/urls.py
ninemoreminutes/celery-task-plus
0f3d9e8f70646e03d3693d31fe193930b56cddb9
[ "BSD-3-Clause" ]
null
null
null
# Python import re # Django from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path, re_path from django.views.static import serve admin.autodiscover() urlpatterns = [ path('admin/', admin.site.urls), ] if 'django.contrib...
28.4
83
0.737425
022d36a643980c2574a86ecb841a0e77d19dc3ab
82,713
py
Python
zerver/lib/bugdown/__init__.py
natalietotonchy/zulip
2aaad502b45da9b3f6039e45efa731df72dd345a
[ "Apache-2.0" ]
null
null
null
zerver/lib/bugdown/__init__.py
natalietotonchy/zulip
2aaad502b45da9b3f6039e45efa731df72dd345a
[ "Apache-2.0" ]
null
null
null
zerver/lib/bugdown/__init__.py
natalietotonchy/zulip
2aaad502b45da9b3f6039e45efa731df72dd345a
[ "Apache-2.0" ]
null
null
null
# Zulip's main markdown implementation. See docs/subsystems/markdown.md for # detailed documentation on our markdown syntax. from typing import (Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Set, Text, Tuple, TypeVar, Union, cast) from mypy_extensions import TypedDict from typing.re im...
40.845926
162
0.601768
c0c69e88f78da77ce28f26e8384cb659a1807ba9
44,833
py
Python
schematic/schemas/explorer.py
linglp/schematic
fd0308c43783ac8e367e8a5be0cc6e4bfbc44b29
[ "MIT" ]
null
null
null
schematic/schemas/explorer.py
linglp/schematic
fd0308c43783ac8e367e8a5be0cc6e4bfbc44b29
[ "MIT" ]
null
null
null
schematic/schemas/explorer.py
linglp/schematic
fd0308c43783ac8e367e8a5be0cc6e4bfbc44b29
[ "MIT" ]
null
null
null
import os import string import json import logging from typing import Any, Dict, Optional, Text, List import inflection import networkx as nx from rdflib import Graph, Namespace, plugin, query from networkx.algorithms.cycles import find_cycle from networkx.readwrite import json_graph from schematic.utils.curie_util...
45.240161
208
0.507974
c8f412ad483655845acf8aef199301c262e81a4d
2,599
py
Python
yad2k/models/keras_darknet19.py
zhangbo2008/YAD2K
91ab1dbd6b40564fa95ffea6c146091ed70bd356
[ "MIT" ]
null
null
null
yad2k/models/keras_darknet19.py
zhangbo2008/YAD2K
91ab1dbd6b40564fa95ffea6c146091ed70bd356
[ "MIT" ]
null
null
null
yad2k/models/keras_darknet19.py
zhangbo2008/YAD2K
91ab1dbd6b40564fa95ffea6c146091ed70bd356
[ "MIT" ]
null
null
null
"""Darknet19 Model Defined in Keras.""" import functools from functools import partial from keras.layers import Conv2D, MaxPooling2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization from keras.models import Model from keras.regularizers import l2 from ....
33.753247
77
0.722201
df89f94a205aff3dd4042bd0c04d1e349a130416
5,801
py
Python
generators/dcdc-gen/tools/dcdc_netlist.py
leochand101/OpenFASOC
0e6990e1cd81b12ce3ee971bd03eeafcea52bd5e
[ "Apache-2.0" ]
null
null
null
generators/dcdc-gen/tools/dcdc_netlist.py
leochand101/OpenFASOC
0e6990e1cd81b12ce3ee971bd03eeafcea52bd5e
[ "Apache-2.0" ]
null
null
null
generators/dcdc-gen/tools/dcdc_netlist.py
leochand101/OpenFASOC
0e6990e1cd81b12ce3ee971bd03eeafcea52bd5e
[ "Apache-2.0" ]
null
null
null
##for HSPICE netlist import re import function import os import sys import math def gen_dcdc_netlist(cells, args, jsonSpec, platformConfig, srcDir): # process the top level verilog r_netlist=open(srcDir + "/dcdcInst.template.v","r") lines=list(r_netlist.readlines()) w_netlist=open(srcDir + "/dcdcInst....
34.945783
128
0.616101
5f71fb1d9bac0dd39145e51c20a9ba2e5f8f60d0
435
py
Python
eth_abi/utils/string.py
kclowes/eth-abi
d164feee62e54af81c69b7636618cf2b36dd8ce6
[ "MIT" ]
61
2019-07-03T07:40:17.000Z
2022-03-06T13:30:53.000Z
eth_abi/utils/string.py
kclowes/eth-abi
d164feee62e54af81c69b7636618cf2b36dd8ce6
[ "MIT" ]
105
2019-07-25T08:48:59.000Z
2022-03-23T03:47:34.000Z
eth_abi/utils/string.py
kclowes/eth-abi
d164feee62e54af81c69b7636618cf2b36dd8ce6
[ "MIT" ]
61
2019-07-03T06:58:42.000Z
2022-02-16T08:50:14.000Z
from typing import ( Any, ) def abbr(value: Any, limit: int = 20) -> str: """ Converts a value into its string representation and abbreviates that representation based on the given length `limit` if necessary. """ rep = repr(value) if len(rep) > limit: if limit < 3: ra...
21.75
73
0.597701
072e6fc797520341c47d9f0dd007069870cb1147
17,420
py
Python
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
import uuid import time import socket import struct class PtpIpConnection(object): """docstring for PtpIP""" def __init__(self): super(PtpIpConnection, self).__init__() self.session = None self.session_events = None self.session_id = None self.cmd_queue = [] se...
34.701195
99
0.644259
c9fd7af548a2afba2d60b0cbf85155401be9c48a
953
py
Python
sql_helpers/pmpermit_sql.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
1
2020-08-18T07:26:43.000Z
2020-08-18T07:26:43.000Z
sql_helpers/pmpermit_sql.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
null
null
null
sql_helpers/pmpermit_sql.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, String from sql_helpers import SESSION, BASE class PMPermit(BASE): __tablename__ = "pmpermit" chat_id = Column(String(14), primary_key=True) reason = Column(String(127)) def __init__(self, chat_id, reason=""): self.chat_id = chat_id self.reason = reason ...
21.177778
51
0.660021
9c1d518332e1ae35c1ef2c0e68a984fbc0ec675b
1,170
py
Python
reflowreader.py
ljaworski88/Reflow-Oven
c87898f453b994c7f34ef4d977b0f915bad2a711
[ "MIT" ]
null
null
null
reflowreader.py
ljaworski88/Reflow-Oven
c87898f453b994c7f34ef4d977b0f915bad2a711
[ "MIT" ]
null
null
null
reflowreader.py
ljaworski88/Reflow-Oven
c87898f453b994c7f34ef4d977b0f915bad2a711
[ "MIT" ]
null
null
null
import serial import numpy import matplotlib.pyplot as plt from drawnow import * setpoints = [] avgTemp = [] PIDoutput = [] tempData = serial.Serial('COM3', 115200) plt.ion() tempBuffer = 0 def makeFig(): plt.ylim(20, 250) plt.xlim(0, 360) plt.title('Reflow Controller Temp and Setpoint Data') plt.grid...
23.877551
57
0.64188
f2eb59bdf4ca1889637a1707aa59d324fbe6c681
1,536
py
Python
sok/management/commands/stats.py
josepaiva94/sokman
c7848600ba3f61c55b25521e8f2c855a314cc1b2
[ "0BSD" ]
4
2021-03-10T14:19:56.000Z
2021-03-23T15:43:29.000Z
sok/management/commands/stats.py
josepaiva94/sokman
c7848600ba3f61c55b25521e8f2c855a314cc1b2
[ "0BSD" ]
2
2021-04-08T07:02:57.000Z
2021-04-09T17:30:54.000Z
sok/management/commands/stats.py
josepaiva94/sokman
c7848600ba3f61c55b25521e8f2c855a314cc1b2
[ "0BSD" ]
1
2021-04-09T19:27:33.000Z
2021-04-09T19:27:33.000Z
from typing import Set from django.core.management.base import BaseCommand from django.db.models import Count, Q import sok.management.commands.dblpimport as dblp from sok.models import Publication, SearchTerm class Command(BaseCommand): def echo(self, msg: str, bold=True): if bold: msg = self.style.HTTP_IN...
30.72
85
0.744792
52e47ce599d2cd934de9845cdf5c9e557c7c6645
33,925
py
Python
src/plottoolbox/functions/taylor.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
null
null
null
src/plottoolbox/functions/taylor.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
6
2021-09-06T21:26:12.000Z
2022-03-30T11:55:56.000Z
src/plottoolbox/functions/taylor.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Collection of functions for the manipulation of time series.""" from __future__ import absolute_import, division, print_function import itertools import os import warnings import mando import numpy as np import pandas as pd from mando.rst_text_formatter import RSTHelpFormatter from tstoolb...
30.209261
100
0.535947
e63d3398c5efe725fc2418654a53b43435a2fa35
469
py
Python
stdlib/tkinter/canvas_colours.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
stdlib/tkinter/canvas_colours.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
stdlib/tkinter/canvas_colours.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import tkinter root = tkinter.Tk() root.title('Canvas colours') canvas = tkinter.Canvas(root) canvas.create_rectangle(30, 10, 120, 80, outline="#fb0", fill="#fb0") canvas.create_rectangle(150, 10, 240, 80, outline="#f50", fill="#f50") canvas.create_rectangle(270, 1...
23.45
44
0.656716
5d5d58edca7be3d1cea0b30452ccc498ebf5aad1
2,230
py
Python
fallfromgrace/process.py
bjornedstrom/fall-from-grace
b190969e838535f67d46aaf8358069a59c4edfd7
[ "MIT" ]
1
2015-01-08T20:19:33.000Z
2015-01-08T20:19:33.000Z
fallfromgrace/process.py
bjornedstrom/fall-from-grace
b190969e838535f67d46aaf8358069a59c4edfd7
[ "MIT" ]
null
null
null
fallfromgrace/process.py
bjornedstrom/fall-from-grace
b190969e838535f67d46aaf8358069a59c4edfd7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2012 Björn Edström <be@bjrn.se> # See LICENSE for details. import logging import psutil log = logging.getLogger('fall-from-grace') def get_pids(): """Yields a snapshot of currently active process ids.""" for proc in psutil.get_process_list(): yield proc.pid...
22.989691
68
0.595964
27d3d751f560f3e894b875862c9276e484ee8a5a
2,378
py
Python
reconcile/utils/jump_host.py
mmclanerh/qontract-reconcile
57f3d5a38e6811843c234754df083d7bb35787bb
[ "Apache-2.0" ]
null
null
null
reconcile/utils/jump_host.py
mmclanerh/qontract-reconcile
57f3d5a38e6811843c234754df083d7bb35787bb
[ "Apache-2.0" ]
null
null
null
reconcile/utils/jump_host.py
mmclanerh/qontract-reconcile
57f3d5a38e6811843c234754df083d7bb35787bb
[ "Apache-2.0" ]
null
null
null
import tempfile import shutil import os import reconcile.utils.gql as gql from reconcile.utils.secret_reader import SecretReader from reconcile.exceptions import FetchResourceError class HTTPStatusCodeError(Exception): def __init__(self, msg): super(HTTPStatusCodeError, self).__init__( "HTTP...
31.706667
72
0.639193
d6ac7a53c614230976e6647e6a0be7dd93a47b07
29
py
Python
Demo_XRD_patterns_from_dpp/ds_section/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
15
2017-09-02T13:55:35.000Z
2022-03-26T08:20:16.000Z
Demo_XRD_patterns_from_dpp/ds_section/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
null
null
null
Demo_XRD_patterns_from_dpp/ds_section/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
2
2018-05-16T13:32:08.000Z
2019-06-16T08:09:38.000Z
from .section import Section
14.5
28
0.827586
29749cbb666379c2927f30cfea9ca63030159c1c
401
py
Python
python/paddle/trainer_config_helpers/tests/configs/test_cost_layers_with_weight.py
unisound-ail/Paddle
e1f57bfd66245f78d04f47d670cba5592d5734b2
[ "Apache-2.0" ]
1
2016-10-23T09:31:38.000Z
2016-10-23T09:31:38.000Z
python/paddle/trainer_config_helpers/tests/configs/test_cost_layers_with_weight.py
adnywei/Paddle
e1f57bfd66245f78d04f47d670cba5592d5734b2
[ "Apache-2.0" ]
3
2016-10-22T16:06:11.000Z
2016-11-07T06:30:37.000Z
python/paddle/trainer_config_helpers/tests/configs/test_cost_layers_with_weight.py
adnywei/Paddle
e1f57bfd66245f78d04f47d670cba5592d5734b2
[ "Apache-2.0" ]
null
null
null
from paddle.trainer_config_helpers import * settings( learning_rate=1e-4, batch_size=1000 ) data = data_layer(name='input', size=300) lbl = data_layer(name='label', size=1) wt = data_layer(name='weight', size=1) fc = fc_layer(input=data, size=10, act=SoftmaxActivation()) outputs(classification_cost(input=fc,...
26.733333
60
0.72818
702fb5b60045d8292da5c9c9484ea71a43f474ed
479
py
Python
src/app_registry/__init__.py
YoussefMabrouk/big-map-registry
8943514755f268ac39b57430572702825a1dead1
[ "MIT" ]
3
2021-02-03T14:09:15.000Z
2021-09-07T17:48:36.000Z
src/app_registry/__init__.py
YoussefMabrouk/big-map-registry
8943514755f268ac39b57430572702825a1dead1
[ "MIT" ]
6
2021-01-28T15:31:39.000Z
2022-02-18T08:53:01.000Z
src/app_registry/__init__.py
YoussefMabrouk/big-map-registry
8943514755f268ac39b57430572702825a1dead1
[ "MIT" ]
11
2021-01-28T14:58:30.000Z
2022-03-22T14:06:45.000Z
# -*- coding: utf-8 -*- """Manage a registry of applications.""" from .core import AppRegistryData from .core import AppRegistrySchemas from .metadata import generate_apps_meta from .version import __version__ from .web import build_from_config from .web import build_html from .web import write_schemas __all__ = [ ...
21.772727
40
0.734864
16e85830ffa51ec428951570cc7a038f3d10c873
1,560
py
Python
python/paddle/fluid/tests/unittests/test_lod_rank_table.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
1
2018-08-06T11:55:16.000Z
2018-08-06T11:55:16.000Z
python/paddle/fluid/tests/unittests/test_lod_rank_table.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
3
2017-07-15T14:20:08.000Z
2019-05-06T03:16:54.000Z
python/paddle/fluid/tests/unittests/test_lod_rank_table.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
35.454545
74
0.685256
f8fdd8eefad72fa36cb6ec87a85a3757b17f7439
952
py
Python
results/neural_nets/testdata/make_zzz3_subsets.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
13
2020-04-23T21:25:51.000Z
2021-11-19T23:56:17.000Z
results/neural_nets/testdata/make_zzz3_subsets.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
3
2020-08-24T22:15:50.000Z
2021-05-11T12:42:14.000Z
results/neural_nets/testdata/make_zzz3_subsets.py
k-ivey/FastSK
3316f8078a516e808c2c4fe7ed3fdc8db808fc11
[ "Apache-2.0" ]
10
2020-04-24T09:27:19.000Z
2021-06-16T21:05:46.000Z
import random file = "testdata/ZZZ3.train.fasta" labels, sequences = [], [] # load the data with open(file, "r") as f: label_line = True for line in f: line = line.strip() if label_line: labels.append(line) label_line = False else: sequences.append(l...
25.72973
67
0.597689
d7cc9f3c8098bfb5100ef4c2afebf3c41f3a25c8
5,679
py
Python
src/app/voltdb/voltdb_src/lib/python/voltcli/voltdb.d/collect.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/lib/python/voltcli/voltdb.d/collect.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/lib/python/voltcli/voltdb.d/collect.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
# This file is part of VoltDB. # Copyright (C) 2008-2021 VoltDB Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later ver...
50.256637
141
0.654164
4a4052cfa3350413da3bba8b3b22bb65908eb550
12,139
py
Python
packages/Python/lldbsuite/test/lang/c/stepping/TestStepAndBreakpoints.py
nathawes/swift-lldb
3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77
[ "Apache-2.0" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/lang/c/stepping/TestStepAndBreakpoints.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
null
null
null
packages/Python/lldbsuite/test/lang/c/stepping/TestStepAndBreakpoints.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
null
null
null
"""Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms.""" from __future__ import print_function import os import time import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestCStepping(TestBase): myd...
40.598662
117
0.66274
fb8b41513a1598cdfa3b338945bbc49a3b4973aa
2,849
py
Python
kNN_regression.py
marcos-delcueto/Tutorial_kNN_custom_metric
00abafcd474a21dcc72f39aa7aeb104ebdc500ed
[ "MIT" ]
4
2020-11-29T14:52:45.000Z
2021-07-25T02:45:39.000Z
kNN_regression.py
marcos-delcueto/Tutorial_kNN_custom_metric
00abafcd474a21dcc72f39aa7aeb104ebdc500ed
[ "MIT" ]
null
null
null
kNN_regression.py
marcos-delcueto/Tutorial_kNN_custom_metric
00abafcd474a21dcc72f39aa7aeb104ebdc500ed
[ "MIT" ]
2
2021-03-01T05:58:44.000Z
2021-07-25T02:45:42.000Z
#!/usr/bin/env python3 # Marcos del Cueto # Import necessary libraries import math import pandas as pd from sklearn.neighbors import KNeighborsRegressor, DistanceMetric from sklearn.model_selection import LeaveOneOut from sklearn.metrics import mean_squared_error from scipy.stats import pearsonr ### Function just used...
47.483333
97
0.648649
e39e13d1cbdb966b75acf17bf5d784bb836df7d1
1,243
py
Python
test/proj4/proj-regression-EPSG-3857-7.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
7
2019-03-19T09:32:41.000Z
2022-02-07T13:20:33.000Z
test/proj4/proj-regression-EPSG-3857-7.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
2
2021-03-30T05:37:20.000Z
2021-08-17T13:58:04.000Z
test/proj4/proj-regression-EPSG-3857-7.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
5
2019-03-19T10:43:46.000Z
2021-09-09T14:28:39.000Z
from Magics.macro import * import os def plot_area(epsg, llx, lly, urx, ury): img = os.path.basename(__file__).split('.')[0] title = "Projection {} : [{:.2f}, {:.2f}, {:.2f}, {:.2f}]".format(epsg, llx, lly, urx, ury) #Setting output png = output( output_formats = ['png'], output_name ...
28.906977
103
0.629928
1163f6ee9ab0d2067c7e9dbd03dd41d863ec8b88
34,043
py
Python
test/functional/test_framework/test_node.py
who-biz/chipschain
9e8c1a20de529dc38837d39c809681827e82e2b4
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
who-biz/chipschain
9e8c1a20de529dc38837d39c809681827e82e2b4
[ "MIT" ]
4
2021-07-08T06:03:31.000Z
2021-12-08T02:42:23.000Z
test/functional/test_framework/test_node.py
who-biz/chipschain
9e8c1a20de529dc38837d39c809681827e82e2b4
[ "MIT" ]
3
2021-07-14T23:56:56.000Z
2021-09-23T16:02:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for bitcoind node under test""" import contextlib import decimal import errno from enum import E...
44.911609
242
0.624798
6c9228a0472b2a563b3c8f6ecefe529eebc3e4c6
75
py
Python
inheritance/exercise/project_need_for_speed/family_car.py
ivan-yosifov88/python_oop
82b210e427cb80dbab3b9a5c3fceab431ee60164
[ "MIT" ]
1
2021-05-21T20:28:55.000Z
2021-05-21T20:28:55.000Z
inheritance/exercise/project_need_for_speed/family_car.py
ivan-yosifov88/python_oop
82b210e427cb80dbab3b9a5c3fceab431ee60164
[ "MIT" ]
null
null
null
inheritance/exercise/project_need_for_speed/family_car.py
ivan-yosifov88/python_oop
82b210e427cb80dbab3b9a5c3fceab431ee60164
[ "MIT" ]
null
null
null
from project_need_for_speed.car import Car class FamilyCar(Car): pass
15
42
0.786667
b2dd9895b6ee701b92b4c64071246b5f5883a113
1,386
py
Python
frag6_mf0long.py
bluhm/frag6-regress
1f2dbb1030e61764bc5f1e1d46f6f743e6c095ed
[ "0BSD" ]
1
2017-09-13T14:54:02.000Z
2017-09-13T14:54:02.000Z
frag6_mf0long.py
bluhm/frag6-regress
1f2dbb1030e61764bc5f1e1d46f6f743e6c095ed
[ "0BSD" ]
null
null
null
frag6_mf0long.py
bluhm/frag6-regress
1f2dbb1030e61764bc5f1e1d46f6f743e6c095ed
[ "0BSD" ]
null
null
null
#!/usr/local/bin/python2.7 print "ping6 fragment that overlaps longer than the last fragment with m=0" # |---------| # |XXXX| # |----| import os from addr import * from scapy.all import * pid=os.getpid() eid=pid & 0xffff payload="ABCDEFGHIJKLMNOP" dummy="01234567" packet=IPv6(src=LOCAL_ADDR6, ds...
25.666667
75
0.670996
7eb62ea3512f422dda2d75ab52a83fdf54ac1f68
216
py
Python
fastapi_admin/enums.py
myWorkshop123/fastapi-admin
e2f23ae63f45d2b9c74c85a34f5d71d1039a2913
[ "Apache-2.0" ]
636
2020-06-03T09:59:03.000Z
2022-03-31T23:02:26.000Z
fastapi_admin/enums.py
changzhi777/fastapi-admin
6f50cede91a3a06faa6601addaaeb3eaa0c753a1
[ "Apache-2.0" ]
60
2021-05-01T12:52:44.000Z
2022-02-22T06:58:30.000Z
fastapi_admin/enums.py
changzhi777/fastapi-admin
6f50cede91a3a06faa6601addaaeb3eaa0c753a1
[ "Apache-2.0" ]
114
2021-04-25T16:21:10.000Z
2022-03-25T17:30:23.000Z
from enum import Enum class StrEnum(str, Enum): def __str__(self): return self.value class Method(StrEnum): GET = "GET" POST = "POST" DELETE = "DELETE" PUT = "PUT" PATCH = "PATCH"
14.4
25
0.583333
5958ffb88518876b4ae2d10ccf364587a1165170
4,063
py
Python
src/util/Notice.py
Denon/redis-monitor
db78e2c7c13e636c4071ae3df23ac43d7288e36f
[ "MIT" ]
2
2016-07-29T03:53:51.000Z
2017-01-03T06:23:27.000Z
src/util/Notice.py
Denon/redis-monitor
db78e2c7c13e636c4071ae3df23ac43d7288e36f
[ "MIT" ]
null
null
null
src/util/Notice.py
Denon/redis-monitor
db78e2c7c13e636c4071ae3df23ac43d7288e36f
[ "MIT" ]
null
null
null
import threading import re import traceback import smtplib from email.mime.text import MIMEText from email.header import Header from datetime import datetime from datetime import timedelta import multiprocessing from setting import settings DEFAUTL_MONITOR_PARAM = { "used_memory_peak_human": "< 1K" } class Emai...
34.432203
106
0.5587
1fe498563b633c76d11e0a27ce2138ba56e1c74d
2,879
py
Python
vis_movie.py
RuthAngus/astro-viz
d49de667cff6d22a1b049fd2268ed9255d9f7dbd
[ "MIT" ]
null
null
null
vis_movie.py
RuthAngus/astro-viz
d49de667cff6d22a1b049fd2268ed9255d9f7dbd
[ "MIT" ]
null
null
null
vis_movie.py
RuthAngus/astro-viz
d49de667cff6d22a1b049fd2268ed9255d9f7dbd
[ "MIT" ]
null
null
null
# Make frames of exoplanet orbits. import numpy as np import matplotlib.pyplot as plt import pandas as pd plotpar = {'axes.labelsize': 18, 'font.size': 10, 'legend.fontsize': 18, 'xtick.labelsize': 18, 'ytick.labelsize': 18, 'text.usetex': True} plt.rcParams.upda...
33.870588
76
0.589441
173d3565c62e2da51456ac84fa1e55533870f6ac
151
py
Python
entrypoint.py
crbaker/actions-twister
9a197651b14ba5a0e143838743310518eef17bb2
[ "MIT" ]
null
null
null
entrypoint.py
crbaker/actions-twister
9a197651b14ba5a0e143838743310518eef17bb2
[ "MIT" ]
null
null
null
entrypoint.py
crbaker/actions-twister
9a197651b14ba5a0e143838743310518eef17bb2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import requests twist_url = sys.argv[1] content = sys.argv[2] requests.post(twist_url, json = {"content": content})
16.777778
53
0.721854
bd4fc0b5e5e4f28cb834a116e1f8ab5ed5f68413
4,303
py
Python
userbot/modules/getmusic.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/getmusic.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/getmusic.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-12-20T08:16:08.000Z
2020-12-20T08:16:08.000Z
# Copyright (C) 2020 Aidil Aryanto. # All rights reserved. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # import datetime import asyncio from telethon import events from telethon.errors.rpcerrorlist import YouBlocked...
40.980952
108
0.609342
fb7ccf1545d8c1efa9113c4b36716b5efca9580c
4,511
py
Python
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-04-05T17:38:42.000Z
2021-04-05T17:38:42.000Z
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import functools import os import pytest from devtools_testutils import AzureTestCase, PowerShellPreparer from azure.containerregistry import ( Cont...
32.927007
92
0.711594
c7a54192a28f9fcda762cd932ecfd0307755366d
389
py
Python
Main.py
matthiasamberg/TigerJython---The-fantastic-Elevator-Game
9ede94676b5e0fcd034c049eb0f700eff041c09a
[ "Apache-2.0" ]
1
2020-12-14T10:26:19.000Z
2020-12-14T10:26:19.000Z
Main.py
matthiasamberg/TigerJython---The-fantastic-Elevator-Game
9ede94676b5e0fcd034c049eb0f700eff041c09a
[ "Apache-2.0" ]
null
null
null
Main.py
matthiasamberg/TigerJython---The-fantastic-Elevator-Game
9ede94676b5e0fcd034c049eb0f700eff041c09a
[ "Apache-2.0" ]
null
null
null
import globalvars from gamestate import * import random # das ist der Code aus Beispiel3.py # Der Lift fährt zufällig irgend ein Stockwerk an def play(): obersterStock = getNumFloors() - 1 zufaelligerStock = random.randint(0, obersterStock) setElevatorDestination(zufaelligerStock) #------------ bitte...
20.473684
61
0.737789
dc6ececbeeb4c08a0114e1d19dba2ae3a875ff64
17,474
py
Python
aldryn_search/tests.py
nephila/aldryn-search
3163f9abefc44882216e4003f19b45d431540bbd
[ "BSD-3-Clause" ]
null
null
null
aldryn_search/tests.py
nephila/aldryn-search
3163f9abefc44882216e4003f19b45d431540bbd
[ "BSD-3-Clause" ]
1
2020-04-09T10:50:31.000Z
2020-04-10T08:21:08.000Z
aldryn_search/tests.py
nephila/aldryn-search
3163f9abefc44882216e4003f19b45d431540bbd
[ "BSD-3-Clause" ]
null
null
null
from django.template import Template from django.test import TestCase from cms.api import create_page, add_plugin from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.models.placeholdermodel import Placeholder from cms.models import CMSPlugin, Title from aldryn_search.search_inde...
52.951515
109
0.717294
f932544f1d30db2e9d7f616e24bdda7c2d619f49
3,263
py
Python
src/saxpy.py
Idein/qmkl6
ac3e631ca89293c562db24b78576eef66426ab65
[ "BSD-3-Clause" ]
38
2020-09-24T08:46:33.000Z
2022-03-23T01:40:03.000Z
src/saxpy.py
Idein/qmkl6
ac3e631ca89293c562db24b78576eef66426ab65
[ "BSD-3-Clause" ]
3
2021-02-03T08:33:55.000Z
2021-08-24T00:04:05.000Z
src/saxpy.py
Idein/qmkl6
ac3e631ca89293c562db24b78576eef66426ab65
[ "BSD-3-Clause" ]
6
2020-09-24T13:40:19.000Z
2021-06-08T19:35:43.000Z
import sys from videocore6.assembler import assemble, qpu @qpu def qpu_saxpy(asm, *, num_qpus, unroll_shift, code_offset, align_cond=lambda pos: True): g = globals() for i, v in enumerate(['length', 'coef', 'x', 'x_inc', 'y_src', 'y_dst', 'y_inc', 'qpu_num']): ...
27.191667
79
0.559301
79a8ed34fc24ba926a8d1ec8476d08f5c88b06dd
862
py
Python
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
1
2016-01-04T22:11:08.000Z
2016-01-04T22:11:08.000Z
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
null
null
null
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from django_rt.utils import SerializableObject class ResourceEvent(SerializableObject): def __init__(self, data=None, time=None, event_type=None): assert data or event_type self.data = data self.event_type = event_type if time: self.t...
23.297297
62
0.553364
58807db5d7c0f83fd643d86f7ae2eb39de232484
2,338
py
Python
examples/acquiring_data/downloading_hmi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
examples/acquiring_data/downloading_hmi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
examples/acquiring_data/downloading_hmi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
""" =========================================== Downloading and plotting an HMI magnetogram =========================================== This example shows how to download a HMI magnetogram data with Fido and make a plot. """ import matplotlib.pyplot as plt import sunpy.map from sunpy.net import Fido from sunpy.net im...
41.75
84
0.592387
dd1be5d260dafbc7d260929e8328bc4b26e2b577
108
py
Python
Python3/POO/exemplo_superclasse.py
arthursiq5/programacao-progressiva
2ec91602a6f37c93b99e6a92239045cd1c4cef6b
[ "MIT" ]
null
null
null
Python3/POO/exemplo_superclasse.py
arthursiq5/programacao-progressiva
2ec91602a6f37c93b99e6a92239045cd1c4cef6b
[ "MIT" ]
null
null
null
Python3/POO/exemplo_superclasse.py
arthursiq5/programacao-progressiva
2ec91602a6f37c93b99e6a92239045cd1c4cef6b
[ "MIT" ]
null
null
null
class A: def spam(self): print(1) class B(A): def spam(self): print(2) super().spam() B().spam()
9
16
0.564815
e4c2e43cc8f1c69f1152efd275820b16bab2810e
2,944
py
Python
experiments/training_script.py
ameroueh/oaz
7cf192b02adaa373b7b93bedae3ef67886ea53af
[ "MIT" ]
8
2021-03-18T16:06:42.000Z
2022-03-09T10:42:44.000Z
experiments/training_script.py
ameroueh/oaz
7cf192b02adaa373b7b93bedae3ef67886ea53af
[ "MIT" ]
null
null
null
experiments/training_script.py
ameroueh/oaz
7cf192b02adaa373b7b93bedae3ef67886ea53af
[ "MIT" ]
null
null
null
import argparse import logging import os import sys import toml from logzero import setup_logger from pathlib import Path from pyoaz.training import Trainer os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" # Useful for RTX cards # os.environ["TF_FORCE_GPU_ALLOW_GROWTH"] = "true" # turn on C++ logging # os.environ["OAZ_LOG...
25.162393
78
0.594429
f6e9c2d73215fd245c31bd17fb54b2e8af766994
33,494
py
Python
parlai/scripts/train_model.py
Uzornd/ParlAI
5c07877f493db75847029ed9906aabc48c4d9f54
[ "MIT" ]
1
2021-07-03T06:21:04.000Z
2021-07-03T06:21:04.000Z
parlai/scripts/train_model.py
Uzornd/ParlAI
5c07877f493db75847029ed9906aabc48c4d9f54
[ "MIT" ]
null
null
null
parlai/scripts/train_model.py
Uzornd/ParlAI
5c07877f493db75847029ed9906aabc48c4d9f54
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Training script for ParlAI. The standard way to train a model. After training, also computes validation and test er...
35.594049
116
0.574521
8159414b0b5798cb7af900e1ffe7ad8a0d95133f
5,925
py
Python
threedi_api_client/openapi/models/organisation.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
null
null
null
threedi_api_client/openapi/models/organisation.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
16
2021-05-31T09:52:04.000Z
2022-03-14T16:07:19.000Z
threedi_api_client/openapi/models/organisation.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ 3Di API 3Di simulation API (latest stable version: v3) Framework release: 2.9.0 3Di core release: 2.2.2 deployed on: 11:01AM (UTC) on January 11, 2022 # noqa: E501 The version of the OpenAPI document: v3 Contact: info@nelen-schuurmans.nl Generated by: https://openapi-ge...
31.184211
166
0.589536
6256cf05cba907dc073aa2a239b01a7e67139fde
493
py
Python
2021/11/day11.py
caryhooper/adventofcode
70d142780a7d8c742c97448fb2287abe735c2f9c
[ "MIT" ]
null
null
null
2021/11/day11.py
caryhooper/adventofcode
70d142780a7d8c742c97448fb2287abe735c2f9c
[ "MIT" ]
null
null
null
2021/11/day11.py
caryhooper/adventofcode
70d142780a7d8c742c97448fb2287abe735c2f9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #Advent of Code Day 11 "Dumbo Octopus" import sys sys.path.append("..") import submarine sub = submarine.Submarine() #Part1 file = open("input.txt","r") nav = sub.navigator.octopus_navigator nav.initialize_octopi(file.readlines()) file.close() while nav.steps != 100: nav.move_one_step() ...
18.961538
53
0.720081
ac253bddabf4e46021811ca44ae8b066bbfdde6d
592
py
Python
app/__init__.py
mary-wan/News
14a5e322f2d89c1615b75d1738d1f7a821224965
[ "MIT" ]
null
null
null
app/__init__.py
mary-wan/News
14a5e322f2d89c1615b75d1738d1f7a821224965
[ "MIT" ]
null
null
null
app/__init__.py
mary-wan/News
14a5e322f2d89c1615b75d1738d1f7a821224965
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap #initialise boostrap from config import config_options bootstrap = Bootstrap() def create_app(config_name): # Initializing application app = Flask(__name__) # Creating the app configurations app.config.from_object(config_options[config...
19.733333
60
0.756757
6c04efdc7eef1efcd89ef131a52e7f785e8aa511
711
py
Python
prototypes/ssh_gdb_expl_pwn_tools.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
1
2022-01-01T20:33:44.000Z
2022-01-01T20:33:44.000Z
prototypes/ssh_gdb_expl_pwn_tools.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
null
null
null
prototypes/ssh_gdb_expl_pwn_tools.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pwn import * get_flag = True chall_name = 'babymem' def run_with_gdb(p): gdb.attach(p,''' b *main''') run_exploit(p) def run_exploit(p, debug): if debug: run_with_gdb(p) payload_size = '1' overflow = 'A' * 1 print(p.recv(timeout=2).decode()) p.sendl...
21.545455
58
0.644163
7264f6b633427e9ea9d50f4a8b28c0358370ed27
1,229
py
Python
utils/transforms.py
garvm7/transunet_pytorch
277c42d182ab9606607b0db782f0d00b55f06760
[ "MIT" ]
null
null
null
utils/transforms.py
garvm7/transunet_pytorch
277c42d182ab9606607b0db782f0d00b55f06760
[ "MIT" ]
null
null
null
utils/transforms.py
garvm7/transunet_pytorch
277c42d182ab9606607b0db782f0d00b55f06760
[ "MIT" ]
null
null
null
import cv2 import torch import random import numpy as np def flip_horizontal(img, mask): img = np.flip(img, axis=1) mask = np.flip(mask, axis=1) return img, mask def rotate(img, mask, angle_abs=5): h, w, _ = img.shape angle = random.choice([angle_abs, -angle_abs]) M = cv2.getRotationMatrix2...
29.261905
88
0.664768
5df9c3cdcd80dc5522ebfd390020557a9938e8bf
380
py
Python
queryset_client/tests/base/tests/__init__.py
pulina/tastypie-queryset-client
1d65ee387e256b78c44fd8be57fa64ca798ae2da
[ "MIT" ]
null
null
null
queryset_client/tests/base/tests/__init__.py
pulina/tastypie-queryset-client
1d65ee387e256b78c44fd8be57fa64ca798ae2da
[ "MIT" ]
1
2016-12-22T10:55:44.000Z
2016-12-22T10:55:44.000Z
queryset_client/tests/base/tests/__init__.py
pulina/tastypie-queryset-client
1d65ee387e256b78c44fd8be57fa64ca798ae2da
[ "MIT" ]
5
2015-04-27T11:50:28.000Z
2019-01-10T06:39:57.000Z
import warnings warnings.simplefilter('ignore', Warning) from .count import * from .create import * from .exists import * from .foreignkey import * from .get_or_create import * from .latest import * from .lazy import * from .len import * from .many_to_many import * from .model import * from .order_by import * from .pa...
21.111111
40
0.75
fd6128a735e6e4719d1d198d23c02b6aa131a5c6
18,894
py
Python
model/code/main.py
xinyadu/doc_event_role
d43cbba14d433f009e9bef9ceff31c5de1cb5127
[ "MIT" ]
47
2020-07-06T07:32:18.000Z
2022-02-14T08:15:04.000Z
model/code/main.py
zhichao-stone/doc_event_role
d43cbba14d433f009e9bef9ceff31c5de1cb5127
[ "MIT" ]
4
2020-08-11T06:44:11.000Z
2021-09-02T03:26:16.000Z
model/code/main.py
zhichao-stone/doc_event_role
d43cbba14d433f009e9bef9ceff31c5de1cb5127
[ "MIT" ]
13
2020-07-06T09:16:38.000Z
2021-12-16T06:37:54.000Z
from __future__ import print_function import time import sys import argparse import random import torch import gc import torch.nn as nn import torch.optim as optim import numpy as np from utils.metric import get_ner_fmeasure from model.seqlabel import SeqLabel # from model.sentclassifier import SentClassifier from uti...
40.285714
173
0.643379
00b12da890974bced0894f872f15a0eb0808ecfd
5,903
py
Python
rest-service/manager_rest/storage/relationships.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/storage/relationships.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/storage/relationships.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
######### # Copyright (c) 2013 GigaSpaces Technologies Ltd. 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...
37.360759
78
0.666102
1b057820f42fd904b0a8eace723d3ffdf926de2d
1,063
py
Python
skynet/wallet/wallet_info.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
skynet/wallet/wallet_info.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
skynet/wallet/wallet_info.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
from dataclasses import dataclass from typing import List from skynet.util.ints import uint8, uint32 from skynet.util.streamable import Streamable, streamable @dataclass(frozen=True) @streamable class WalletInfo(Streamable): """ This object represents the wallet data as it is stored in DB. ID: Main walle...
30.371429
109
0.735654
4f7084b11b786053a15c17657dada906d129d0bf
3,226
py
Python
tests/format/optionarch.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/format/optionarch.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/format/optionarch.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import os import pytest from buildstream import _yaml from buildstream.exceptions import ErrorDomain, LoadErrorReason from buildstream.testing.runcli import cli # pylint: disable=unused-import from ...
33.957895
111
0.66522
523b2e6862e62158dc67328b20624d958ad05699
7,512
py
Python
budgetportal/webflow/views.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
3
2019-08-31T03:08:22.000Z
2020-04-03T13:09:20.000Z
budgetportal/webflow/views.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
97
2019-04-16T07:54:38.000Z
2022-02-10T07:25:48.000Z
budgetportal/webflow/views.py
OpenUpSA/budget-portal
879c5875b1d438b9287c38d6730c86be69051ac5
[ "MIT" ]
14
2019-04-23T09:48:17.000Z
2021-04-13T17:48:40.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import csv import json import urllib.parse from slugify import slugify from budgetportal import models from budgetportal.csv_gen import Echo from budgetportal.infra_projects.charts import time_series_data from budgetportal.json_encoder import JSONEncode...
37.939394
102
0.700213
c8264f4fdeecae2e7bf8ea387882805c0ce13f70
162
py
Python
multi-armed-bandits/submission/bandit.py
harshsiloiya98/CS747-Assignments
a2c6ddecc0c5fef829aec80fa6490cd50d12a816
[ "MIT" ]
null
null
null
multi-armed-bandits/submission/bandit.py
harshsiloiya98/CS747-Assignments
a2c6ddecc0c5fef829aec80fa6490cd50d12a816
[ "MIT" ]
null
null
null
multi-armed-bandits/submission/bandit.py
harshsiloiya98/CS747-Assignments
a2c6ddecc0c5fef829aec80fa6490cd50d12a816
[ "MIT" ]
null
null
null
import numpy as np # simulates a Bernoulli bandit arm def pull_arm(prob): if (np.random.rand() <= prob): return 1. else: return 0.
20.25
35
0.580247
42b76f93f0479af0dd1e9305a9f40e29139ff379
4,025
py
Python
crosshair/examples/check_examples_test.py
pschanely/CrossHair
520ed990a370eb916cae9a7c688cbd0119ac03e3
[ "MIT" ]
785
2019-09-28T14:47:48.000Z
2022-03-24T15:04:03.000Z
crosshair/examples/check_examples_test.py
pschanely/CrossHair
520ed990a370eb916cae9a7c688cbd0119ac03e3
[ "MIT" ]
111
2019-10-19T14:43:03.000Z
2022-03-29T07:23:32.000Z
crosshair/examples/check_examples_test.py
pschanely/CrossHair
520ed990a370eb916cae9a7c688cbd0119ac03e3
[ "MIT" ]
36
2018-05-12T03:31:29.000Z
2022-03-02T14:07:16.000Z
"""Run functional tests of the tool on all the examples.""" import argparse import os import pathlib from pathlib import Path import re import shlex import subprocess import sys from typing import Iterable from typing import List import pytest def extract_linenums(text: str) -> List[int]: r""" Pull ordered l...
27.568493
87
0.59528
0b3b3442aa53183e0bd293e0fee994d4d8ac0542
63,399
py
Python
release/stubs.min/System/Windows/Controls/Primitives_parts/ScrollBar.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/Primitives_parts/ScrollBar.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/Primitives_parts/ScrollBar.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ScrollBar( RangeBase, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, ): """ Represents a control that provides a scroll bar that has a sliding System.Windows.Controls.Primitives.Thumb whose position ...
25.553809
221
0.685374
f96acb003b870816c3036cac6aee0cc37e123b78
2,119
py
Python
model/pytorch/dffml_model_pytorch/pytorch_accuracy_scorer.py
yopknopixx/dffml
7f295bb01b235a915c9f8015564b97a708cd5325
[ "MIT" ]
null
null
null
model/pytorch/dffml_model_pytorch/pytorch_accuracy_scorer.py
yopknopixx/dffml
7f295bb01b235a915c9f8015564b97a708cd5325
[ "MIT" ]
null
null
null
model/pytorch/dffml_model_pytorch/pytorch_accuracy_scorer.py
yopknopixx/dffml
7f295bb01b235a915c9f8015564b97a708cd5325
[ "MIT" ]
null
null
null
from dffml.feature.feature import Features import os import torch from dffml.base import config from dffml.source.source import Sources from dffml.util.entrypoint import entrypoint from dffml.model import ModelNotTrained, ModelContext from dffml.accuracy import ( AccuracyScorer, AccuracyContext, ) @config c...
27.166667
79
0.612081
ad1e53a64e378ac2b384523fe38c8c7ba81c28e9
2,029
py
Python
convert_utils.py
dparrini/anafas2atp
018ca31de43e516c49b477fb83dde1d264fd6194
[ "MIT" ]
null
null
null
convert_utils.py
dparrini/anafas2atp
018ca31de43e516c49b477fb83dde1d264fd6194
[ "MIT" ]
null
null
null
convert_utils.py
dparrini/anafas2atp
018ca31de43e516c49b477fb83dde1d264fd6194
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 David Rodrigues Parrini Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
28.577465
80
0.740266
e3d6706fa91d12ab02d52fb92bdbc05024bd5959
9,951
py
Python
roles/openshift_health_checker/test/etcd_imagedata_size_test.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
1
2019-03-13T10:14:35.000Z
2019-03-13T10:14:35.000Z
roles/openshift_health_checker/test/etcd_imagedata_size_test.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
3
2016-12-01T23:01:36.000Z
2016-12-02T00:16:48.000Z
roles/openshift_health_checker/test/etcd_imagedata_size_test.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
4
2018-10-27T00:29:24.000Z
2022-01-07T07:39:51.000Z
import pytest from collections import namedtuple from openshift_checks.etcd_imagedata_size import EtcdImageDataSize, OpenShiftCheckException from etcdkeysize import check_etcd_key_size def fake_etcd_client(root): fake_nodes = dict() fake_etcd_node(root, fake_nodes) clientclass = namedtuple("client", ["r...
30.246201
114
0.467591
eda5fe12568fc196f3b44d54fbecc4de24145848
7,054
py
Python
deep_sort/sort/tracker.py
GlassyWing/sort_torch
3d4c809dee6ad35b2f7d5a4b75f9e30b07722441
[ "Apache-2.0" ]
null
null
null
deep_sort/sort/tracker.py
GlassyWing/sort_torch
3d4c809dee6ad35b2f7d5a4b75f9e30b07722441
[ "Apache-2.0" ]
null
null
null
deep_sort/sort/tracker.py
GlassyWing/sort_torch
3d4c809dee6ad35b2f7d5a4b75f9e30b07722441
[ "Apache-2.0" ]
null
null
null
import torch from . import kalman_filter from . import linear_assignment from . import iou_matching from .track import Track class Tracker: """ This is the multi-target tracker. Parameters ---------- metric : nn_matching.NearestNeighborDistanceMetric A distance metric for measurement-to-t...
39.853107
115
0.628438
ac1ae9319df5427254883fc0c7ed93b89cf1685b
5,262
py
Python
ironic/common/driver_factory.py
hongbin/ironic
857690560657bbfc5342000908bc84c918da1b11
[ "Apache-2.0" ]
null
null
null
ironic/common/driver_factory.py
hongbin/ironic
857690560657bbfc5342000908bc84c918da1b11
[ "Apache-2.0" ]
null
null
null
ironic/common/driver_factory.py
hongbin/ironic
857690560657bbfc5342000908bc84c918da1b11
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, Inc. # 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...
41.109375
79
0.63607
bc3fd7119b55d266fd1776e1ae9f5f9072f8d240
4,911
py
Python
layers/modules/multibox_loss.py
dakeli/ssd_pytorch
ec1247ff1f9400b3a57747028d555284b0283474
[ "MIT" ]
null
null
null
layers/modules/multibox_loss.py
dakeli/ssd_pytorch
ec1247ff1f9400b3a57747028d555284b0283474
[ "MIT" ]
null
null
null
layers/modules/multibox_loss.py
dakeli/ssd_pytorch
ec1247ff1f9400b3a57747028d555284b0283474
[ "MIT" ]
1
2018-12-12T06:40:07.000Z
2018-12-12T06:40:07.000Z
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from data import coco as cfg from ..box_utils import match, log_sum_exp class MultiBoxLoss(nn.Module): """SSD Weighted Loss Function Compute Targets: 1) Produce Confidence Tar...
41.268908
84
0.621462
a45028330df4b23d33b48cb0e79c2fb683919704
2,292
py
Python
lib/googlecloudsdk/core/util/tokenizer.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/util/tokenizer.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/util/tokenizer.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2013 Google Inc. 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...
26.344828
76
0.679319
072477e321f716ecdda98426e5a0cbf847e0a0a0
36,967
py
Python
tests/devices/test_default_mixed.py
emildi/pennylane
64901ef2f920f42385b65c8da538941ff36da7be
[ "Apache-2.0" ]
1
2021-12-07T17:18:26.000Z
2021-12-07T17:18:26.000Z
tests/devices/test_default_mixed.py
emildi/pennylane
64901ef2f920f42385b65c8da538941ff36da7be
[ "Apache-2.0" ]
null
null
null
tests/devices/test_default_mixed.py
emildi/pennylane
64901ef2f920f42385b65c8da538941ff36da7be
[ "Apache-2.0" ]
1
2021-12-07T17:18:36.000Z
2021-12-07T17:18:36.000Z
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # 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...
40.050921
98
0.605026
0d5bc254e5d558a962c96f7a2dae1a5f2956414c
79
py
Python
core/__init__.py
corenel/pytorch-starter-kit
f09e3193d4e03e0d018f66158e3d426cb8766e22
[ "MIT" ]
2
2019-06-07T05:22:49.000Z
2020-07-22T10:11:26.000Z
core/__init__.py
corenel/pytorch-starter-kit
f09e3193d4e03e0d018f66158e3d426cb8766e22
[ "MIT" ]
null
null
null
core/__init__.py
corenel/pytorch-starter-kit
f09e3193d4e03e0d018f66158e3d426cb8766e22
[ "MIT" ]
null
null
null
from .demo import demo from .evaluate import evaluate from .train import train
19.75
30
0.810127
a68e4d6dad7169da07517402fa872099e63dbfa4
6,752
py
Python
frappe/core/doctype/event/event.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
null
null
null
frappe/core/doctype/event/event.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
1
2015-07-11T20:52:38.000Z
2019-12-06T15:00:58.000Z
frappe/core/doctype/event/event.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
2
2015-09-05T05:30:23.000Z
2018-03-21T19:45:10.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import getdate, cint, add_months, date_diff, add_days, nowdate from frappe.core.doctype.user.user import STANDARD_USERS from frappe.model.docum...
34.274112
119
0.662767
ed0d5b80508ca11e43f580da5b495d4ba7bb3483
4,566
py
Python
Analyses/analysesMaster.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
Analyses/analysesMaster.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
Analyses/analysesMaster.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from scipy import signal, ndimage, interpolate, stats from itertools import combinations import matplotlib.pyplot as plt import matplotlib.ticker as ticker from matplotlib.ticker import FormatStrFormatter from matplotlib.offsetbox import AnchoredText import statsmodels.a...
36.238095
103
0.681778
20043559821bfdf33e476efd417b1db781e599c4
2,037
py
Python
sympy/combinatorics/group_constructs.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
2
2021-02-16T14:20:37.000Z
2021-02-16T16:37:47.000Z
sympy/combinatorics/group_constructs.py
otoosakyidavid/sympy
636221ff35c78b980f828a285d0c552fac77aaba
[ "BSD-3-Clause" ]
null
null
null
sympy/combinatorics/group_constructs.py
otoosakyidavid/sympy
636221ff35c78b980f828a285d0c552fac77aaba
[ "BSD-3-Clause" ]
1
2021-02-28T20:26:24.000Z
2021-02-28T20:26:24.000Z
from __future__ import print_function, division from sympy.combinatorics.perm_groups import PermutationGroup from sympy.combinatorics.permutations import Permutation from sympy.utilities.iterables import uniq _af_new = Permutation._af_new def DirectProduct(*groups): """ Returns the direct product of several...
33.393443
79
0.678449
152c684cd25354739e8ca8026d4fe365444d805b
11,543
py
Python
scripts/clean/assign_read_pass.py
rheinbaylab/cDNA-detector
72c9415cea8568c11edf696542b8baa967e392ec
[ "BSD-3-Clause" ]
1
2021-07-30T06:42:23.000Z
2021-07-30T06:42:23.000Z
scripts/clean/assign_read_pass.py
rheinbaylab/cDNA-detector
72c9415cea8568c11edf696542b8baa967e392ec
[ "BSD-3-Clause" ]
null
null
null
scripts/clean/assign_read_pass.py
rheinbaylab/cDNA-detector
72c9415cea8568c11edf696542b8baa967e392ec
[ "BSD-3-Clause" ]
1
2021-08-23T20:33:07.000Z
2021-08-23T20:33:07.000Z
import pysam import pandas as pd import numpy as np import re import sys import random import os import logging from itertools import compress from datetime import datetime try: from .remove_function import * except: from remove_function import * def read_cDNA(exon_readlist_raw, exon_readlist_pos_type, tmp_chr, tmp...
48.297071
187
0.803517
97de09e884c1a3587a6e108cadb7aa92b5242246
9,553
py
Python
stairs.py
pzy/LEDstairs
ccb16caf3f8dba20dddc153518529b265b1fc9b7
[ "MIT" ]
null
null
null
stairs.py
pzy/LEDstairs
ccb16caf3f8dba20dddc153518529b265b1fc9b7
[ "MIT" ]
null
null
null
stairs.py
pzy/LEDstairs
ccb16caf3f8dba20dddc153518529b265b1fc9b7
[ "MIT" ]
1
2020-07-29T08:35:38.000Z
2020-07-29T08:35:38.000Z
#!/usr/bin/env python3 # rpi_ws281x library strandtest example # Author: Tony DiCola (tony@tonydicola.com) # # Direct port of the Arduino NeoPixel library strandtest example. Showcases # various animations on a strip of NeoPixels. import time import argparse import math import random import sys import logging from ra...
36.049057
159
0.635612
3f7dd5daa755e8a4d8764354d03f1ad1318dc27c
1,596
py
Python
tests/benchmarks/benchmark_selectinquery.py
vdmit11/py-mongosql
8b66a3386344cf5b38021dccf32c7790a07617e5
[ "BSD-2-Clause" ]
null
null
null
tests/benchmarks/benchmark_selectinquery.py
vdmit11/py-mongosql
8b66a3386344cf5b38021dccf32c7790a07617e5
[ "BSD-2-Clause" ]
null
null
null
tests/benchmarks/benchmark_selectinquery.py
vdmit11/py-mongosql
8b66a3386344cf5b38021dccf32c7790a07617e5
[ "BSD-2-Clause" ]
null
null
null
""" This benchmark compares the performance of: * selectinload() * selectinquery() with query caching * selectinquery() with no query caching """ from tests.benchmarks.benchmark_utils import benchmark_parallel_funcs from sqlalchemy.orm import selectinload from mongosql import selectinquery from tests.models import ...
25.741935
108
0.690476
f8ab131e7d1cc6d24408413f877fcf0cef8808ea
6,281
py
Python
keras_tuner/tuners/randomsearch.py
Jet132/keras-tuner
be682573c6f6be1e3f3e6dcac786a34ccac19d3b
[ "Apache-2.0" ]
1
2022-03-01T06:13:17.000Z
2022-03-01T06:13:17.000Z
keras_tuner/tuners/randomsearch.py
maxpark/keras-tuner
be682573c6f6be1e3f3e6dcac786a34ccac19d3b
[ "Apache-2.0" ]
1
2022-03-28T09:14:42.000Z
2022-03-28T09:14:42.000Z
keras_tuner/tuners/randomsearch.py
maxpark/keras-tuner
be682573c6f6be1e3f3e6dcac786a34ccac19d3b
[ "Apache-2.0" ]
1
2022-02-28T20:10:53.000Z
2022-02-28T20:10:53.000Z
# Copyright 2019 The KerasTuner Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
43.020548
79
0.658653
9f6ee521422cf59d388324e360f82b508a73f5cc
5,811
py
Python
demos/ach/containers/RDFI processor/rdfi_process.py
kwkoo/datapipelines
cc57125b96ad6e45520a6c07bbb84664b6d40173
[ "MIT" ]
30
2020-04-15T20:22:42.000Z
2021-11-30T01:55:01.000Z
demos/ach/containers/RDFI processor/rdfi_process.py
kwkoo/datapipelines
cc57125b96ad6e45520a6c07bbb84664b6d40173
[ "MIT" ]
1
2020-12-27T20:09:50.000Z
2020-12-29T16:02:12.000Z
demos/ach/containers/RDFI processor/rdfi_process.py
kwkoo/datapipelines
cc57125b96ad6e45520a6c07bbb84664b6d40173
[ "MIT" ]
11
2020-12-17T21:25:21.000Z
2021-12-28T05:59:55.000Z
import http.server import io import json import logging import os import random import socketserver import sys from io import BytesIO import boto3 import mysql.connector from cloudevents.sdk import marshaller from cloudevents.sdk.event import v02 access_key = os.environ['AWS_ACCESS_KEY_ID'] secret_key = os.environ['...
32.283333
107
0.60678
9452bddd44aacb6ddb0f38ecf39a8a0f1ea9847a
2,369
py
Python
Combatant/tests/test_combatant.py
vakker/plark_ai_public
ea17b0f475b3c1927a7bb249eef8db54c2be093f
[ "Apache-2.0" ]
2
2021-02-28T16:20:18.000Z
2021-03-02T11:58:05.000Z
Combatant/tests/test_combatant.py
vakker/plark_ai_public
ea17b0f475b3c1927a7bb249eef8db54c2be093f
[ "Apache-2.0" ]
4
2021-02-26T16:06:27.000Z
2021-03-03T09:51:59.000Z
Combatant/tests/test_combatant.py
vakker/plark_ai_public
ea17b0f475b3c1927a7bb249eef8db54c2be093f
[ "Apache-2.0" ]
6
2021-02-19T18:41:57.000Z
2021-03-05T06:02:17.000Z
#!/usr/bin/env python import os import sys import json from combatant import load_combatant from schema import deserialize_state import numpy as np from combatant import AGENTS_PATH ALLOWED_ACTIONS = { "PANTHER": [ "1", # Up "2", # Up right "3", # Down right "4", # Down ...
26.032967
91
0.599409
50d462e671250b6aaec256c4a181390b521f7e89
5,051
py
Python
parentopticon/restrictions.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
parentopticon/restrictions.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
parentopticon/restrictions.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
"""This module contains functions for reading in configured restrictoins.""" import datetime import enum import typing class Window: """A window of time between unlock and lock.""" def __init__(self, start: datetime.time, end: datetime.time): self.end = end self.start = start def is_locked(self, when: datetime...
29.028736
85
0.706593
c3b0a603abd464145d0b862626594daa648e61e8
874
py
Python
traw/__init__.py
levi-rs/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
2
2019-01-19T13:18:26.000Z
2019-02-23T19:39:50.000Z
traw/__init__.py
levi-rs/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
3
2019-01-20T19:21:34.000Z
2019-02-13T17:54:30.000Z
traw/__init__.py
leviable/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
null
null
null
""" TRAW: TestRail API Wrapper TRAW is an API wrapper for Gurrock's TestRail test management suite The intended way to begin is to instantiate the TRAW Client: .. code-block:: python import traw testrail = traw.Client(username='username', user_api_key='api_key', ...
23.621622
76
0.681922
e594c42d3d9265dee7f3c7cb8d66f6f088fc89d4
4,699
py
Python
tracker.py
rashiddaha/ivy
59106ba29ee21305c2b3222d08d1b2869d6e27f3
[ "MIT" ]
206
2018-10-08T17:04:33.000Z
2019-12-22T02:51:08.000Z
tracker.py
rashiddaha/ivy
59106ba29ee21305c2b3222d08d1b2869d6e27f3
[ "MIT" ]
28
2019-03-07T11:58:21.000Z
2019-12-20T18:05:19.000Z
tracker.py
rashiddaha/ivy
59106ba29ee21305c2b3222d08d1b2869d6e27f3
[ "MIT" ]
85
2019-12-23T10:33:09.000Z
2022-01-06T18:16:04.000Z
''' Functions for keeping track of detected objects in a video. ''' import sys import cv2 import settings from util.blob import Blob from util.bounding_box import get_overlap, get_box_image from util.image import get_base64_image from util.object_info import generate_object_id from util.logger import get_logger logg...
33.326241
109
0.61396
196ebec2019f556e8f411dfe8b28c82af8e81199
8,243
py
Python
openstack/utils.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
null
null
null
openstack/utils.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
null
null
null
openstack/utils.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
1
2021-03-12T14:28:28.000Z
2021-03-12T14:28:28.000Z
# 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 agreed to in writing, software # distributed under t...
35.683983
79
0.667961
97242a689a08d95819d2189f6652acfc7189c6c9
3,170
py
Python
textparser.py
apatel762/anki-parser
06357eb23b0dc930c848a2fcc36ebe5f433c0ee2
[ "MIT" ]
null
null
null
textparser.py
apatel762/anki-parser
06357eb23b0dc930c848a2fcc36ebe5f433c0ee2
[ "MIT" ]
null
null
null
textparser.py
apatel762/anki-parser
06357eb23b0dc930c848a2fcc36ebe5f433c0ee2
[ "MIT" ]
null
null
null
class TextParser(object): """ A class containing methods used for parsing lists of data. Keeps the main script clean. """ @staticmethod def kanji_deck_only_main_vocab_word(lst): """ All of the text in each card of the Kanji deck is separated by '\x1f' characters. This met...
37.738095
82
0.626183
31f06772d6412e18e49b7afa61ca10562c63fee2
3,064
py
Python
modules/calendar/calendar.py
wvanlit/smart-mirror
707da82af3e241d91618a79dfaa423704ab0bddb
[ "MIT" ]
null
null
null
modules/calendar/calendar.py
wvanlit/smart-mirror
707da82af3e241d91618a79dfaa423704ab0bddb
[ "MIT" ]
null
null
null
modules/calendar/calendar.py
wvanlit/smart-mirror
707da82af3e241d91618a79dfaa423704ab0bddb
[ "MIT" ]
null
null
null
from kivy.uix.widget import Widget from kivy.properties import StringProperty from kivy.clock import Clock import datetime from dateutil import tz # Google Calendar Stuff import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.tr...
31.587629
87
0.699739
956597fce3b1684784fd3ce76cef7bc84cddbce0
2,674
py
Python
examples/background_mask_sphere.py
RI-imaging/qpimage
e572f0ece5b0a33b031e44ce390c2d40a1975851
[ "MIT" ]
1
2022-02-13T15:14:21.000Z
2022-02-13T15:14:21.000Z
examples/background_mask_sphere.py
RI-imaging/qpimage
e572f0ece5b0a33b031e44ce390c2d40a1975851
[ "MIT" ]
13
2017-10-10T11:23:56.000Z
2021-12-06T00:02:46.000Z
examples/background_mask_sphere.py
RI-imaging/qpimage
e572f0ece5b0a33b031e44ce390c2d40a1975851
[ "MIT" ]
2
2018-04-05T04:21:34.000Z
2020-07-21T11:57:04.000Z
"""Object-mask background image correction In some cases, using :ref:`only the border of the phase image <example_background_poly2o>` for background correction might not be enough. To increase the area of the background image, it is possible to mask only the cell area. The :ref:`qpsphere package <qpsphere:index>` prov...
35.184211
69
0.648467
750f449a7e4e18500729621fde95f5f7e2e7adb7
570
py
Python
config/celery_app.py
flashboyka/initpy
d6000c6141e54b35619ebed843039bd8f9667353
[ "MIT" ]
null
null
null
config/celery_app.py
flashboyka/initpy
d6000c6141e54b35619ebed843039bd8f9667353
[ "MIT" ]
3
2019-07-29T05:33:39.000Z
2022-01-13T01:24:41.000Z
config/celery_app.py
flashboyka/initpy
d6000c6141e54b35619ebed843039bd8f9667353
[ "MIT" ]
2
2019-07-12T04:12:20.000Z
2019-07-29T04:34:04.000Z
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") app = Celery("initpy") # Using a string here means the worker doesn't have to serialize # the configuration object to child processes. # - na...
33.529412
72
0.782456
c82dbd866c8cb5768cd2a037ea09371a0f1bbcb0
633
py
Python
dream_project/manage.py
saikotprof/dream_project
938ba854d5e2277effe19b6945c4d9ab5d6eda78
[ "MIT" ]
null
null
null
dream_project/manage.py
saikotprof/dream_project
938ba854d5e2277effe19b6945c4d9ab5d6eda78
[ "MIT" ]
null
null
null
dream_project/manage.py
saikotprof/dream_project
938ba854d5e2277effe19b6945c4d9ab5d6eda78
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dream_project.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
28.772727
77
0.685624
4d4b5194e37fad08add68f2709d4bcd188328849
8,629
py
Python
tests/safety/test_subaru.py
martinl/panda
c2491558770f90f2fb645a9828a9044c8f1f826e
[ "MIT" ]
null
null
null
tests/safety/test_subaru.py
martinl/panda
c2491558770f90f2fb645a9828a9044c8f1f826e
[ "MIT" ]
1
2021-05-06T18:39:54.000Z
2021-05-26T13:38:12.000Z
tests/safety/test_subaru.py
martinl/panda
c2491558770f90f2fb645a9828a9044c8f1f826e
[ "MIT" ]
10
2020-05-13T19:37:38.000Z
2021-05-19T20:03:58.000Z
#!/usr/bin/env python3 import unittest import numpy as np from panda import Panda from panda.tests.safety import libpandasafety_py import panda.tests.safety.common as common from panda.tests.safety.common import CANPackerPanda MAX_RATE_UP = 50 MAX_RATE_DOWN = 70 MAX_RT_DELTA = 940 RT_INTERVAL = 250000 DRIVER_TORQUE_...
37.354978
96
0.713988
243736df9a98f09105de38d78215ccb5d2792b19
1,728
py
Python
roppy/averator.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
roppy/averator.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
roppy/averator.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Generator for moving averages from ROMS file(s)""" import numpy as np def roms_averator(ncid, var_name, L, grd): """Generator for moving averages from ROMS file(s) var_name : text string, name of NetCDF variable ncid : an open NetCDF Dataset or MFDataset grd : a roppy.S...
29.793103
73
0.555556
441594322682bbf84319f05f238ca6ce65298592
1,871
py
Python
xdplayer/vdlauncher.py
anjakefala/xdplayer
3508e77b4f9fe45b8a8a61bdf3ce1d895b371f91
[ "MIT" ]
9
2021-03-11T00:55:37.000Z
2022-02-15T03:16:33.000Z
xdplayer/vdlauncher.py
anjakefala/xdplayer
3508e77b4f9fe45b8a8a61bdf3ce1d895b371f91
[ "MIT" ]
3
2022-02-06T06:01:01.000Z
2022-03-12T21:27:01.000Z
xdplayer/vdlauncher.py
anjakefala/xdplayer
3508e77b4f9fe45b8a8a61bdf3ce1d895b371f91
[ "MIT" ]
2
2022-01-05T21:24:49.000Z
2022-01-29T20:20:01.000Z
#!/usr/bin/env python3 import os import stat from visidata import SqliteQuerySheet, Path, Column, date class vdLauncher(SqliteQuerySheet): 'Load puzzles started, but not submitted by teamid.' @classmethod def stat_guesses(cls, fn): 'Return Path($TEAMDIR/{fn.stem}.xd.guesses.jsonl' xdid =...
29.234375
96
0.571887
598d1e0b714fde1d36ab82e6e6908b5444b4d4e8
117,253
py
Python
kubernetes_asyncio/client/api/storage_v1beta1_api.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/storage_v1beta1_api.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/storage_v1beta1_api.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.23.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # ...
67.933372
1,386
0.674891
5d5a404676cba185d09014a8a355dca50e004c9c
6,713
py
Python
camkes/parser/tests/teststage2.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
camkes/parser/tests/teststage2.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
camkes/parser/tests/teststage2.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017, Data61 # Commonwealth Scientific and Industrial Research Organisation (CSIRO) # ABN 41 687 119 230. # # This software may be distributed and modified according to the terms of # the BSD 2-Clause license. Note that NO WARRANTY is provided. # See "LICENSE...
29.70354
75
0.577536
2dd2fe7cf221a4a4a707eb2821a3f20c3c46c736
20,920
py
Python
fpga/mqnic/VCU1525/fpga_100g/tb/fpga_core/test_fpga_core.py
andrewray/corundum
7c8abe261b2ec3e653da7bc881f769668a231bde
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
fpga/mqnic/VCU1525/fpga_100g/tb/fpga_core/test_fpga_core.py
andrewray/corundum
7c8abe261b2ec3e653da7bc881f769668a231bde
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
fpga/mqnic/VCU1525/fpga_100g/tb/fpga_core/test_fpga_core.py
andrewray/corundum
7c8abe261b2ec3e653da7bc881f769668a231bde
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Copyright 2020, The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
36.573427
119
0.658748
a1b700f63466be0a937d11bac0094c3ab791cfa9
1,489
py
Python
test/mac/gyptest-identical-name.py
kaadam/GYP
86ab71caad4640dcc3ec572c2118a1ce3f24150f
[ "BSD-3-Clause" ]
11
2019-07-30T14:15:13.000Z
2020-08-17T10:03:46.000Z
test/mac/gyptest-identical-name.py
kaadam/GYP
86ab71caad4640dcc3ec572c2118a1ce3f24150f
[ "BSD-3-Clause" ]
25
2018-10-18T15:39:07.000Z
2019-07-03T00:40:01.000Z
test/mac/gyptest-identical-name.py
kaadam/GYP
86ab71caad4640dcc3ec572c2118a1ce3f24150f
[ "BSD-3-Clause" ]
15
2018-10-18T14:40:18.000Z
2019-07-02T16:25:55.000Z
#!/usr/bin/env python # Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies libraries (in identical-names) are properly handeled by xcode. The names for all libraries participating in this build are: li...
34.627907
79
0.773674
3326d026692b5105d90e372569239a058dca4b01
7,514
py
Python
src/snovault/calculated.py
Lattice-Data/snovault
384f4a3bf3afcc4b825f98c80d18a5852d46ef5c
[ "MIT" ]
null
null
null
src/snovault/calculated.py
Lattice-Data/snovault
384f4a3bf3afcc4b825f98c80d18a5852d46ef5c
[ "MIT" ]
null
null
null
src/snovault/calculated.py
Lattice-Data/snovault
384f4a3bf3afcc4b825f98c80d18a5852d46ef5c
[ "MIT" ]
null
null
null
from __future__ import absolute_import import venusian from pyramid.decorator import reify from pyramid.traversal import find_root from types import MethodType from .interfaces import ( CALCULATED_PROPERTIES, CONNECTION, ) def includeme(config): config.registry[CALCULATED_PROPERTIES] = CalculatedPropertie...
33.247788
102
0.614586
067b91965208ffe6821f27c2caea3814c35e8725
858
py
Python
problems/p001.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p001.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p001.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
2
2020-10-08T23:35:03.000Z
2020-10-09T00:28:36.000Z
from itertools import count, takewhile from problem import Problem class MultiplesOr(Problem, name="Multiples of 3 and 5", expected=233168): @Problem.solution() def summed_sums(self): return self.sum_divisible_by(3, 999) + self.sum_divisible_by(5, 999) - self.sum_divisible_by(15, 999) @Problem.s...
29.586207
109
0.641026