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
dcb463cc37985becee76776bf16977727d8606af
7,622
py
Python
ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/topic_tools/srv/_MuxList.py
letrend/neopixel_fpga
d9247417a9d311eceebad5898571846c6e33a44a
[ "MIT" ]
2
2018-12-11T16:35:20.000Z
2019-01-23T16:42:17.000Z
ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/topic_tools/srv/_MuxList.py
letrend/neopixel_fpga
d9247417a9d311eceebad5898571846c6e33a44a
[ "MIT" ]
1
2018-12-28T21:11:50.000Z
2018-12-28T21:11:50.000Z
ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/topic_tools/srv/_MuxList.py
letrend/neopixel_fpga
d9247417a9d311eceebad5898571846c6e33a44a
[ "MIT" ]
3
2018-01-21T17:53:17.000Z
2021-09-08T10:22:05.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from topic_tools/MuxListRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class MuxListRequest(genpy.Message): _md5sum = "d41d8cd98f00b204e9800998ecf8427e" _typ...
32.712446
145
0.645631
b4ce89a3b5273b0909d89125c79a169a5fc41ae3
3,531
py
Python
src/core/model.py
Lily-Le/shape_templates
5525a0ca017de3bb022069eb97e2c3fccf5fae40
[ "MIT" ]
14
2021-07-26T18:33:11.000Z
2022-03-01T05:48:13.000Z
src/core/model.py
Lily-Le/shape_templates
5525a0ca017de3bb022069eb97e2c3fccf5fae40
[ "MIT" ]
4
2021-10-18T07:36:07.000Z
2022-03-08T12:42:57.000Z
src/core/model.py
Lily-Le/shape_templates
5525a0ca017de3bb022069eb97e2c3fccf5fae40
[ "MIT" ]
4
2021-08-08T13:51:36.000Z
2022-02-15T08:41:02.000Z
import torch import torch.nn as nn from torch.optim import Adam import torchvision.models as models from src.core.networks import ParameterRegressor, ImageTranslator from src.core.utils.losses import compute_anchor_loss, compute_boundary_loss, _l1_loss from src.core.utils.helper import draw_template, load_anchor_points...
47.716216
120
0.674313
4263ff9b6ea927b8cd514dec7d0b399efcf248c0
4,345
py
Python
L1Trigger/L1TMuon/python/simDigis_cff.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
2
2018-06-01T05:18:55.000Z
2021-04-08T21:44:06.000Z
L1Trigger/L1TMuon/python/simDigis_cff.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
L1Trigger/L1TMuon/python/simDigis_cff.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms import sys # # Legacy L1 Muon modules still running in 2016 trigger: # # - DT TP emulator from L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi import * import L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi simDtTriggerPrimitiveDigis = L1Trigger.DTTrigger.dtTriggerPrimitiveDig...
38.794643
205
0.837514
9e0f085bd6416b972a9fb9c29e723349c11aa84e
5,642
py
Python
datamodel_code_generator/model/pydantic/base_model.py
reb00ter/datamodel-code-generator
ac2078b674b6880815581c634c5a321839eb8ab7
[ "MIT" ]
null
null
null
datamodel_code_generator/model/pydantic/base_model.py
reb00ter/datamodel-code-generator
ac2078b674b6880815581c634c5a321839eb8ab7
[ "MIT" ]
null
null
null
datamodel_code_generator/model/pydantic/base_model.py
reb00ter/datamodel-code-generator
ac2078b674b6880815581c634c5a321839eb8ab7
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Any, ClassVar, DefaultDict, Dict, List, Optional, Set, Tuple from pydantic import Field from datamodel_code_generator.imports import Import from datamodel_code_generator.model import ( ConstraintsBase, DataModel, DataModelFieldBase, ) from datamodel_code_generat...
34.193939
90
0.625842
4caaa878ed7096419e6a87318f1b18045434d2c9
1,475
py
Python
datasource/PostgresDataSources.py
antoniopenta/geo-rest-service
2f515a341277c758e415b0b2ce455fd8eb44c2ee
[ "Apache-2.0" ]
null
null
null
datasource/PostgresDataSources.py
antoniopenta/geo-rest-service
2f515a341277c758e415b0b2ce455fd8eb44c2ee
[ "Apache-2.0" ]
null
null
null
datasource/PostgresDataSources.py
antoniopenta/geo-rest-service
2f515a341277c758e415b0b2ce455fd8eb44c2ee
[ "Apache-2.0" ]
null
null
null
import psycopg2 class PostgresDataSources: def __init__(self, conf): self.conf = conf self.conn = None def create_connection(self): try: string_connection = "dbname='%s' user='%s' host='%s' password='%s'" % \ ...
32.065217
107
0.536949
7e369ad341f18321bc48a23a64c8f12b9d67a4bd
2,152
py
Python
planarity_checking/benchmark.py
petrovp/networkx-related
ebe7053e032b527ebaa9565f96ba91145de3fd50
[ "BSD-3-Clause" ]
2
2018-08-02T15:11:20.000Z
2018-09-18T13:20:36.000Z
planarity_checking/benchmark.py
petrovp/networkx-related
ebe7053e032b527ebaa9565f96ba91145de3fd50
[ "BSD-3-Clause" ]
3
2018-06-06T15:39:33.000Z
2018-06-06T15:40:11.000Z
planarity_checking/benchmark.py
petrovp/networkx-related
ebe7053e032b527ebaa9565f96ba91145de3fd50
[ "BSD-3-Clause" ]
1
2018-09-18T13:31:01.000Z
2018-09-18T13:31:01.000Z
import networkx as nx import urllib import tarfile import os, sys from timeit import default_timer as timer links = [ ('https://users.dcc.uchile.cl/~jfuentess/datasets/files/g/planar1M.tar.gz', 'planar_embedding1000000.pg'), ('https://users.dcc.uchile.cl/~jfuentess/datasets/files/g/planar5M.tar.gz', 'planar_em...
38.428571
126
0.754647
3c9f81c41a55102d014fb2c5f81cf47a4b15cf45
1,361
py
Python
model-optimizer/extensions/middle/AttributedTileNormalizer.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
model-optimizer/extensions/middle/AttributedTileNormalizer.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
model-optimizer/extensions/middle/AttributedTileNormalizer.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from mo.front.common.partial_infer.utils import int64_array from mo.graph.graph import Graph from mo.middle.replacement import MiddleReplacementPattern from mo.ops.const import Const from mo.ops.tile import Tile cla...
32.404762
114
0.663483
a9fe9b8f8426f6f2d597cafacc7d8592b9a43fc9
2,317
py
Python
dev-tools/travis/print-errors-from-test-reports.py
kalimfaria/storm
4af88950ef86ce1cd74b2513e0784d0a05d3197c
[ "Apache-2.0" ]
null
null
null
dev-tools/travis/print-errors-from-test-reports.py
kalimfaria/storm
4af88950ef86ce1cd74b2513e0784d0a05d3197c
[ "Apache-2.0" ]
null
null
null
dev-tools/travis/print-errors-from-test-reports.py
kalimfaria/storm
4af88950ef86ce1cd74b2513e0784d0a05d3197c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # 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 t...
30.893333
92
0.636599
993283fa5324bafdc155122f26795f1dfff7662e
1,771
py
Python
setup.py
TobiasSchaffner/pymarkdownlint
19d766877998fb75494bc5847f4c7ae287e86684
[ "MIT" ]
1
2021-05-18T18:58:53.000Z
2021-05-18T18:58:53.000Z
setup.py
TobiasSchaffner/pymarkdownlint
19d766877998fb75494bc5847f4c7ae287e86684
[ "MIT" ]
null
null
null
setup.py
TobiasSchaffner/pymarkdownlint
19d766877998fb75494bc5847f4c7ae287e86684
[ "MIT" ]
1
2021-05-18T19:01:17.000Z
2021-05-18T19:01:17.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import re import os # There is an issue with building python packages in a shared vagrant directory # because of how setuptools works in python < 2.7.9. We solve this by deleting # the filesystem hardlinking capability during build. # See: http://stacko...
32.2
79
0.667984
ba84411084cd8b1762bf4b25ec90eb5627161379
2,003
py
Python
flask_app/public/views.py
kcarwile/flask-app
630620e2e76c0a0ffeb06d6ef6f8cd6ca701c33e
[ "MIT" ]
null
null
null
flask_app/public/views.py
kcarwile/flask-app
630620e2e76c0a0ffeb06d6ef6f8cd6ca701c33e
[ "MIT" ]
null
null
null
flask_app/public/views.py
kcarwile/flask-app
630620e2e76c0a0ffeb06d6ef6f8cd6ca701c33e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Public section, including homepage and signup.""" from flask import Blueprint, flash, redirect, render_template, request, url_for from flask_login import login_required, login_user, logout_user from flask_app.extensions import login_manager from flask_app.public.forms import LoginForm from f...
31.296875
113
0.682976
b9453365893224dc83ee23d87e3748800c3f34f4
1,113
py
Python
_doing/foobar/001-re-id/solution.py
demohack/yute
2fb136118733394e3595bf707cb32f1b7b2aede0
[ "MIT" ]
null
null
null
_doing/foobar/001-re-id/solution.py
demohack/yute
2fb136118733394e3595bf707cb32f1b7b2aede0
[ "MIT" ]
17
2021-03-24T14:59:50.000Z
2022-03-05T23:52:31.000Z
_doing/foobar/001-re-id/solution.py
demohack/yute
2fb136118733394e3595bf707cb32f1b7b2aede0
[ "MIT" ]
null
null
null
def solution(i): # i = the starting index n of Lambda's string of all primes # returns the next five digits in the string # build prime string until size of string >= i + 5 g = gen_primes() l = 0 lz = i + 5 p0 = 0 p1 = "" p2 = "" # 2357111317192329 while l < lz: p0 ...
23.680851
63
0.489668
c550330ac95f9d6ed32e6cf90dddb701d635d81b
68,590
py
Python
packages/dcos-integration-test/extra/test_metrics.py
timgates42/dcos
9d7e4d65b797d67fcd32c626f8026f28d2dece90
[ "Apache-2.0" ]
2,577
2016-04-19T09:57:39.000Z
2022-03-17T10:34:25.000Z
packages/dcos-integration-test/extra/test_metrics.py
timgates42/dcos
9d7e4d65b797d67fcd32c626f8026f28d2dece90
[ "Apache-2.0" ]
7,410
2016-04-19T21:19:31.000Z
2022-01-21T20:14:21.000Z
packages/dcos-integration-test/extra/test_metrics.py
timgates42/dcos
9d7e4d65b797d67fcd32c626f8026f28d2dece90
[ "Apache-2.0" ]
625
2016-04-19T10:09:35.000Z
2022-03-16T10:53:45.000Z
import contextlib import copy import logging import re import sys import uuid from typing import Any, Generator import pytest import retrying from dcos_test_utils.dcos_api import DcosApiSession from prometheus_client.parser import text_string_to_metric_families from test_helpers import get_expanded_config __mainta...
43.576874
119
0.631973
400e2f28e46ce75157670318285a386d5d8cf9a4
3,438
py
Python
pydarknet/pydarknet_helpers.py
WildMeOrg/wbia-tpl-pydarknet
ca7eed0965523123f71132a6aa26100d791cd2fe
[ "Apache-2.0" ]
null
null
null
pydarknet/pydarknet_helpers.py
WildMeOrg/wbia-tpl-pydarknet
ca7eed0965523123f71132a6aa26100d791cd2fe
[ "Apache-2.0" ]
1
2020-06-25T17:28:35.000Z
2020-06-25T17:28:35.000Z
pydarknet/pydarknet_helpers.py
WildMeOrg/wbia-tpl-pydarknet
ca7eed0965523123f71132a6aa26100d791cd2fe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ============================ # Python Interface # ============================ from __future__ import absolute_import, division, print_function import logging from os.path import join, realpath, dirname import numpy as np import ctypes as C import sys from pydarknet import ctypes_interface l...
30.972973
88
0.654741
5ee62dc0d0a0807936d474d8c73f50139b626da4
20
py
Python
boxxy/__init__.py
Cure549/mo-menus
39ff10f99b486cd65d974f9cdd50e0ee939dfa6d
[ "MIT" ]
null
null
null
boxxy/__init__.py
Cure549/mo-menus
39ff10f99b486cd65d974f9cdd50e0ee939dfa6d
[ "MIT" ]
null
null
null
boxxy/__init__.py
Cure549/mo-menus
39ff10f99b486cd65d974f9cdd50e0ee939dfa6d
[ "MIT" ]
null
null
null
from . import Boxxy
10
19
0.75
6eb4bb65ec8824474de01791e5ee02501f48440e
13,863
py
Python
datumaro/plugins/vgg_face2_format.py
dvkruchinin/datumaro
8e1203a3d83e3d6421317d1ebf55c8c6371a1a37
[ "MIT" ]
null
null
null
datumaro/plugins/vgg_face2_format.py
dvkruchinin/datumaro
8e1203a3d83e3d6421317d1ebf55c8c6371a1a37
[ "MIT" ]
null
null
null
datumaro/plugins/vgg_face2_format.py
dvkruchinin/datumaro
8e1203a3d83e3d6421317d1ebf55c8c6371a1a37
[ "MIT" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # # SPDX-License-Identifier: MIT import csv import os import os.path as osp from datumaro.components.annotation import ( AnnotationType, Bbox, Label, LabelCategories, Points, ) from datumaro.components.converter import Converter from datumaro.components.extractor import...
43.45768
86
0.526942
1e25b849109e225a9a86305442b4912ab3b2e874
6,937
py
Python
semtk3/semtkclient.py
ge-semtk/semtk-python3
d6d8e749121ec9309b47d17b01bdcd98935f7e70
[ "Apache-2.0" ]
1
2020-04-30T16:48:05.000Z
2020-04-30T16:48:05.000Z
semtk3/semtkclient.py
ge-semtk/semtk-python3
d6d8e749121ec9309b47d17b01bdcd98935f7e70
[ "Apache-2.0" ]
7
2020-07-09T18:31:41.000Z
2021-09-02T12:23:36.000Z
semtk3/semtkclient.py
ge-semtk/semtk-python3
d6d8e749121ec9309b47d17b01bdcd98935f7e70
[ "Apache-2.0" ]
2
2020-07-17T22:35:41.000Z
2020-07-28T16:16:09.000Z
# # Copyright 2019-20 General Electric Company # # # 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 ...
37.295699
114
0.622315
e937f283a31f537ce1811fc84a7634f6d9eb7096
5,181
py
Python
examples/conversationbot.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
null
null
null
examples/conversationbot.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
null
null
null
examples/conversationbot.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Simple Bot to reply to Telegram messages # This program is dedicated to the public domain under the CC0 license. """ This Bot uses the Updater class to handle the bot. First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and r...
31.785276
99
0.663771
71335623579060b433260cfaa56edbfabd60fbca
951
py
Python
tests/test_00_dxf_low_level_structs/test_016_encoding.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
tests/test_00_dxf_low_level_structs/test_016_encoding.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
tests/test_00_dxf_low_level_structs/test_016_encoding.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Copyright (C) 2016-2020, Manfred Moitzi # License: MIT License import pytest import codecs from ezdxf.lldxf.encoding import dxf_backslash_replace, encode from pathlib import Path # setup DXF unicode encoder -> '\U+nnnn' codecs.register_error("dxfreplace", dxf_backslash_replace) def test_ascii_encoding(): asser...
27.171429
63
0.675079
68174a6cbe454726b4a40242219d7d418727dd84
3,991
py
Python
helios/nodes/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
helios/nodes/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
helios/nodes/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
from abc import abstractmethod from pathlib import Path from multiprocessing.managers import ( BaseManager, ) from typing import ( Type, List, ) from helios.utils.chain_proxy import create_chain_manager from hvm.chains.base import ( BaseChain, ) from helios.chains.coro import AsyncChain from hp2p.peer...
32.447154
102
0.704335
b6c49b445a5c1027dca42a002256acdeea8db28a
1,926
py
Python
openverse_catalog/dags/common_api_workflows.py
lyu4321/openverse-catalog
cd5be8fbff402a7420e772a803abdc2a20fd7235
[ "MIT" ]
null
null
null
openverse_catalog/dags/common_api_workflows.py
lyu4321/openverse-catalog
cd5be8fbff402a7420e772a803abdc2a20fd7235
[ "MIT" ]
1
2021-10-07T19:21:21.000Z
2021-10-07T19:21:21.000Z
openverse_catalog/dags/common_api_workflows.py
lyu4321/openverse-catalog
cd5be8fbff402a7420e772a803abdc2a20fd7235
[ "MIT" ]
null
null
null
import logging import os import util.config as conf from airflow import DAG from croniter import croniter from util.operator_util import get_log_operator, get_runner_operator logging.basicConfig( format="%(asctime)s: [%(levelname)s - DAG Loader] %(message)s", level=logging.INFO ) CRONTAB_STR = conf.CRONTAB_STR ...
28.323529
86
0.715472
9f12087a439352ee0289b9a26276f4bdc3de9c8e
1,141
py
Python
tags.py
adrianomota/projeto_open_street_map
e588745c962d51575355ac162e8f416377711527
[ "MIT" ]
null
null
null
tags.py
adrianomota/projeto_open_street_map
e588745c962d51575355ac162e8f416377711527
[ "MIT" ]
null
null
null
tags.py
adrianomota/projeto_open_street_map
e588745c962d51575355ac162e8f416377711527
[ "MIT" ]
null
null
null
""" Contagem dos padrões das tags. """ import xml.etree.cElementTree as ET import pprint import re from collections import defaultdict lower = re.compile(r'^([a-z]|_)*$') lower_colon = re.compile(r'^([a-z]|_)*:([a-z]|_)*$') problemchars = re.compile(r'[=\+/&<>;\'"\?%#$@\,\. \t\r\n]') OSM_PATH = "dataset/barueri_e_c...
29.25641
72
0.579316
39a9c2589f281e7d9490c661a331f4881af83e82
3,202
py
Python
catalyst/metrics/precision.py
Ditwoo/catalyst
3126390f9f679ebcfedbe01707b416678a2732ac
[ "Apache-2.0" ]
1
2020-11-14T13:35:22.000Z
2020-11-14T13:35:22.000Z
catalyst/metrics/precision.py
Ditwoo/catalyst
3126390f9f679ebcfedbe01707b416678a2732ac
[ "Apache-2.0" ]
null
null
null
catalyst/metrics/precision.py
Ditwoo/catalyst
3126390f9f679ebcfedbe01707b416678a2732ac
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Union import torch from catalyst.metrics import precision_recall_fbeta_support from catalyst.metrics.functional import process_multilabel_components def average_precision( outputs: torch.Tensor, targets: torch.Tensor, weights: Optional[torch.Tensor] = None, ) -> torch.Tensor...
30.788462
75
0.631793
8dd7a26fd8434f83c44b88bdd08aca59aa9a0793
6,071
py
Python
Functions/register_functions.py
mboyr4z/Hastane_Otomasyonu
6f92d559953db233a5fe3c80757624d61cca7618
[ "MIT" ]
7
2021-07-17T10:05:08.000Z
2022-03-25T19:17:29.000Z
Functions/register_functions.py
mboyr4z/Hastane_Otomasyonu
6f92d559953db233a5fe3c80757624d61cca7618
[ "MIT" ]
null
null
null
Functions/register_functions.py
mboyr4z/Hastane_Otomasyonu
6f92d559953db233a5fe3c80757624d61cca7618
[ "MIT" ]
null
null
null
from Hospital_Automation.Database.AddHuman import addDoctortoDatabase,addPatienttoDatabase,addPharmacisttoDatabase,addCounselortoDatabase class register_functions(): def __init__(self,var): self.var = var self.errorCount = 0 def f_register(self): ## kayıt ol kısmımız self.f_...
48.959677
180
0.610443
bbb6d061b1652318c8963b702b0f46cf310b037c
2,090
py
Python
devtools/old_migrations/drop_procedures.py
ahurta92/QCFractal
c7285c9786659c34b1f6f611c6d60b93d76e2678
[ "BSD-3-Clause" ]
null
null
null
devtools/old_migrations/drop_procedures.py
ahurta92/QCFractal
c7285c9786659c34b1f6f611c6d60b93d76e2678
[ "BSD-3-Clause" ]
null
null
null
devtools/old_migrations/drop_procedures.py
ahurta92/QCFractal
c7285c9786659c34b1f6f611c6d60b93d76e2678
[ "BSD-3-Clause" ]
null
null
null
import argparse from qcfractal.storage_sockets import storage_socket_factory from qcfractal.storage_sockets.sql_models import ( ProcedureMap, OptimizationProcedureORM, OptimizationHistory, TorsionDriveProcedureORM, GridOptimizationProcedureORM, GridOptimizationAssociation, Trajectory, to...
33.174603
99
0.779904
9d53e15835e507e490b601d75fa93449a7a1c009
460
py
Python
smarm.com/wakeup/migrations/0003_auto_20201102_0024.py
jphacks/E_2002
46d66f0c1cc479b70111754e2b49ad601e7be108
[ "MIT" ]
null
null
null
smarm.com/wakeup/migrations/0003_auto_20201102_0024.py
jphacks/E_2002
46d66f0c1cc479b70111754e2b49ad601e7be108
[ "MIT" ]
null
null
null
smarm.com/wakeup/migrations/0003_auto_20201102_0024.py
jphacks/E_2002
46d66f0c1cc479b70111754e2b49ad601e7be108
[ "MIT" ]
1
2020-11-05T17:56:25.000Z
2020-11-05T17:56:25.000Z
# Generated by Django 2.2 on 2020-11-01 15:24 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('wakeup', '0002_auto_20201101_2359'), ] operations = [ migrations.AlterField( model_name='schedule', ...
23
92
0.63913
87383fef717a6a1d76b44e4d625d6eb405a9f431
34,012
py
Python
lib/sqlalchemy/pool/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
1
2021-04-04T10:13:08.000Z
2021-04-04T10:13:08.000Z
lib/sqlalchemy/pool/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
null
null
null
lib/sqlalchemy/pool/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
null
null
null
# sqlalchemy/pool.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Base constructs for connection pools. """ from collections import deque imp...
35.318795
84
0.606139
44cc4e9f7b1f8702435bf92907269bd63daa8fce
3,641
py
Python
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx2/migration/migrate.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
14
2017-12-21T00:17:04.000Z
2020-07-15T19:00:31.000Z
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx2/migration/migrate.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
null
null
null
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx2/migration/migrate.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
5
2018-01-18T17:34:48.000Z
2019-03-27T09:32:05.000Z
import argparse import getpass import sys import splunk from splunk import auth from splunk import entity as en from dbx2.migration.controllers import MigrationController from dbx2.exceptions import ResourceExistsException, EntityCanNotBeMigrated class MigrateCommand(object): ''' helper class to run migrati...
37.927083
130
0.648723
4119d693ca9d612a1f684033798a6a7d78628618
12,425
py
Python
Segmentation/args.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
13
2021-03-24T02:13:39.000Z
2022-02-07T11:08:43.000Z
Segmentation/args.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
1
2022-01-10T22:08:49.000Z
2022-01-10T22:08:49.000Z
Segmentation/args.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
1
2021-06-21T17:18:06.000Z
2021-06-21T17:18:06.000Z
import argparse from utils import ext_transforms as et from datasets import VOCSegmentation, Cityscapes import utils import torch import attack_algo import pdb from tqdm import tqdm def get_argparser(): parser = argparse.ArgumentParser() parser.add_argument("exp", type=str, default='', help="path to exp"...
47.423664
105
0.581328
1b97280608ca0a0a5047121edef2e1e0bc75a359
3,966
py
Python
DailyProgrammer/DP20130715A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20130715A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20130715A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [07/15/13] Challenge #133 [Easy] Foot-Traffic Analysis https://www.reddit.com/r/dailyprogrammer/comments/1iambu/071513_challenge_133_easy_foottraffic_analysis/ # [](#EasyIcon) *(Easy)*: Foot-Traffic Analysis The world's most prestigious art gallery in the world needs *your* help! Management wants to figure out ho...
38.504854
119
0.709783
f04c56e3049b88a7167f1959179eba0d267abc7a
1,903
py
Python
setup.py
mdsrosa/flask-slacker
3417680dfa2a15336a0747c772cd1e342d50f4d0
[ "MIT" ]
2
2019-06-30T16:37:05.000Z
2021-05-19T06:34:18.000Z
setup.py
mdsrosa/flask-slacker
3417680dfa2a15336a0747c772cd1e342d50f4d0
[ "MIT" ]
7
2018-10-07T12:07:12.000Z
2021-06-01T21:50:39.000Z
setup.py
mdsrosa/flask-slacker
3417680dfa2a15336a0747c772cd1e342d50f4d0
[ "MIT" ]
null
null
null
""" Flask-Slacker -------------- Adds Slack support to your Flask application using Slacker. """ import ast import re from setuptools import setup def get_version(): _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('flask_slacker/__init__.py', 'rb') as f: version = str(ast.literal_eval...
27.57971
72
0.616395
66bf7b641b57190e3c590bb7d4020e7e5b5b8b41
1,549
py
Python
util.py
ronaldyuwandika/rawfile-localpv
848d87453f7ac68e9d7b48b092899a2873ebad44
[ "Apache-2.0" ]
38
2020-06-12T19:39:17.000Z
2022-03-06T17:34:25.000Z
util.py
ronaldyuwandika/rawfile-localpv
848d87453f7ac68e9d7b48b092899a2873ebad44
[ "Apache-2.0" ]
6
2020-08-08T06:15:07.000Z
2021-11-19T15:38:46.000Z
util.py
ronaldyuwandika/rawfile-localpv
848d87453f7ac68e9d7b48b092899a2873ebad44
[ "Apache-2.0" ]
14
2020-06-19T20:52:44.000Z
2022-03-31T12:08:02.000Z
import base64 import functools import inspect import pickle import subprocess def indent(obj, lvl): return "\n".join([(lvl * " ") + line for line in str(obj).splitlines()]) def log_grpc_request(func): @functools.wraps(func) def wrap(self, request, context): try: res = func(self, requ...
22.128571
76
0.599742
8c203994651b71dbe4f317ada01d0abe1d3ccd60
1,929
py
Python
examples/publications/2013MNRAS.429..895P/disk_script/boxedfi.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
examples/publications/2013MNRAS.429..895P/disk_script/boxedfi.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
examples/publications/2013MNRAS.429..895P/disk_script/boxedfi.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
from amuse.units import nbody_system from amuse.units import units import amuse.datamodel as core from amuse.community.fi.interface import Fi from amuse.ext.gasplummer import MakePlummerGasModel class BoxedFi(Fi): def __init__(self, *args, **kargs): Fi.__init__(self, *args, **kargs) self.escapers=core.Pa...
31.112903
69
0.713841
1042e5d806057cc026b3c75ab095f67633173422
1,622
py
Python
TieredLists.py
garrettwilkin/TieredList
ef7e9a5ce3aa07caaa881f2419775114dec79896
[ "MIT" ]
null
null
null
TieredLists.py
garrettwilkin/TieredList
ef7e9a5ce3aa07caaa881f2419775114dec79896
[ "MIT" ]
null
null
null
TieredLists.py
garrettwilkin/TieredList
ef7e9a5ce3aa07caaa881f2419775114dec79896
[ "MIT" ]
null
null
null
"""Tiered Lists - a simple way to group items into tiers (at insertion time) while maintaining uniqueness.""" class TieredLists(object): def __init__(self, tiers): self.tiers = sorted(tiers, reverse=True) self.bags = {} for t in self.tiers: self.bags[t] = set() def get_tie...
30.603774
118
0.535142
f1b0e7b672fb42b28bcfc1c0327bd6c1098f3e62
4,666
py
Python
tests/creator/creator-profiler.py
atwoodjw/Optimus
938463cec41a6683d2077c9afc7d6ba05c3b993f
[ "Apache-2.0" ]
null
null
null
tests/creator/creator-profiler.py
atwoodjw/Optimus
938463cec41a6683d2077c9afc7d6ba05c3b993f
[ "Apache-2.0" ]
null
null
null
tests/creator/creator-profiler.py
atwoodjw/Optimus
938463cec41a6683d2077c9afc7d6ba05c3b993f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.1 # kernel_info: # name: python3 # kernelspec: # display_name: Python 3 # language...
30.103226
133
0.552508
f2f46a5fdbcaa9c5aecc018cdafff1bdc177d437
2,168
py
Python
xfel/ui/components/averaging.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/ui/components/averaging.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/ui/components/averaging.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from xfel.util.mp import get_lsf_submit_command import os class AveragingCommand(get_lsf_submit_command): def __init__(self, run, db_params, raw=False): # command setup super(AveragingCommand, self).__init__("cxi.mpi_average", None, None, db_params.mp, job_name="average") ...
35.540984
107
0.666513
feb3c69886ee2bd520958bbba5f6ec4bc59eb0cc
1,553
py
Python
assignments/05_hamming/hamming.py
KHLopez08/biosystems-analytics-2020
dcd9e8f435f169ff644002ad03253501cd128fd8
[ "MIT" ]
null
null
null
assignments/05_hamming/hamming.py
KHLopez08/biosystems-analytics-2020
dcd9e8f435f169ff644002ad03253501cd128fd8
[ "MIT" ]
null
null
null
assignments/05_hamming/hamming.py
KHLopez08/biosystems-analytics-2020
dcd9e8f435f169ff644002ad03253501cd128fd8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : khlopez08 Date : 2020-03-04 Purpose: Rock the Casbah """ import argparse import os import sys # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Rock the Casbah', ...
25.459016
78
0.43593
34c5636157cf172adab3278b94960f81eb9c642c
1,703
py
Python
tools/test-domains.py
Scratchcat1/not-on-my-shift
c749e05b04755f34c66780504053d44ef48c6b0c
[ "0BSD" ]
32
2020-05-07T19:39:36.000Z
2021-12-28T09:30:02.000Z
tools/test-domains.py
Scratchcat1/not-on-my-shift
c749e05b04755f34c66780504053d44ef48c6b0c
[ "0BSD" ]
12
2020-05-09T18:05:40.000Z
2021-10-01T08:48:57.000Z
tools/test-domains.py
Scratchcat1/not-on-my-shift
c749e05b04755f34c66780504053d44ef48c6b0c
[ "0BSD" ]
2
2021-03-09T11:22:16.000Z
2021-06-06T13:14:23.000Z
#!/usr/bin/env python3 import argparse from tqdm import tqdm import socket import sys import re import multiprocessing.pool import subprocess parser = argparse.ArgumentParser(description='Tests which domains in the list exist.') parser.add_argument('--file', type=argparse.FileType('r'), default=sys.stdin, help='domai...
23.328767
97
0.707575
dfdaccb3dd57c045b03cbdcd2733f944492860a6
6,804
py
Python
ros/src/tl_detector/tl_detector.py
evgenyslab/CarND-Capstone
d0f62717fc2e896c5c2de7526f45736df561b444
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
evgenyslab/CarND-Capstone
d0f62717fc2e896c5c2de7526f45736df561b444
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
evgenyslab/CarND-Capstone
d0f62717fc2e896c5c2de7526f45736df561b444
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
34.714286
144
0.635949
67e8c17e2e1920a06e06b92668f52e51109ba571
7,090
py
Python
urlgetter.py
DevopediaOrg/topic-resource-finder
ecafaf0e7f6e03ca3a8d7aee34414f871c8ac18d
[ "MIT" ]
null
null
null
urlgetter.py
DevopediaOrg/topic-resource-finder
ecafaf0e7f6e03ca3a8d7aee34414f871c8ac18d
[ "MIT" ]
2
2019-10-19T10:39:18.000Z
2019-11-01T05:09:27.000Z
urlgetter.py
DevopediaOrg/topic-resource-finder
ecafaf0e7f6e03ca3a8d7aee34414f871c8ac18d
[ "MIT" ]
7
2019-10-09T15:31:34.000Z
2019-10-30T06:06:58.000Z
import re import pytz import datetime import platform import sys import requests from newspaper import Article from bs4 import BeautifulSoup from readability.readability import Document as Paper from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(Insecu...
37.120419
102
0.512271
94c4c4cade54de3b79a73971214a827a00d35cd7
4,622
py
Python
test_fields_smallint.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
2
2015-11-11T13:42:32.000Z
2015-11-11T16:38:45.000Z
test_fields_smallint.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
test_fields_smallint.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.core.exceptions import ValidationError from django.forms.models import model_to_dict, modelform_factory from model_mommy.mommy import M...
30.813333
90
0.729122
e5d563455e896e1901c669cc92f5097d7e01b73b
10,967
py
Python
python/paddle/fluid/tests/unittests/test_tensordot.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_tensordot.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_tensordot.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2021 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...
40.025547
84
0.413696
53b95290d879034a97884343775a138a64d221c5
390
py
Python
Ex0090/ex0090.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0090/ex0090.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0090/ex0090.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # exercício 90 alunos = dict() alunos['nome'] = str(input('Nome: ')) alunos['media'] = float(input('Média: ')) if 5 <= alunos["media"] < 7: alunos["situacao"] = 'Recuperação' elif alunos["media"] < 5: alunos['situacao'] = 'Reprovado' else: alunos["situacao"] = 'Aprovado' print('-=...
21.666667
41
0.574359
90e21c5cb669093be7f64c00da775f35d54fa538
2,875
py
Python
pypp11/code_creators/array_1_registrator.py
ISoirar/pypp11
7f929064766a48d9cb3f3b29c93fdc938b83bac5
[ "BSL-1.0" ]
9
2016-06-07T19:14:53.000Z
2020-02-28T09:06:19.000Z
pypp11/code_creators/array_1_registrator.py
ISoirar/pypp11
7f929064766a48d9cb3f3b29c93fdc938b83bac5
[ "BSL-1.0" ]
1
2018-08-15T11:33:40.000Z
2018-08-15T11:33:40.000Z
pypp11/code_creators/array_1_registrator.py
ISoirar/pypp11
7f929064766a48d9cb3f3b29c93fdc938b83bac5
[ "BSL-1.0" ]
5
2016-06-23T09:37:00.000Z
2019-12-18T13:51:29.000Z
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os import algorithm import registration_based from pypp11 import code_repository from pypp11.decl_wrappers im...
41.071429
103
0.686957
fc1eccf16eabf81e41f2eec7464304aeeea681b5
3,486
py
Python
src/clientApp.py
Rishav-hub/DeepFace_FaceRecognition
8271250b47d493e93958d4633558f8112edcb9fb
[ "MIT" ]
5
2021-12-02T15:33:43.000Z
2021-12-24T07:05:17.000Z
src/clientApp.py
Rishav-hub/DeepFace_FaceRecognition
8271250b47d493e93958d4633558f8112edcb9fb
[ "MIT" ]
null
null
null
src/clientApp.py
Rishav-hub/DeepFace_FaceRecognition
8271250b47d493e93958d4633558f8112edcb9fb
[ "MIT" ]
1
2022-02-14T10:59:51.000Z
2022-02-14T10:59:51.000Z
import argparse import logging import os ## Imports from src.face_embeddings.generate_embeddings import FaceEmbeddings from src.face_features.extract_attributes import FaceAttributes from src.face_predictor.generate_prediction import FacePredictor logging_str = "[%(asctime)s: %(levelname)s: %(module)s]: %(message)s"...
38.307692
108
0.679002
21b685a4cedec0cc62d7b4e4611390f061f9521f
12,568
py
Python
autoapi/mappers/python/mapper.py
ashb/sphinx-autoapi
7330297a83c6b45fc520fa706c33374db4b148d9
[ "MIT" ]
null
null
null
autoapi/mappers/python/mapper.py
ashb/sphinx-autoapi
7330297a83c6b45fc520fa706c33374db4b148d9
[ "MIT" ]
null
null
null
autoapi/mappers/python/mapper.py
ashb/sphinx-autoapi
7330297a83c6b45fc520fa706c33374db4b148d9
[ "MIT" ]
null
null
null
import collections import copy import operator import os import sphinx.util from sphinx.util.console import bold import sphinx.util.docstrings import sphinx.util.logging from ..base import SphinxMapperBase from .parser import Parser from .objects import ( PythonClass, PythonFunction, PythonModule, Pyt...
35.806268
87
0.612826
c3458d831535f17e7c2652779f91e23d81d3d46a
684
py
Python
project_site/project_app/migrations/0005_auto_20210130_1445.py
Shufyan/project_management
92332f68b451d4ecedd66c5449850c66b4cb8d32
[ "MIT" ]
null
null
null
project_site/project_app/migrations/0005_auto_20210130_1445.py
Shufyan/project_management
92332f68b451d4ecedd66c5449850c66b4cb8d32
[ "MIT" ]
null
null
null
project_site/project_app/migrations/0005_auto_20210130_1445.py
Shufyan/project_management
92332f68b451d4ecedd66c5449850c66b4cb8d32
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-30 09:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_app', '0004_auto_20210130_0348'), ] operations = [ migrations.AlterField( model_name='employee', name='id', ...
28.5
131
0.621345
ee2cbf35f6be4ec2bd22a3896303f6114c39d408
26,222
py
Python
test/functional/test_runner.py
freelancedeveloper025/MGC
6a532d9bc6e9cb1b0e0240d2ca6dfcf7a053c2b2
[ "MIT" ]
null
null
null
test/functional/test_runner.py
freelancedeveloper025/MGC
6a532d9bc6e9cb1b0e0240d2ca6dfcf7a053c2b2
[ "MIT" ]
null
null
null
test/functional/test_runner.py
freelancedeveloper025/MGC
6a532d9bc6e9cb1b0e0240d2ca6dfcf7a053c2b2
[ "MIT" ]
1
2021-09-24T11:24:48.000Z
2021-09-24T11:24:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
40.156202
195
0.641942
60cec18baa6f2bae670d906113cc0303a1a5d06a
19,660
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_vpn_link_connections_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_vpn_link_connections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_vpn_link_connections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.801034
276
0.667497
91838324f40ec6483f3b8142fc7ebf1a4ed544db
3,244
py
Python
tensorflow/python/training/gradient_descent.py
nkgwer/tensorflow
9cfb4b13c4639f741ec6b92e24c77d294a44c2d5
[ "Apache-2.0" ]
3
2021-07-26T18:24:06.000Z
2021-11-02T19:48:13.000Z
tensorflow/python/training/gradient_descent.py
nkgwer/tensorflow
9cfb4b13c4639f741ec6b92e24c77d294a44c2d5
[ "Apache-2.0" ]
1
2021-10-06T08:29:35.000Z
2021-10-06T08:36:59.000Z
tensorflow/python/training/gradient_descent.py
nkgwer/tensorflow
9cfb4b13c4639f741ec6b92e24c77d294a44c2d5
[ "Apache-2.0" ]
1
2021-10-03T18:47:35.000Z
2021-10-03T18:47:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.063291
80
0.732429
16f9e632d25f3796901e0d8ec2fe949acfcb7fd7
5,233
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/util/row_delete.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/util/row_delete.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/util/row_delete.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Code to delete rows from a table within a Django mgmt command using best practices. Following lines show how to use delete_rows(): # Command to delete all rows from the student_historicalcourseenrollment table. import logging from openedx.core.djangoapps.util.row_delete import BaseDeletionCommand, delete_rows f...
39.345865
171
0.661189
9e26421b824c56f40b25266b94f8335b683944ab
44,473
py
Python
tensorflow/python/distribute/mirrored_strategy.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
1
2020-03-12T10:39:06.000Z
2020-03-12T10:39:06.000Z
tensorflow/python/distribute/mirrored_strategy.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
2
2021-08-25T15:57:08.000Z
2022-02-10T00:40:07.000Z
tensorflow/python/distribute/mirrored_strategy.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
3
2020-03-09T19:17:02.000Z
2020-06-26T23:14:31.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.178704
109
0.700043
2e086935642f60093d6656dc19a0f580775e4b0c
10,538
py
Python
fsbackup/hashVolume.py
zeycus/fsbackup
2110405c211deb0b978a983a8a5a4abc700e6410
[ "MIT" ]
1
2017-11-05T11:56:52.000Z
2017-11-05T11:56:52.000Z
fsbackup/hashVolume.py
zeycus/fsbackup
2110405c211deb0b978a983a8a5a4abc700e6410
[ "MIT" ]
null
null
null
fsbackup/hashVolume.py
zeycus/fsbackup
2110405c211deb0b978a983a8a5a4abc700e6410
[ "MIT" ]
1
2021-04-17T17:45:46.000Z
2021-04-17T17:45:46.000Z
#!/usr/bin/python3.6 """ .. module:: hashVolume :platform: Windows, linux :synopsis: module for class :class:`HashVolume <hashVolume.HashVolume>`. .. moduleauthor:: Miguel Garcia <zeycus@gmail.com> """ import os import re import shutil import bisect import random from fsbackup.shaTools import sha256 from f...
40.068441
130
0.614443
d8fc18f93ffe2ce1c7c6ecb433c051a323d915ab
1,454
py
Python
pisa/stages/osc/prob3numba/test_numba.py
torkjellsdatter/pisa
7b26b0ac40c873a87786286acfd1c96abf724a99
[ "Apache-2.0" ]
null
null
null
pisa/stages/osc/prob3numba/test_numba.py
torkjellsdatter/pisa
7b26b0ac40c873a87786286acfd1c96abf724a99
[ "Apache-2.0" ]
null
null
null
pisa/stages/osc/prob3numba/test_numba.py
torkjellsdatter/pisa
7b26b0ac40c873a87786286acfd1c96abf724a99
[ "Apache-2.0" ]
null
null
null
''' Test functions used during developpement of the osc. code Please ignore unless you are the author ''' import numpy as np import time from numba import guvectorize, SmartArray from pisa import TARGET from pisa.utils.numba_tools import * @myjit def sum_row_kernel(mix, bla, inp, out): C = cuda.local.array(shape...
25.964286
103
0.618982
02f97cdd11176df789fe57713f210b2ba3dfa994
288
py
Python
vnpy/trader/event.py
erikgqp8645/vnpy
b9f87bfb0a1acdee071d31ac17a3e0ecd83dc11d
[ "MIT" ]
null
null
null
vnpy/trader/event.py
erikgqp8645/vnpy
b9f87bfb0a1acdee071d31ac17a3e0ecd83dc11d
[ "MIT" ]
null
null
null
vnpy/trader/event.py
erikgqp8645/vnpy
b9f87bfb0a1acdee071d31ac17a3e0ecd83dc11d
[ "MIT" ]
null
null
null
""" Event type string used in VN Trader. VN Trader中使用的事件类型字符串 """ from vnpy.event import EVENT_TIMER # noqa EVENT_TICK = "eTick." EVENT_TRADE = "eTrade." EVENT_ORDER = "eOrder." EVENT_POSITION = "ePosition." EVENT_ACCOUNT = "eAccount." EVENT_CONTRACT = "eContract." EVENT_LOG = "eLog"
19.2
42
0.732639
dd6bdc8931e9d41de91c918bbe5ba6455ed6eaf4
1,327
py
Python
vendor/github.com/tensorflow/tensorflow/tensorflow/python/autograph/utils/testing.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
52
2018-11-12T06:39:35.000Z
2022-03-08T05:31:27.000Z
tensorflow/python/autograph/utils/testing.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
30
2016-10-04T15:38:08.000Z
2020-07-16T12:09:33.000Z
tensorflow/python/autograph/utils/testing.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.921053
80
0.73474
3bde851068b577f248c991b888a87c485b679049
978
py
Python
learning_logs/models.py
kevinbowen777/learning_log
ec81918ae92d4859591f840274dd88a37afa4998
[ "MIT" ]
null
null
null
learning_logs/models.py
kevinbowen777/learning_log
ec81918ae92d4859591f840274dd88a37afa4998
[ "MIT" ]
null
null
null
learning_logs/models.py
kevinbowen777/learning_log
ec81918ae92d4859591f840274dd88a37afa4998
[ "MIT" ]
null
null
null
# from django.contrib.auth.models import User from django.contrib.auth import get_user_model from django.db import models class Topic(models.Model): """A topic the user is learning about.""" text = models.CharField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) owner = models.Fo...
28.764706
73
0.669734
b2002ae2af8b29551859ced92a76ec5965d76a0f
1,366
py
Python
news.py
sarveshwar-s/stockcast
6a71fd227b1fd2ea86d1465756be383a156467e5
[ "Apache-2.0" ]
null
null
null
news.py
sarveshwar-s/stockcast
6a71fd227b1fd2ea86d1465756be383a156467e5
[ "Apache-2.0" ]
null
null
null
news.py
sarveshwar-s/stockcast
6a71fd227b1fd2ea86d1465756be383a156467e5
[ "Apache-2.0" ]
1
2021-10-16T09:31:19.000Z
2021-10-16T09:31:19.000Z
from textblob import TextBlob # from textblob.sentiments import NaiveBayesAnalyzer import requests as req # api = "https://api.nytimes.com/svc/search/v2/articlesearch.json?q=GOOG&api-key=YOUR_API_KEY" # print(datas["response"]["docs"][0]["lead_paragraph"]) #This is for newyork times def news_analysis(compname): ...
35.947368
94
0.666179
4a86e16f541d3b31dc6ab75f6dcde71e04c1cd39
169
py
Python
solutions/5_Registration_Exercise2Answer2.py
mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence
bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca
[ "Apache-2.0" ]
30
2019-08-28T09:15:05.000Z
2021-04-19T17:43:35.000Z
solutions/5_Registration_Exercise2Answer2.py
mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence
bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca
[ "Apache-2.0" ]
27
2019-03-01T14:39:38.000Z
2019-07-30T04:44:48.000Z
solutions/5_Registration_Exercise2Answer2.py
mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence
bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca
[ "Apache-2.0" ]
14
2019-10-02T17:16:04.000Z
2021-02-24T17:28:24.000Z
resampler = itk.ResampleImageFilter.New(Input=movingImage, Transform=outputCompositeTransform, UseReferenceImage=True, ReferenceImage=fixedImage)
42.25
58
0.757396
cb04c84f76de348c187408f7f8ed5d92e74176d9
5,767
py
Python
src/textconfig.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
1
2020-07-21T12:10:58.000Z
2020-07-21T12:10:58.000Z
src/textconfig.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
17
2020-03-14T20:27:09.000Z
2022-01-13T02:31:39.000Z
src/textconfig.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.colorchooser import askcolor from datetime import datetime from src.fonts import get_system_fonts from src.grid import grid_frame class TextConfigureApp(tk.Frame): """Simple Collage Creator second window. Used for adding a caption to a collage. Allows user to customize a ...
39.772414
103
0.61297
2c93a8e25042ef18051545fb30fe5729b92d2621
2,684
py
Python
ai_modules/block_and_score_ai.py
PeterGaivoronski/n-size-tic-tac-toe
322d7d1110a16974639b5207ebf88f30e12f1fa4
[ "BSD-3-Clause" ]
null
null
null
ai_modules/block_and_score_ai.py
PeterGaivoronski/n-size-tic-tac-toe
322d7d1110a16974639b5207ebf88f30e12f1fa4
[ "BSD-3-Clause" ]
null
null
null
ai_modules/block_and_score_ai.py
PeterGaivoronski/n-size-tic-tac-toe
322d7d1110a16974639b5207ebf88f30e12f1fa4
[ "BSD-3-Clause" ]
null
null
null
from .random_ai import computer_turn as random_fallback_computer_turn def close_to_winning(symbol, game_state): num_squares = len(game_state["board"]) diag_0_win = num_squares diag_1_win = num_squares diag_0_index = 0 diag_1_index = num_squares - 1 col_wins = [num_squares for x in game_state["board"][0]] row_wi...
28.860215
108
0.720939
d4386323764a6385c0548004d49afa3bec346b27
4,775
py
Python
sheets/management/commands/sync_assignment_sheet.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
10
2019-02-20T18:41:32.000Z
2021-07-26T10:39:58.000Z
sheets/management/commands/sync_assignment_sheet.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
2,226
2019-02-20T20:03:57.000Z
2022-03-31T11:18:56.000Z
sheets/management/commands/sync_assignment_sheet.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4
2020-08-26T19:26:02.000Z
2021-03-09T17:46:47.000Z
""" Compares assignment sheet rows to enrollment records in the database and message delivery data in Mailgun. If the data in the sheet does not match, a request is sent to update/"sync" the sheet data. """ from django.core.management import BaseCommand, CommandError from ecommerce.mail_api import send_bulk_enroll_ema...
40.12605
110
0.597068
7e737a3798ef247dd21dbb2d8ded5bc14963148b
531
py
Python
ex072 - Número por extenso.py
CelsoAntunesNogueira/Phyton3
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
[ "MIT" ]
null
null
null
ex072 - Número por extenso.py
CelsoAntunesNogueira/Phyton3
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
[ "MIT" ]
null
null
null
ex072 - Número por extenso.py
CelsoAntunesNogueira/Phyton3
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
[ "MIT" ]
null
null
null
nu = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'catorze', 'quinze', 'dezesseis', 'dezesete', 'dezoito', 'dezenove', 'vinte') while True: a = int(input("Digite um número de 0 a 20:")) if a > -1 and a < 21: print(f"O número esc...
31.235294
101
0.504708
22fcb14c04cc74c1cf15646d73ff8cfa79ef030e
482
py
Python
location/urls.py
radamizell/WallApp
20cb8dfe0709c79f20c93201f25b81ac5a517fc6
[ "MIT" ]
null
null
null
location/urls.py
radamizell/WallApp
20cb8dfe0709c79f20c93201f25b81ac5a517fc6
[ "MIT" ]
1
2017-05-20T03:09:37.000Z
2017-06-01T05:09:56.000Z
location/urls.py
radamizell/WallApp
20cb8dfe0709c79f20c93201f25b81ac5a517fc6
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.views.generic import ListView, DetailView from . import views urlpatterns = [ url(r'^$', views.fetch_places, name= 'list'), url(r'^foo/', views.fetch_places_loc, name='foo'), url(r'^create/$', views.post_create), url(r'^(?P<id>\d+)/$', views.post_detai...
37.076923
69
0.639004
fdb4b2d4561e030a2e7327db6b08c8c70d1455d0
1,300
py
Python
var/spack/repos/builtin/packages/blast-legacy/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/blast-legacy/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/blast-legacy/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.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 os import symlink from spack.package import * class BlastLegacy(Package): """Legacy NCBI BLAST distribution --...
34.210526
113
0.668462
d7ab7ae0d6bff08b4e0ffbccc08e09b3afcf80b1
4,451
py
Python
model.py
tracyhayford/behavioral-cloning
c32237768beec281e3459f5972067305bff9b64b
[ "MIT" ]
null
null
null
model.py
tracyhayford/behavioral-cloning
c32237768beec281e3459f5972067305bff9b64b
[ "MIT" ]
null
null
null
model.py
tracyhayford/behavioral-cloning
c32237768beec281e3459f5972067305bff9b64b
[ "MIT" ]
null
null
null
import csv import cv2 import numpy as np lines = [] data_path = './data/' # These are some other data paths that were used during testing #data_path = '../Origdata/' #data_path = '../THdata/' #data_path = '../THdata1/' # Read the driving log CSV file first_line = True with open(data_path + 'driving_log.csv') as c...
33.216418
138
0.700067
42ede81403649a36e143173f0c614e7ec03cf0a9
2,355
py
Python
nms.py
ysy9893/object_recognition_with_hand_gesture
fc43211a1e6fe8a19f726f156cf276a8acdcb246
[ "Apache-2.0" ]
null
null
null
nms.py
ysy9893/object_recognition_with_hand_gesture
fc43211a1e6fe8a19f726f156cf276a8acdcb246
[ "Apache-2.0" ]
null
null
null
nms.py
ysy9893/object_recognition_with_hand_gesture
fc43211a1e6fe8a19f726f156cf276a8acdcb246
[ "Apache-2.0" ]
1
2021-06-26T05:46:03.000Z
2021-06-26T05:46:03.000Z
# import the necessary packages import numpy as np def NMS(boxes,classes, probs, overlapThresh,imH,imW): # if there are no boxes, return an empty list if len(boxes) == 0: return [] # For the bunch of division, the type of elements in bbox should be converterd to float if boxes.dtype.kind == "i": boxes = boxe...
33.169014
104
0.6862
20d089d4b1594960751cfefc33e004ac394611ff
9,657
py
Python
engineio/asyncio_socket.py
StoneMoe/python-engineio
43f8fb5cd3fefe96768f8a8d91006787fa9c1c19
[ "MIT" ]
null
null
null
engineio/asyncio_socket.py
StoneMoe/python-engineio
43f8fb5cd3fefe96768f8a8d91006787fa9c1c19
[ "MIT" ]
null
null
null
engineio/asyncio_socket.py
StoneMoe/python-engineio
43f8fb5cd3fefe96768f8a8d91006787fa9c1c19
[ "MIT" ]
null
null
null
import asyncio import six import sys import time from . import exceptions from . import packet from . import payload from . import socket class AsyncSocket(socket.Socket): async def poll(self): """Wait for packets to send to the client.""" try: packets = [await asyncio.wait_for(self.q...
40.746835
79
0.550896
0828b310e6ced0a8d0c5133e03eec8e200247bf3
2,489
py
Python
GPF/example/main_single.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
104
2018-11-04T04:47:13.000Z
2022-02-26T11:52:47.000Z
GPF/example/main_single.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
4
2019-03-03T01:35:57.000Z
2021-05-08T13:59:44.000Z
GPF/example/main_single.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
25
2019-02-01T07:19:18.000Z
2022-01-25T06:11:29.000Z
#!/usr/bin/env python # encoding: utf-8 import sys #指定路径 sys.path.append("../src/") import graph import embeddings import sample import classifier from classifier import loop_dataset import subgraphs import argparse import torch import torch.optim as optim import networkx as nx import until import random from tqdm i...
31.1125
160
0.76135
1f6b762f770a3d90e5588d69fbbd01d58aad9b42
649
py
Python
tests/parser/features/test_assert.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
null
null
null
tests/parser/features/test_assert.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
null
null
null
tests/parser/features/test_assert.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
1
2018-09-02T22:47:00.000Z
2018-09-02T22:47:00.000Z
import pytest from tests.setup_transaction_tests import chain as s, tester as t, ethereum_utils as u, check_gas, \ get_contract_with_gas_estimation, get_contract def test_assert_refund(t): code = """ @public def foo(): assert 1 == 2 """ c = get_contract_with_gas_estimation(code) pre_balance = t.s.h...
34.157895
100
0.72265
927f80a5890c73ce3ace9fe979f70aecee02a872
156
py
Python
predicode/hierarchical/__init__.py
sflippl/predicode
f3d0b43a2c05cd6dbdf8656f6759127483f79a58
[ "MIT" ]
2
2019-09-24T14:43:17.000Z
2021-02-07T08:34:54.000Z
predicode/hierarchical/.ipynb_checkpoints/__init__-checkpoint.py
sflippl/predicode
f3d0b43a2c05cd6dbdf8656f6759127483f79a58
[ "MIT" ]
8
2019-09-09T16:01:10.000Z
2022-02-10T00:20:45.000Z
predicode/hierarchical/.ipynb_checkpoints/__init__-checkpoint.py
sflippl/predicode
f3d0b43a2c05cd6dbdf8656f6759127483f79a58
[ "MIT" ]
1
2019-09-24T15:00:39.000Z
2019-09-24T15:00:39.000Z
"""Implements hierarchical predictive coding models.""" from predicode.hierarchical.initializer import * from predicode.hierarchical.hierarchical import *
31.2
55
0.826923
c3c663bbac5709660c6537d5be6eace473304864
1,485
py
Python
ash/resources/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ash/resources/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
ash/resources/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Presubmit script for Chromium Ash resources. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the p...
29.117647
76
0.744781
fa64416460b750277761d843f0df40ac83b95450
2,747
py
Python
cli/rmaker_tools/rmaker_prov/transport/transport_ble.py
dajewiss/esp-rainmaker
bca07db139d5da5fe3301659d35df7ad20b78455
[ "Apache-2.0" ]
78
2020-12-16T01:04:28.000Z
2022-03-29T02:07:38.000Z
cli/rmaker_tools/rmaker_prov/transport/transport_ble.py
dajewiss/esp-rainmaker
bca07db139d5da5fe3301659d35df7ad20b78455
[ "Apache-2.0" ]
88
2020-12-19T02:39:12.000Z
2022-03-15T18:00:00.000Z
cli/rmaker_tools/rmaker_prov/transport/transport_ble.py
dajewiss/esp-rainmaker
bca07db139d5da5fe3301659d35df7ad20b78455
[ "Apache-2.0" ]
47
2020-12-18T16:55:10.000Z
2022-02-11T02:04:16.000Z
# Copyright 2020 Espressif Systems (Shanghai) PTE LTD # # 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 ...
41
89
0.66873
ac0115f34aabbd2708857c1d9d25f92c7a13a846
400
py
Python
temperaturePlot.py
PostojePoczekam/TemperaturePlot
550209efcb793ca686d2364f5dc3812903b366c7
[ "MIT" ]
null
null
null
temperaturePlot.py
PostojePoczekam/TemperaturePlot
550209efcb793ca686d2364f5dc3812903b366c7
[ "MIT" ]
null
null
null
temperaturePlot.py
PostojePoczekam/TemperaturePlot
550209efcb793ca686d2364f5dc3812903b366c7
[ "MIT" ]
null
null
null
import sys import pandas as pd import matplotlib.pyplot as plt filename = sys.argv[1] df = pd.read_csv(filename, sep=',', engine='python') plt.figure(figsize=(16, 9)) plt.title(filename.replace('\\', '/').split('/').pop()) plt.ylabel('Temperature [°C]') plt.xlabel('Time [s]') plt.plot(df.iloc[:, 3], label='GPU') plt.p...
25
55
0.6625
b2895dab4a3ae6e7d5fd147787ecc5c6e1c6a9c3
1,078
py
Python
pipenv/patched/notpip/_internal/models/index.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
18,636
2017-12-06T14:53:18.000Z
2022-03-31T13:12:34.000Z
pipenv/patched/notpip/_internal/models/index.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
3,640
2017-12-06T16:58:35.000Z
2022-03-31T22:20:57.000Z
pipenv/patched/notpip/_internal/models/index.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
1,987
2017-12-06T15:04:51.000Z
2022-03-26T10:05:15.000Z
from pipenv.patched.notpip._vendor.six.moves.urllib import parse as urllib_parse class PackageIndex(object): """Represents a Package Index and provides easier access to endpoints """ def __init__(self, url, file_storage_domain): # type: (str, str) -> None super(PackageIndex, self).__init_...
33.6875
80
0.688312
f362b97808ae43174b62ffed9748347e8016b28d
1,567
py
Python
cloudify_custom_workflow/batch_utils.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
8
2017-06-14T14:59:17.000Z
2021-09-15T05:44:05.000Z
cloudify_custom_workflow/batch_utils.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
75
2017-04-20T20:42:26.000Z
2022-02-16T11:03:02.000Z
cloudify_custom_workflow/batch_utils.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
21
2017-08-13T13:19:58.000Z
2021-12-09T14:41:42.000Z
######## # Copyright (c) 2014-2018 Cloudify Platform 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 ...
34.822222
75
0.728781
e3e7ad6ec1ebda2e58b02efed13a5c6b54038157
14,237
py
Python
test/functional/wallet_hd.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
test/functional/wallet_hd.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
test/functional/wallet_hd.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Tokyocoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic wallet function.""" import os import shutil from test_framework.tes...
50.846429
154
0.641498
926fe9b2a6c5d3d033cf217127706a985c4c7021
12,848
py
Python
spyder/plugins/editor/widgets/tests/test_recover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
spyder/plugins/editor/widgets/tests/test_recover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
spyder/plugins/editor/widgets/tests/test_recover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Tests for recover.py""" # Standard library imports import os.path as osp import pytest import shutil # Third party imports from qtpy.QtWidgets import QDialogButt...
39.051672
79
0.701199
33a1c291f568e58ad0ef4bf9f31de8c5f1cd1fc5
3,457
py
Python
rplugin/python3/denite/source/tag.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/tag.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/tag.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: tag.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re import typing from os.path import exists from pathlib imp...
33.563107
79
0.482789
2ccee2153349f6f6eac4c9cb250121311a412541
130
py
Python
congregation/config/__init__.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
3
2020-10-05T16:30:15.000Z
2021-01-22T13:38:02.000Z
congregation/config/__init__.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
null
null
null
congregation/config/__init__.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
1
2021-02-19T12:40:57.000Z
2021-02-19T12:40:57.000Z
from congregation.config.config import Config from congregation.config.network import * from congregation.config.codegen import *
32.5
45
0.846154
8bb2330f257a1f013cce4f0b68f2f4fc04b34dee
3,019
py
Python
miper/tests/unit/test_conf.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2016-01-13T04:23:20.000Z
2016-01-13T04:23:20.000Z
miper/tests/unit/test_conf.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2015-12-17T09:58:04.000Z
2016-08-01T15:23:27.000Z
miper/tests/unit/test_conf.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2011 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
35.940476
78
0.642597
a53569b1c3d0f1c0b4ef30ef9ad205a7152513cf
12,569
py
Python
tests/test_tablemultivariablelookup.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
19
2015-12-08T23:33:51.000Z
2022-01-31T04:41:10.000Z
tests/test_tablemultivariablelookup.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
2
2019-10-04T10:57:00.000Z
2021-10-01T06:46:17.000Z
tests/test_tablemultivariablelookup.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
7
2015-11-04T02:25:01.000Z
2021-12-08T03:14:28.000Z
import os import tempfile import unittest import logging from pyidf import ValidationLevel import pyidf from pyidf.idf import IDF from pyidf.performance_tables import TableMultiVariableLookup log = logging.getLogger(__name__) class TestTableMultiVariableLookup(unittest.TestCase): def setUp(self): self.fd...
52.153527
186
0.738086
3e49e0cdd977537ed757179668b6fc1443e7cfa5
34,203
py
Python
test/functional/rpc_fundrawtransaction.py
limitstory/pyeongtaekcoin
c77889d1ec25759b67fab17180f17eb8f96bbaa1
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
limitstory/pyeongtaekcoin
c77889d1ec25759b67fab17180f17eb8f96bbaa1
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
limitstory/pyeongtaekcoin
c77889d1ec25759b67fab17180f17eb8f96bbaa1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Pyeongtaekcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framew...
45.182299
223
0.575067
2f6b1e187326875e8f55f729bc5ed8da9e235a32
436
py
Python
problems/day-14/part_1.py
stringham/advent-of-code-2020
01cfad88b2d70969976f44efdb66245470d5f925
[ "MIT" ]
1
2020-12-21T10:56:07.000Z
2020-12-21T10:56:07.000Z
problems/day-14/part_1.py
stringham/advent-of-code-2020
01cfad88b2d70969976f44efdb66245470d5f925
[ "MIT" ]
null
null
null
problems/day-14/part_1.py
stringham/advent-of-code-2020
01cfad88b2d70969976f44efdb66245470d5f925
[ "MIT" ]
1
2020-12-23T20:15:16.000Z
2020-12-23T20:15:16.000Z
#!/usr/bin/env python3 import sys memory = {} for line in sys.stdin: parts = line.split() if parts[0] == "mask": mask = parts[2] continue address = int(parts[0][4:-1]) value_bin = format(int(parts[2]), "b").zfill(len(mask)) value_bin = "".join( b if mask[i] == "X" else m...
18.956522
73
0.571101
f817590e2a20f96379584d0cb94a2c468166584f
59,720
py
Python
fastly/__init__.py
jcristau/fastly-python
4c25a08cc29c119279c30970c9c38d7e5135b005
[ "BSD-2-Clause" ]
null
null
null
fastly/__init__.py
jcristau/fastly-python
4c25a08cc29c119279c30970c9c38d7e5135b005
[ "BSD-2-Clause" ]
null
null
null
fastly/__init__.py
jcristau/fastly-python
4c25a08cc29c119279c30970c9c38d7e5135b005
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Author: Chris Zacharias (chris@imgix.com) # Copyright (c) 2012, Zebrafish Labs Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must re...
35.379147
393
0.722019
f766a5c054b38ca323d63c2ed823e6076a335cd8
1,080
py
Python
test.py
eggveloper/retry
81837581ff49a890a292f9c80a989a0dd5e52e3c
[ "MIT" ]
null
null
null
test.py
eggveloper/retry
81837581ff49a890a292f9c80a989a0dd5e52e3c
[ "MIT" ]
null
null
null
test.py
eggveloper/retry
81837581ff49a890a292f9c80a989a0dd5e52e3c
[ "MIT" ]
null
null
null
import retri import time class App(retri.App): def __init__(self): super().__init__(160, 120, 4) data = self.bank(0).data data[0, 0] = 7 data[0, 1] = 3 data[0, 2] = 7 data[1, 0] = 8 data[2, 0] = 7 data[7, 7] = 7 self.x = 0 self.cou...
20
57
0.448148
6dc7b127ae06582a47d2b73be028681cafbb9432
1,797
py
Python
setup.py
LKNSI/autokeras
b26758a8c639795b1850398ffb66403c8ae69c86
[ "Apache-2.0" ]
1
2021-09-26T15:23:52.000Z
2021-09-26T15:23:52.000Z
setup.py
vidushi-chouksey/autokeras
f53e3fe7bfdf06e95e9626c23073780608a98eb8
[ "Apache-2.0" ]
null
null
null
setup.py
vidushi-chouksey/autokeras
f53e3fe7bfdf06e95e9626c23073780608a98eb8
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup from pathlib import Path from setuptools import find_packages this_file = Path(__file__).resolve() readme = this_file.parent / "README.md" setup( name="autokeras", version="1.0.16", description="AutoML for deep learning", package_data={"": ["README.md"]}, long_des...
31.526316
81
0.579855
2dc24de00a16ea34088ecd0ab46570fae5ddef64
1,443
py
Python
tests/contrib/operators/test_gcp_function_operator_system.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
15
2017-04-06T09:01:50.000Z
2021-10-02T13:54:31.000Z
tests/contrib/operators/test_gcp_function_operator_system.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
26
2019-08-05T13:44:11.000Z
2022-03-30T10:06:18.000Z
tests/contrib/operators/test_gcp_function_operator_system.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
21
2017-08-20T03:01:05.000Z
2021-09-07T06:47:51.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
37.973684
73
0.765073
8a4b0649ce1ac6e71dfed7b8cdefa5c15f9ded55
2,331
py
Python
pipeline/feature-extraction/pipeline_pun_extraction.py
I2Cvb/lemaitre-2016-nov
9367e550f5ebdbf5994dfe318d319d0a14320240
[ "MIT" ]
3
2017-05-18T11:50:19.000Z
2019-06-28T13:46:50.000Z
pipeline/feature-extraction/pipeline_pun_extraction.py
I2Cvb/lemaitre-2016-nov
9367e550f5ebdbf5994dfe318d319d0a14320240
[ "MIT" ]
null
null
null
pipeline/feature-extraction/pipeline_pun_extraction.py
I2Cvb/lemaitre-2016-nov
9367e550f5ebdbf5994dfe318d319d0a14320240
[ "MIT" ]
2
2018-02-11T22:17:21.000Z
2020-10-19T06:57:20.000Z
""" This pipeline is used to find the extract the PUN parameters and saved the data in a matrix. """ import os import numpy as np from joblib import Parallel, delayed from protoclass.data_management import DCEModality from protoclass.data_management import GTModality from protoclass.extraction import PUNQuantifica...
32.830986
75
0.705277
41498d82e1d7933b7b0a0c444147819cc1c136df
604
py
Python
newsApp/dbItem.py
adityabansal/newsAroundMe
06d30c8a281baae90f916aa0b0bfe3b4db9d2293
[ "MIT" ]
9
2017-06-22T18:42:54.000Z
2021-03-28T18:58:44.000Z
newsApp/dbItem.py
adityabansal/newsAroundMe
06d30c8a281baae90f916aa0b0bfe3b4db9d2293
[ "MIT" ]
8
2016-10-08T12:50:50.000Z
2022-03-11T23:13:17.000Z
newsApp/dbItem.py
adityabansal/newsAroundMe
06d30c8a281baae90f916aa0b0bfe3b4db9d2293
[ "MIT" ]
3
2018-01-18T11:01:32.000Z
2018-11-20T08:33:30.000Z
class DbItem: """ Represents a generic item which can be added/updated/deleted/retrieved to a database. Each dbItem consists of a unique identifier and a set of tags(which are simple key-value pairs). """ def __init__(self, id, tags=None): """ Instantiates a new dbItem object. Requires a 'id'...
27.454545
98
0.69702
8c47257f83358248a6975d8c4b2adae403319acd
3,417
py
Python
modules/nltk_contrib/scripttranscriber/thai_unittest.py
h4ck3rm1k3/NLP-project
aeba6302f60d27a8b9e65ad28d2d74e1276c7cd6
[ "MIT" ]
123
2015-01-06T10:46:18.000Z
2022-02-01T10:05:16.000Z
nltk_contrib/scripttranscriber/thai_unittest.py
silky/nltk_contrib
c152bde901f05915e90b07a615b232adb123bed8
[ "Apache-2.0" ]
12
2015-01-13T06:27:18.000Z
2020-07-30T23:00:41.000Z
nltk_contrib/scripttranscriber/thai_unittest.py
silky/nltk_contrib
c152bde901f05915e90b07a615b232adb123bed8
[ "Apache-2.0" ]
114
2015-01-13T04:47:49.000Z
2021-11-13T08:16:02.000Z
# -*- coding: utf-8 -*- ## 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...
29.456897
75
0.681299
b914e15fded72108e35d0bd970f5922de56f1c8e
530
py
Python
rider/migrations/0002_auto_20200427_1501.py
Mariga123/carpool
f7330634ace2718c2347694b207b9dd49ef6538f
[ "MIT" ]
null
null
null
rider/migrations/0002_auto_20200427_1501.py
Mariga123/carpool
f7330634ace2718c2347694b207b9dd49ef6538f
[ "MIT" ]
null
null
null
rider/migrations/0002_auto_20200427_1501.py
Mariga123/carpool
f7330634ace2718c2347694b207b9dd49ef6538f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-27 15:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rider', '0001_initial'), ] operations = [ migrations.AlterField( model_name='ride', name='complete', fie...
22.083333
53
0.566038
946843edf83632fdc60fc17760beda577a044c8b
4,113
py
Python
oanda_candles/candle_requester.py
aallaire/oanda-candles
d9bc4878e0a7d9ce5d2db65d36840dc2edcca6f1
[ "Apache-2.0" ]
3
2020-10-11T13:13:28.000Z
2021-10-30T04:19:32.000Z
oanda_candles/candle_requester.py
aallaire/oanda-candles
d9bc4878e0a7d9ce5d2db65d36840dc2edcca6f1
[ "Apache-2.0" ]
1
2021-12-07T14:42:37.000Z
2022-01-25T15:57:54.000Z
oanda_candles/candle_requester.py
aallaire/oanda-candles
d9bc4878e0a7d9ce5d2db65d36840dc2edcca6f1
[ "Apache-2.0" ]
null
null
null
from requests import Session from typing import List from urllib.parse import urljoin from forex_types import Pair from time_int import TimeInt from oanda_candles.gran import Gran from oanda_candles.candle import Candle class UrlRoot: real_url = "https://api-fxtrade.oanda.com" practice_url = "https://api-fx...
36.078947
83
0.571116
c8b66aa4307e6d69d86608f65d4958aec4471847
18,980
py
Python
maize/util/file_keyring.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
14
2021-07-21T19:45:05.000Z
2022-02-09T04:29:51.000Z
maize/util/file_keyring.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
9
2021-07-24T09:30:46.000Z
2021-12-05T19:51:29.000Z
maize/util/file_keyring.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
5
2021-10-04T17:33:47.000Z
2022-03-15T08:37:51.000Z
import base64 import fasteners import os import shutil import sys import threading import yaml from maize.util.default_root import DEFAULT_KEYS_ROOT_PATH from contextlib import contextmanager from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305 # pyright: reportMissingModuleSource=false from funct...
39.790356
116
0.667545
7ea2e48f618e523d1249b33ead603aeab5773482
4,991
py
Python
test/test_utilities.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
null
null
null
test/test_utilities.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2021-11-24T19:39:57.000Z
2022-01-03T23:03:35.000Z
test/test_utilities.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
null
null
null
import unittest import os import pytest import shutil import datetime from unittest import mock from parsons.etl.table import Table from parsons.utilities.datetime import date_to_timestamp, parse_date from parsons.utilities import files from parsons.utilities import check_env from parsons.utilities import json_format f...
29.017442
89
0.690643
3a75c936971996b08401ac77cff7212e93eccb92
2,250
py
Python
tm.py
jeremyng123/pytm
e0bbbbbcfa387887753e27f78678c6004edf0e85
[ "MIT" ]
null
null
null
tm.py
jeremyng123/pytm
e0bbbbbcfa387887753e27f78678c6004edf0e85
[ "MIT" ]
null
null
null
tm.py
jeremyng123/pytm
e0bbbbbcfa387887753e27f78678c6004edf0e85
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random from pytm.pytm import TM, Actor, Boundary, Dataflow, Datastore, Lambda, Server # make sure generated diagrams do not change, makes sense if they're commited random.seed(0) tm = TM("my test tm") tm.description = "This is a sample threat model of a very simple system - a web-base...
30.821918
292
0.76
a0f6e1e12ba3df858b2e1628c41b6cfdd084ee57
3,685
py
Python
psdaq/psdaq/control_gui/CGWMainTabExpert.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psdaq/psdaq/control_gui/CGWMainTabExpert.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psdaq/psdaq/control_gui/CGWMainTabExpert.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
""" Class :py:class:`CGWMainTabExpert` is a QWidget for interactive image ======================================================================= Usage :: import sys from PyQt5.QtWidgets import QApplication from psdaq.control_gui.CGWMainTabExpert import CGWMainTabExpert app = QApplication(sys.argv) ...
26.89781
122
0.591316
90ca6ee1ada3665563419ca706aede9d87607bb6
3,230
py
Python
examples/deprecated/meshing_sweep.py
kant/qmt
4ed096704a2e11dbebfe7db50c86920ac7cb7b94
[ "MIT" ]
1
2018-12-01T21:30:38.000Z
2018-12-01T21:30:38.000Z
examples/deprecated/meshing_sweep.py
imagineagents/qmt
5e8a7001cc020979636e492448abcfd894396038
[ "MIT" ]
null
null
null
examples/deprecated/meshing_sweep.py
imagineagents/qmt
5e8a7001cc020979636e492448abcfd894396038
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import qmt.task_framework as qtf from qmt.tasks import Task class GeometryTaskExample(Task): def __init__(self, options=None, name='geometry_task'): super(GeometryTaskExample, self).__init__([], options, name) self.input_task_list = [] ...
37.55814
139
0.672136
a4b0899a3dfa3d2f9be30e6222cc655b78285c8d
2,032
py
Python
nearface/basemodels/Boosting.py
palmtrey/nearface
9274f13b2924a3ad9f97446772eb63bc7c482bff
[ "MIT" ]
null
null
null
nearface/basemodels/Boosting.py
palmtrey/nearface
9274f13b2924a3ad9f97446772eb63bc7c482bff
[ "MIT" ]
null
null
null
nearface/basemodels/Boosting.py
palmtrey/nearface
9274f13b2924a3ad9f97446772eb63bc7c482bff
[ "MIT" ]
null
null
null
from nearface import NearFace from tqdm import tqdm import os from os import path from pathlib import Path import numpy as np import gdown from nearface.commons import functions, distance as dst def loadModel(): model_names = ['VGG-Face', 'Facenet', 'OpenFace', 'DeepFace'] model = {} model_pbar = tqdm(range(0,...
33.866667
244
0.744587
fe162e5a003e8af5119df09e87184b43e7ce413d
5,720
py
Python
metatests/cloudcafe/compute/events/models/compute/test_instance_resize_prep.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/compute/events/models/compute/test_instance_resize_prep.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/compute/events/models/compute/test_instance_resize_prep.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace 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 dist...
37.631579
77
0.658042
25f8d8056afc7538ef31b28ae4d09ba20ec8169c
480
py
Python
src/compas_rv2/rhino/objects/skeletonobject.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
34
2020-04-27T13:54:38.000Z
2022-01-17T19:16:27.000Z
src/compas_rv2/rhino/objects/skeletonobject.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
306
2020-04-27T12:00:54.000Z
2022-03-23T22:28:54.000Z
src/compas_rv2/rhino/objects/skeletonobject.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
11
2020-06-30T08:23:40.000Z
2022-02-01T20:47:39.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas_skeleton.rhino import SkeletonObject __all__ = ["SkeletonObject"] class SkeletonObject(SkeletonObject): """Scene object for Skeleton in Rhino.""" # ========================================...
22.857143
78
0.520833