hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7943f89ce7024f29af215e2f4e120839cce8c7d7
276
py
Python
Source Code/example/function.py
Amoswuuuu/Python-foundation-HNU
2a30c18fd03f453197c902eeec537d4ab0bdaaad
[ "Apache-2.0" ]
1
2019-05-12T06:02:20.000Z
2019-05-12T06:02:20.000Z
Source Code/example/function.py
Amoswuuuu/Python-foundation-HNU
2a30c18fd03f453197c902eeec537d4ab0bdaaad
[ "Apache-2.0" ]
null
null
null
Source Code/example/function.py
Amoswuuuu/Python-foundation-HNU
2a30c18fd03f453197c902eeec537d4ab0bdaaad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author :AmosWu # Date :2019/1/26 # Features : function def func(x): return x*x def main(): num = int(input("Please input a number:")) result = func(num) print(result) if __name__ == '__main__': main()
18.4
46
0.57971
7943f94af3200bbe0a1a6c62342686ef7519482b
5,083
py
Python
deluca/agents/_deep.py
google/deluca
626ade7bfa44afc52e6ffb9a9e6e94258b4dc024
[ "Apache-2.0" ]
105
2020-12-10T05:08:28.000Z
2022-03-17T03:53:10.000Z
deluca/agents/_deep.py
google/deluca
626ade7bfa44afc52e6ffb9a9e6e94258b4dc024
[ "Apache-2.0" ]
36
2020-12-11T11:47:36.000Z
2021-08-25T09:40:07.000Z
deluca/agents/_deep.py
google/deluca
626ade7bfa44afc52e6ffb9a9e6e94258b4dc024
[ "Apache-2.0" ]
16
2020-12-10T16:43:31.000Z
2022-03-17T02:02:18.000Z
# Copyright 2021 The Deluca 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.717514
99
0.577612
7943fafcfb5928444df4af24a274674035c5ec35
5,711
py
Python
pycls/models/nas_bench/graph_util.py
AlbertiPot/unnas
f0df44634ae300a52adc25b7fb24f4b089655680
[ "MIT" ]
93
2020-08-03T01:40:17.000Z
2021-12-14T02:58:09.000Z
pycls/models/nas_bench/graph_util.py
AlbertiPot/unnas
f0df44634ae300a52adc25b7fb24f4b089655680
[ "MIT" ]
4
2020-08-24T10:53:30.000Z
2021-08-12T20:30:47.000Z
pycls/models/nas_bench/graph_util.py
AlbertiPot/unnas
f0df44634ae300a52adc25b7fb24f4b089655680
[ "MIT" ]
11
2020-08-03T20:59:17.000Z
2022-03-03T00:48:01.000Z
# 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. # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ...
33.011561
79
0.67834
7943fc32206562bdcf159c03a25938e52a1b5268
474
py
Python
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 2/4. Functions/gcd_iter.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 2/4. Functions/gcd_iter.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 2/4. Functions/gcd_iter.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
def gcdIter(a, b): ''' a, b: positive integers returns: a positive integer, the greatest common divisor of a & b. ''' # Your code here gcd = 1 if a > b: for i in range(b, 0, -1): if a % i == 0 and b % i == 0: gcd = i break else: ...
21.545455
70
0.415612
7943fc76de95a4a3c2582929c731a6c531f73167
354
py
Python
op_webgui/urls.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
5
2016-10-31T17:46:17.000Z
2022-02-02T00:40:49.000Z
op_webgui/urls.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
33
2018-05-09T06:07:50.000Z
2021-09-22T17:39:56.000Z
op_webgui/urls.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
1
2020-05-14T21:44:25.000Z
2020-05-14T21:44:25.000Z
# file: op_webgui/urls.py from django.conf.urls import url from django.contrib.auth import views as auth_views from op_webgui import views app_name = 'op_webgui' urlpatterns = [ url( r'^$', views.index, name='index' ), url( r'^router/$', views.router_list, ...
16.857143
51
0.581921
7943fd2d92e4b7d07753619ad44d1bc7c6f33f6f
215
py
Python
pyf/_has_setuid.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
1
2022-03-13T22:08:25.000Z
2022-03-13T22:08:25.000Z
pyf/_has_setuid.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
21
2022-03-17T16:53:04.000Z
2022-03-31T23:55:24.000Z
pyf/_has_setuid.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
null
null
null
def _has_setuid(path): # -u if not path: return False if hasattr(path, '_mode'): return (path._mode & stat.S_ISUID) != 0 return (os.stat(path).st_mode & stat.S_ISUID) != 0
26.875
55
0.553488
7943fdef7d4903f3a2541ac4f6c43297a3075436
1,900
py
Python
Adelphi Academic Calendar/date_testing.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/date_testing.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/date_testing.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
from datetime import date from datetime import timedelta import json filename = "tmp/adelphi_calendar2.json" today = date.today() event = "matriculation day" with open(filename) as f: calendar_info_dict = json.load(f) future_date = calendar_info_dict[event] month_day_year = future_date.split(" ") month_num_dict...
22.093023
64
0.643158
7943fe4554217d9a6da9e719169e7b1be9d1d96b
13,584
py
Python
closed/Alibaba/code/common/system_list.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
closed/Alibaba/code/common/system_list.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
closed/Alibaba/code/common/system_list.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
39.034483
165
0.612927
7943ffaee95bdd805e31f28e36ee6508a2e9d1cf
46,325
py
Python
mypy/server/update.py
TV4Fun/mypy
fe6fd1a10cd133fd6833ff64a68a27d0641820dc
[ "PSF-2.0" ]
null
null
null
mypy/server/update.py
TV4Fun/mypy
fe6fd1a10cd133fd6833ff64a68a27d0641820dc
[ "PSF-2.0" ]
null
null
null
mypy/server/update.py
TV4Fun/mypy
fe6fd1a10cd133fd6833ff64a68a27d0641820dc
[ "PSF-2.0" ]
null
null
null
"""Update build by processing changes using fine-grained dependencies. Use fine-grained dependencies to update targets in other modules that may be affected by externally-visible changes in the changed modules. This forms the core of the fine-grained incremental daemon mode. This module is not used at all by the 'cla...
42.853839
99
0.645764
7943ffc8ab0856d150d1fb00f818988d33b17352
1,031
py
Python
voice100/train_ttsalign.py
kaiidams/voice100-tts
75cbf185ef7ef80a38db382ffe61a1e100474f6c
[ "MIT" ]
6
2021-11-05T17:50:44.000Z
2022-03-07T23:13:15.000Z
voice100/train_ttsalign.py
kaiidams/voice100-tts
75cbf185ef7ef80a38db382ffe61a1e100474f6c
[ "MIT" ]
1
2022-01-18T13:26:22.000Z
2022-03-18T11:23:02.000Z
voice100/train_ttsalign.py
kaiidams/voice100-tts
75cbf185ef7ef80a38db382ffe61a1e100474f6c
[ "MIT" ]
1
2022-01-03T05:20:09.000Z
2022-01-03T05:20:09.000Z
# Copyright (C) 2021 Katsuya Iida. All rights reserved. from argparse import ArgumentParser import pytorch_lightning as pl from pytorch_lightning.callbacks import ModelCheckpoint from .datasets import AlignTextDataModule from .models.tts import TextToAlignTextModel def cli_main(): pl.seed_everything(1234) ...
33.258065
96
0.777886
7943ffc8c90a633fdfe0c8b3dd369055b0746c72
3,983
py
Python
modeling/smd/evaluate.py
HLTCHKUST/ke-dialogue
cb73237889860adedcfd381b28813feb267cef81
[ "MIT" ]
41
2020-10-05T05:57:08.000Z
2021-12-20T12:07:42.000Z
modeling/smd/evaluate.py
HLTCHKUST/ke-dialogue
cb73237889860adedcfd381b28813feb267cef81
[ "MIT" ]
5
2021-03-15T09:34:39.000Z
2022-02-10T16:02:23.000Z
modeling/smd/evaluate.py
HLTCHKUST/ke-dialogue
cb73237889860adedcfd381b28813feb267cef81
[ "MIT" ]
4
2020-10-19T08:10:43.000Z
2021-11-09T13:06:24.000Z
import os import os.path import sys sys.path.append('../..') from utils.preprocessSMD import load_SMD from transformers import (AdamW,WEIGHTS_NAME, CONFIG_NAME) from utils.hugging_face import load_model,get_parser,top_filtering, SPECIAL_TOKENS, add_special_tokens_, average_distributed_scalar, make_logdir, build_input_...
41.061856
186
0.700979
79440198714278fd7eb88e05b352e35fe01e7fd0
1,058
py
Python
cdc/util/json.py
pastly/craps-dice-control
f6f69c9220dffd5f7e2ef07c929b15b4a73bdd13
[ "FSFAP" ]
null
null
null
cdc/util/json.py
pastly/craps-dice-control
f6f69c9220dffd5f7e2ef07c929b15b4a73bdd13
[ "FSFAP" ]
8
2019-03-14T18:46:34.000Z
2019-05-09T02:11:17.000Z
cdc/util/json.py
pastly/craps-dice-control
f6f69c9220dffd5f7e2ef07c929b15b4a73bdd13
[ "FSFAP" ]
null
null
null
import json class NumericKeyDecoder(json.JSONDecoder): ''' Python allows ints to be keys in a dict but JSON doesn't. It's nice to be able to use ints as keys in dicts, so parse numeric-looking keys in the given JSON into their numeric types. ''' def decode(self, s): res = super().decode(s) ...
29.388889
78
0.44896
7944022c75b51c0a22a5ed82eb29c63240b69f29
77
py
Python
twilio/__init__.py
soyandreav/twilio-python
9accbc8b0932fdf3d024dc4c5429aa26469d8ac2
[ "MIT" ]
null
null
null
twilio/__init__.py
soyandreav/twilio-python
9accbc8b0932fdf3d024dc4c5429aa26469d8ac2
[ "MIT" ]
null
null
null
twilio/__init__.py
soyandreav/twilio-python
9accbc8b0932fdf3d024dc4c5429aa26469d8ac2
[ "MIT" ]
null
null
null
__version_info__ = ('7', '3', '1') __version__ = '.'.join(__version_info__)
19.25
40
0.649351
79440257968033a2792c9a48342936d27a288a39
247,091
py
Python
blender_bindings/source1/bsp/entities/left4dead2_entity_classes.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
source1/bsp/entities/left4dead2_entity_classes.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
source1/bsp/entities/left4dead2_entity_classes.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
def parse_source_value(value): if type(value) is str: value: str if value.replace('.', '', 1).replace('-', '', 1).isdecimal(): return float(value) if '.' in value else int(value) return 0 else: return value def parse_int_vector(string): return [parse_source_val...
25.502219
118
0.674537
7944026a4bb6969e78236a9208d9fb93543bbca3
15,408
py
Python
billforward/apis/emails_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
2
2016-11-23T17:32:37.000Z
2022-02-24T05:13:20.000Z
billforward/apis/emails_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
null
null
null
billforward/apis/emails_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
1
2016-12-30T20:02:48.000Z
2016-12-30T20:02:48.000Z
# coding: utf-8 """ BillForward REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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...
40.978723
109
0.580802
7944029fe67360695f7e7e7d732ef9a7d83601a6
4,525
py
Python
bin/txt2params.py
haampie/rocprofiler
9b7edb39207cb040093ffdd7d99c9d6e56807c95
[ "MIT" ]
44
2018-12-21T14:09:30.000Z
2022-03-18T15:11:32.000Z
bin/txt2params.py
haampie/rocprofiler
9b7edb39207cb040093ffdd7d99c9d6e56807c95
[ "MIT" ]
61
2019-01-22T00:35:06.000Z
2022-03-31T13:33:28.000Z
bin/txt2params.py
haampie/rocprofiler
9b7edb39207cb040093ffdd7d99c9d6e56807c95
[ "MIT" ]
26
2019-06-04T16:38:39.000Z
2022-01-21T21:29:55.000Z
################################################################################ # Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved. # # 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 th...
40.765766
121
0.572597
794402ad6492a51c0113a437713d34d947e05b2c
246
py
Python
src/tensor/op/geometric/combine/stack/horizontal.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/op/geometric/combine/stack/horizontal.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/op/geometric/combine/stack/horizontal.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
""" *Horizontal Stack* """ from dataclasses import dataclass import jax.numpy as jnp from ._operator import StackOperator __all__ = ["HorizontalStack"] @dataclass class HorizontalStack( StackOperator, ): operator = jnp.hstack
11.714286
36
0.719512
79440360c20c72e28e3d685d89cbd83e3ec28359
3,084
py
Python
PYTHON/11.py
guikingma/project_euler
e4deffc63f39a304e449c12ee1fa1233c6f70e91
[ "WTFPL" ]
1
2015-11-06T07:04:22.000Z
2015-11-06T07:04:22.000Z
PYTHON/11.py
guikingma/project_euler
e4deffc63f39a304e449c12ee1fa1233c6f70e91
[ "WTFPL" ]
null
null
null
PYTHON/11.py
guikingma/project_euler
e4deffc63f39a304e449c12ee1fa1233c6f70e91
[ "WTFPL" ]
null
null
null
''' 11: In the 20x20 grid below, four numbers along a diagonal line have been marked in red. The product of these numbers is 26 * 63 * 78 * 14 = 1788696. What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20x20 grid? ''' a = [""] * 20 # 0 1 2 3...
40.578947
133
0.571336
794405b82081e98a9a20255c237f162966b23b6f
2,830
py
Python
start.py
Seamooo/nn-chess
38c3e54ab34af54d650240d35d0372689ff104bf
[ "MIT" ]
null
null
null
start.py
Seamooo/nn-chess
38c3e54ab34af54d650240d35d0372689ff104bf
[ "MIT" ]
null
null
null
start.py
Seamooo/nn-chess
38c3e54ab34af54d650240d35d0372689ff104bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, url_for, send_from_directory, request, jsonify from chess import Board import random app = Flask(__name__, static_url_path='', static_folder='public') @app.route('/', methods=['GET']) def get_index(): return app.send_static_file('index.html') @app.route('/img/<path...
24.396552
71
0.681272
7944075947846574d9101e0589c934cb6d7f7051
2,073
py
Python
fucking-awesome.py
Correia-jpv/fu-awe-readme
39ec3912859e6840642ab4b627055fa2ab1c5ca3
[ "MIT" ]
null
null
null
fucking-awesome.py
Correia-jpv/fu-awe-readme
39ec3912859e6840642ab4b627055fa2ab1c5ca3
[ "MIT" ]
null
null
null
fucking-awesome.py
Correia-jpv/fu-awe-readme
39ec3912859e6840642ab4b627055fa2ab1c5ca3
[ "MIT" ]
null
null
null
import os import re import time import requests from requests.adapters import HTTPAdapter from dotenv import load_dotenv load_dotenv() PAT = os.getenv("PAT") ORIGIN_REPO = os.getenv("ORIGIN_REPO") originRepoURL = f'https://raw.githubusercontent.com/correia-jpv/fucking-{ORIGIN_REPO}/main/readme.md' # Session HEADERS =...
30.485294
101
0.623734
794409152085b270bec6b796b2e2a58d2e295bef
3,341
py
Python
rdr_service/cloud_utils/gcp_cloud_tasks.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/cloud_utils/gcp_cloud_tasks.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/cloud_utils/gcp_cloud_tasks.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
from datetime import datetime, timedelta, date import json import logging from time import sleep from google.api_core.exceptions import InternalServerError, GoogleAPICallError from google.cloud import tasks_v2 from google.protobuf import timestamp_pb2 from rdr_service.config import GAE_PROJECT from rdr_service.servic...
36.714286
116
0.624963
7944092618b4f0c08ccd4276d263571e05b58a04
1,722
py
Python
Code Implementations/rail_fence_cipher.py
GalacticGlum/CryptographyResearchPaper
b538ba91fcee47995b2bf102affa9425badafc0c
[ "Unlicense" ]
null
null
null
Code Implementations/rail_fence_cipher.py
GalacticGlum/CryptographyResearchPaper
b538ba91fcee47995b2bf102affa9425badafc0c
[ "Unlicense" ]
null
null
null
Code Implementations/rail_fence_cipher.py
GalacticGlum/CryptographyResearchPaper
b538ba91fcee47995b2bf102affa9425badafc0c
[ "Unlicense" ]
null
null
null
def encrypt(plain_text, rails): cipher_text = str() cycle = max((rails - 1) * 2, 1) # 1 is special case for 1 rail for rail in range(rails): ptr = rail character_distance = cycle - 2 * rail # Both the bottom and top rails have a (same) character distance of the cycle. ...
33.764706
93
0.592334
7944099f339e6bd586e07429710afcfec84afdb9
368
py
Python
test/dummy.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/dummy.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/dummy.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
repo_files = { "readme.md": "Hello world!", "requirements.txt": "django==2.3.4", "package.json": '{"dependencies": {"webpack": "~0.0.0-rc14"}}', } def check_found(context): yield context.Result("check:found", True, {"answer": 42}) def check_passing(context): yield context.Result("check:passing",...
21.647059
67
0.646739
794409bd586aaf4690914dd1a7f0b1eef4a35ead
3,202
py
Python
lta/log_format.py
jnbellinger/lta
b7cb3c65e0f167e56abb67f8283083aafd700e42
[ "MIT" ]
1
2019-07-30T16:03:26.000Z
2019-07-30T16:03:26.000Z
lta/log_format.py
jnbellinger/lta
b7cb3c65e0f167e56abb67f8283083aafd700e42
[ "MIT" ]
80
2019-01-10T21:46:43.000Z
2022-03-24T22:40:54.000Z
lta/log_format.py
jnbellinger/lta
b7cb3c65e0f167e56abb67f8283083aafd700e42
[ "MIT" ]
1
2018-12-10T21:13:11.000Z
2018-12-10T21:13:11.000Z
# log_format.py """ Module to provide support for structured logging. Example code to enable structured logging might look as follows: structured_formatter = StructuredFormatter( component_type='Transmogrifier', component_name='transmog-node-1', ndjson=True) stream_handler = logging.St...
39.04878
90
0.661462
794409cfaa3d05a1f2885a2e3a6b8370e6a0a916
3,992
py
Python
task_set/train_inner_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
task_set/train_inner_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
task_set/train_inner_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.945736
75
0.682365
794409ea24b35d8312a8db6931f0c60cd31f57c6
10,865
py
Python
extras/client/alpaca_discovery.py
jamessynge/TinyAlpacaServer
12cffca15542be418cd42322e2150ba432eeb945
[ "MIT" ]
1
2021-10-07T04:35:05.000Z
2021-10-07T04:35:05.000Z
extras/client/alpaca_discovery.py
jamessynge/TinyAlpacaServer
12cffca15542be418cd42322e2150ba432eeb945
[ "MIT" ]
null
null
null
extras/client/alpaca_discovery.py
jamessynge/TinyAlpacaServer
12cffca15542be418cd42322e2150ba432eeb945
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Provides the ability to find IPv4 ASCOM Alpaca servers on the local networks. Uses the netifaces library to find the broadcast IPs that can be used for sending the UDP discovery message. Some functions accept **kwargs (i.e. unspecified keyword arguments) so that they can be passed arguments ...
34.823718
80
0.688909
79440b0b8dec8b1db765e967a0ce138b1b4939b9
11,263
py
Python
sha256/core/ubitarray_32.py
greysonDEV/SHA-256
512de78a7261728316f79de5be2ca8b6eddebbb6
[ "MIT" ]
null
null
null
sha256/core/ubitarray_32.py
greysonDEV/SHA-256
512de78a7261728316f79de5be2ca8b6eddebbb6
[ "MIT" ]
null
null
null
sha256/core/ubitarray_32.py
greysonDEV/SHA-256
512de78a7261728316f79de5be2ca8b6eddebbb6
[ "MIT" ]
null
null
null
# ============================================================================ # # Author: Greyson Murray (greyson.murray@gmail.com) # # Description: This file contains UBitArray32 and other auxiliary methods that # deal with various bit computations. # # LICENSE: MIT # ===============================...
26.880668
94
0.568765
79440b906143141713b2cffaf7f77a336cff33cc
18,791
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/voss_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/voss_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/voss_config.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: (c) 2018, Extreme Networks Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: voss_config author: "Lindsay Hill (@LindsayH...
41.573009
129
0.65707
79440c1684e8cd9185325689d9bdc263f9f75510
5,304
py
Python
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright (C) 2019, Raffaello Bonghi <raffaello@rnext.it> # 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 cop...
34.219355
115
0.625
79440c302f15194637e767cbd4116cade302422a
140,196
py
Python
tests/test_temporal.py
jasonb5/xcdat
4a35d6a6131fe3fec22593f54a9e48b640ceac4f
[ "Apache-2.0" ]
null
null
null
tests/test_temporal.py
jasonb5/xcdat
4a35d6a6131fe3fec22593f54a9e48b640ceac4f
[ "Apache-2.0" ]
null
null
null
tests/test_temporal.py
jasonb5/xcdat
4a35d6a6131fe3fec22593f54a9e48b640ceac4f
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import cftime import numpy as np import pandas as pd import pytest import xarray as xr from xarray.tests import requires_dask from tests.fixtures import generate_dataset from xcdat.temporal import TemporalAccessor class TestTemporalAccessor: def test__init__(self): ds: xr.D...
36.748624
87
0.40835
79440ce7082c50c78c2002448ef125c872d6cce1
21,770
py
Python
parser/fase2/team03/parse/expressions/expressions_base.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team03/parse/expressions/expressions_base.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team03/parse/expressions/expressions_base.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
4
2020-12-19T17:12:13.000Z
2021-01-07T20:29:53.000Z
from .expression_enum import OpArithmetic, OpRelational, OpLogic, OpPredicate from datetime import date, datetime from parse.errors import Error, ErrorType from parse.ast_node import ASTNode import hashlib from TAC.quadruple import Quadruple from TAC.tac_enum import * from parse.symbol_table import generate_tmp clas...
39.653916
156
0.609095
79440d65095cdd6b74878b17a2d58b4b076407a5
6,810
py
Python
nevergrad/instrumentation/core.py
enthought/nevergrad
2a0f778aa316264e785d0e6305a897679b3b97f7
[ "MIT" ]
null
null
null
nevergrad/instrumentation/core.py
enthought/nevergrad
2a0f778aa316264e785d0e6305a897679b3b97f7
[ "MIT" ]
null
null
null
nevergrad/instrumentation/core.py
enthought/nevergrad
2a0f778aa316264e785d0e6305a897679b3b97f7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import uuid import copy from typing import Any, Tuple, Optional, Dict, Set, TypeVar import typing as tp import numpy as n...
35.842105
118
0.640822
79440e72a7f66fc79afbb6da8c13ae85e03ef714
1,108
py
Python
examples/html-test/app.py
anokidev/hasta
570f3e35197c3370a0c8f7cc77d81640c8022165
[ "MIT" ]
1
2022-01-01T18:38:57.000Z
2022-01-01T18:38:57.000Z
examples/html-test/app.py
anokidev/hasta
570f3e35197c3370a0c8f7cc77d81640c8022165
[ "MIT" ]
8
2021-12-31T10:21:42.000Z
2022-01-02T16:57:14.000Z
examples/html-test/app.py
anokidev/hasta
570f3e35197c3370a0c8f7cc77d81640c8022165
[ "MIT" ]
null
null
null
''' This file is used for examples only. In this case, a class with 2 functions, __init__ and html_application. When the class is initialized, __init__ is called. Which reads the content inside index.html, which is located inside html folder. The result is stored inside self....
22.16
60
0.665162
79440e73ef82d04f6c616dae71c9771e1cbeedd2
4,392
py
Python
CIFAR10_evaluation/lbp/linear_classifier.py
ncos/hometasks
9504ef7ed8fe30b5bc78ca1e423a2b85e46734a1
[ "MIT" ]
3
2019-02-19T21:21:02.000Z
2020-01-30T19:49:01.000Z
CIFAR10_evaluation/lbp/linear_classifier.py
ncos/hometasks
9504ef7ed8fe30b5bc78ca1e423a2b85e46734a1
[ "MIT" ]
null
null
null
CIFAR10_evaluation/lbp/linear_classifier.py
ncos/hometasks
9504ef7ed8fe30b5bc78ca1e423a2b85e46734a1
[ "MIT" ]
null
null
null
import numpy as np from loss_grad_logistic import * from loss_grad_softmax import * from loss_grad_svm import * class LinearClassifier: def __init__(self): self.W = None # set up the weight matrix def train(self, X, y, method='sgd', batch_size=200, learning_rate=1e-4, reg = 1e3, num_it...
34.3125
99
0.589253
79440e877996a9620501cd2f769d437ce9c60c44
5,950
py
Python
nintendo/nex/service.py
Cuyler36/NintendoClients
d38986674ecc4dec624694649361f1f334901020
[ "MIT" ]
null
null
null
nintendo/nex/service.py
Cuyler36/NintendoClients
d38986674ecc4dec624694649361f1f334901020
[ "MIT" ]
null
null
null
nintendo/nex/service.py
Cuyler36/NintendoClients
d38986674ecc4dec624694649361f1f334901020
[ "MIT" ]
null
null
null
from nintendo.common import scheduler from nintendo.nex import prudp, streams, kerberos, common import random import struct import time import logging logger = logging.getLogger(__name__) class RMCClient: def __init__(self, settings, sock=None): self.settings = settings self.sock = sock if not self.sock: ...
30.670103
106
0.723361
79440f0342f24e95effb95e8b92cefa04f0d2503
4,259
py
Python
test/functional/rpc_net.py
nhoussay/groom
87e69a80c1e15e4683ef64c55ac65547910b1c97
[ "MIT" ]
null
null
null
test/functional/rpc_net.py
nhoussay/groom
87e69a80c1e15e4683ef64c55ac65547910b1c97
[ "MIT" ]
null
null
null
test/functional/rpc_net.py
nhoussay/groom
87e69a80c1e15e4683ef64c55ac65547910b1c97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ from test_framework.test_frame...
42.59
134
0.687955
79440fb40a5e2e678b5cd229cb1435717c866b01
8,886
py
Python
src/PlugIns/PE/CertficatePlug.py
codexgigassys/codex-backend
1e6b946f05e2fd9ce80b207046fe168f49cc2db2
[ "MIT" ]
161
2016-08-03T14:25:20.000Z
2021-08-11T03:18:35.000Z
src/PlugIns/PE/CertficatePlug.py
codexgigassys/codex-backend
1e6b946f05e2fd9ce80b207046fe168f49cc2db2
[ "MIT" ]
115
2016-08-08T09:24:08.000Z
2020-03-07T06:48:02.000Z
src/PlugIns/PE/CertficatePlug.py
codexgigassys/codex-backend
1e6b946f05e2fd9ce80b207046fe168f49cc2db2
[ "MIT" ]
46
2016-08-04T08:25:28.000Z
2021-09-05T23:46:55.000Z
# Copyright (C) 2016 Deloitte Argentina. # This file is part of CodexGigas - https://github.com/codexgigassys/ # See the file 'LICENSE' for copying permission. import pathmagic from Sample import Sample from subprocess import check_output import binascii from PlugIns.PlugIn import PlugIn from Modules.PEFileModule impor...
37.179916
88
0.497524
79440fdf9b15ff0d7a89ce5bc2174b8549ddee52
61,336
py
Python
src/policy_makers/ipmi_over_lan_policy_maker/ipmi_over_lan_policy_maker.py
ugo-emekauwa/cisco-imm-automation-tools
67b1e752c32ca08b1acb928e68b697b60a62836f
[ "Apache-2.0" ]
null
null
null
src/policy_makers/ipmi_over_lan_policy_maker/ipmi_over_lan_policy_maker.py
ugo-emekauwa/cisco-imm-automation-tools
67b1e752c32ca08b1acb928e68b697b60a62836f
[ "Apache-2.0" ]
null
null
null
src/policy_makers/ipmi_over_lan_policy_maker/ipmi_over_lan_policy_maker.py
ugo-emekauwa/cisco-imm-automation-tools
67b1e752c32ca08b1acb928e68b697b60a62836f
[ "Apache-2.0" ]
1
2022-01-07T11:03:13.000Z
2022-01-07T11:03:13.000Z
""" IPMI Over LAN Policy Maker for Cisco Intersight, v2.0 Author: Ugo Emekauwa Contact: uemekauw@cisco.com, uemekauwa@gmail.com Summary: The IPMI Over LAN Policy Maker for Cisco Intersight automates the creation of IPMI Over LAN Policies. GitHub Repository: https://github.com/ugo-emekauwa/cisco-imm-autom...
50.774834
177
0.564253
794410c504054c2f3d8ce66dc822043d43725bb7
102
py
Python
automatic_card/apps.py
One-Xiao-Yi/class_schedule_card
b9aa917576f9e27a882d54c036dbfc0fbd8538fa
[ "Apache-2.0" ]
1
2019-10-24T10:23:44.000Z
2019-10-24T10:23:44.000Z
automatic_card/apps.py
One-Xiao-Yi/class_schedule_card
b9aa917576f9e27a882d54c036dbfc0fbd8538fa
[ "Apache-2.0" ]
6
2020-06-05T23:36:36.000Z
2022-02-10T09:28:33.000Z
automatic_card/apps.py
One-Xiao-Yi/class_schedule_card
b9aa917576f9e27a882d54c036dbfc0fbd8538fa
[ "Apache-2.0" ]
2
2019-11-20T09:05:23.000Z
2020-02-17T16:41:38.000Z
from django.apps import AppConfig class AutomaticCardConfig(AppConfig): name = 'automatic_card'
17
37
0.784314
794410cf2a31b366f08fa801a58b51478394d4fc
11,201
py
Python
docs/conf.py
spavuluri/watchmaker
a448e6a7ead1af7bcff23f0099540ce395b7eb4f
[ "Apache-2.0" ]
null
null
null
docs/conf.py
spavuluri/watchmaker
a448e6a7ead1af7bcff23f0099540ce395b7eb4f
[ "Apache-2.0" ]
8
2018-02-02T17:14:28.000Z
2018-05-22T00:11:37.000Z
docs/conf.py
YakDriver/watchmaker
e7df44637c82b092bd413c54abc8eb472b7eb876
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Configure Watchmaker documentation.""" from __future__ import (absolute_import, division, print_function, unicode_literals, with_statement) import os import sys from recommonmark.transform import AutoStructify # # Created by sphinx-quickstart on Thu Jun 30 20:11:36 ...
28.57398
79
0.698688
7944115783846a4d235ffe88f298017e03d3d314
3,695
py
Python
test/functional/zerocoin_valid_public_spend.py
AtomicLemon/bitcoinflex
fe02bd48be01e08a047ef8d5821eb247a0681306
[ "MIT" ]
null
null
null
test/functional/zerocoin_valid_public_spend.py
AtomicLemon/bitcoinflex
fe02bd48be01e08a047ef8d5821eb247a0681306
[ "MIT" ]
null
null
null
test/functional/zerocoin_valid_public_spend.py
AtomicLemon/bitcoinflex
fe02bd48be01e08a047ef8d5821eb247a0681306
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Covers the 'Wrapped Serials Attack' scenario ''' import random from time import sleep from test_framework.authpr...
35.873786
107
0.64249
794411bb543d6d82c2c2d89a0688cdc2010457a1
13,284
py
Python
reviewboard/webapi/base.py
znick/reviewboard
f32320b267efcdf2feff1661eabe57f99ef490a7
[ "MIT" ]
null
null
null
reviewboard/webapi/base.py
znick/reviewboard
f32320b267efcdf2feff1661eabe57f99ef490a7
[ "MIT" ]
null
null
null
reviewboard/webapi/base.py
znick/reviewboard
f32320b267efcdf2feff1661eabe57f99ef490a7
[ "MIT" ]
1
2021-11-23T15:25:44.000Z
2021-11-23T15:25:44.000Z
from __future__ import unicode_literals from django.contrib import auth from django.db.models import Q from django.utils import six from django.utils.encoding import force_unicode from djblets.util.decorators import augment_method_from from djblets.webapi.decorators import (webapi_login_required, ...
37.419718
79
0.606143
794411f77bab229866674303c054955dd00b1c5e
262
py
Python
plugins/NetQuery/FalseQuery/__init__.py
madfordmac/pircons
1eea5e46e7ea89984d69da2817a86e14f8155202
[ "MIT" ]
null
null
null
plugins/NetQuery/FalseQuery/__init__.py
madfordmac/pircons
1eea5e46e7ea89984d69da2817a86e14f8155202
[ "MIT" ]
null
null
null
plugins/NetQuery/FalseQuery/__init__.py
madfordmac/pircons
1eea5e46e7ea89984d69da2817a86e14f8155202
[ "MIT" ]
null
null
null
from .. import NetQuery class FalseQuery(NetQuery): """Always unsuccessful query.""" def __init__(self, cfg): super(FalseQuery, self).__init__(cfg) def query(self): """Always return offline. Intended for debugging. :return: False """ return False
20.153846
51
0.706107
7944138a496e0c1db5bb1a605e15b6989a763296
9,414
py
Python
p3/management/commands/attendify_schedule_xlsx.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
p3/management/commands/attendify_schedule_xlsx.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
p3/management/commands/attendify_schedule_xlsx.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Update an Attendify schedule XLSX file with the currently accepted talks. Usage: manage.py attendify_schedule_xlsx ep2016 schedule.xlsx Note that for Attendify you have to download the schedule before running this script, since they add meta data to the downloaded file ...
28.966154
78
0.589654
794414b11d3ef77ab5505d2f8a324cdf3b5aebfb
2,238
py
Python
examples/ad_manager/v201908/creative_set_service/create_creative_set.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
1
2019-09-30T06:36:07.000Z
2019-09-30T06:36:07.000Z
examples/ad_manager/v201908/creative_set_service/create_creative_set.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201908/creative_set_service/create_creative_set.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 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...
36.096774
77
0.735925
79441544ca91d5ea849c1c3246bee4a92e42276d
579
py
Python
mongodb_subjects_storage/test_storage_atomic_ops.py
airspot-dev/krules-subjects-storage-mongodb
4b9814a39abb7bb2e14e1006f59e8bcfcb4dd0e6
[ "Apache-2.0" ]
10
2021-02-26T13:00:22.000Z
2022-03-31T11:38:28.000Z
mongodb_subjects_storage/test_storage_atomic_ops.py
airspot-dev/krules-subjects-storage-mongodb
4b9814a39abb7bb2e14e1006f59e8bcfcb4dd0e6
[ "Apache-2.0" ]
1
2021-08-03T10:21:12.000Z
2021-08-03T10:21:12.000Z
subjects_storages/mongodb/mongodb_subjects_storage/test_storage_atomic_ops.py
airspot-dev/krules
0e402feef51c6189a163a62912480cfac0c438bb
[ "Apache-2.0" ]
null
null
null
import os from dependency_injector import providers from krules_core.providers import subject_storage_factory from .storage_impl import SubjectsMongoStorage mongodb_url = os.environ.get("TEST_MONGODB_SUBJECTS_STORAGE_URL", "mongodb://localhost:27017/admin") database = os.environ.get("TEST_MONGODB_SUBJECTS_STORAGE_...
32.166667
107
0.759931
794415d53fac8584fa23f47ebffdd7c2e8bd7e3f
1,202
py
Python
var/spack/repos/builtin/packages/leptonica/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/leptonica/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/leptonica/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Leptonica(CMakePackage): """Leptonica is an open source library containing software that i...
36.424242
96
0.747088
794416df479daef93c1bab0a7691d36a756f96da
2,809
py
Python
test/testBigrandom.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
test/testBigrandom.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
test/testBigrandom.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
import unittest import random import nzmath.bigrandom as bigrandom class BigrandomTest(unittest.TestCase): def testUniform(self): trial_times = 100000 error_range = 0.03 dist = {} for i in range(5, 100, 10): dist[i] = 0 for i in range(trial_times): ...
32.662791
80
0.583838
79441890239767e34e3e7fb73b5ae643540904bd
6,386
py
Python
supplier/views.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
1
2021-02-17T14:04:29.000Z
2021-02-17T14:04:29.000Z
supplier/views.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
null
null
null
supplier/views.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
null
null
null
from rest_framework import viewsets from .models import ListModel from . import serializers from utils.page import MyPageNumberPagination from rest_framework.filters import OrderingFilter from django_filters.rest_framework import DjangoFilterBackend from rest_framework.response import Response from .filter import Filte...
37.564706
125
0.638898
794418e81e9309e19899863cd7000b5f651591fd
3,024
py
Python
jes/jes-v5.020-linux/jes/python/jes/gui/explorers.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/explorers.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/explorers.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jes.gui.explorers ================= This contains menu actions for launching the explorers. :copyright: (C) 2014 Matthew Frazier and Mark Guzdial :license: GNU GPL v2 or later, see jes/help/JESCopyright.txt for details """ import media from javax.swing import JOptionPane from jes.gui.comp...
31.831579
80
0.59623
794418f285825356842c85de08d0bfa9e42a69f8
688
py
Python
setup.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
setup.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
setup.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
from setuptools import setup setup( # Needed to silence warnings (and to be a worthwhile package) name='Testpkg', url='https://github.com/td2014/pkg_project', author='Anthony Daniell', author_email='anthonyd2004@gmail.com', # Needed to actually package something packages=['testfuncpkg'], ...
32.761905
72
0.693314
794418f41b4b9fbf3b17a8180aa363aec250ebe4
12,636
py
Python
UMLRT2Kiltera_MM/Properties/Multiplicity/models/New1orMoreNamePart2_Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/models/New1orMoreNamePart2_Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/models/New1orMoreNamePart2_Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __New1orMoreNamePart2_Complete_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: gehan Modified: Mon Mar 2 13:56:28 2015 __________________________________________________________________________________________ """ from stickylin...
51.786885
632
0.670149
794418f9e3885c53d962d39ad98998d30c4940e9
5,203
py
Python
litex_boards/targets/litefury.py
piotr-binkowski/litex-boards
bee71da7746c6fda0d4e1942452510e11f06c14a
[ "BSD-2-Clause" ]
1
2022-02-20T00:06:32.000Z
2022-02-20T00:06:32.000Z
litex_boards/targets/litefury.py
piotr-binkowski/litex-boards
bee71da7746c6fda0d4e1942452510e11f06c14a
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/litefury.py
piotr-binkowski/litex-boards
bee71da7746c6fda0d4e1942452510e11f06c14a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2018-2019 Rohit Singh <rohit@rohitksingh.in> # Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause import os import argparse import sys from migen import * from litex_boards.platf...
40.333333
128
0.543917
794418fe354c4cb248aacb86012294e3cd555102
1,407
py
Python
test/SegOptRoadTest.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
test/SegOptRoadTest.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
test/SegOptRoadTest.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
import unittest import os import sys import cv2 import numpy as np from PIL import Image root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) src_dir = os.path.join(root_dir, "src") sys.path.insert(0, src_dir) # change cwd to root dir os.chdir(root_dir) from utils.seg_opt import SegmentOutputUtil ...
26.055556
84
0.617626
79441986de492436d6bfae8ef3918d3f3e660314
4,022
py
Python
src/nsupdate/main/forms.py
mirzazulfan/nsupdate.info
fdd12e8f47d084969e23517fce4b8efa3212dd9e
[ "BSD-3-Clause" ]
774
2015-01-01T23:24:50.000Z
2022-03-29T01:40:41.000Z
src/nsupdate/main/forms.py
mirzazulfan/nsupdate.info
fdd12e8f47d084969e23517fce4b8efa3212dd9e
[ "BSD-3-Clause" ]
272
2015-01-02T12:23:41.000Z
2022-02-21T14:18:11.000Z
src/nsupdate/main/forms.py
mirzazulfan/nsupdate.info
fdd12e8f47d084969e23517fce4b8efa3212dd9e
[ "BSD-3-Clause" ]
100
2015-03-05T15:11:09.000Z
2022-03-09T18:39:39.000Z
# -*- coding: utf-8 -*- """ form definitions (which fields are available, order, autofocus, ...) """ import binascii from django import forms from django.utils.translation import ugettext_lazy as _ from .models import Host, RelatedHost, Domain, ServiceUpdaterHostConfig from .dnstools import check_domain, NameServerN...
34.973913
117
0.636748
79441b1e0bd62fbb44e5f4005e7d63ea5562bc7f
4,381
py
Python
test_2_spin/activityTest.py
NoOneZero/Neuro
a3cf1e2a701ee0096f093d332237dc30f8f83a50
[ "Apache-2.0" ]
null
null
null
test_2_spin/activityTest.py
NoOneZero/Neuro
a3cf1e2a701ee0096f093d332237dc30f8f83a50
[ "Apache-2.0" ]
null
null
null
test_2_spin/activityTest.py
NoOneZero/Neuro
a3cf1e2a701ee0096f093d332237dc30f8f83a50
[ "Apache-2.0" ]
null
null
null
from common.activity import Activity from common.dataWriter import DataWriter from common.geneticAlgorithmParams import GeneticAlgorithmParams from common.monitor import Monitor from common.character import Character from test_2_spin.personTest import PersonTest from test_2_spin.characterTest import CharacterTest from...
34.769841
103
0.692079
79441b232333dac519c67804b8e816b2608ecf04
691
py
Python
var/spack/repos/builtin/packages/r-splancs/package.py
jameshclrk/spack
1f8fcb36091e1d5ae63a2279a958ca3ff57088bf
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-03-19T13:12:47.000Z
2021-03-19T13:12:47.000Z
var/spack/repos/builtin/packages/r-splancs/package.py
jameshclrk/spack
1f8fcb36091e1d5ae63a2279a958ca3ff57088bf
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/r-splancs/package.py
jameshclrk/spack
1f8fcb36091e1d5ae63a2279a958ca3ff57088bf
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RSplancs(RPackage): """Spatial and Space-Time Point Pattern Analysis""" homepage = "h...
34.55
78
0.700434
79441bab58a27e0ddf9b50eea20b4b45964154a9
738
py
Python
molsysmt/item/string_pdb_id/to_file_msmpk.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/string_pdb_id/to_file_msmpk.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/string_pdb_id/to_file_msmpk.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt._private.digestion import * def to_file_msmpk(item, atom_indices='all', structure_indices='all', output_filename=None, check=True): if check: digest_item(item, 'string:pdb_id') atom_indices = digest_atom_indices(atom_indices) struct...
36.9
116
0.789973
79441c96878079111a3e18f23aba2127ced1c309
45,590
py
Python
discord/channel.py
LetsChill/discord.py
7e373441fc8502f30e60272737c0074d424373d0
[ "MIT" ]
null
null
null
discord/channel.py
LetsChill/discord.py
7e373441fc8502f30e60272737c0074d424373d0
[ "MIT" ]
null
null
null
discord/channel.py
LetsChill/discord.py
7e373441fc8502f30e60272737c0074d424373d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-present Rapptz 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 t...
32.287535
122
0.594494
79441de90b7e221371f7f7b0a944999b83d7b907
2,222
py
Python
pur_beurre/urls.py
NicolasFlandrois/Pure-Beurre
b64db344e3eabed8b123a6127fe0d038da53ff6e
[ "MIT" ]
null
null
null
pur_beurre/urls.py
NicolasFlandrois/Pure-Beurre
b64db344e3eabed8b123a6127fe0d038da53ff6e
[ "MIT" ]
7
2020-02-12T03:27:56.000Z
2022-03-12T00:12:09.000Z
pur_beurre/urls.py
NicolasFlandrois/PurBeurre-LinuxDeploy
de0a6677647fd6df5f4856dc6ac42275dae6aff4
[ "MIT" ]
2
2020-01-17T11:23:27.000Z
2021-02-15T10:54:19.000Z
"""pur_beurre 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-ba...
35.83871
77
0.69622
79441fdcef6acdc19af3bdef58942f4ee3737ae0
1,653
py
Python
mysite1/urls.py
mohsenbjp/mysite1
8a8b8b4009bf16fe391fc64c8bf9d41f7f2e32a4
[ "MIT" ]
null
null
null
mysite1/urls.py
mohsenbjp/mysite1
8a8b8b4009bf16fe391fc64c8bf9d41f7f2e32a4
[ "MIT" ]
null
null
null
mysite1/urls.py
mohsenbjp/mysite1
8a8b8b4009bf16fe391fc64c8bf9d41f7f2e32a4
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path,include, re_path from .views import * from django.contrib.sitemaps.views import sitemap from .sitemaps import StaticViewSitemap from blog.sitemaps import BlogSitemap from django.cont...
45.916667
111
0.733817
79442011bbb74a04f1407311593e82ee84c6d4b0
298
py
Python
Task1F.py
myrsinisem/python
0ce7a5d1f174252aaff542e955416f8203facf63
[ "MIT" ]
null
null
null
Task1F.py
myrsinisem/python
0ce7a5d1f174252aaff542e955416f8203facf63
[ "MIT" ]
null
null
null
Task1F.py
myrsinisem/python
0ce7a5d1f174252aaff542e955416f8203facf63
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations stations=build_station_list() inconsistent_stations=inconsistent_typical_range_stations(stations) sorted_stations=sorted(inconsistent_stations) print(sorted_stations)
37.25
68
0.889262
794420437de53d647c65dade6ec8304a0558dc36
8,329
py
Python
qiskit/aqua/components/neural_networks/pytorch_discriminator.py
MartenSkogh/qiskit-aqua
4a997e6328e06e250212ef82c9414ad16834b7c6
[ "Apache-2.0" ]
2
2020-04-09T17:27:41.000Z
2021-01-15T04:27:07.000Z
qiskit/aqua/components/neural_networks/pytorch_discriminator.py
MartenSkogh/qiskit-aqua
4a997e6328e06e250212ef82c9414ad16834b7c6
[ "Apache-2.0" ]
2
2020-04-21T19:59:47.000Z
2020-04-26T21:36:47.000Z
qiskit/aqua/components/neural_networks/pytorch_discriminator.py
MartenSkogh/qiskit-aqua
4a997e6328e06e250212ef82c9414ad16834b7c6
[ "Apache-2.0" ]
1
2021-01-17T16:29:26.000Z
2021-01-17T16:29:26.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
33.316
95
0.616521
79442084adbdda8063cb80ec1f604cb8cebe05c3
5,303
py
Python
src/dirbs/api/common/apidoc.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/api/common/apidoc.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/api/common/apidoc.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
1
2022-02-09T10:55:13.000Z
2022-02-09T10:55:13.000Z
""" Subclass FlaskApiSpec to add support for documenting multiple API versions. Copyright (c) 2018 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that th...
44.191667
118
0.659815
7944215484f01c0cc7e88804d849097b4e5338ed
542
py
Python
ctapipe/instrument/__init__.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
53
2015-06-23T15:24:20.000Z
2021-09-23T22:30:58.000Z
ctapipe/instrument/__init__.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1,537
2015-06-24T11:27:16.000Z
2022-03-31T16:17:08.000Z
ctapipe/instrument/__init__.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
275
2015-07-09T14:09:28.000Z
2022-03-17T22:25:51.000Z
from .camera import CameraDescription, CameraGeometry, CameraReadout, PixelShape from .atmosphere import get_atmosphere_profile_functions from .telescope import TelescopeDescription from .optics import OpticsDescription from .subarray import SubarrayDescription from .guess import guess_telescope __all__ = [ "Came...
27.1
80
0.784133
7944220a2dc51977c32494a25b813c0b851840b2
2,772
py
Python
web_console_v2/api/fedlearner_webconsole/rpc/client.py
zhenv5/fedlearner
a8ff0eaef48e174d432a40d23d12c1f57e842ebd
[ "Apache-2.0" ]
null
null
null
web_console_v2/api/fedlearner_webconsole/rpc/client.py
zhenv5/fedlearner
a8ff0eaef48e174d432a40d23d12c1f57e842ebd
[ "Apache-2.0" ]
null
null
null
web_console_v2/api/fedlearner_webconsole/rpc/client.py
zhenv5/fedlearner
a8ff0eaef48e174d432a40d23d12c1f57e842ebd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FedLearner 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...
37.459459
93
0.669192
794425cdbeb8519eb234565a8d18ef5955bec7ba
2,549
py
Python
opsrest/handlers/login.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
opsrest/handlers/login.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
opsrest/handlers/login.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP # # 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 ...
29.639535
76
0.667713
7944266b51bda6fcf8d4ad047a250d21fe76b746
376
py
Python
lib/util.py
underc0de/reaper
ec74c8de08a57edfd4df745aad9c8c216c57f9d8
[ "MIT" ]
null
null
null
lib/util.py
underc0de/reaper
ec74c8de08a57edfd4df745aad9c8c216c57f9d8
[ "MIT" ]
null
null
null
lib/util.py
underc0de/reaper
ec74c8de08a57edfd4df745aad9c8c216c57f9d8
[ "MIT" ]
null
null
null
from time import strftime, localtime, time def get_time(): """ Return the time """ return strftime("%H:%M:%S", localtime(time())) def read_file(file_name): """ Return the content of a File """ with open(file_name, 'rb') as f: return f.read() def write_file(file_name): """ Write content to a ...
16.347826
50
0.62766
79442671dd7f8fbef8d98188d73e50cba0635592
34,188
py
Python
pandas/io/excel/_base.py
Alvinwuzw/pandas
2d4372111e1a79058faa5ddd6bc0a9a73648a33a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/io/excel/_base.py
Alvinwuzw/pandas
2d4372111e1a79058faa5ddd6bc0a9a73648a33a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/io/excel/_base.py
Alvinwuzw/pandas
2d4372111e1a79058faa5ddd6bc0a9a73648a33a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import abc import datetime from io import BufferedIOBase, BytesIO, RawIOBase import os from textwrap import fill from typing import Any, Mapping, Union from pandas._config import config from pandas._libs.parsers import STR_NA_VALUES from pandas._typing import StorageOptions from pandas.errors import EmptyDataError fr...
33.816024
87
0.614163
79442688528877f19538302cd834c0bc231e8349
959
py
Python
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy class Solution(object): """ 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] """ def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ ...
21.795455
55
0.486966
794427628dbd2c3568043014d78159e949d60936
1,813
py
Python
src/azure-cli/azure/cli/command_modules/acr/_client_factory.py
shinilm/azure-cli
7c5f44151010b4b64d822f8cbe3e725f3525a448
[ "MIT" ]
1
2019-06-21T05:07:38.000Z
2019-06-21T05:07:38.000Z
src/azure-cli/azure/cli/command_modules/acr/_client_factory.py
shinilm/azure-cli
7c5f44151010b4b64d822f8cbe3e725f3525a448
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/acr/_client_factory.py
shinilm/azure-cli
7c5f44151010b4b64d822f8cbe3e725f3525a448
[ "MIT" ]
1
2019-06-21T05:08:09.000Z
2019-06-21T05:08:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.54902
103
0.720905
794427d27d892dcc7bb62e77d9eda676c3c64985
4,376
py
Python
face_recognition_cam/recognition.py
andreaconti/face_recognition_cam
2f9d95d982bb12dadbe8d933c6548244745aa2af
[ "MIT" ]
null
null
null
face_recognition_cam/recognition.py
andreaconti/face_recognition_cam
2f9d95d982bb12dadbe8d933c6548244745aa2af
[ "MIT" ]
null
null
null
face_recognition_cam/recognition.py
andreaconti/face_recognition_cam
2f9d95d982bb12dadbe8d933c6548244745aa2af
[ "MIT" ]
null
null
null
""" Module containing person recognition """ from typing import Dict, List, Tuple import mxnet as mx # type: ignore import numpy as np # type: ignore from numpy import ndarray from pkg_resources import resource_filename from scipy.spatial.distance import cdist # type: ignore class FaceRecognizer: """ Cla...
33.151515
88
0.589122
794428d17f831d3b7989f3fec9411c37f1a34ae9
77,808
py
Python
pstem/stem-random-walk-nin-20-74/stem-random-walk-nin-20-74_examples.py
Jeffrey-Ede/partial-STEM
916766091b81b54cacde85a319f34a47d50bce48
[ "MIT" ]
10
2019-06-12T00:24:37.000Z
2021-11-23T12:58:02.000Z
pstem/stem-random-walk-nin-20-74/stem-random-walk-nin-20-74_examples.py
Jeffrey-Ede/partial-STEM
916766091b81b54cacde85a319f34a47d50bce48
[ "MIT" ]
null
null
null
pstem/stem-random-walk-nin-20-74/stem-random-walk-nin-20-74_examples.py
Jeffrey-Ede/partial-STEM
916766091b81b54cacde85a319f34a47d50bce48
[ "MIT" ]
5
2019-06-11T05:49:10.000Z
2021-11-12T15:55:22.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" import argparse import numpy as np import tensorflow as tf import cv2 from scipy.misc import imread from scipy import ndimage as nd impor...
40.715856
176
0.561883
794429cd3ed5c58ebc3e5963e67aa91409f372aa
1,091
py
Python
cgi-bin/log.py
msolivera/Phyton
1322fa2ff4bb06a17350fefa7e5268c0969e5b53
[ "bzip2-1.0.6" ]
null
null
null
cgi-bin/log.py
msolivera/Phyton
1322fa2ff4bb06a17350fefa7e5268c0969e5b53
[ "bzip2-1.0.6" ]
null
null
null
cgi-bin/log.py
msolivera/Phyton
1322fa2ff4bb06a17350fefa7e5268c0969e5b53
[ "bzip2-1.0.6" ]
null
null
null
import cgi, cgitb cgitb.enable() print ("Content-Type: text/html") print ("") params = cgi.FieldStorage() logueado = False mensaje_error = None usuario = params.getvalue("usuario") password = params.getvalue("contrasena") if not usuario or not password: mensaje_error = "Debes ingresar usuario y contrase&ntilde;a" elif ...
23.212766
60
0.72319
79442a00dcab0f25d9c3f7cfbf7ba17aeb4a23a9
2,933
py
Python
Agents/seeker.py
hanhha/ACTS
dca59ed487cd1581b54e510cc286bd3482d1cb0a
[ "MIT" ]
1
2022-02-04T03:13:38.000Z
2022-02-04T03:13:38.000Z
Agents/seeker.py
alimogh/ACTS
dca59ed487cd1581b54e510cc286bd3482d1cb0a
[ "MIT" ]
null
null
null
Agents/seeker.py
alimogh/ACTS
dca59ed487cd1581b54e510cc286bd3482d1cb0a
[ "MIT" ]
1
2022-02-04T03:13:40.000Z
2022-02-04T03:13:40.000Z
#!/usr/bin/env python3 from pandas import DataFrame from . import misc_utils as misc from . import ta class BaseSeeker (misc.BPA): def __init__ (self, source, params): misc.BPA.__init__ (self, source = source, params = params) self.archive = list () self.pdarchive = DataFrame () self.archive_len = 0 if len...
32.230769
135
0.643028
79442a1ac12589c85927f591b21034bc06b8e4ba
606
py
Python
make_page_list.py
mscroggs/HUSFAX
7fa7d2fcc37b349b070f39c0b26208496fe74bc7
[ "MIT" ]
null
null
null
make_page_list.py
mscroggs/HUSFAX
7fa7d2fcc37b349b070f39c0b26208496fe74bc7
[ "MIT" ]
null
null
null
make_page_list.py
mscroggs/HUSFAX
7fa7d2fcc37b349b070f39c0b26208496fe74bc7
[ "MIT" ]
1
2020-12-26T15:46:28.000Z
2020-12-26T15:46:28.000Z
#!/usr/bin/env python3 from ceefax import config from ceefax.page import PageManager from ceefax.cupt import DummyScreen import os import config as _c config.ceefax_path = os.path.dirname(os.path.realpath(__file__)) config.pages_dir = os.path.join(config.ceefax_path, "pages") config.NAME = "HUSFAX" for i, j in _c.__d...
28.857143
64
0.669967
79442acccb3262d642f2be315586d33d6876ffcc
10,989
py
Python
pandas/tests/frame/methods/test_reset_index.py
timhunderwood/pandas
0159cba6eb14983ab7eaf38ff138c3c397a6fe3b
[ "BSD-3-Clause" ]
3
2020-07-02T12:59:52.000Z
2020-08-27T20:05:44.000Z
pandas/tests/frame/methods/test_reset_index.py
timhunderwood/pandas
0159cba6eb14983ab7eaf38ff138c3c397a6fe3b
[ "BSD-3-Clause" ]
1
2016-10-23T21:07:28.000Z
2016-10-23T21:07:28.000Z
pandas/tests/frame/methods/test_reset_index.py
timhunderwood/pandas
0159cba6eb14983ab7eaf38ff138c3c397a6fe3b
[ "BSD-3-Clause" ]
2
2020-12-11T05:33:38.000Z
2022-01-16T12:42:17.000Z
from datetime import datetime import numpy as np import pytest from pandas import ( DataFrame, Index, IntervalIndex, MultiIndex, RangeIndex, Series, Timestamp, date_range, ) import pandas._testing as tm class TestResetIndex: def test_reset_index_tz(self, tz_aware_fixture): ...
35.678571
87
0.533352
79442b3a3a9baf32a304392d1cd18a75c290a707
19,695
py
Python
utime/dataset/sleep_study/sleep_study.py
learning310/U-Time
f7c8e3f1368f43226872a69b0fbb8c29990e4bd9
[ "MIT" ]
138
2019-11-20T02:31:17.000Z
2022-03-23T04:31:51.000Z
utime/dataset/sleep_study/sleep_study.py
acrarshin/U-Time
f7c8e3f1368f43226872a69b0fbb8c29990e4bd9
[ "MIT" ]
46
2019-12-04T03:13:28.000Z
2022-03-31T13:10:48.000Z
utime/dataset/sleep_study/sleep_study.py
acrarshin/U-Time
f7c8e3f1368f43226872a69b0fbb8c29990e4bd9
[ "MIT" ]
42
2019-11-26T16:02:26.000Z
2022-01-06T11:01:32.000Z
""" Implements the SleepStudy class which represents a sleep study (PSG) """ import numpy as np from utime import errors from utime.io.high_level_file_loaders import load_psg, load_hypnogram from utime.preprocessing import (apply_scaling, strip_funcs, apply_strip_func, assert_scaler, s...
39.707661
100
0.566743
79442c2b8b7838ccc421e22b577cfedf186be0dc
643
py
Python
rstem/mcpi/examples/zhuowei_rainbow.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2018-02-23T20:20:45.000Z
2018-02-23T20:20:45.000Z
rstem/mcpi/examples/zhuowei_rainbow.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2016-10-25T18:00:15.000Z
2016-10-25T18:00:15.000Z
rstem/mcpi/examples/zhuowei_rainbow.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # mcpipy.com retrieved from URL below, written by zhuowei # http://www.minecraftforum.net/topic/1638036-my-first-script-for-minecraft-pi-api-a-rainbow/ from .. import minecraft from .. import block from math import * import server colors = [14, 1, 4, 5, 3, 11, 10] mc = minecraft.Minecraft.cr...
30.619048
100
0.656299
79442c6a0e25142d99c60164f8a08e72cc426d05
6,863
py
Python
src/relstorage/adapters/poller.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
src/relstorage/adapters/poller.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
src/relstorage/adapters/poller.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
42.104294
90
0.64549
79442e3bf682b78dcf039fdc9f2801e603921ff8
872
py
Python
alipay/aop/api/response/AlipayOpenDesCreateResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenDesCreateResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenDesCreateResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.GavintestNewLeveaOne import GavintestNewLeveaOne class AlipayOpenDesCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenDes...
29.066667
100
0.698394
79442e775625cd0694de4720fd5de846738b1c9d
3,485
py
Python
src/pretix/plugins/banktransfer/urls.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
1,248
2015-04-24T13:32:06.000Z
2022-03-29T07:01:36.000Z
src/pretix/plugins/banktransfer/urls.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
2,113
2015-02-18T18:58:16.000Z
2022-03-31T11:12:32.000Z
src/pretix/plugins/banktransfer/urls.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
453
2015-05-13T09:29:06.000Z
2022-03-24T13:39:16.000Z
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # 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 ...
53.615385
118
0.682066
79442ebf15a1730ce0af5d8dbbc9186d27a69c8e
1,670
py
Python
AtC_Reg_Con_011-020/ARC018/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Reg_Con_011-020/ARC018/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Reg_Con_011-020/ARC018/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
import sys # import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random # from collections import deque, defaultdict, Counter; from heapq import heappush, heappop # from itertools import permutations, combinations, product, accumulate, groupby # from bisect import bisect_l...
32.115385
113
0.562874
79442ee0211fe0d295cce806747e2317a14db0c6
15,161
py
Python
SwiftManager.py
SongBS/SwiftManager
2fdb7fe8987139b9b050c77a5d711bcdae2d1a62
[ "Apache-2.0" ]
null
null
null
SwiftManager.py
SongBS/SwiftManager
2fdb7fe8987139b9b050c77a5d711bcdae2d1a62
[ "Apache-2.0" ]
null
null
null
SwiftManager.py
SongBS/SwiftManager
2fdb7fe8987139b9b050c77a5d711bcdae2d1a62
[ "Apache-2.0" ]
null
null
null
#-*-coding:cp949-*- ''' Created on 2013. 6. 24. @author: sbs@gabia.com ''' import wx import os import SwiftFunction import SwauthFunction import DialogClass import threading #down side button ID_BUTTON=100 #function ID_EXIT=200 #windows ID_SPLITTER=300 #menu ID_SETTING=400 ID_ABOUT=401 ID_SWIFT_AUTH = 500 ID_...
39.792651
146
0.607348
79442f6d1f79e6cd2fdc45ae7573948adab2a08d
671
py
Python
LeetCode/0508. Most Frequent Subtree Sum/solution.py
InnoFang/algorithms
01847903f757722b6c877e1631e5413b9376c82e
[ "Apache-2.0" ]
null
null
null
LeetCode/0508. Most Frequent Subtree Sum/solution.py
InnoFang/algorithms
01847903f757722b6c877e1631e5413b9376c82e
[ "Apache-2.0" ]
null
null
null
LeetCode/0508. Most Frequent Subtree Sum/solution.py
InnoFang/algorithms
01847903f757722b6c877e1631e5413b9376c82e
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right """ 58 / 58 test cases passed. Runtime: 56 ms Memory Usage: 18.5 MB """ class Solution: def findFrequentTreeSum(self, root:...
26.84
67
0.532042
79442fbd6785a143235813c2a2cc6bafb176b358
785
py
Python
source/pkgsrc/mail/feed2exec/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/mail/feed2exec/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/mail/feed2exec/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.2 2020/10/07 19:46:53 schmonz Exp $ Avoid setuptools_scm since tarball has no .git. --- setup.py.orig 2020-10-06 18:35:43.000000000 +0000 +++ setup.py @@ -126,10 +126,6 @@ if __name__ == '__main__': long_description=sphinx2rst('README.rst'), license=mod.__license_shor...
30.192308
63
0.529936
79443054d1cb5388a3895f8a85101616bc4e9e7f
1,543
py
Python
src/scripts/cobertura.py
hugots363/Multi2Sim
37f146ffa18427885aa10260f74719b00c127692
[ "Unlicense" ]
null
null
null
src/scripts/cobertura.py
hugots363/Multi2Sim
37f146ffa18427885aa10260f74719b00c127692
[ "Unlicense" ]
null
null
null
src/scripts/cobertura.py
hugots363/Multi2Sim
37f146ffa18427885aa10260f74719b00c127692
[ "Unlicense" ]
null
null
null
import re import sys def get_useful_prefetches(memreport): result = {} name = "" for line in memreport: m = re.match("\[ ([id]?l[0-9])-0 \]",line) if m: name = m.group(1) m = re.match("Useful Prefetches = ([0-9]+)",line) if m: useful_pref = m.group(1) result[name] = result.get(name,0) + float(us...
24.109375
76
0.613739
79443260a7e636b74b8627e0061a50efda778a90
672
py
Python
vending_machine/vending_machine.py
chapa369/tdd-vending_machine
e5c964a3cf083dbaa5fb95e105003b1c63292ed0
[ "MIT" ]
null
null
null
vending_machine/vending_machine.py
chapa369/tdd-vending_machine
e5c964a3cf083dbaa5fb95e105003b1c63292ed0
[ "MIT" ]
null
null
null
vending_machine/vending_machine.py
chapa369/tdd-vending_machine
e5c964a3cf083dbaa5fb95e105003b1c63292ed0
[ "MIT" ]
1
2020-08-19T06:57:59.000Z
2020-08-19T06:57:59.000Z
class vending_machine: # リファクタリングの余地あり # coinクラスを作って、40円コインがないようにする price={'コーラ': 120} def __init__(self): self.money=0 self.storage={'コーラ': 5} def insert(self,yen): available_yen = [10,50,100,500,1000] if yen in available_yen: self.money += yen r...
21
44
0.547619
7944328903abbe53589ff75d2a1704fac32d3aca
1,793
py
Python
protolpsmap/dense.py
vene/prototype-lp-sparsemap
0a3320ebafa2269a400293f63892d18dd76a3801
[ "MIT" ]
null
null
null
protolpsmap/dense.py
vene/prototype-lp-sparsemap
0a3320ebafa2269a400293f63892d18dd76a3801
[ "MIT" ]
null
null
null
protolpsmap/dense.py
vene/prototype-lp-sparsemap
0a3320ebafa2269a400293f63892d18dd76a3801
[ "MIT" ]
null
null
null
# dense factor import numpy as np class DenseFactor(object): def __init__(self, m, n): self.m = m self.n = n def vertex(self, y): i, j = y um = np.zeros(self.m) un = np.zeros(self.n) um[i] = 1 un[j] = 1 U = np.concatenate([um, un]) V = ...
20.848837
59
0.492471
7944328d4f4e0346705b44ad9ea9c3bc28ae1341
580
py
Python
util/config/validators/validate_redis.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/config/validators/validate_redis.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/config/validators/validate_redis.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import redis from util.config.validators import BaseValidator, ConfigValidationException class RedisValidator(BaseValidator): name = "redis" @classmethod def validate(cls, validator_context): """ Validates connecting to redis. """ config = validator_context.config ...
26.363636
76
0.677586
794432c3b9e128b747081aa5b022cf4f3932256e
7,400
py
Python
wsgi.py
yees-cds/pricefinder
a263d484ba8b68df667899fe0f0c28ab61910d97
[ "Apache-2.0" ]
null
null
null
wsgi.py
yees-cds/pricefinder
a263d484ba8b68df667899fe0f0c28ab61910d97
[ "Apache-2.0" ]
null
null
null
wsgi.py
yees-cds/pricefinder
a263d484ba8b68df667899fe0f0c28ab61910d97
[ "Apache-2.0" ]
null
null
null
""" /*-------------------------------------------------------------------*/ /* */ /* Copyright IBM Corp. 2013 All Rights Reserved */ /* */ /*--------------------------...
34.90566
95
0.607973
794433a2e08d5c500ef695ef1fa0161e46beff1a
2,636
py
Python
AUTOENCODERS/AE_LSTM__KIBANA.py
pawelptak/AI-Anomaly-Detection
0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5
[ "MIT" ]
1
2022-03-23T10:18:17.000Z
2022-03-23T10:18:17.000Z
AUTOENCODERS/AE_LSTM__KIBANA.py
pawelptak/AI-Anomaly-Detection
0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5
[ "MIT" ]
null
null
null
AUTOENCODERS/AE_LSTM__KIBANA.py
pawelptak/AI-Anomaly-Detection
0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5
[ "MIT" ]
null
null
null
from Classification.AutoencoderWindowsResultsClassificator import AutoencoderWindowsResultsClassificator from DataPreparing.KIBANALoader import KIBANALoader from DataPreparing.KIBANAPreprocessor import KIBANAPreprocessor from Execution.AutoencoderModelExecutor import AutoencoderModelExecutor from Model.AutoEncoderModel...
30.298851
104
0.764036
794433e9e34480c78f5ff95720cd50e4c0a4b9dd
8,188
py
Python
gdal/swig/python/scripts/epsg_tr.py
mloskot/gdal-old-mirror-with-jpegxr-pr
88409871d445a1ed7c973533cf2075f904a39f90
[ "MIT" ]
2
2018-03-22T22:31:00.000Z
2021-07-16T01:34:47.000Z
gdal/swig/python/scripts/epsg_tr.py
mloskot/gdal-old-mirror-with-jpegxr-pr
88409871d445a1ed7c973533cf2075f904a39f90
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
gdal/swig/python/scripts/epsg_tr.py
mloskot/gdal-old-mirror-with-jpegxr-pr
88409871d445a1ed7c973533cf2075f904a39f90
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ****************************************************************************** # $Id$ # # Project: CFS OGC MapServer # Purpose: Script to create WKT and PROJ.4 dictionaries for EPSG GCS/PCS # codes. # Author: Frank Warmerdam, warmerdam@pobox.com # # **...
36.717489
142
0.539692
7944348585a4720b95c902377562f60ea5edcb6f
7,838
py
Python
magenta/models/arbitrary_image_stylization/arbitrary_image_stylization_distill_mobilenet.py
Eshan-Agarwal/magenta
21f4cbf8ac2717df6a6fbff8cc6a027fbf3e4057
[ "Apache-2.0" ]
2
2020-04-30T13:46:55.000Z
2021-07-02T20:07:58.000Z
magenta/models/arbitrary_image_stylization/arbitrary_image_stylization_distill_mobilenet.py
Eshan-Agarwal/magenta
21f4cbf8ac2717df6a6fbff8cc6a027fbf3e4057
[ "Apache-2.0" ]
1
2020-03-01T16:02:10.000Z
2020-03-01T16:02:10.000Z
magenta/models/arbitrary_image_stylization/arbitrary_image_stylization_distill_mobilenet.py
Eshan-Agarwal/magenta
21f4cbf8ac2717df6a6fbff8cc6a027fbf3e4057
[ "Apache-2.0" ]
1
2020-09-21T01:23:05.000Z
2020-09-21T01:23:05.000Z
# Copyright 2020 The Magenta 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
40.194872
129
0.691631
794434db109bea45a8765a6f4f0175ce4fade3af
877
py
Python
sdks/python/test/test_ErrorCounts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ErrorCounts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ErrorCounts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
21.925
81
0.703535
79443554efc9f5551f33556b1d85d9668e29ceeb
14,447
py
Python
bpython/test/test_autocomplete.py
supremestdoggo/bpython
06d255ada61105684f4e2b92f09219f9619506e6
[ "PSF-2.0" ]
null
null
null
bpython/test/test_autocomplete.py
supremestdoggo/bpython
06d255ada61105684f4e2b92f09219f9619506e6
[ "PSF-2.0" ]
null
null
null
bpython/test/test_autocomplete.py
supremestdoggo/bpython
06d255ada61105684f4e2b92f09219f9619506e6
[ "PSF-2.0" ]
null
null
null
import inspect import keyword import unittest from collections import namedtuple from unittest import mock try: import jedi has_jedi = True except ImportError: has_jedi = False from bpython import autocomplete glob_function = "glob.iglob" class TestSafeEval(unittest.TestCase): def test_catches_syn...
33.992941
80
0.626497
794435bfa093b84efd7f4cc8a5373e1418eb54bf
23,500
py
Python
windows_packages_gpu/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
windows_packages_gpu/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
windows_packages_gpu/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
#!/usr/bin/env python3 from typing import NamedTuple import enum import logging import os import threading from torch.distributed.nn import RemoteModule import torch from torch.distributed import rpc from torch.nn.parallel import DistributedDataParallel from torch.testing._internal.common_distributed impo...
35.179641
108
0.58783
794435f64a955dfb2d8aec866dbec6b76a68c557
2,683
py
Python
capsul/study_config/config_modules/attributes_config.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
capsul/study_config/config_modules/attributes_config.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
capsul/study_config/config_modules/attributes_config.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
########################################################################## # CAPSUL - Copyright (C) CEA, 2016 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ########...
38.884058
79
0.660082
7944360d9f8a57981506c28d51d154c39dffc601
348
py
Python
extra/game-mechanics/platform-game-project/Listing28_ScreenPosition.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
2
2021-03-20T14:54:00.000Z
2021-06-16T19:10:52.000Z
extra/game-mechanics/platform-game-project/Listing28_ScreenPosition.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
null
null
null
extra/game-mechanics/platform-game-project/Listing28_ScreenPosition.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
null
null
null
def ScreenPositionUpdate(player, screenPosition): if player.centre[1] - screenPosition < 150: screenPosition = player.centre[1] - 150 elif player.centre[1] - screenPosition > 600 - 150: screenPosition = player.centre[1] - (600 - 150) if screenPosition > 0: screenPosition = 0...
31.636364
55
0.652299
794436220fbc8c74dfbc3f5d5e20d2ec9df6f070
30,337
py
Python
DSSP_statistics.py
sutormin94/N-to-C_asymmetry
ed4f9d6ed6c202a46d619d9ebec097134ee04985
[ "MIT" ]
null
null
null
DSSP_statistics.py
sutormin94/N-to-C_asymmetry
ed4f9d6ed6c202a46d619d9ebec097134ee04985
[ "MIT" ]
null
null
null
DSSP_statistics.py
sutormin94/N-to-C_asymmetry
ed4f9d6ed6c202a46d619d9ebec097134ee04985
[ "MIT" ]
null
null
null
############################################### ##Dmitry Sutormin, 2020## ##N-to-C-terminus assymetry in protein domain secondary structure elements composition## #Pareses DSSP output generated for representative structures with Run_DSSP.py #Get statistics of secondary structure elements at N- and C-termini of protein...
50.730769
179
0.687576