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
c97448796dfb926f6770fff4a800e18b1e4d6c32
12,733
py
Python
mongoengine/dereference.py
svanburen/mongoengine
b250abdd12d9b0d6fba5c40c7d57c4dfbd4581de
[ "MIT" ]
null
null
null
mongoengine/dereference.py
svanburen/mongoengine
b250abdd12d9b0d6fba5c40c7d57c4dfbd4581de
[ "MIT" ]
null
null
null
mongoengine/dereference.py
svanburen/mongoengine
b250abdd12d9b0d6fba5c40c7d57c4dfbd4581de
[ "MIT" ]
null
null
null
from bson import SON, DBRef from mongoengine.base import ( BaseDict, BaseList, EmbeddedDocumentList, TopLevelDocumentMetaclass, get_document, ) from mongoengine.base.datastructures import LazyReference from mongoengine.connection import get_db from mongoengine.document import Document, EmbeddedDocu...
43.457338
100
0.512369
16b924c8d1cc2ab55305da31cf49bf4c896718de
1,216
py
Python
gamelayer/graphics/image_loader.py
Windspar/Gamelayer
65e1cf11548bc02bc49348eb265c209172c14844
[ "MIT" ]
null
null
null
gamelayer/graphics/image_loader.py
Windspar/Gamelayer
65e1cf11548bc02bc49348eb265c209172c14844
[ "MIT" ]
null
null
null
gamelayer/graphics/image_loader.py
Windspar/Gamelayer
65e1cf11548bc02bc49348eb265c209172c14844
[ "MIT" ]
null
null
null
from pathlib import Path from os import listdir, path from pygame.image import load as image_load from pygame.transform import scale as image_scale DEFAULT_IMAGE_TYPES = "bmp", "png", "jpg", "gif" class ImageLoader: def __init__(self, location, alpha=False, image_types=DEFAULT_IMAGE_TYPES, scale=None): s...
31.179487
91
0.564145
0961185fe8ceada895971efeb866a97f14646e4f
20,026
py
Python
pytato/utils.py
inducer/pytato
8cf2575cd6cdb36891f2c57469dfc671e573450a
[ "MIT" ]
2
2020-10-13T15:56:52.000Z
2021-07-28T20:50:35.000Z
pytato/utils.py
inducer/pytato
8cf2575cd6cdb36891f2c57469dfc671e573450a
[ "MIT" ]
215
2020-10-15T19:49:59.000Z
2022-03-31T15:37:51.000Z
pytato/utils.py
inducer/pytato
8cf2575cd6cdb36891f2c57469dfc671e573450a
[ "MIT" ]
6
2020-10-14T23:31:40.000Z
2022-02-21T20:32:57.000Z
from __future__ import annotations __copyright__ = "Copyright (C) 2021 Kaushik Kulkarni" __license__ = """ 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 l...
36.082883
110
0.586737
f412bb181a020668ba33c36eae771fdd47500468
7,977
py
Python
satella/instrumentation/memory/memthread.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/instrumentation/memory/memthread.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/instrumentation/memory/memthread.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import logging import os import time import typing as tp import psutil from satella.coding.concurrent import CallableGroup, CallNoOftenThan, CancellableCallback, \ IntervalTerminableThread from satella.coding.structures import Singleton from satella.time import measure from .conditions import BaseCondition, Zerot...
37.450704
100
0.636204
59d6599b7cebdb62289cbeb8ce30377d6cfe81cf
5,511
py
Python
main.py
plon-io/pandas
bbbdb821d14adcd623b3d531db66cdd3717ee038
[ "MIT" ]
1
2020-05-26T07:23:10.000Z
2020-05-26T07:23:10.000Z
main.py
plon-io/pandas
bbbdb821d14adcd623b3d531db66cdd3717ee038
[ "MIT" ]
null
null
null
main.py
plon-io/pandas
bbbdb821d14adcd623b3d531db66cdd3717ee038
[ "MIT" ]
2
2019-11-02T19:09:54.000Z
2020-01-19T11:53:07.000Z
import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns # Import San Francisco Bay Area Weather data from CSV file data = pd.read_csv('weather.csv') # Make variables some friendlier names for users old_names = ['Max TemperatureF', 'Min TemperatureF', 'Mean...
34.018519
122
0.697877
b2d8d2f2b12565c685acd56339bfecde7b9fcff2
525
py
Python
plyplus/__init__.py
erezsh/plyplus
bd2e7d37e4a3a80812a13b84584fd885d5a24f4c
[ "MIT" ]
169
2015-01-16T12:48:23.000Z
2021-12-09T16:00:13.000Z
plyplus/__init__.py
erezsh/plyplus
bd2e7d37e4a3a80812a13b84584fd885d5a24f4c
[ "MIT" ]
26
2015-01-23T16:30:28.000Z
2018-07-07T09:14:18.000Z
plyplus/__init__.py
erezsh/plyplus
bd2e7d37e4a3a80812a13b84584fd885d5a24f4c
[ "MIT" ]
53
2015-01-22T20:20:10.000Z
2021-12-05T13:39:57.000Z
"""A friendly yet powerful LR-parser written in Python.""" from __future__ import absolute_import from getpass import getuser import os from tempfile import gettempdir __version__ = "0.7.5" PLYPLUS_DIR = os.path.join(gettempdir(), 'plyplus-' + getuser()) try: os.mkdir(PLYPLUS_DIR) except OSError: pass fro...
21
81
0.775238
acced69c2980140181cf1d2947eb68ec0026f658
6,803
py
Python
extras/metric-framework/py/event_qa.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
151
2019-04-26T19:05:14.000Z
2022-03-28T10:11:53.000Z
extras/metric-framework/py/event_qa.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
15
2019-08-05T06:35:00.000Z
2022-03-31T02:58:30.000Z
extras/metric-framework/py/event_qa.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
71
2019-06-07T17:50:04.000Z
2022-03-27T02:49:24.000Z
import sqlalchemy import matplotlib.pyplot as plt import matplotlib.dates as mdates import json import pandas import os import sys import argparse parser = argparse.ArgumentParser() # Run control arguments parser.add_argument("--schema", type=str, help="The name of the schema", default='socialnet7') parser.add_argumen...
36.772973
137
0.706894
a60fc72215ee9250f9c9e6c437499474dee954b4
4,560
py
Python
python/federatedml/linear_model/coordinated_linear_model/logistic_regression/hetero_logistic_regression/hetero_lr_base.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
715
2019-01-24T10:52:03.000Z
2019-10-31T12:19:22.000Z
python/federatedml/linear_model/coordinated_linear_model/logistic_regression/hetero_logistic_regression/hetero_lr_base.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
270
2019-02-11T02:57:36.000Z
2019-08-29T11:22:33.000Z
python/federatedml/linear_model/coordinated_linear_model/logistic_regression/hetero_logistic_regression/hetero_lr_base.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
200
2019-01-26T14:21:35.000Z
2019-11-01T01:14:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
50.10989
110
0.660965
971e2f17bf6b4c6757d11c76acf0afc35bc6ab5a
418
py
Python
sphinx/python-intro/source/code/oneoffcoder/clazz/methodoverriding.py
oneoffcoder/books
84619477294a3e37e0d7538adf819113c9e8dcb8
[ "CC-BY-4.0" ]
26
2020-05-05T08:07:43.000Z
2022-02-12T03:28:15.000Z
sphinx/python-intro/source/code/oneoffcoder/clazz/methodoverriding.py
oneoffcoder/books
84619477294a3e37e0d7538adf819113c9e8dcb8
[ "CC-BY-4.0" ]
19
2021-03-10T00:33:51.000Z
2022-03-02T13:04:32.000Z
sphinx/python-intro/source/code/oneoffcoder/clazz/methodoverriding.py
oneoffcoder/books
84619477294a3e37e0d7538adf819113c9e8dcb8
[ "CC-BY-4.0" ]
2
2022-01-09T16:48:21.000Z
2022-02-19T17:06:50.000Z
class Car(object): def __init__(self, make, model, year): self.make = make self.model = model self.year = year def __repr__(self): return f"{{'make': {self.make}, 'model': {self.model}, 'year': {self.year}}}" def __str__(self): return f'Car(make={self.make}, model={...
23.222222
85
0.58134
6e5f52ddb64dedffb5be0506634dedc91e4acaf3
6,703
py
Python
scripts/compare_tracking.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
scripts/compare_tracking.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
scripts/compare_tracking.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
# pythonpath modification to make hytra available # for import without requiring it to be installed import os import sys sys.path.insert(0, os.path.abspath('..')) # standard imports import numpy as np import cPickle import collections import multiprocessing import os import os.path as path import optparse import sys f...
38.522989
193
0.652991
69f94a183851c160059b4fc7372b7e22d2e19190
715
py
Python
indicators/Indicator.py
vd1371/gram
065c33c854beea633a833e64a7b80ff727868f2d
[ "Apache-2.0" ]
null
null
null
indicators/Indicator.py
vd1371/gram
065c33c854beea633a833e64a7b80ff727868f2d
[ "Apache-2.0" ]
21
2020-02-12T07:25:55.000Z
2020-03-18T21:10:00.000Z
indicators/Indicator.py
vd1371/gram
065c33c854beea633a833e64a7b80ff727868f2d
[ "Apache-2.0" ]
1
2021-12-04T13:09:46.000Z
2021-12-04T13:09:46.000Z
# Adding parent directory to the PYTHONPATH import sys sys.path.insert(0,'..') from utils.GlobalVariables import * class Indicator(object): # Base class for indicators def __init__(self): super(Indicator, self).__init__() def calculate(self, df=None): ''' # Calcualte method gets df (a python dataframe) as in...
35.75
111
0.755245
1e2935dc750a25dc5cd1704489254c416e36ad70
58
py
Python
telegram-bot-0.0.2/config.py
Yarik9008/nebosckop
729cc77ccc7d3f09c01d17d1cebea1d5ea9206ab
[ "MIT" ]
null
null
null
telegram-bot-0.0.2/config.py
Yarik9008/nebosckop
729cc77ccc7d3f09c01d17d1cebea1d5ea9206ab
[ "MIT" ]
null
null
null
telegram-bot-0.0.2/config.py
Yarik9008/nebosckop
729cc77ccc7d3f09c01d17d1cebea1d5ea9206ab
[ "MIT" ]
null
null
null
TOKEN = '5058985853:AAHbLTN9sai_eocdTjzSnnbhne7XaBWdRVQ'
19.333333
56
0.862069
b66189639f45a3341174cdde6b72450a6a50a8c8
5,009
py
Python
environments/recommenders/restaurant_toy_recsim_test.py
JaniAnttonenp/ml-fairness
d76786f5bfb00239a8a68d6de69b9889cf7cf61e
[ "Apache-2.0" ]
268
2019-09-10T14:02:07.000Z
2022-03-31T02:50:57.000Z
environments/recommenders/restaurant_toy_recsim_test.py
JaniAnttonenp/ml-fairness
d76786f5bfb00239a8a68d6de69b9889cf7cf61e
[ "Apache-2.0" ]
17
2019-08-29T14:08:42.000Z
2022-02-05T20:26:26.000Z
environments/recommenders/restaurant_toy_recsim_test.py
JaniAnttonenp/ml-fairness
d76786f5bfb00239a8a68d6de69b9889cf7cf61e
[ "Apache-2.0" ]
68
2019-08-15T16:57:54.000Z
2022-02-25T19:15:15.000Z
# coding=utf-8 # Copyright 2020 The ML Fairness Gym 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...
35.524823
82
0.758235
fc357d8ed65f9f8159c9672ae19436a5b666ae83
2,302
py
Python
main/concat.py
fchamma/isolateBlocks
76de0ec72e091224e7a8d43a044a3cd3c0d1afc6
[ "MIT" ]
null
null
null
main/concat.py
fchamma/isolateBlocks
76de0ec72e091224e7a8d43a044a3cd3c0d1afc6
[ "MIT" ]
null
null
null
main/concat.py
fchamma/isolateBlocks
76de0ec72e091224e7a8d43a044a3cd3c0d1afc6
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse, os, json, sys, time from parse_args_concatenate import * from concatenate_dependencies import * from base import * # Retrieving help and error messages, stored as dictionaries in txt files script_dir = os.path.dirname(__file__) labelsPath = os.path.join(sc...
44.269231
115
0.684622
43b95905aa829ccab452e63f8654bf889a50d976
3,535
py
Python
train.py
Feng1909/soft_robot_group
8d800ea00412c5b4e4a68e7388c2052ccdd4a2c9
[ "MIT" ]
null
null
null
train.py
Feng1909/soft_robot_group
8d800ea00412c5b4e4a68e7388c2052ccdd4a2c9
[ "MIT" ]
null
null
null
train.py
Feng1909/soft_robot_group
8d800ea00412c5b4e4a68e7388c2052ccdd4a2c9
[ "MIT" ]
null
null
null
import argparse import random import numpy as np import torch import gym import realant_sim import model from td3 import TD3 # from sac import SAC def rollout(agent, env, train=False, random=False): # state = env.reset() state = env.reset_model() episode_step, episode_return = 0, 0 done = False p...
31.283186
95
0.624328
f91c5546a367ca83d3c95e7f940e27f8c4b6f3f7
12,915
py
Python
python/ray/workflow/api.py
johnpjust/ray
cdba1d6a971bc1f3c009753eb46bedb7b28eb3bd
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
python/ray/workflow/api.py
oscarknagg/ray
20d47873c9e8f5bbb80fe36e5d16256c337c4db3
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
python/ray/workflow/api.py
cc13ny/ray
48ecb1f88a89c3894e2a92d66d89d3965c179ecd
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import logging import os import types from typing import Dict, Set, List, Tuple, Union, Optional, Any, TYPE_CHECKING import ray from ray.workflow import execution from ray.workflow.step_function import WorkflowStepFunction # avoid collision with arguments & APIs from ray.workflow import virtual_actor_class from ray.w...
33.808901
81
0.63794
99de5a3c59b8d0fb6035d9827afda3f272346146
10,653
py
Python
gubernator/main.py
apelisse/test-infra
6927845d67554021b2617b886c5080854e46f3a8
[ "Apache-2.0" ]
null
null
null
gubernator/main.py
apelisse/test-infra
6927845d67554021b2617b886c5080854e46f3a8
[ "Apache-2.0" ]
null
null
null
gubernator/main.py
apelisse/test-infra
6927845d67554021b2617b886c5080854e46f3a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 The Kubernetes 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 # # Unle...
34.587662
89
0.63353
11c77afe218bd1d5428fc168e217686df2b517ef
13,874
py
Python
mypy/test/testfinegrained.py
nvuillam/mypy
beba94c509211947201ece020e8fe513695ecea0
[ "PSF-2.0" ]
1
2021-02-16T10:01:33.000Z
2021-02-16T10:01:33.000Z
mypy/test/testfinegrained.py
nvuillam/mypy
beba94c509211947201ece020e8fe513695ecea0
[ "PSF-2.0" ]
null
null
null
mypy/test/testfinegrained.py
nvuillam/mypy
beba94c509211947201ece020e8fe513695ecea0
[ "PSF-2.0" ]
1
2022-01-31T13:24:43.000Z
2022-01-31T13:24:43.000Z
"""Test cases for fine-grained incremental checking. Each test cases runs a batch build followed by one or more fine-grained incremental steps. We verify that each step produces the expected output. See the comment at the top of test-data/unit/fine-grained.test for more information. N.B.: Unlike most of the other te...
39.64
98
0.599034
3c5fedd240c5be7abdfd259bff02c4afc8b9f423
8,836
py
Python
model.py
theodoriss/STSGCN
8788e40a9d62f1e5664fb1e6b34f43faeb6f9cd7
[ "MIT" ]
25
2021-11-01T08:51:33.000Z
2022-03-29T06:12:55.000Z
model.py
theodoriss/STSGCN
8788e40a9d62f1e5664fb1e6b34f43faeb6f9cd7
[ "MIT" ]
3
2022-01-04T02:32:17.000Z
2022-03-23T14:06:38.000Z
model.py
theodoriss/STSGCN
8788e40a9d62f1e5664fb1e6b34f43faeb6f9cd7
[ "MIT" ]
10
2021-10-17T01:41:44.000Z
2022-03-04T14:25:48.000Z
#!/usr/bin/env python # coding: utf-8 import torch import torch.nn as nn import math class ConvTemporalGraphical(nn.Module): #Source : https://github.com/yysijie/st-gcn/blob/master/net/st_gcn.py r"""The basic module for applying a graph convolution. Args: in_channels (int): Number of channels ...
34.11583
174
0.545496
678e31e71e55a45017b1f76a57f62e35556decdc
4,284
py
Python
kubernetes/client/models/v1_host_path_volume_source.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2019-07-12T05:38:06.000Z
2019-07-12T05:38:06.000Z
kubernetes/client/models/v1_host_path_volume_source.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_host_path_volume_source.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2021-05-18T12:25:56.000Z
2021-05-18T12:25:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
27.461538
182
0.565826
954d6cc18aadd69994842aafdf63804f892aa17c
259
py
Python
2015/06/fc_2015_06_05.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
2015/06/fc_2015_06_05.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
1
2015-04-27T01:43:45.000Z
2015-04-27T01:43:45.000Z
2015/06/fc_2015_06_05.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # imports go here from collections import Counter # # Free Coding session for 2015-06-05 # Written by Matt Warren # def digit_counts(number): return Counter(str(number)) if __name__ == '__main__': print(digit_counts(1234534))
18.5
36
0.72973
b12fe4033c2adef2fbf72e540c13b1f7cde06778
7,170
py
Python
docs/sphinx/conf.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
4
2016-08-05T17:33:41.000Z
2020-07-10T21:30:13.000Z
docs/sphinx/conf.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
23
2015-10-29T17:52:06.000Z
2021-07-20T09:52:18.000Z
docs/sphinx/conf.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
5
2015-07-21T09:33:57.000Z
2019-11-28T22:55:03.000Z
# -*- coding: utf-8 -*- # # ngEOBrowseServer documentation build configuration file, created by # sphinx-quickstart on Fri Feb 18 17:54:45 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
33.194444
107
0.72106
546a8814fd33ff524fe862b9278e966a3dce9b97
23,686
py
Python
example_problems/tutorial/magic_index/services/magic_indexes_lib.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/magic_index/services/magic_indexes_lib.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/tutorial/magic_index/services/magic_indexes_lib.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 import random, math from collections import Counter import numpy as np def check_input_vector(vec, TAc, LANG): for i in range(1,len(vec)): if vec[i] == vec[i-1]: TAc.print(LANG.render_feedback("equal-values", f'No. Your vector contains entries with the same value vec[{i...
40.697595
555
0.606983
537913f3fa720280994d754016a39ac792993f13
9,168
py
Python
src/engine/SCons/Tool/javac.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1
2020-03-21T05:24:47.000Z
2020-03-21T05:24:47.000Z
src/engine/SCons/Tool/javac.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3
2019-01-15T20:40:02.000Z
2021-02-13T03:16:34.000Z
src/engine/SCons/Tool/javac.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1
2021-08-04T12:32:39.000Z
2021-08-04T12:32:39.000Z
"""SCons.Tool.javac Tool-specific initialization for javac. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a cop...
36.819277
158
0.614856
8d773eba0188d95f5194c9d6e5f02e616d452932
1,087
py
Python
morpfw/crud/typeregistry.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
8
2018-12-08T01:41:58.000Z
2020-12-21T15:30:12.000Z
morpfw/crud/typeregistry.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
17
2019-02-05T15:01:32.000Z
2020-04-28T16:17:42.000Z
morpfw/crud/typeregistry.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
2
2018-12-08T05:03:37.000Z
2019-03-20T07:15:21.000Z
import reg class TypeRegistry(object): def __init__(self): self.types = [] self.schema_name = {} def register_type(self, name, schema): if name not in self.types: self.types.append(name) self.schema_name[schema] = name def get_typeinfo(self, name, request): ...
27.175
75
0.601656
740d6a001b0c2a409c4794373abd653122064186
12,276
py
Python
mozc-nazoru/src/nazoru/lib.py
ikeji/mozc-devices
59a3805b539ba02eaf68eac1f5664fac0912420d
[ "Apache-2.0" ]
1,002
2016-03-31T15:49:47.000Z
2022-03-31T14:53:54.000Z
mozc-nazoru/src/nazoru/lib.py
ikeji/mozc-devices
59a3805b539ba02eaf68eac1f5664fac0912420d
[ "Apache-2.0" ]
15
2016-03-31T23:24:08.000Z
2021-12-23T04:52:42.000Z
mozc-nazoru/src/nazoru/lib.py
ikeji/mozc-devices
59a3805b539ba02eaf68eac1f5664fac0912420d
[ "Apache-2.0" ]
122
2016-03-31T16:44:32.000Z
2022-03-26T10:05:25.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # 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...
29.868613
80
0.634164
ee6da983f744413f42cde4cda62e1bae0779cd4b
6,810
py
Python
galvasr2/align/utils.py
keithachorn-intel/peoples-speech
b7623488dff36d343f8f5a6ead0a5a3a82f723bd
[ "Apache-2.0" ]
3
2020-12-18T05:17:48.000Z
2021-05-31T06:22:53.000Z
galvasr2/align/utils.py
keithachorn-intel/peoples-speech
b7623488dff36d343f8f5a6ead0a5a3a82f723bd
[ "Apache-2.0" ]
12
2020-07-18T15:36:57.000Z
2021-01-16T18:14:26.000Z
galvasr2/align/utils.py
keithachorn-intel/peoples-speech
b7623488dff36d343f8f5a6ead0a5a3a82f723bd
[ "Apache-2.0" ]
1
2020-09-15T21:59:31.000Z
2020-09-15T21:59:31.000Z
import os import sys import time import heapq from multiprocessing.dummy import Pool as ThreadPool KILO = 1024 KILOBYTE = 1 * KILO MEGABYTE = KILO * KILOBYTE GIGABYTE = KILO * MEGABYTE TERABYTE = KILO * GIGABYTE SIZE_PREFIX_LOOKUP = {'k': KILOBYTE, 'm': MEGABYTE, 'g': GIGABYTE, 't': TERABYTE} def parse_file_size(f...
35.284974
126
0.625404
815cd84d217e35f428efb6015e9fd7bc973c2d91
16,173
py
Python
detectron2/data/build.py
liuy-61/detectron2_origin_liuy
bd75971b94f055fded6125c1d136b1ea188b75f0
[ "Apache-2.0" ]
2
2020-01-02T09:10:09.000Z
2020-05-11T07:30:44.000Z
detectron2/data/build.py
liuy-61/detectron2_origin_liuy
bd75971b94f055fded6125c1d136b1ea188b75f0
[ "Apache-2.0" ]
null
null
null
detectron2/data/build.py
liuy-61/detectron2_origin_liuy
bd75971b94f055fded6125c1d136b1ea188b75f0
[ "Apache-2.0" ]
1
2021-02-14T01:26:26.000Z
2021-02-14T01:26:26.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import bisect import copy import itertools import logging import numpy as np import pickle import torch.utils.data from fvcore.common.file_io import PathManager from tabulate import tabulate from termcolor import colored from detectron2.structures ...
37.787383
103
0.686391
caf51a47b8bdb2c8a31723207ebc6b0958cf6cc4
4,445
py
Python
packages/pyre/config/native/Importer.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/config/native/Importer.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/config/native/Importer.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2022 all rights reserved # # externals import sys # support from ... import primitives, tracking # superclass from ..Loader import Loader # declaration class Importer(Loader): """ This component codec recognizes uris of the form ...
27.78125
96
0.581102
91cb21964588589f8b2e1d57b923eb9f8fac3fc1
80
py
Python
src/test/devrepo_test/config_test.py
random-python/devrepo
4917c2d55e16d4942c6d8f4b2c57138822e3cfcc
[ "Apache-2.0" ]
1
2020-06-20T15:18:17.000Z
2020-06-20T15:18:17.000Z
src/test/devrepo_test/config_test.py
random-python/devrepo
4917c2d55e16d4942c6d8f4b2c57138822e3cfcc
[ "Apache-2.0" ]
null
null
null
src/test/devrepo_test/config_test.py
random-python/devrepo
4917c2d55e16d4942c6d8f4b2c57138822e3cfcc
[ "Apache-2.0" ]
null
null
null
from devrepo.config import * def test_config(): print() print(CONFIG)
11.428571
28
0.6625
011042bd0afc768d33bbe66ef1d1faecb4d73d19
1,656
py
Python
python/tvm/relay/op/__init__.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
4
2019-05-08T04:46:07.000Z
2019-11-11T19:43:04.000Z
python/tvm/relay/op/__init__.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2020-09-14T09:18:25.000Z
2020-09-24T03:28:18.000Z
python/tvm/relay/op/__init__.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2019-08-08T01:48:03.000Z
2019-09-27T06:49:16.000Z
# 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 # "License"); you may not u...
30.666667
68
0.766908
39895b7962a006ec03f50cb3b3e65ef970746549
652
py
Python
Experiment-2/EXAMPLES/Exp-2_ClassTask-13.py
aaryarajoju/cu-py
2292ab06197405d379f063dd03861936c9912103
[ "Unlicense" ]
2
2021-01-08T08:29:27.000Z
2021-01-14T13:47:27.000Z
Experiment-2/EXAMPLES/Exp-2_ClassTask-13.py
aaryarajoju/cu-py
2292ab06197405d379f063dd03861936c9912103
[ "Unlicense" ]
1
2020-11-02T20:20:34.000Z
2020-11-02T20:57:31.000Z
Experiment-2/EXAMPLES/Exp-2_ClassTask-13.py
aaryarajoju/cu-py
2292ab06197405d379f063dd03861936c9912103
[ "Unlicense" ]
null
null
null
# Birthday Wishes # Demonstrates keyword arguments and default parameter values # positional parameters def birthday1(name, age): print("Happy birthday,", name, "!", " I hear you're", age,"today.\n") # parameters with default values def birthday2(name = "Jackson", age = 1): print("Happy birthday,", name, "!",...
27.166667
74
0.682515
16ad951ddd259594d53020a341789b09a93edfb9
1,188
py
Python
crowddynamics-qtgui/qtgui/cli.py
antonvs88/multiobj-guided-evac
84d78ac29419011d7af45391f230f50e8cbe30f4
[ "MIT" ]
1
2019-12-16T14:34:35.000Z
2019-12-16T14:34:35.000Z
crowddynamics-qtgui/qtgui/cli.py
antonvs88/multiobj-guided-evac
84d78ac29419011d7af45391f230f50e8cbe30f4
[ "MIT" ]
1
2017-04-24T05:26:55.000Z
2017-04-24T05:26:55.000Z
crowddynamics-qtgui/qtgui/cli.py
antonvs88/optimal-guided-evacuation
ece2e12204bd41596173af5aacc0933acfd6b7c1
[ "MIT" ]
null
null
null
"""Extends crowddynamics commandline client with gui related commands""" import logging import sys import click from PyQt4 import QtGui, QtCore from crowddynamics.logging import setup_logging from qtgui.main import MainWindow def run_gui(simulation_cfg=None): r"""Launches the graphical user interface for visual...
22.846154
77
0.701178
4def7459940a0d54e32d88d0e56582fa8168dcdb
1,448
py
Python
packages/OpenCV/nodes/OpenCV___BilateralFilter0/OpenCV___BilateralFilter0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___BilateralFilter0/OpenCV___BilateralFilter0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___BilateralFilter0/OpenCV___BilateralFilter0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from custom_src.NodeInstance import NodeInstance from custom_src.Node import Node import cv2 # USEFUL # self.input(index) <- access to input data # self.outputs[index].set_val(val) <- set output data port value # self.main_widget <- access to main widget class %NODE_TITLE%_...
27.846154
107
0.647099
cf8fe73d112bf3ceedac6e15199ccb259cb318da
3,248
py
Python
lib/trellis/plugins/callback/output.py
mAAdhaTTah/trellis
2e18ca4e20eb991cf4c6a1894c4d56406ec9614f
[ "MIT" ]
2,291
2015-07-03T15:43:21.000Z
2022-03-28T22:14:11.000Z
lib/trellis/plugins/callback/output.py
mAAdhaTTah/trellis
2e18ca4e20eb991cf4c6a1894c4d56406ec9614f
[ "MIT" ]
928
2015-07-03T03:17:52.000Z
2022-03-29T16:46:30.000Z
lib/trellis/plugins/callback/output.py
mAAdhaTTah/trellis
2e18ca4e20eb991cf4c6a1894c4d56406ec9614f
[ "MIT" ]
888
2015-07-03T18:31:37.000Z
2022-03-30T12:33:56.000Z
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os.path import sys DOCUMENTATION = ''' callback: output type: stdout short_description: Custom output for Trellis extends_documentation_fragment: - default_callback ''' ...
36.494382
95
0.732451
9eaa6396de57010c415b1e049a3256b1234209b7
1,054
py
Python
Models/biocathub_model_pydantic.py
willfinnigan/bch_RetroBioHub
3cc4dd486b61d20ace5ddda4a4cdcd6e1795f5fb
[ "MIT" ]
null
null
null
Models/biocathub_model_pydantic.py
willfinnigan/bch_RetroBioHub
3cc4dd486b61d20ace5ddda4a4cdcd6e1795f5fb
[ "MIT" ]
16
2021-12-09T16:10:17.000Z
2022-02-11T18:26:28.000Z
Models/biocathub_model_pydantic.py
willfinnigan/bch_RetroBioHub
3cc4dd486b61d20ace5ddda4a4cdcd6e1795f5fb
[ "MIT" ]
3
2022-01-28T12:29:45.000Z
2022-02-04T09:19:41.000Z
from datetime import datetime from typing import List, Optional from pydantic import BaseModel # Defining an reactant class Reactant(BaseModel): role:str smiles:str name:str class Config: orm_mode = True class Reactantcls: def __init__(self, role:str, smiles:str, name:str): ...
17.566667
67
0.591082
bf369c9e85c9acf9c4a53597d96af791faf9faa2
1,484
py
Python
adjacency_list_graph.py
candaceyw/graphs
59ed6bd79980f6f51f112279db4ad6c25c8d1edf
[ "MIT" ]
null
null
null
adjacency_list_graph.py
candaceyw/graphs
59ed6bd79980f6f51f112279db4ad6c25c8d1edf
[ "MIT" ]
null
null
null
adjacency_list_graph.py
candaceyw/graphs
59ed6bd79980f6f51f112279db4ad6c25c8d1edf
[ "MIT" ]
null
null
null
class Vertex: def __init__(self, key): self.id = key self.connectedTo = {} def addNeighbor(self, nbr, weight=0): self.connectedTo[nbr] = weight def __str__(self): return str(self.id) + ' connectedTo: ' + str([x.id for x in self.connectedTo]) def getConnections(self): ...
21.823529
86
0.588275
f406d1f0c86a0998a4e8fe8632467b8e70537a8a
5,371
py
Python
scipy/__init__.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
1
2020-12-25T08:49:10.000Z
2020-12-25T08:49:10.000Z
scipy/__init__.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
5
2020-09-01T01:19:07.000Z
2021-10-11T01:06:05.000Z
scipy/__init__.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
1
2019-07-19T12:49:26.000Z
2019-07-19T12:49:26.000Z
""" SciPy: A scientific computing package for Python ================================================ Documentation is available in the docstrings and online at https://docs.scipy.org. Contents -------- SciPy imports all the functions from the NumPy namespace, and in addition provides: Subpackages ----------- Using ...
36.04698
79
0.637311
5df23ec04d613c6bcc3e1a49369b1db98fa9a83d
6,072
py
Python
samples/server/petstore/flaskConnexion/swagger_server/models/all_of_sub_category_pets_items.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
1
2020-09-06T18:36:28.000Z
2020-09-06T18:36:28.000Z
samples/server/petstore/flaskConnexion/swagger_server/models/all_of_sub_category_pets_items.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
samples/server/petstore/flaskConnexion/swagger_server/models/all_of_sub_category_pets_items.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server.models.category import Category # noqa: F401,E501 from swagger_server.models.pet import Pet # ...
29.192308
160
0.612484
09ee2e6670fcaa5f44263f24cb8e86f4a9c18d13
2,852
py
Python
BBRL/src/process.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
BBRL/src/process.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
BBRL/src/process.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import torch from src.env import create_train_env from src.model import PPO import torch.nn.functional as F from collections import deque import numpy as np from src.helpers import SIMPLE_MOVEMENT, COMPLEX_MOVEMENT, RIGHT_ONLY, flag_get import csv, os import time d...
31
94
0.601683
2206d58edaabdaecb4485c9263704dd0b492da81
1,300
py
Python
keg/armadillo.py
0xf4b1/keg
3c8b63420c2f91381f06ecb744122b16c5fb65a0
[ "MIT" ]
16
2018-08-18T13:33:07.000Z
2022-03-08T10:11:08.000Z
keg/armadillo.py
MrMoonKr/keg-doc
d17aaba70fd7e8fd56960212b82323b40bfc580b
[ "MIT" ]
9
2018-08-22T17:09:23.000Z
2018-08-30T00:02:58.000Z
keg/armadillo.py
MrMoonKr/keg-doc
d17aaba70fd7e8fd56960212b82323b40bfc580b
[ "MIT" ]
4
2016-04-28T03:20:08.000Z
2022-02-08T20:47:14.000Z
from base64 import b32encode from binascii import hexlify, unhexlify from hashlib import md5 from Crypto.Cipher import Salsa20 # type: ignore from .exceptions import IntegrityVerificationError ARMADILLO_KEY_SIZE = 16 ARMADILLO_DIGEST_SIZE = 4 def verify_armadillo_key(data: bytes) -> bool: """ Verifies an Armad...
27.659574
84
0.757692
1135dbf43a8a48da4d11308ed6e8406d83f1f466
215
py
Python
todos/models.py
charleskbenin/todo-app-api
c0a01c3d5d2da0725483f9962b8ea9f4abc3166d
[ "MIT" ]
1
2021-05-20T21:32:59.000Z
2021-05-20T21:32:59.000Z
todos/models.py
charleskbenin/todo-app-api
c0a01c3d5d2da0725483f9962b8ea9f4abc3166d
[ "MIT" ]
null
null
null
todos/models.py
charleskbenin/todo-app-api
c0a01c3d5d2da0725483f9962b8ea9f4abc3166d
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Todo(models.Model): title = models.CharField(max_length=200) description = models.TextField() def __str__(self): return self.title
21.5
44
0.706977
c8969163fe09a8f899549cb6313966220120f151
2,025
py
Python
raidfinder/frames/frame_data.py
cottonmalone/raid-finder-bot
e39cd94bdd416ea9b4cd344ed4cebc9751b14149
[ "MIT" ]
null
null
null
raidfinder/frames/frame_data.py
cottonmalone/raid-finder-bot
e39cd94bdd416ea9b4cd344ed4cebc9751b14149
[ "MIT" ]
null
null
null
raidfinder/frames/frame_data.py
cottonmalone/raid-finder-bot
e39cd94bdd416ea9b4cd344ed4cebc9751b14149
[ "MIT" ]
null
null
null
import collections from enum import Enum, auto from .xoro_shiro import XoroShiro FRAME_MAX_INT = 0xFFFFFFFF FrameData = collections.namedtuple("FrameData", ["type", "ivs", "ability"]) class ShinyType(Enum): NONE = auto() STAR = auto() SQUARE = auto() def get_shiny_xor(val): return (val >> 16) ^ (v...
20.663265
75
0.626667
a4e8a7c61e87f018fe3823656cab53ce793ca8b8
3,626
py
Python
heat/engine/resources/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/engine/resources/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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...
32.088496
78
0.599283
b3420bff39daecf725b0a03f7546447292707368
1,623
py
Python
wxbot_project_py2.7/wx_handler/bot.py
awesome-archive/WeixinBot
39982d45022d84718a29cf52899a075edce25af3
[ "Apache-2.0" ]
7,748
2016-02-02T07:34:57.000Z
2022-03-30T00:57:17.000Z
wxbot_project_py2.7/wx_handler/bot.py
156013468/WeixinBot
d9edcd2c9203fe7dd203b22b71bbc48a31e9492b
[ "Apache-2.0" ]
251
2016-02-04T05:10:03.000Z
2022-03-23T04:28:52.000Z
wxbot_project_py2.7/wx_handler/bot.py
156013468/WeixinBot
d9edcd2c9203fe7dd203b22b71bbc48a31e9492b
[ "Apache-2.0" ]
2,298
2016-02-02T15:22:39.000Z
2022-03-29T13:04:57.000Z
#!/usr/bin/env python # coding: utf-8 #=================================================== from wechat.utils import * from config import Constant #--------------------------------------------------- import random, time, json #=================================================== class Bot(object): def __init__(se...
33.8125
86
0.478743
eb4b688b6b6e3bb5f6e1736bd8912a885fcc594c
172
py
Python
directory.py
lourranio/pentest-com-python
2d0090da00b90c2f5bf6c666d02b9091a8a5661f
[ "CNRI-Python" ]
null
null
null
directory.py
lourranio/pentest-com-python
2d0090da00b90c2f5bf6c666d02b9091a8a5661f
[ "CNRI-Python" ]
null
null
null
directory.py
lourranio/pentest-com-python
2d0090da00b90c2f5bf6c666d02b9091a8a5661f
[ "CNRI-Python" ]
null
null
null
import os pasta = './' for diretorio, subpastas, arquivos in os.walk(pasta): for arquivo in arquivos: print(os.path.join(os.path.realpath(diretorio), arquivo))
28.666667
65
0.697674
e0a0f0f12fa244f834a67d79ff8f67e7474708ba
3,388
py
Python
OLDauregistrationbot.py
patrickcoyle427/AU-Registration-Bot
4fcfb2e1330b69e1a0d21e000fb06cffd0caa008
[ "MIT" ]
1
2021-07-25T03:46:12.000Z
2021-07-25T03:46:12.000Z
OLDauregistrationbot.py
patrickcoyle427/AU-Registration-Bot
4fcfb2e1330b69e1a0d21e000fb06cffd0caa008
[ "MIT" ]
null
null
null
OLDauregistrationbot.py
patrickcoyle427/AU-Registration-Bot
4fcfb2e1330b69e1a0d21e000fb06cffd0caa008
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' AURegistrationBot.py Messages users information on how to register for a tournament. Used in our Remote Duel YCS, an online Yugioh tournament played over webcam, run for Konami. -Written by Patrick Coyle ''' import os, asyncio, discord from dotenv import load_dotenv from disc...
33.215686
114
0.688902
a5a8fa87ca9097b8a0db167bd67a83b8dca60d23
5,717
py
Python
bot/commands/dev_misc.py
Trimatix-indie/SuperDeckBreaker
6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc
[ "MIT" ]
null
null
null
bot/commands/dev_misc.py
Trimatix-indie/SuperDeckBreaker
6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc
[ "MIT" ]
34
2021-03-20T22:42:16.000Z
2021-09-29T15:50:31.000Z
bot/commands/dev_misc.py
Trimatix-indie/SuperDeckBreaker
6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc
[ "MIT" ]
null
null
null
import discord import traceback from datetime import datetime from . import commandsDB as botCommands from .. import botState, lib from ..users import basedGuild from ..game import sdbGame from ..cfg import cfg from . import util_help async def dev_cmd_dev_help(message: discord.Message, args: str, isDM: bool): ...
45.015748
125
0.712087
515b2f11541adbdbab88c04dd2f9cb5fb5861056
29,753
py
Python
test/test_ops.py
MeepoAII/vision
6e10e3f88158f12b7a304d3c2f803d2bbdde0823
[ "BSD-3-Clause" ]
null
null
null
test/test_ops.py
MeepoAII/vision
6e10e3f88158f12b7a304d3c2f803d2bbdde0823
[ "BSD-3-Clause" ]
null
null
null
test/test_ops.py
MeepoAII/vision
6e10e3f88158f12b7a304d3c2f803d2bbdde0823
[ "BSD-3-Clause" ]
null
null
null
import math import unittest import numpy as np import torch from torch import Tensor from torch.autograd import gradcheck from torch.jit.annotations import Tuple from torch.nn.modules.utils import _pair from torchvision import ops class OpTester(object): @classmethod def setUpClass(cls): cls.dtype =...
42.626074
118
0.582059
907670b9ed70a8e297f24807d9ca5655fd24752f
3,324
py
Python
mysite/mysite/settings.py
gabiastudillo/SubirArchivosAlServidor
a879594a9d7643c46e3f148614f83910a9993ebc
[ "MIT" ]
null
null
null
mysite/mysite/settings.py
gabiastudillo/SubirArchivosAlServidor
a879594a9d7643c46e3f148614f83910a9993ebc
[ "MIT" ]
null
null
null
mysite/mysite/settings.py
gabiastudillo/SubirArchivosAlServidor
a879594a9d7643c46e3f148614f83910a9993ebc
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
25.181818
91
0.695848
1917b0d6133acd3d7c7bf6a1f66ffcf18fd6c9d1
140
py
Python
src/gevt/apps.py
Nurul-GC/gevt
d70ff13eea8504e9150b9416484eae498893ee76
[ "AFL-3.0" ]
1
2022-03-15T18:45:28.000Z
2022-03-15T18:45:28.000Z
src/gevt/apps.py
Nurul-GC/gevt
d70ff13eea8504e9150b9416484eae498893ee76
[ "AFL-3.0" ]
null
null
null
src/gevt/apps.py
Nurul-GC/gevt
d70ff13eea8504e9150b9416484eae498893ee76
[ "AFL-3.0" ]
null
null
null
from django.apps import AppConfig class GevtConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'gevt'
20
56
0.75
bfb5f3d9bee5ff3a49e0dd65ebcb771b9d680412
2,758
py
Python
tools.py
nebblu/HyPk
e4b7f261c3156d6138a851295ae8b7259f95176f
[ "MIT" ]
null
null
null
tools.py
nebblu/HyPk
e4b7f261c3156d6138a851295ae8b7259f95176f
[ "MIT" ]
null
null
null
tools.py
nebblu/HyPk
e4b7f261c3156d6138a851295ae8b7259f95176f
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import sys import copy from scipy import interpolate import os import errno # tools module def takeRatio(d0,d1,logit=False): print ('d1'," ",len(d1),'\n') print ('d0',' ',len(d0),'\n') dif = len(d0)-len(d1) d0x=d0[:,0] d0y=d0[:,1] d1x=d1...
29.031579
101
0.602611
1d73d775d1c421b7ed9faffcd05c04610b68913e
2,581
py
Python
jcasts/podcasts/tests/test_emails.py
danjac/radiofeed
06e2b10396345f0afcf7c1dfee67c41fbff153e1
[ "MIT" ]
5
2020-12-23T20:42:26.000Z
2021-02-20T01:37:47.000Z
jcasts/podcasts/tests/test_emails.py
danjac/radiofeed
06e2b10396345f0afcf7c1dfee67c41fbff153e1
[ "MIT" ]
null
null
null
jcasts/podcasts/tests/test_emails.py
danjac/radiofeed
06e2b10396345f0afcf7c1dfee67c41fbff153e1
[ "MIT" ]
3
2020-12-25T12:31:58.000Z
2021-02-13T11:49:49.000Z
from jcasts.episodes.factories import ( AudioLogFactory, EpisodeFactory, FavoriteFactory, QueueItemFactory, ) from jcasts.podcasts.emails import send_recommendations_email from jcasts.podcasts.factories import FollowFactory, RecommendationFactory class TestSendRecommendationEmail: def test_send_if...
32.2625
85
0.70864
09abebeeeb083abfdb72bb94df5a2279ef4076e1
11,367
py
Python
hearthbreaker/cards/minions/druid.py
jirenz/CS229_Project
78059b2ab813ba347824f3e65b3859ad5dd33cfe
[ "MIT" ]
null
null
null
hearthbreaker/cards/minions/druid.py
jirenz/CS229_Project
78059b2ab813ba347824f3e65b3859ad5dd33cfe
[ "MIT" ]
null
null
null
hearthbreaker/cards/minions/druid.py
jirenz/CS229_Project
78059b2ab813ba347824f3e65b3859ad5dd33cfe
[ "MIT" ]
null
null
null
from hearthbreaker.cards.base import MinionCard, ChoiceCard from hearthbreaker.game_objects import Minion from hearthbreaker.tags.action import Give, Damage, Silence, Transform, Draw, Heal, \ Summon, AddCard, GiveManaCrystal, Remove, Kill from hearthbreaker.tags.base import Choice, Buff, Effect, Battlecry, Deathrat...
35.411215
118
0.661652
b3cf946f7881c2fcc2ed6b1130f026b9a3c6edb8
323
py
Python
course_planner/asgi.py
dragonbone81/bobcat-courses-backend
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
3
2018-10-25T12:41:33.000Z
2019-09-19T19:47:39.000Z
course_planner/asgi.py
dragonbone81/bobcat-courses-backend
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
22
2018-04-01T02:43:01.000Z
2022-03-11T23:15:55.000Z
course_planner/asgi.py
dragonbone81/cse120
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
1
2019-09-19T19:48:59.000Z
2019-09-19T19:48:59.000Z
""" ASGI entrypoint. Configures Django and then runs the application defined in the ASGI_APPLICATION setting. """ import os import django from channels.routing import get_default_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "course_planner.settings") django.setup() application = get_default_application...
24.846154
74
0.823529
9a3b5c161e95df8471ec5f8cd5350b20cd09b45e
1,963
py
Python
old_research/OpticalFilmOptimal.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
4
2020-07-05T12:35:45.000Z
2022-03-17T18:43:04.000Z
old_research/OpticalFilmOptimal.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
null
null
null
old_research/OpticalFilmOptimal.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
null
null
null
import optical_model_env import deepqnetwork import csv def run_maze(): step = 0 write_temp = [] write = [] max_abs = 0 for episode in range(500): # initial observation observation, mean_abs = env.init_Device() print("The init Device is: %s abs:%f" % (ob...
28.449275
114
0.53082
01ab1c86d5d0b8bcdf1938e8e04ac16923851388
25
py
Python
lib/python3.7/site-packages/gatco/views.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
1
2019-08-04T13:12:09.000Z
2019-08-04T13:12:09.000Z
lib/python3.7/site-packages/gatco/views.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
2
2019-04-03T02:59:28.000Z
2019-04-03T03:00:43.000Z
lib/python3.7/site-packages/gatco/views.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
4
2019-04-01T23:58:19.000Z
2021-07-12T03:10:09.000Z
from sanic.views import *
25
25
0.8
eec83aba72e594f5a6d0a92bfd1456ba5535d5e4
344
py
Python
lex2/lexer/__init__.py
DeltaRazero/liblexer2-python3
43a1a63ee005da8a6936665cb27f4ced8158ed6c
[ "Zlib" ]
1
2020-10-31T13:14:45.000Z
2020-10-31T13:14:45.000Z
lex2/lexer/__init__.py
DeltaRazero/liblexer2-python3
43a1a63ee005da8a6936665cb27f4ced8158ed6c
[ "Zlib" ]
4
2020-10-28T16:21:22.000Z
2020-11-09T21:02:33.000Z
lex2/lexer/__init__.py
DeltaRazero/liblexer2-python3
43a1a63ee005da8a6936665cb27f4ced8158ed6c
[ "Zlib" ]
null
null
null
"""Components of lexer implementations.""" ''' zlib License (C) 2020-2022 DeltaRazero All rights reserved. ''' # *************************************************************************************** # Core from ._base_lexer import BaseLexer from ._profiler import ProfilerLexer # Implementations from ._generic_le...
19.111111
89
0.572674
bcb651f45bf1dfa64c78fe130f108cd64720b6a9
9,818
py
Python
tests/wallet/test_wallet_store.py
WarutaShinken/staidelta-blockchain
ab6fd7d0ea93ac8b1b293240aab18db8db34718d
[ "Apache-2.0" ]
1
2022-03-02T12:36:42.000Z
2022-03-02T12:36:42.000Z
tests/wallet/test_wallet_store.py
WarutaShinken/staidelta-blockchain
ab6fd7d0ea93ac8b1b293240aab18db8db34718d
[ "Apache-2.0" ]
null
null
null
tests/wallet/test_wallet_store.py
WarutaShinken/staidelta-blockchain
ab6fd7d0ea93ac8b1b293240aab18db8db34718d
[ "Apache-2.0" ]
null
null
null
# TODO: write tests for other stores # import asyncio # from pathlib import Path # from secrets import token_bytes # import aiosqlite # import pytest # from staidelta.util.ints import uint32, uint64, uint128 # from staidelta.wallet.wallet_coin_record import WalletCoinRecord # from staidelta.wallet.util.wallet_types imp...
42.502165
115
0.555714
522eff6a8d32b02a0b8d9c5ec7fc22ea19419fc2
2,870
py
Python
ansible/lib/ansible/modules/extras/windows/win_environment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/windows/win_environment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/windows/win_environment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
32.988506
115
0.712544
5fcfe7c4aed853e19a0fc1a305e9da380a351c2a
1,912
py
Python
autoesk_main/test.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-03-12T00:40:13.000Z
2021-03-12T00:40:13.000Z
autoesk_main/test.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-04-02T04:40:38.000Z
2021-04-02T04:42:20.000Z
autoesk_main/test.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
null
null
null
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "infternal.settings") import django django.setup() from django.conf import settings import dateutil.parser import re import requests import json from O365 import * from sites.models import SiteData from sites.models import Circuits, CircuitMaintenance from home....
32.40678
83
0.787134
3ebbb6567e2e9d147f93ba81310c2f3ce85ce4ff
836
py
Python
tests/test_tightbinding_honeycomb.py
sharkdp/bandstructure
b74b688afc2b15b20ec1a8ebcf72ba8699b6bf96
[ "MIT" ]
7
2016-12-23T11:19:35.000Z
2021-06-08T07:43:16.000Z
tests/test_tightbinding_honeycomb.py
sharkdp/bandstructure
b74b688afc2b15b20ec1a8ebcf72ba8699b6bf96
[ "MIT" ]
null
null
null
tests/test_tightbinding_honeycomb.py
sharkdp/bandstructure
b74b688afc2b15b20ec1a8ebcf72ba8699b6bf96
[ "MIT" ]
12
2017-09-28T04:14:03.000Z
2022-02-16T06:55:41.000Z
import numpy as np from bandstructure import Parameters from bandstructure.system import TightBindingSystem from bandstructure.lattice import HoneycombLattice def test_tightbinding_honeycomb(): lattice = HoneycombLattice() params = Parameters({ 'lattice': lattice, 't': 1 }) s = Tigh...
28.827586
77
0.723684
1b0003bc2ed761468f73a06a580ec8228a3c3355
166
py
Python
bookmanager/book/apps.py
shanzhaizhou/szz02
97b7c596aac18c780049ebda9c940d4fceeea9e6
[ "MIT" ]
null
null
null
bookmanager/book/apps.py
shanzhaizhou/szz02
97b7c596aac18c780049ebda9c940d4fceeea9e6
[ "MIT" ]
null
null
null
bookmanager/book/apps.py
shanzhaizhou/szz02
97b7c596aac18c780049ebda9c940d4fceeea9e6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BookConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'book' verbose_name = '书籍管理'
20.75
56
0.728916
5c7bcb5b2e3d8aefea3fcd28c4623d96ded3e65a
1,480
py
Python
src/modules/RpiHatSenseModule/AzureIoTLogger.py
elbruno/AzureIoTRpiSenseHat
2cf136b294601f5d44551560346f20acd2ab36a8
[ "MIT" ]
null
null
null
src/modules/RpiHatSenseModule/AzureIoTLogger.py
elbruno/AzureIoTRpiSenseHat
2cf136b294601f5d44551560346f20acd2ab36a8
[ "MIT" ]
null
null
null
src/modules/RpiHatSenseModule/AzureIoTLogger.py
elbruno/AzureIoTRpiSenseHat
2cf136b294601f5d44551560346f20acd2ab36a8
[ "MIT" ]
null
null
null
# Copyright (c) 2022 # Author : Bruno Capuano # Create Time : 2022 March # Change Log : # – Log messages to Azure IoT Hub # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
46.25
82
0.714189
1716828928562a8aec696a762ba9618e6d5fee43
1,289
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_part_detections/migrations/0011_auto_20200912_2150.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_part_detections/migrations/0011_auto_20200912_2150.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_part_detections/migrations/0011_auto_20200912_2150.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
# Generated by Django 3.0.8 on 2020-09-12 21:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("azure_part_detections", "0010_partdetection_send_video_to_cloud")] operations = [ migrations.RenameField( model_name="partdetection", old_nam...
29.976744
88
0.470132
4d29e945c878ba999289a08da990044805211af4
2,345
py
Python
pymicmac/workflow/distributed_tapioca/create_all_image_pairs_file.py
pymicmac/pymicmac
75e8dfbc90aeff4301b144ba76fc627a780ec8ac
[ "Apache-2.0" ]
27
2016-10-18T15:44:06.000Z
2019-09-11T09:34:47.000Z
pymicmac/workflow/distributed_tapioca/create_all_image_pairs_file.py
pymicmac/pymicmac
75e8dfbc90aeff4301b144ba76fc627a780ec8ac
[ "Apache-2.0" ]
28
2017-11-13T09:01:16.000Z
2018-02-07T14:16:47.000Z
pymicmac/workflow/distributed_tapioca/create_all_image_pairs_file.py
pymicmac/pymicmac
75e8dfbc90aeff4301b144ba76fc627a780ec8ac
[ "Apache-2.0" ]
12
2016-09-26T15:35:04.000Z
2021-11-12T18:57:41.000Z
#!/usr/bin/python import argparse import os from pymicmac import utils_execution def run(inputFolder, imageFormat, outputFile): # Check user parameters if not os.path.isdir(inputFolder): raise Exception(inputFolder + " does not exist! (or is not a folder)") # Create lists of images that have the c...
28.950617
135
0.556077
bbcf6c16d6c8c6c412c95fd66eb37db59fc59051
31
py
Python
series_alignment/__init__.py
brian-murphy/series_alignment
bcb64047607e9f2080d8f04107160345241aba10
[ "MIT" ]
null
null
null
series_alignment/__init__.py
brian-murphy/series_alignment
bcb64047607e9f2080d8f04107160345241aba10
[ "MIT" ]
null
null
null
series_alignment/__init__.py
brian-murphy/series_alignment
bcb64047607e9f2080d8f04107160345241aba10
[ "MIT" ]
null
null
null
__all__ = ["series_alignment"]
15.5
30
0.741935
f951882c145fe383ef2c885f1bcf6bd100943b9f
1,315
py
Python
toontown/ai/DistributedHydrantZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/ai/DistributedHydrantZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/ai/DistributedHydrantZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from toontown.ai import DistributedPhaseEventMgr class DistributedHydrantZeroMgr(DistributedPhaseEventMgr.DistributedPhaseEventMgr): neverDisable = 1 notify = DirectNotifyGlobal.directNotify.newCategory('Distrib...
42.419355
87
0.76654
93fc1919e02a94864614338dcf567b14d9b2a0d6
4,961
py
Python
data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py
hwang2739/curation
c9ee1e2cbd1289283023858c7792d72f6c13bb54
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py
hwang2739/curation
c9ee1e2cbd1289283023858c7792d72f6c13bb54
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/create_person_ext_table.py
hwang2739/curation
c9ee1e2cbd1289283023858c7792d72f6c13bb54
[ "MIT" ]
null
null
null
""" Original Issues: DC-1012 Background In order to avoid further changes to the standard OMOP person table, two non-standard fields will be housed in a person_ext table. Cleaning rule script to run AFTER deid. This cleaning rule will populate the person_ext table The following fields will need to be copied from the ...
37.022388
112
0.656924
d97aa6cac0235007f52b2ae3b946d959f04c0cf2
6,157
py
Python
users/views.py
peterkurishev/django-users2
85214b44adb17295d8933178ffc344d1f8d1ab93
[ "BSD-3-Clause" ]
null
null
null
users/views.py
peterkurishev/django-users2
85214b44adb17295d8933178ffc344d1f8d1ab93
[ "BSD-3-Clause" ]
null
null
null
users/views.py
peterkurishev/django-users2
85214b44adb17295d8933178ffc344d1f8d1ab93
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import messages from django.contrib.auth import get_user_model, login from django.urls import reverse from django.shortcuts import redirect, resolve_url from django.template.response import TemplateResponse from django.utils.translation import ugettext as _ from django.views.decorators.cache import ...
36.217647
97
0.667046
4f4e9c80a2f687352cc3c6fab27c5cf2e808bd65
8,501
py
Python
generatejson.py
jprichards/installapplications
cb1e1afb418c830288213d00c2e5b34ecbbc7ef5
[ "Apache-2.0" ]
1
2019-01-11T15:51:22.000Z
2019-01-11T15:51:22.000Z
generatejson.py
jprichards/installapplications
cb1e1afb418c830288213d00c2e5b34ecbbc7ef5
[ "Apache-2.0" ]
null
null
null
generatejson.py
jprichards/installapplications
cb1e1afb418c830288213d00c2e5b34ecbbc7ef5
[ "Apache-2.0" ]
1
2020-08-24T14:47:56.000Z
2020-08-24T14:47:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Generate Json file for installapplications # Usage: python generatejson.py --item \ # item-name='A name' \ # item-path='A path' \ # item-stage='A stage' \ # item-type='A type' \ # item-url='A url' \ # script-do-not-wait='A boolean' \ # --base-url URL \ # --output PATH # # -...
35.128099
79
0.564875
e0fdb67df899dc910082fa3df99153a7b4ae0919
5,434
py
Python
models/backbone.py
Ming-er/detr
807a603acea768b8ed820dbf897cb003ad67f4a0
[ "Apache-2.0" ]
null
null
null
models/backbone.py
Ming-er/detr
807a603acea768b8ed820dbf897cb003ad67f4a0
[ "Apache-2.0" ]
null
null
null
models/backbone.py
Ming-er/detr
807a603acea768b8ed820dbf897cb003ad67f4a0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Backbone modules. """ from collections import OrderedDict import torch import torch.nn.functional as F import torchvision from torch import nn from torchvision.models._utils import IntermediateLayerGetter from typing import Dict, List from uti...
38.814286
113
0.642621
dbd35ccc0bf365cf368e32f5f8a485bc7e944c6e
95,251
py
Python
tensorflow/tools/compatibility/tf_upgrade_v2_test.py
autoih/tensorflow
4a1ae31d56c3c7f40232aace615945c29dcf9c38
[ "Apache-2.0" ]
1
2020-01-18T17:54:05.000Z
2020-01-18T17:54:05.000Z
tensorflow/tools/compatibility/tf_upgrade_v2_test.py
autoih/tensorflow
4a1ae31d56c3c7f40232aace615945c29dcf9c38
[ "Apache-2.0" ]
3
2019-07-25T16:55:56.000Z
2019-08-01T23:44:31.000Z
tensorflow/tools/compatibility/tf_upgrade_v2_test.py
autoih/tensorflow
4a1ae31d56c3c7f40232aace615945c29dcf9c38
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # 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 # ...
41.74014
211
0.659353
a681c87b059892bb2a6cd702bf12ea413eb32f68
76
py
Python
molpal/models/chemprop/models/__init__.py
mchaker/lab-molpal
f4db7ee2ca51515b4246604867a93a3aac08107d
[ "MIT" ]
81
2020-12-15T14:28:57.000Z
2022-03-14T12:26:00.000Z
molpal/models/chemprop/models/__init__.py
mchaker/lab-molpal
f4db7ee2ca51515b4246604867a93a3aac08107d
[ "MIT" ]
13
2021-01-07T17:09:00.000Z
2022-03-01T12:45:22.000Z
molpal/models/chemprop/models/__init__.py
mchaker/lab-molpal
f4db7ee2ca51515b4246604867a93a3aac08107d
[ "MIT" ]
23
2020-12-15T16:09:48.000Z
2022-03-13T11:29:40.000Z
from .mpn import MPN, MPNEncoder __all__ = [ 'MPN', 'MPNEncoder' ]
10.857143
32
0.605263
a90d67bd0a0125dfdfb98b8147609454c026eb2c
163
py
Python
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_Seasonal_Hour_ARX.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_Seasonal_Hour_ARX.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_Seasonal_Hour_ARX.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Quantization'] , ['ConstantTrend'] , ['Seasonal_Hour'] , ['ARX'] );
40.75
90
0.760736
a4f2a2054794caba81daa6a2dfc5ed650a465883
1,052
py
Python
experiments/tf_trainer/tf_hub_classifier/run.py
CyberFlameGO/conversationai-models
f82f66398b221d9fe3bcfd7641610af454b3db46
[ "Apache-2.0" ]
139
2018-03-05T16:34:41.000Z
2022-03-09T01:36:13.000Z
experiments/tf_trainer/tf_hub_classifier/run.py
CyberFlameGO/conversationai-models
f82f66398b221d9fe3bcfd7641610af454b3db46
[ "Apache-2.0" ]
125
2018-03-05T21:19:31.000Z
2020-11-13T17:50:12.000Z
experiments/tf_trainer/tf_hub_classifier/run.py
CyberFlameGO/conversationai-models
f82f66398b221d9fe3bcfd7641610af454b3db46
[ "Apache-2.0" ]
47
2018-03-21T19:37:14.000Z
2022-03-09T01:36:21.000Z
"""Experiments with Toxicity Dataset""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tf_trainer.common import base_model from tf_trainer.common import model_trainer from tf_trainer.common import serving_input from tf_trainer.common import tfrecord_i...
28.432432
67
0.803232
cc295b5e7b46aa89659d61347d28628799eb4bd1
18,497
py
Python
COT/commands/tests/test_deploy_esxi.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
81
2015-01-18T22:31:42.000Z
2022-03-14T12:34:33.000Z
COT/commands/tests/test_deploy_esxi.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
67
2015-01-05T15:24:39.000Z
2021-08-16T12:44:58.000Z
COT/commands/tests/test_deploy_esxi.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
20
2015-07-09T14:20:25.000Z
2021-09-18T17:59:57.000Z
#!/usr/bin/env python # # test_deploy_esxi.py - test cases for the COTDeployESXi class and helpers # # August 2015, Glenn F. Matthews # Copyright (c) 2013-2017 the COT project developers. # See the COPYRIGHT.txt file at the top-level directory of this distribution # and at https://github.com/glennmatthews/cot/blob/mast...
42.81713
79
0.647727
728278e740e3f9cdbb508d27c4bcacd4c4309c99
1,165
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeMetricRuleTargetsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeMetricRuleTargetsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeMetricRuleTargetsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# 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 # "License"); you may ...
38.833333
84
0.751931
92e089dedb45b52802162e9ba31c5cbca369f8fb
26,552
py
Python
billforward/apis/cybersourcetokens_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
2
2016-11-23T17:32:37.000Z
2022-02-24T05:13:20.000Z
billforward/apis/cybersourcetokens_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
null
null
null
billforward/apis/cybersourcetokens_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...
45.23339
157
0.60809
c2d7626ee5fd366f333e36f9d3c333865bf1cac9
2,192
py
Python
control/initial_data_loader.py
yusenjeng/invintdex
ea68477d248ca8bdb4d62fd09ee4008e01cb831c
[ "MIT" ]
null
null
null
control/initial_data_loader.py
yusenjeng/invintdex
ea68477d248ca8bdb4d62fd09ee4008e01cb831c
[ "MIT" ]
null
null
null
control/initial_data_loader.py
yusenjeng/invintdex
ea68477d248ca8bdb4d62fd09ee4008e01cb831c
[ "MIT" ]
null
null
null
import csv import pandas import pandas_datareader import pandas_datareader.data as web from control.models import Company, ETF, SP500, Quote, ETFQuote, IS, BS, CF def loadETF(): print('[listETF]', 'loading ETF') with open('data/TICKER_ETF.csv') as f: reader = csv.reader(f, delimiter=',') for ...
30.027397
75
0.534672
f00c0763a9b52ac1161335e6fa0da7bb9be12248
6,628
py
Python
allennlp/data/token_indexers/token_indexer.py
YerevaNN/allennlp
374acec5e62d6d74586b18a3d5bb2f9b5a169da4
[ "Apache-2.0" ]
1
2021-01-28T09:42:02.000Z
2021-01-28T09:42:02.000Z
allennlp/data/token_indexers/token_indexer.py
YerevaNN/allennlp
374acec5e62d6d74586b18a3d5bb2f9b5a169da4
[ "Apache-2.0" ]
null
null
null
allennlp/data/token_indexers/token_indexer.py
YerevaNN/allennlp
374acec5e62d6d74586b18a3d5bb2f9b5a169da4
[ "Apache-2.0" ]
2
2021-01-19T10:58:28.000Z
2022-02-23T19:09:36.000Z
from typing import Any, Dict, List import math import torch from allennlp.common import Registrable from allennlp.common.util import pad_sequence_to_length from allennlp.data.tokenizers.token import Token from allennlp.data.vocabulary import Vocabulary # An indexed token list represents the arguments that will be p...
49.462687
100
0.694176
a64b9588b6c9bdc8a146bd66740d040adfd87d8a
1,143
py
Python
fabfile.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement from fabric.api import run, sudo, cd, env, prefix, local from fabric.contrib.console import confirm env.hosts = ['localshot.org.il'] env.user = 'oshot' def loadflatb(): with cd('~oshot/src/oshot'): with prefix('. ENV/bin/activate'): run('honcho run python ...
34.636364
80
0.64392
b6e0b67c016a3a8dcbed3e7a1782c900968f19f8
287
py
Python
catnip/middleware.py
ObjectifLibre/catnip
5d89c92de0396b1e912bb498af88687dd046718d
[ "Apache-2.0" ]
2
2020-03-13T12:45:10.000Z
2020-04-01T12:04:49.000Z
catnip/middleware.py
ObjectifLibre/catnip
5d89c92de0396b1e912bb498af88687dd046718d
[ "Apache-2.0" ]
1
2020-07-24T21:54:08.000Z
2020-07-24T21:54:08.000Z
catnip/middleware.py
ObjectifLibre/catnip
5d89c92de0396b1e912bb498af88687dd046718d
[ "Apache-2.0" ]
1
2020-05-11T19:19:12.000Z
2020-05-11T19:19:12.000Z
from catnip import backend backend.patch_middleware_get_user() class AuthPatchMiddleware(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): # Do nothing actually return self.get_response(request)
20.5
41
0.724739
7a6d6a858bdc8cf64b4b33e8e76c7e54ea3f63db
1,629
py
Python
example/java/python_script/Color_recognition.py
JiekangHuang/VMX_Pi_Example
aefafe85824df21458d3433ffe7ab1743ac8bbd7
[ "MIT" ]
null
null
null
example/java/python_script/Color_recognition.py
JiekangHuang/VMX_Pi_Example
aefafe85824df21458d3433ffe7ab1743ac8bbd7
[ "MIT" ]
null
null
null
example/java/python_script/Color_recognition.py
JiekangHuang/VMX_Pi_Example
aefafe85824df21458d3433ffe7ab1743ac8bbd7
[ "MIT" ]
null
null
null
import cv2 import numpy as np ColorData = 'color not Found' ColorPixelPercentage = '0' lower_blue = np.array([100,43,46]) upper_blue = np.array([124,255,255]) lower_green = np.array([35,43,46]) upper_green = np.array([77,255,255]) lower_red = np.array([0, 43, 46]) upper_red = np.array([10, 255, 255]) lower_yellow ...
25.857143
62
0.677103
3056f7a96a38fcf553ec8bd433694b7af23a68e6
2,925
py
Python
saleor/dashboard/staff/forms.py
acabezasg/urpi-master
7c9cd0fbe6d89dad70652482712ca38b21ba6f84
[ "BSD-3-Clause" ]
1
2019-05-02T17:24:05.000Z
2019-05-02T17:24:05.000Z
saleor/dashboard/staff/forms.py
acabezasg/urpi-master
7c9cd0fbe6d89dad70652482712ca38b21ba6f84
[ "BSD-3-Clause" ]
5
2021-03-09T16:22:37.000Z
2022-02-10T19:10:03.000Z
saleor/dashboard/staff/forms.py
acabezasg/urpi-master
7c9cd0fbe6d89dad70652482712ca38b21ba6f84
[ "BSD-3-Clause" ]
1
2020-12-26T10:25:37.000Z
2020-12-26T10:25:37.000Z
from django import forms from django.utils.translation import pgettext_lazy from ...account.models import User from ...core.permissions import get_permissions from ..customer.forms import get_name_placeholder from ..forms import PermissionMultipleChoiceField class StaffForm(forms.ModelForm): user_permissions = P...
39.527027
79
0.631111
a6db3a33c340f1cb25dd5bfdb07bfa899bde4e59
2,952
py
Python
improver/metadata/constants/mo_attributes.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver/metadata/constants/mo_attributes.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver/metadata/constants/mo_attributes.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
39.891892
85
0.70122
ecb3503b8f16ae0b9bcbf8e48d2a180be51e1b5c
1,757
py
Python
env/Lib/site-packages/OpenGL/GL/EXT/pixel_transform.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GL/EXT/pixel_transform.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GL/EXT/pixel_transform.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension EXT.pixel_transform This module customises the behaviour of the OpenGL.raw.GL.EXT.pixel_transform to provide a more Python-friendly API Overview (from the spec) This extension provides support for scaling, rotation, translation and shearing of two-dimensional pixel rectangles in the pixel ra...
39.931818
97
0.821286
ab395a42e8f312446e5087de9cf66c1ac9e414a1
73
py
Python
loghandler/modules/__init__.py
math280h/loghandler
7e752493df91e49b3b205fda2829e6e7b8cc050c
[ "MIT" ]
2
2021-11-05T17:56:33.000Z
2021-11-07T01:58:01.000Z
loghandler/modules/__init__.py
math280h/loghandler
7e752493df91e49b3b205fda2829e6e7b8cc050c
[ "MIT" ]
33
2021-11-05T02:09:29.000Z
2022-03-23T11:09:45.000Z
loghandler/modules/__init__.py
math280h/loghandler
7e752493df91e49b3b205fda2829e6e7b8cc050c
[ "MIT" ]
null
null
null
import loghandler.modules.elasticsearch import loghandler.modules.stdout
24.333333
39
0.890411
f44013e51db0c1e0bbde278fca76b9ed2a7cff22
139
py
Python
python/1409.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
python/1409.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
python/1409.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
t=int(input()) for i in range(t): a,b=tuple(map(int,input().split())) print(int(abs(a-b)/10)+(int((a-b)%10!=0)))
19.857143
46
0.482014
652f76251a2e73a257277bca3470608d4bcde9b0
160
py
Python
tests/test_A000041.py
TyomaMtl/oeis
2feeb44c00d9fd81e39c8db85e330cbcbdca3a39
[ "MIT" ]
null
null
null
tests/test_A000041.py
TyomaMtl/oeis
2feeb44c00d9fd81e39c8db85e330cbcbdca3a39
[ "MIT" ]
null
null
null
tests/test_A000041.py
TyomaMtl/oeis
2feeb44c00d9fd81e39c8db85e330cbcbdca3a39
[ "MIT" ]
null
null
null
from oeis import A000041 def test_partitions(): assert A000041(5) == 7 assert A000041(3) == 3 assert A000041(4) == 5 assert A000041(10) == 42
17.777778
28
0.63125
879710014cf2ea54017c30095fe07fa5495e03d1
13,435
py
Python
igdectk/rest/restmiddleware.py
coll-gate/igdectk
2b658652b01e2998549aee0b2a0ca6b71724f222
[ "MIT" ]
2
2017-04-27T20:08:17.000Z
2017-07-04T16:19:16.000Z
igdectk/rest/restmiddleware.py
coll-gate/igdectk
2b658652b01e2998549aee0b2a0ca6b71724f222
[ "MIT" ]
null
null
null
igdectk/rest/restmiddleware.py
coll-gate/igdectk
2b658652b01e2998549aee0b2a0ca6b71724f222
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- # # @file restmiddleware.py # @brief REST django middleware. # @author Frédéric SCHERMA (INRA UMR1095) # @date 2015-04-13 # @copyright Copyright (c) 2015 INRA # @license MIT (see LICENSE file) # @details Middleware thats manage common view errors. # The middleware decorate the request with a fo...
32.848411
103
0.630443
cc1334fcfc6f7f4114b2972f3b71eb31a0f908cf
643
py
Python
qcodes/dataset/database.py
RobertHenry6bev/Qcodes
16655ea70228fed77db170c19e326f180ad8a49d
[ "MIT" ]
null
null
null
qcodes/dataset/database.py
RobertHenry6bev/Qcodes
16655ea70228fed77db170c19e326f180ad8a49d
[ "MIT" ]
null
null
null
qcodes/dataset/database.py
RobertHenry6bev/Qcodes
16655ea70228fed77db170c19e326f180ad8a49d
[ "MIT" ]
null
null
null
""" Code of this module has been moved to `.sqlite.database`. This module now only re-imports the functions which it used to contain, for backwards compatibility. Do not import functions from this module because it will be removed soon. """ import warnings from .sqlite.database import get_DB_debug, get_DB_location, \ ...
40.1875
76
0.735614
d6435706a8bef7c7b1d92b53cd0300443ad02af3
21,014
py
Python
delphin_6_automation/backend/backend.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
2
2017-11-08T18:37:36.000Z
2018-01-09T12:10:58.000Z
delphin_6_automation/backend/backend.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
111
2018-02-26T08:25:44.000Z
2021-03-31T19:17:19.000Z
delphin_6_automation/backend/backend.py
thp44/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
3
2017-11-06T10:01:25.000Z
2018-02-14T09:45:28.000Z
__author__ = "Thomas Perkov" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules: import os import logging import sys # RiBuild Modules: import delphin_6_automation.database_interactions.mongo_setup as mongo_...
34.336601
120
0.620015
64a5ff8f7f91efb81b9351e90d5d2e02ff32dced
6,861
py
Python
dextre/settings/base.py
UWCS/uwcs-dextre
99f93ad0be6d54d67df5b39a080405c145131121
[ "MIT" ]
null
null
null
dextre/settings/base.py
UWCS/uwcs-dextre
99f93ad0be6d54d67df5b39a080405c145131121
[ "MIT" ]
19
2021-05-07T12:21:06.000Z
2022-02-11T13:37:36.000Z
dextre/settings/base.py
UWCS/uwcs-dextre
99f93ad0be6d54d67df5b39a080405c145131121
[ "MIT" ]
2
2021-04-12T23:40:41.000Z
2021-06-29T14:55:52.000Z
""" Django settings for dextre project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ from __future...
28.118852
114
0.701064
01d0b6c71e58629d86117096ca804fc115aa44ab
1,879
py
Python
examples/dfp/v201511/forecast_service/get_delivery_forecast_for_line_items.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
1
2020-05-23T11:32:32.000Z
2020-05-23T11:32:32.000Z
examples/dfp/v201511/forecast_service/get_delivery_forecast_for_line_items.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201511/forecast_service/get_delivery_forecast_for_line_items.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
2
2018-04-20T02:16:33.000Z
2020-11-12T20:58:54.000Z
#!/usr/bin/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 required b...
35.45283
79
0.743481
d17305ab243d1a713fd98c66e49574a3e81f4850
4,664
py
Python
setup.py
tsangel/dicomsdl
779006728a79a95230a10021888a8a7f089107a0
[ "BSD-3-Clause" ]
3
2020-08-28T01:15:20.000Z
2020-11-10T06:42:48.000Z
setup.py
tsangel/dicomsdl
779006728a79a95230a10021888a8a7f089107a0
[ "BSD-3-Clause" ]
null
null
null
setup.py
tsangel/dicomsdl
779006728a79a95230a10021888a8a7f089107a0
[ "BSD-3-Clause" ]
null
null
null
import os import re import sys import platform import subprocess from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion USE_DEBUG_MESSAGE=False def get_dicomsdl_version(): lines = open('src/include/dicomcfg.h').readline...
36.155039
98
0.621355
98c7aeccc4b19edfc433a6556108ef8b77d12aa4
18,881
py
Python
tensorflow/python/framework/importer.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
2
2018-12-12T23:33:05.000Z
2019-02-26T07:20:22.000Z
tensorflow/python/framework/importer.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/importer.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
2
2019-10-11T00:17:03.000Z
2020-05-23T18:59:45.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...
40.344017
108
0.710662
48afcca6ad3b9080c345494a9dd9feae196260a7
456
py
Python
banco_de_dados/povoar_grupo.py
higorsantana-omega/Python_Aprendizado
f02dd4bd104e3a25f9207e7f0d99e54e34e4a9c0
[ "MIT" ]
null
null
null
banco_de_dados/povoar_grupo.py
higorsantana-omega/Python_Aprendizado
f02dd4bd104e3a25f9207e7f0d99e54e34e4a9c0
[ "MIT" ]
null
null
null
banco_de_dados/povoar_grupo.py
higorsantana-omega/Python_Aprendizado
f02dd4bd104e3a25f9207e7f0d99e54e34e4a9c0
[ "MIT" ]
null
null
null
from mysql.connector.errors import ProgrammingError from bd import nova_conexao sql = 'INSERT INTO grupo (descricao) VALUES (%s)' args = ( ('Casa',), ('Trabalho',), ) with nova_conexao() as conexao: try: cursor = conexao.cursor() cursor.executemany(sql, args) conexao.commit() e...
25.333333
65
0.640351
04ea56559406467248a51405f951343ec6944ba4
7,975
py
Python
cpgw/gateway.py
blavka/cpgw
501cdb4cde109574f3afd50dbd7038a35d76cd67
[ "MIT" ]
3
2019-01-29T12:18:10.000Z
2019-07-13T07:15:32.000Z
cpgw/gateway.py
blavka/cpgw
501cdb4cde109574f3afd50dbd7038a35d76cd67
[ "MIT" ]
1
2021-08-28T18:44:29.000Z
2021-08-31T15:45:25.000Z
cpgw/gateway.py
blavka/cpgw
501cdb4cde109574f3afd50dbd7038a35d76cd67
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import decimal import logging import platform import time from ctypes import * from threading import Event, Lock, Thread import serial try: import fcntl except ImportError: fcntl = None context_prec1 = decimal.Context(prec=1) context_prec2 = decimal.Context(pre...
29.319853
86
0.487273
8032560dc1d44c5b331ea8cf92478bc82b1b7802
6,857
py
Python
scripts/mars-room-sensor.py
macroEagle/MARS_Sensor
205df33831e8f1da889d2bb5363b455433b034cf
[ "Apache-2.0" ]
null
null
null
scripts/mars-room-sensor.py
macroEagle/MARS_Sensor
205df33831e8f1da889d2bb5363b455433b034cf
[ "Apache-2.0" ]
null
null
null
scripts/mars-room-sensor.py
macroEagle/MARS_Sensor
205df33831e8f1da889d2bb5363b455433b034cf
[ "Apache-2.0" ]
null
null
null
import requests import configparser import time import logging from logging.handlers import RotatingFileHandler sensor_config = configparser.ConfigParser() mars_config = configparser.ConfigParser() sensor_config.read('/mars/mars-sensor.ini') mars_config.read('/mars/scripts/mars.ini') # === Read MARS configuration =...
37.266304
180
0.666326