hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
2d50b734aecf64c637ef8650f62d5e4aab40848c
4,799
py
Python
HW 3/ps3b.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
HW 3/ps3b.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
HW 3/ps3b.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
from ps3a import * import time from perm import * # # # Problem #6A: Computer chooses a word # # def comp_choose_word(hand, word_list): """ Given a hand and a word_dict, find the word that gives the maximum value score, and return it. This word should be calculated by considering all possible permutations of...
33.559441
113
0.589498
2d510080e7ef56a70ad0ade10344d19ec511fc0f
864
py
Python
aim/cli/up/utils.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/cli/up/utils.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/cli/up/utils.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
import os from aim.web.configs import AIM_WEB_ENV_KEY def build_db_upgrade_command(): from aim import web web_dir = os.path.dirname(web.__file__) migrations_dir = os.path.join(web_dir, 'migrations') if os.getenv(AIM_WEB_ENV_KEY) == 'prod': ini_file = os.path.join(migrations_dir, 'alembic.ini'...
33.230769
98
0.626157
2d510fd9764ea5b899770db61fff70331840a70e
685
py
Python
src/content_fetcher.py
Harish-G007/RSS
2e920b2714bb0c9ec731df7a2b1d315a4a06ceca
[ "MIT" ]
14
2019-11-20T22:18:43.000Z
2021-12-12T19:00:59.000Z
src/content_fetcher.py
Harish-G007/RSS
2e920b2714bb0c9ec731df7a2b1d315a4a06ceca
[ "MIT" ]
null
null
null
src/content_fetcher.py
Harish-G007/RSS
2e920b2714bb0c9ec731df7a2b1d315a4a06ceca
[ "MIT" ]
4
2020-07-28T07:17:32.000Z
2021-09-20T02:12:18.000Z
import requests import signal from contextlib import contextmanager class TimeoutException(Exception): pass @contextmanager def time_limit(seconds): def signal_handler(signum, frame): raise TimeoutException signal.signal(signal.SIGALRM, signal_handler) signal.alarm(seconds) try: yield finally: signal...
20.147059
56
0.729927
2d51496d04064a465d362a2805384e569c6e5d21
502
py
Python
tests/test_network.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
81
2015-01-17T04:21:55.000Z
2022-01-12T16:54:26.000Z
tests/test_network.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
84
2015-01-14T20:17:44.000Z
2020-10-19T21:46:25.000Z
tests/test_network.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
32
2015-03-08T14:03:53.000Z
2022-01-04T12:21:59.000Z
from nose.tools import eq_, ok_ import unittest import openxc.measurements from openxc.sources import NetworkDataSource from openxc.sources import DataSourceError class NetworkDataSourceTests(unittest.TestCase): def setUp(self): super(NetworkDataSourceTests, self).setUp() def test_create(self): ...
25.1
70
0.697211
2d51608468db9d634726cdbdd15781e3a4a11737
6,680
py
Python
tests/ci/rally_verify.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/ci/rally_verify.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/ci/rally_verify.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
#!/usr/bin/env python # # 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 ...
32.906404
79
0.640569
2d5166e96d922a3d173cdd793467db6a1ad9989c
2,635
py
Python
tests/test_everything.py
datamade/occrp-timeline-tool
855bb59b074331993d7a32a294d206919c9c647b
[ "MIT" ]
4
2017-06-25T14:54:57.000Z
2020-08-15T10:29:29.000Z
tests/test_everything.py
datamade/occrp-timeline-tool
855bb59b074331993d7a32a294d206919c9c647b
[ "MIT" ]
19
2017-06-30T19:53:09.000Z
2017-09-22T21:48:36.000Z
tests/test_everything.py
datamade/occrp-timeline-tool
855bb59b074331993d7a32a294d206919c9c647b
[ "MIT" ]
1
2017-07-04T13:49:36.000Z
2017-07-04T13:49:36.000Z
import os import unittest import tempfile from occrp.models import Story, Event, Person, Organization, Source, events_stories from occrp.forms import StoryForm, EventForm def test_story_form(db_session, client): """ Tests that the story form on the index page creates a story""" form = {'title': 'Real big news...
41.171875
189
0.686528
2d519136a90a2f98e7d168e1eb4233de74ab5447
683
py
Python
imbi/endpoints/reports/namespace_shs_history.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
1
2021-06-23T18:34:47.000Z
2021-06-23T18:34:47.000Z
imbi/endpoints/reports/namespace_shs_history.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
null
null
null
imbi/endpoints/reports/namespace_shs_history.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
2
2022-02-11T22:06:18.000Z
2022-02-21T19:35:06.000Z
import re from tornado import web from imbi.endpoints import base class RequestHandler(base.RequestHandler): NAME = 'reports-namespace-shs-history' SQL = re.sub(r'\s+', ' ', """\ SELECT a.namespace_id, a.scored_on, a.health_score FROM v1.namespace_kpi_histor...
26.269231
77
0.632504
2d51aa865b0d6e3c985e45d8bb3c48dabde10731
2,221
py
Python
Aula18/exercicios/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula18/exercicios/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula18/exercicios/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Aula 18 - 03-12-2019 # Festa da HBSIS # 1 - Faça uma função que leia do arquivo cadastro.txt e # retorne uma lista com dicionários. # cada linha possui os dados na seguinte posição: # codigo, nome, sexo, idade # 2 - Como a entrada da festa é mais barata para mulheres # (R$ 15,00) do que para os homens # (R$ 35...
30.424658
89
0.642053
2d51b892afffa6cb00d5f86469787b9410786e84
430
py
Python
examples/os/test_psutil.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/os/test_psutil.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/os/test_psutil.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
import psutil, os p = psutil.Process(os.getpid()) p.nice() # Unix: p.nice(32) # Windows: p.nice(psutil.IDLE_PRIORITY_CLASS) # p.nice(psutil.REALTIME_PRIORITY_CLASS) -> 256 # p.nice(psutil.HIGH_PRIORITY_CLASS) -> 128 # p.nice(psutil.ABOVE_NORMAL_PRIORITY_CLASS) ->32768 # p.nice(psutil.NORMAL_PRIORITY_CLA...
25.294118
54
0.723256
2d51cebb0e49e19101852ce5c60e558ec41131e8
3,539
py
Python
src/tokenization/utils/training_processor.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
1
2022-02-22T07:05:46.000Z
2022-02-22T07:05:46.000Z
src/tokenization/utils/training_processor.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
src/tokenization/utils/training_processor.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
import os import json import jsonlines import logging import pandas as pd from tqdm import tqdm from collections import defaultdict from typing import List, Dict, Any from sklearn.preprocessing import LabelEncoder from transformers import AutoTokenizer, PreTrainedTokenizerFast class TrainingProcessor: """ Thi...
38.89011
113
0.638033
2d51d81308df3d39fedbd95f1515da104c12353c
17,334
py
Python
simstudy.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
1
2020-02-20T15:00:14.000Z
2020-02-20T15:00:14.000Z
simstudy.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
null
null
null
simstudy.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
null
null
null
import custom_logging import time import numpy as np from matplotlib import pyplot from scipy.stats import skew import graphdisplay from make_stat import mean_confidence_interval, make_histogram_cont, make_histogram_discrete from make_stat import make_multiplot, plot_conf_interval from simparam import SimParam ...
44.10687
121
0.658302
2d51d99737b378d35b624fef8e0090dc434ef7d9
14,026
py
Python
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/vpcs/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/vpcs/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/vpcs/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
""" Views for managing vpcs. """ import json import logging import random import traceback from django.http import HttpResponse, HttpResponseRedirect from django.utils.datastructures import SortedDict from django.utils.text import normalize_newlines from django.utils.translation import ugettext_lazy as _ from django.s...
36.149485
93
0.542992
2d51f4f3b24da80252ca28fccbc5ac5ceb8179ff
6,149
py
Python
src/models/keras_zoo.py
zaxcie/toxiccomment
2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9
[ "MIT" ]
null
null
null
src/models/keras_zoo.py
zaxcie/toxiccomment
2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9
[ "MIT" ]
1
2018-02-16T18:50:03.000Z
2018-02-16T18:50:03.000Z
src/models/keras_zoo.py
zaxcie/toxiccomment
2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9
[ "MIT" ]
null
null
null
from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.layers import Dense, Input, Conv2D, Embedding, Dropout, Activation, TimeDistributed, Conv1D, Concatenate from keras.layers import Bidirectional, MaxPooling1D, MaxPooling2D, Reshape, Flatten, concatenate from...
34.351955
115
0.649211
2d5209e621836031c1c7e1842caa64729ec24b36
2,913
py
Python
hdltools/sim/simulation.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/sim/simulation.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/sim/simulation.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""Simulation object.""" from ..abshdl import HDLObject from . import HDLSimulationObject class HDLSimulation(HDLObject): """Simulation.""" def __init__(self): """Initialize.""" self.sim_objects = {} self.connection_matrix = {} self.current_time = 0 self._signals = {}...
30.989362
74
0.53759
2d520b12b362a72fef4a37eed41bd6ca92a18a6e
7,578
py
Python
keras_retinanet/preprocessing/csv_generator.py
TMCantwell/keras-retinanet
77bffcc3bfa21459c3ac260e0a915d67d5cf457e
[ "Apache-2.0" ]
null
null
null
keras_retinanet/preprocessing/csv_generator.py
TMCantwell/keras-retinanet
77bffcc3bfa21459c3ac260e0a915d67d5cf457e
[ "Apache-2.0" ]
null
null
null
keras_retinanet/preprocessing/csv_generator.py
TMCantwell/keras-retinanet
77bffcc3bfa21459c3ac260e0a915d67d5cf457e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 yhenon (https://github.com/yhenon/) Copyright 2017-2018 Fizyr (https://fizyr.com) 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-...
33.68
139
0.60834
2d5236a63a2d0f86019b8f5367da43b9172e1cbb
902
py
Python
tests/e2e/scale/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging from ocs_ci.framework import config from ocs_ci.ocs import constants log = logging.getLogger(__name__) def pytest_collection_modifyitems(items): """ A pytest hook to skip certain tests when running on vSphere. Args: items: list of collected tests """ skip_list = [ ...
29.096774
74
0.5898
2d525a1e5e621e5aaeb0e11fb8efc04201c87329
178
py
Python
tests/tests/test_display.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
1
2020-04-14T15:47:34.000Z
2020-04-14T15:47:34.000Z
tests/tests/test_display.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
10
2020-04-06T19:41:24.000Z
2020-04-25T23:22:27.000Z
tests/tests/test_display.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
null
null
null
# from gittracker.display.display import Displayer # from gittracker.display.templates import ANSI_SEQS, REPO_TEMPLATES def test_verbose_template_assignment(): assert True
25.428571
68
0.825843
2d52616588328c8b5bdb02247d20ff5d48b71e8b
11,543
py
Python
bilby/core/sampler/proposal.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/core/sampler/proposal.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/core/sampler/proposal.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
from inspect import isclass import numpy as np import random from ..prior import Uniform class Sample(dict): def __init__(self, dictionary=None): if dictionary is None: dictionary = dict() super(Sample, self).__init__(dictionary) def __add__(self, other): return Sample(...
33.751462
116
0.622195
2d5269878058e39c84a3536f882e34b8c404b805
753
py
Python
examples/searchcommands_template/bin/report.py
xrmx/splunk-sdk-python
93cbf44dfc83312cb12869504b050f8034efeb43
[ "Apache-2.0" ]
495
2015-01-18T01:51:24.000Z
2022-03-30T21:41:25.000Z
examples/searchcommands_template/bin/report.py
xrmx/splunk-sdk-python
93cbf44dfc83312cb12869504b050f8034efeb43
[ "Apache-2.0" ]
248
2015-01-29T06:25:37.000Z
2022-03-30T05:20:35.000Z
examples/searchcommands_template/bin/report.py
xrmx/splunk-sdk-python
93cbf44dfc83312cb12869504b050f8034efeb43
[ "Apache-2.0" ]
367
2015-01-06T05:30:16.000Z
2022-03-30T21:48:29.000Z
#!/usr/bin/env python import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import \ dispatch, ReportingCommand, Configuration, Option, validators @Configuration() class %(command.title())Command(ReportingCommand): """ %(synopsis) ##...
21.514286
81
0.661355
2d52895fbe0967cdd2260d6d298a291286858d09
4,973
py
Python
tensorflow/contrib/distributions/python/kernel_tests/bijectors/real_nvp_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/distributions/python/kernel_tests/bijectors/real_nvp_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/distributions/python/kernel_tests/bijectors/real_nvp_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.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...
33.375839
104
0.677056
2d52a799cf90683302c03ad3784025ad1bbc561a
24,645
py
Python
impacket/structure.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/structure.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/structure.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
4
2015-02-25T20:08:18.000Z
2021-07-06T12:31:29.000Z
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id$ # from struct import pack, unpack, calcsize class Structure: """ sublcasses can define com...
33.622101
198
0.503266
2d52b927eb0eeb4176316b24ac0f5584ff349678
2,742
py
Python
mcts/data_base.py
garywei944/AlphaSMILES
192ed0c1533e7eb18b54da8a5f4e8351f224adbf
[ "MIT" ]
15
2020-08-14T18:44:07.000Z
2021-12-06T11:18:02.000Z
mcts/data_base.py
garywei944/AlphaSMILES
192ed0c1533e7eb18b54da8a5f4e8351f224adbf
[ "MIT" ]
2
2020-08-16T02:26:09.000Z
2021-08-13T01:46:43.000Z
mcts/data_base.py
garywei944/AlphaSMILES
192ed0c1533e7eb18b54da8a5f4e8351f224adbf
[ "MIT" ]
3
2019-07-16T09:12:29.000Z
2020-08-28T04:51:15.000Z
import json import threading import os from mcts import parameters as p def load_data_base(): """ Prepare the data_base :return: None """ p.lock_access_data_base = threading.Lock() data_file = "data_out/" + p.config["data_base"] + ".json" if os.path.isfile(data_file): print("Data...
24.927273
90
0.617068
2d52cd889465ec442e6d85cf3067fb5f1b76d1ac
415
py
Python
Common/StockMarketIndex/Yahoo/Ftse.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/StockMarketIndex/Yahoo/Ftse.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/StockMarketIndex/Yahoo/Ftse.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from Common.StockType.Funds.ExchangeTraded.ExchangeTradedFund import ExchangeTradedFund class Ftse(ExchangeTradedFund): ShortName: str LongName: str Ticker: str CapType: str Size: int def __init__(self): self.LongName = 'Financial Times StockType Exchange 100 Index' self.Short...
24.411765
87
0.66506
2d52f25036fd1c02826b007e1120705f13a10f20
6,666
py
Python
eda/queries.py
cverluise/parseEPO
be1171a0f8e6fcafa711fa291aebb1fc2260d5e6
[ "MIT" ]
null
null
null
eda/queries.py
cverluise/parseEPO
be1171a0f8e6fcafa711fa291aebb1fc2260d5e6
[ "MIT" ]
3
2021-02-02T22:38:50.000Z
2021-08-23T20:41:10.000Z
eda/queries.py
cverluise/parseEPO
be1171a0f8e6fcafa711fa291aebb1fc2260d5e6
[ "MIT" ]
null
null
null
from google.cloud import bigquery as bq from wasabi import Printer msg = Printer() # TODO doc def conflict_msg(e, job): msg.warn( f"JOB ERROR: {e}. This kind of error is usually raised when the destination table already " f"exists. If you want to replace the table, execute the same function wit...
25.442748
100
0.630513
2d531983012a9afd3fb6b503b58122da844ac410
9,499
py
Python
demo.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
demo.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
demo.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
import argparse import json import os import os.path as osp import numpy as np import torch from PIL import Image from torchvision import transforms import trainer from datasets import get_dataloader from models.model import DetectionModel from utils import visualize from utils.online_tubes import VideoPostProcessor i...
36.117871
116
0.5968
2d534aa5e63fc235d6727eb4f2c6f138eaff9b62
3,620
py
Python
builder/mypy_boto3_builder/parsers/parse_collections.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/parsers/parse_collections.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/parsers/parse_collections.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
""" Boto3 ServiceResource collections parser, produces `structures.Collection`. """ from typing import List from boto3.resources.base import ServiceResource as Boto3ServiceResource from mypy_boto3_builder.structures.collection import Collection from mypy_boto3_builder.structures.method import Method from mypy_boto3_b...
35.145631
88
0.58674
2d537a74a16e11c66de1c0bd790e0abbfca230cf
5,363
py
Python
create_express_connect.py
ejanicas-stripe/account-creator
eda604713c84bda32988ac1f18cf638972b01493
[ "MIT" ]
null
null
null
create_express_connect.py
ejanicas-stripe/account-creator
eda604713c84bda32988ac1f18cf638972b01493
[ "MIT" ]
null
null
null
create_express_connect.py
ejanicas-stripe/account-creator
eda604713c84bda32988ac1f18cf638972b01493
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Create Connect Express Accounts for Testing. The aim of this script is to quickly generate Connect Express test accounts. Testing is important to make sure your Connect integration handles different flows correctly. Use test mode to simulate live mode while taking advantage of Stripe-provid...
32.90184
133
0.652993
2d537e5a9ca636d2e4d46ff310d36186da25c443
2,415
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/tool/mock_tool_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/tool/mock_tool_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/tool/mock_tool_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (C) 2010 Google 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 retain the above copyright # notice, this list of conditions and the f...
43.125
72
0.743271
2d538cdadcb2d831dcc084a74d32e1c9e1ed905d
402
py
Python
standalone/wsgi.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
standalone/wsgi.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
2
2015-06-06T07:14:11.000Z
2015-06-06T07:48:54.000Z
standalone/wsgi.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
""" WSGI config for IRMA standalone project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
23.647059
78
0.788557
2d53b3fab9c16dc4b6116098467a2700252c7dde
1,001
py
Python
atom/proton/python/test/test_sensitivity_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_sensitivity_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_sensitivity_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
24.414634
107
0.735265
2d53b6b63918be10d1d722a301a2041c04c0aad5
96,081
py
Python
nova/network/manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/network/manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/network/manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you...
44.834811
89
0.575129
2d53b8f3dbe7913841bdca92639acb33e567fe3c
1,123
py
Python
examples/create_session.py
Dintero/Dintero.Python.SDK
60d661a976a03367f55dcfa9641f3e7f64927e57
[ "MIT" ]
null
null
null
examples/create_session.py
Dintero/Dintero.Python.SDK
60d661a976a03367f55dcfa9641f3e7f64927e57
[ "MIT" ]
null
null
null
examples/create_session.py
Dintero/Dintero.Python.SDK
60d661a976a03367f55dcfa9641f3e7f64927e57
[ "MIT" ]
null
null
null
from dintero import Dintero import os account_id = os.environ.get("DINTERO_ACCOUNT_ID") client_id = os.environ.get("DINTERO_CLIENT_ID") client_secret = os.environ.get("DINTERO_CLIENT_SECRET") profile_id = os.environ.get("DINTERO_PROFILE_ID") dintero = Dintero(account_id, client_id, client_secret) checkout = dintero.c...
27.390244
59
0.524488
2d53d612c690b8b2a3baaaa375821f2f7dc22fbf
652
py
Python
api_reflector/migrations/versions/76feeb81949a_callback_action.py
LupusInFabula/api-reflector
35eb0be23c1cce27531ca7ce396405694faa9ba6
[ "MIT" ]
4
2021-09-24T13:58:37.000Z
2022-03-01T22:19:41.000Z
api_reflector/migrations/versions/76feeb81949a_callback_action.py
LupusInFabula/api-reflector
35eb0be23c1cce27531ca7ce396405694faa9ba6
[ "MIT" ]
10
2021-09-21T16:28:06.000Z
2022-03-25T16:48:36.000Z
api_reflector/migrations/versions/76feeb81949a_callback_action.py
LupusInFabula/api-reflector
35eb0be23c1cce27531ca7ce396405694faa9ba6
[ "MIT" ]
2
2021-09-13T13:00:33.000Z
2022-02-24T14:55:46.000Z
"""callback action Revision ID: 76feeb81949a Revises: 7b4efa0dd5ea Create Date: 2021-10-19 10:05:49.346229 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "76feeb81949a" down_revision = "7b4efa0dd5ea" branch_labels = None depends_on = None def upgrade(): #...
22.482759
65
0.691718
2d53e2d11ee0e4a4a0c0c9388eb6d9f26e65085d
423
py
Python
examples/reverse.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/reverse.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/reverse.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): a = [1, 2, 3, 4, 5] # Even though this is technically an iterator I'm going to let # go just copy it for the initial implementation since that's # probably what you'd do in go (or just reverse in-place -- .reverse() for that) for x in reversed(a): print(x) for x in a: ...
20.142857
84
0.576832
2d53e8ae96665689853bfd4a01fbb31c7fd53079
13,283
py
Python
spinup/orig_algos/pytorch/ddpg/ddpg.py
LinghengMeng/lstm_td3
2306a4f0e84417e92b9d77627abc8a7f1925f2b1
[ "MIT" ]
2
2021-04-22T01:17:37.000Z
2021-07-22T09:56:44.000Z
spinup/orig_algos/pytorch/ddpg/ddpg.py
LinghengMeng/lstm_td3
2306a4f0e84417e92b9d77627abc8a7f1925f2b1
[ "MIT" ]
null
null
null
spinup/orig_algos/pytorch/ddpg/ddpg.py
LinghengMeng/lstm_td3
2306a4f0e84417e92b9d77627abc8a7f1925f2b1
[ "MIT" ]
3
2021-05-05T10:27:12.000Z
2021-07-23T14:42:42.000Z
from copy import deepcopy import numpy as np import torch from torch.optim import Adam import gym import pybullet_envs import time import spinup.orig_algos.pytorch.ddpg.core as core from spinup.utils.logx import EpochLogger, setup_logger_kwargs import os.path as osp class ReplayBuffer: """ A simple FIFO exper...
39.888889
108
0.607242
2d542d4d6092c113dc5d53bc0cc64397b631aa41
4,107
py
Python
lgi_translator.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
3
2019-09-26T07:14:51.000Z
2020-02-06T18:35:10.000Z
lgi_translator.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
null
null
null
lgi_translator.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2019 Ruud van Deursen, Firmenich SA. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaim...
41.908163
755
0.671049
2d54428e57d55524b5f6abdb797cfaf7a49f33b4
867
py
Python
python/checkCameras.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
1
2020-11-07T12:40:59.000Z
2020-11-07T12:40:59.000Z
python/checkCameras.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
python/checkCameras.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
import cv2 import math import pandas as pd import numpy as np import time, sys, os, shutil import yaml from multiprocessing import Process, Queue from Queue import Empty # Change 0 to the index that works cap = cv2.VideoCapture(0) if cap.isOpened(): while True: ret, frame = cap.read() if ret: ...
24.771429
62
0.530565
2d5453274faf0cec902fd687ba115390efcfabac
1,854
py
Python
setup.py
chenyu-jiang/gluon-nlp
0f8c452a708fa2c97ae5d890b29cb701ac88aae8
[ "Apache-2.0" ]
7
2019-12-05T02:49:07.000Z
2020-08-17T01:11:59.000Z
setup.py
chenyu-jiang/gluon-nlp
0f8c452a708fa2c97ae5d890b29cb701ac88aae8
[ "Apache-2.0" ]
null
null
null
setup.py
chenyu-jiang/gluon-nlp
0f8c452a708fa2c97ae5d890b29cb701ac88aae8
[ "Apache-2.0" ]
2
2020-07-16T22:00:41.000Z
2020-08-18T12:25:24.000Z
#!/usr/bin/env python import io import os import re import shutil import sys from setuptools import setup, find_packages def read(*names, **kwargs): with io.open( os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8") ) as fp: return fp.read() def fi...
23.175
68
0.555016
2d5455b7b60839423a53a50ce628c0beeb9735a9
1,940
py
Python
oec.py
yahiaali/world-health-trade
f62c49ea3240484e981002bfdc8c0e96560c01c6
[ "MIT" ]
1
2020-07-22T13:49:29.000Z
2020-07-22T13:49:29.000Z
oec.py
yahiaali/world-health-trade
f62c49ea3240484e981002bfdc8c0e96560c01c6
[ "MIT" ]
1
2018-05-13T04:04:24.000Z
2018-05-13T04:04:52.000Z
oec.py
yahiaali/world-health-trade
f62c49ea3240484e981002bfdc8c0e96560c01c6
[ "MIT" ]
1
2020-07-22T13:49:49.000Z
2020-07-22T13:49:49.000Z
import requests import csv def build_call(*args): """Create a URL for a call to the OEC API""" call = 'http://atlas.media.mit.edu/' for val in args: call += str(val) + '/' return call def request_data(call_url): """Return the results of an API request""" r = requests.get(call_url) ...
28.115942
79
0.643814
2d545f562f80bce5fd00f0b6544f98f5d25cea7d
9,330
py
Python
util/parse_dbpedia.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
util/parse_dbpedia.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
util/parse_dbpedia.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
import os, json, string from collections import defaultdict from nltk.corpus import stopwords from util.io import get_data_path, load_dict_from_json, save_dict_to_json STOPWORDS = stopwords.words('english') #%% PREPROCESS TEXT def process(text): text = text.replace('\'', '') text = ''.join(ch if ch not in s...
31.204013
80
0.619936
2d547ca9cc532bdb68704caf88ef600890d84ff5
7,584
py
Python
textbox/model/Attribute/attr2seq.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
347
2021-01-09T07:55:55.000Z
2022-03-27T00:46:36.000Z
textbox/model/Attribute/attr2seq.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
18
2021-01-12T07:37:06.000Z
2022-01-11T02:26:49.000Z
textbox/model/Attribute/attr2seq.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
67
2021-01-09T07:23:52.000Z
2022-03-27T12:02:12.000Z
# @Time : 2021/2/3 # @Author : Zhipeng Chen # @Email : zhipeng_chen@ruc.edu.cn r""" Attr2Seq ################################################ Reference: Li Dong et al. "Learning to Generate Product Reviews from Attributes" in 2017. """ import torch import torch.nn as nn from textbox.model.abstract_generator i...
45.142857
124
0.644251
2d547cb154eaa6ed05bd90b9ea2a9a726a375d24
4,456
py
Python
AS_bias.py
mpleung/ANI
71963b2d613717844ded5aa7adb36ec4f60b9b03
[ "MIT" ]
null
null
null
AS_bias.py
mpleung/ANI
71963b2d613717844ded5aa7adb36ec4f60b9b03
[ "MIT" ]
null
null
null
AS_bias.py
mpleung/ANI
71963b2d613717844ded5aa7adb36ec4f60b9b03
[ "MIT" ]
null
null
null
import numpy as np, pandas as pd, networkx as nx, multiprocessing as mp, sys, traceback from scipy.sparse.csgraph import dijkstra from data_module import * from DGP_module import * processes = 16 B = 5000 num_schools = [1,2] AC_FX = True if AC_FX: print('autocorrelated exposure effects\n') else: print('indepe...
37.762712
99
0.591786
2d5496d99ed7b783ccddf579849018ca8221f09b
7,060
py
Python
hea_tr.py
psp-codes/adaptive-conformation-sampling
97a4ef039527e6060de3b8373b3e85e23a4b901c
[ "MIT" ]
null
null
null
hea_tr.py
psp-codes/adaptive-conformation-sampling
97a4ef039527e6060de3b8373b3e85e23a4b901c
[ "MIT" ]
null
null
null
hea_tr.py
psp-codes/adaptive-conformation-sampling
97a4ef039527e6060de3b8373b3e85e23a4b901c
[ "MIT" ]
null
null
null
# hea_tr.py # author: Ahmed Bin Zaman # since: 08/2020 from modules import population as pl from modules import io from modules import improvement as imp from modules import selection as st import pyrosetta as pr import configparser as cp import math import random import os # *************** # Initial setup * # *****...
29.915254
78
0.677479
2d54bf8a7887a3920a9ea1bcfaa19c943b05e212
38,780
py
Python
python/paddle/distributed/auto_parallel/reshard.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/distributed/auto_parallel/reshard.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/distributed/auto_parallel/reshard.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.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 appli...
38.548708
119
0.607349
2d54f6e038d897c887da36d227a90c54241c6150
32,604
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/operations/_replications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/operations/_replications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/operations/_replications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
44.11908
219
0.674764
2d54f8536508f7b1607d4c65bf030765cad8314c
781
py
Python
braintree/braintree_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
braintree/braintree_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
braintree/braintree_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
from braintree.address_gateway import AddressGateway from braintree.credit_card_gateway import CreditCardGateway from braintree.customer_gateway import CustomerGateway from braintree.subscription_gateway import SubscriptionGateway from braintree.transaction_gateway import TransactionGateway from braintree.transparent_r...
43.388889
77
0.806658
2d55464077859159305b4c1e181e357f6c88966e
6,263
py
Python
run_evaluate.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
run_evaluate.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
run_evaluate.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
import evaluate_explanations_function import evaluate_explanations_function_improved import evaluate_explanations_function_gen import numpy as np import pickle import matplotlib import matplotlib.pyplot as plt import pprint import os DATASETS = ['multi_polarity_books', 'multi_polarity_dvd', 'multi_polarity_kitchen'] D...
41.753333
114
0.619671
2d557f3dcce99a3dd66eae2e10fdedc71763bd8d
55,255
py
Python
salt/modules/tls.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/tls.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/tls.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' A salt module for SSL/TLS. Can create a Certificate Authority (CA) or use Self-Signed certificates. :depends: - PyOpenSSL Python module (0.14 or later) :configuration: Add the following values in /etc/salt/minion for the CA module to function properly:: ca.cert_base_path: '/e...
30.376581
112
0.575061
2d5596a198e34eb08fcc73c30c66d3c79d9d974a
267
py
Python
tests/metadata/test_viewing_geometry.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
5
2019-09-03T17:13:57.000Z
2021-12-01T03:22:11.000Z
tests/metadata/test_viewing_geometry.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-04-28T08:11:37.000Z
2021-04-28T09:52:02.000Z
tests/metadata/test_viewing_geometry.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-03-31T02:13:08.000Z
2021-03-31T02:13:08.000Z
import atmcorr.viewing_geometry as vg from ..data import MTDFILES def test_viewing_geometry(): for sensor, kw in MTDFILES.items(): gdict = vg.get_geometry(sensor=sensor, **kw) assert isinstance(gdict, dict) assert 'sun_zenith' in gdict
24.272727
52
0.696629
2d55a582b153fbf85be214c7c6d396bc00ca0dfc
111,576
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
37.989785
113
0.618404
2d55a89f123de34f57ada21a239be5048df6f6ab
689
py
Python
examples/some_runner.py
mik2k2/py-s-lang
73be30805e2db9be3463eca570bd4b711c4a1f06
[ "MIT" ]
1
2020-06-14T08:02:32.000Z
2020-06-14T08:02:32.000Z
examples/some_runner.py
mik2k2/py-s-lang
73be30805e2db9be3463eca570bd4b711c4a1f06
[ "MIT" ]
null
null
null
examples/some_runner.py
mik2k2/py-s-lang
73be30805e2db9be3463eca570bd4b711c4a1f06
[ "MIT" ]
null
null
null
"""do some stuff""" def some_func(a, b, c): print('doing important stuff with', a, b, c) def something_else(loudness: int, **options): for __ in range(loudness): for k, v in options.items(): print('got option', k, 'with value', v) # automatically generated by py-s-lang's insert_runner ...
27.56
78
0.666183
2d55d6ef0e5c00cd138ca5586665ec3bb4ca4d0e
11,916
py
Python
lm_eval/base.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
4
2021-10-14T15:55:39.000Z
2021-12-15T14:44:08.000Z
lm_eval/base.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
lm_eval/base.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
import abc import random import numpy as np from lm_eval.metrics import mean class LM(abc.ABC): def __init__(self): self.cache_hook = CacheHook(None) @abc.abstractmethod def loglikelihood(self, requests): """Compute log-likelihood of generating a continuation from a context. Down...
31.357895
123
0.592649
2d562ed2b7d301725ddccb36e9b1504a7ffd2b52
13,608
py
Python
src/CorrespondParam/scripts/rebuild_CorrespondParam.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/CorrespondParam/scripts/rebuild_CorrespondParam.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/CorrespondParam/scripts/rebuild_CorrespondParam.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.332394
195
0.596561
2d5661a04270adc43f69216da9f654fc37cd6d4e
41,078
py
Python
sqlserver/datadog_checks/sqlserver/sqlserver.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
sqlserver/datadog_checks/sqlserver/sqlserver.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
sqlserver/datadog_checks/sqlserver/sqlserver.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) ''' Check the performance counters from SQL Server For information on how to report the metrics available in the sys.dm_os_performance_counters table see http://blogs.msdn.com/b/psssql/archive/2013/09/23/i...
43.103882
136
0.611982
2d5688ede6887d28447aaee1a62118d4468a6907
508
py
Python
examples/lecture04b.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
examples/lecture04b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
examples/lecture04b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
def change_counter(): print("Determine the value of your pocket change.") quarters = int(input("Enter the number of quarters: ")) dimes = int(input("Enter the number of dimes: ")) nickels = int(input("Enter the number of nickels: ")) pennies = int(input("Enter the number of pennies: ")) value...
29.882353
76
0.643701
2d569fd3a5c0730a6448e333a4d20bff9716d457
4,102
py
Python
otp/level/EntityTypes.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
otp/level/EntityTypes.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/level/EntityTypes.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.level.EntityTypeDesc import EntityTypeDesc from toontown.coghq.SpecImports import * class Entity(EntityTypeDesc): abstract = 1 type = 'entity' attribs = (('type', None, 'const'), ('name', '<unnamed>', 'string'), ('comment', '', 'string'), ('parentEntId', 0, 'entId')) class LevelMg...
23.175141
109
0.499512
2d56ab803e449bf0dbfd611a7bdd186e31d88947
22,032
py
Python
dataset_tool.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
null
null
null
dataset_tool.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
null
null
null
dataset_tool.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
null
null
null
import functools import io import json import os import pickle import sys import tarfile import gzip import zipfile from pathlib import Path from typing import Callable, Optional, Tuple, Union import clip import click import numpy as np import PIL.Image from tqdm import tqdm import torch.nn.functional as F import torc...
41.258427
174
0.558642
2d56c9c0a25703ad76e2b43247e25d641dbbd5d1
670
py
Python
api/events/serializers.py
MJones235/webApi
64cfd2937558570c1cecc3f37721b705027d2c9b
[ "MIT" ]
2
2020-11-13T06:29:00.000Z
2021-12-09T19:57:50.000Z
api/events/serializers.py
MJones235/webApi
64cfd2937558570c1cecc3f37721b705027d2c9b
[ "MIT" ]
9
2021-03-10T08:20:51.000Z
2022-03-14T21:39:12.000Z
api/events/serializers.py
MJones235/webApi
64cfd2937558570c1cecc3f37721b705027d2c9b
[ "MIT" ]
1
2021-12-02T19:20:53.000Z
2021-12-02T19:20:53.000Z
from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from .models import Event class EventSerializer(serializers.ModelSerializer): #userId = serializers.PrimaryKeyRelatedField( # read_only=True, # default=serializers.CurrentUserDefault()) class Me...
27.916667
61
0.60597
2d56eb870298f393aa34e210623f645a47464357
331
py
Python
ifs/source/mongodb.py
cbednarski/ifs-python
9629ba857b1c397fc1a1f13eeee46e5427fb2744
[ "0BSD" ]
6
2016-03-29T21:12:43.000Z
2021-05-01T18:34:10.000Z
ifs/source/mongodb.py
cbednarski/ifs-python
9629ba857b1c397fc1a1f13eeee46e5427fb2744
[ "0BSD" ]
2
2015-08-12T01:34:51.000Z
2015-08-25T19:23:17.000Z
ifs/source/mongodb.py
cbednarski/ifs-python
9629ba857b1c397fc1a1f13eeee46e5427fb2744
[ "0BSD" ]
null
null
null
name = 'mongodb' version = '3.2.5' version_cmd = 'mongod --version' install_script = ''' apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/mongodb.list apt-get update -qq apt-get install -qy mongo...
33.1
116
0.731118
2d56f3e67217151cf01b0570e0027f326e14a11c
29,321
py
Python
DCNN-Pytorch/deepracing_models/nn_models/Models.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
11
2020-06-29T15:21:37.000Z
2021-04-12T00:42:26.000Z
DCNN-Pytorch/deepracing_models/nn_models/Models.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
null
null
null
DCNN-Pytorch/deepracing_models/nn_models/Models.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
4
2019-01-23T23:36:57.000Z
2021-07-02T00:18:37.000Z
import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.utils.data as data import numpy as np import torch import torch.nn.utils.rnn as RNNUtils import sys import deepracing_models.math_utils as mu import math class LinearCurveToCurvePredictor(nn.Module): def __init__(self,...
45.600311
208
0.630913
2d570198e483c144bf33bd754d57e11a528974df
2,291
py
Python
imodels/rule_set/fplasso.py
jiayouwyhit/imodels
2f3e3cd55b6ac1e6d0f21420bf9c4c29e4d39b06
[ "MIT" ]
1
2021-05-22T13:04:36.000Z
2021-05-22T13:04:36.000Z
imodels/rule_set/fplasso.py
jiayouwyhit/imodels
2f3e3cd55b6ac1e6d0f21420bf9c4c29e4d39b06
[ "MIT" ]
null
null
null
imodels/rule_set/fplasso.py
jiayouwyhit/imodels
2f3e3cd55b6ac1e6d0f21420bf9c4c29e4d39b06
[ "MIT" ]
null
null
null
from typing import List from imodels.rule_set.rule_fit import RuleFit from imodels.util.extract import extract_fpgrowth from imodels.util.convert import itemsets_to_rules class FPLasso(RuleFit): def __init__(self, minsupport=0.1, maxcardinality=2, verbose=False...
36.951613
87
0.524225
2d573837e6c5fc2b389946542339e86ebcbc46e6
3,921
py
Python
sensor_management_platform/settings.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
sensor_management_platform/settings.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
sensor_management_platform/settings.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
import os import datetime import json """" print(os.getcwd()) with open("/config.json") as config_file: config = json.load(config_file) print("config file read!") """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ...
25.461039
117
0.700587
2d57834ce61e6d6979b835044c0ee9e2cff3fea3
707
py
Python
lib/vrd/cvpr/dev.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
lib/vrd/cvpr/dev.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
lib/vrd/cvpr/dev.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
import _init_paths from vrd.test import test_net from fast_rcnn.config import cfg, cfg_from_file, cfg_from_list from datasets.factory import get_imdb import caffe import argparse import pprint import time, os, sys caffe.set_mode_gpu() caffe.set_device(0) net = caffe.Net('models/sg_vrd/vgg16/faster_rcnn_end2end/test.pr...
35.35
180
0.820368
2d57841d5f40350b842afbcca6c364d151ede3fa
3,949
py
Python
alipay/aop/api/request/AlipayCommerceIotSnCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayCommerceIotSnCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayCommerceIotSnCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceIotSnCreateModel import AlipayCommerceIotSnCreateModel class AlipayCommerceIotSnCreateRequest(object): def __init...
27.234483
148
0.642694
2d57a1853cfab9992526ad0ce61f3cf5b3c41a32
4,569
py
Python
test_czi_scenes_dask_zarr.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
3
2020-12-31T10:06:42.000Z
2021-11-09T13:44:16.000Z
test_czi_scenes_dask_zarr.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
test_czi_scenes_dask_zarr.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
from aicspylibczi import CziFile from aicsimageio import AICSImage, imread, imread_dask from czifiletools import czifile_tools as czt #import tools.fileutils as czt from czifiletools import napari_tools as nap import numpy as np import zarr import dask import dask.array as da from dask import delayed from itertools imp...
34.097015
90
0.657912
2d57b0692567771aa28d71d5b3d86a895e6602b1
105,141
py
Python
src/sage/game_theory/normal_form_game.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/game_theory/normal_form_game.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/game_theory/normal_form_game.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
r""" Normal form games with N players. This module implements a class for normal form games (strategic form games) [NN2007]_. At present the following algorithms are implemented to compute equilibria of these games: * ``'enumeration'`` - An implementation of the support enumeration algorithm built in Sage. * ``...
39.187849
227
0.526835
2d582d763036dd8655bf1cc2ed4afe1e0cf7fbe7
1,512
py
Python
premade_modules/2.78/2.78/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
from . import font from . import scene from . import view3d from . import ui from . import text from . import paintcurve from . import fluid from . import action from . import node from . import import_curve from . import world from . import logic from . import mball from . import uv from . import ed from . import clip...
21
26
0.765212
2d5834f3d770de002ccd13bfdcb551cc5c203364
54
py
Python
newsroom/analyze/__init__.py
peter-xbs/newsroom_chinese
7fcae68b2ea5584d08d0c48faee34a0734237e6b
[ "Apache-2.0" ]
82
2018-05-01T16:32:38.000Z
2019-05-18T01:43:15.000Z
newsroom/analyze/__init__.py
peter-xbs/newsroom_chinese
7fcae68b2ea5584d08d0c48faee34a0734237e6b
[ "Apache-2.0" ]
20
2018-05-01T19:32:48.000Z
2019-04-12T07:57:48.000Z
newsroom/analyze/__init__.py
peter-xbs/newsroom_chinese
7fcae68b2ea5584d08d0c48faee34a0734237e6b
[ "Apache-2.0" ]
15
2018-05-01T17:34:11.000Z
2019-05-07T09:28:21.000Z
from .fragments import Fragments from .rouge import *
18
32
0.796296
2d58a99a4b99de9abf04f0fc78873e060c91385c
1,476
py
Python
tests/dropbox_uploads_test.py
robnagler/pix
8054420fa49645ea0d29404bc4e0567af9be0394
[ "Apache-2.0" ]
null
null
null
tests/dropbox_uploads_test.py
robnagler/pix
8054420fa49645ea0d29404bc4e0567af9be0394
[ "Apache-2.0" ]
4
2020-05-06T14:05:22.000Z
2021-07-20T20:49:06.000Z
tests/dropbox_uploads_test.py
robnagler/rnpix
93237c1bd949d806ee21f9eef4bdae0d8b261d4c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""test dropbox_uploads :copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function import pytest def test_move_all(monkeypatch): _move_all(monkeypatch) ...
30.122449
80
0.630081
2d58aada8ae583cac493a0048fe1d7f9e6741f17
192
py
Python
services/selection/equipped.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
services/selection/equipped.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
services/selection/equipped.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from services.selection.base import Selection class EquippedSelection(Selection): def resolve(self): self.resolution = [item for item in self.executor.equipment.get_all_items()]
27.428571
84
0.760417
2d58ab5c74e9368b8399133fca79bdcdd86d4c4b
14,943
py
Python
src/render/nerf.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
src/render/nerf.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
src/render/nerf.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
""" NeRF differentiable renderer. References: https://github.com/bmild/nerf https://github.com/kwea123/nerf_pl """ import torch import torch.nn.functional as F import util import torch.autograd.profiler as profiler from torch.nn import DataParallel from dotmap import DotMap class _RenderWrapper(torch.nn.Module): ...
40.169355
103
0.554373
2d58c54ac0d6b7e97452f9ebc7ea0651fa04b1df
3,240
py
Python
homeassistant/components/discovery.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
homeassistant/components/discovery.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
homeassistant/components/discovery.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
""" Starts a service to scan in intervals for new devices. Will emit EVENT_PLATFORM_DISCOVERED whenever a new service has been discovered. Knows which components handle certain types, will make sure they are loaded before the EVENT_PLATFORM_DISCOVERED is fired. """ import logging import threading from homeassistant ...
28.173913
79
0.690741
2d58ed3ccde3eacc83b17a1b4f1d5264f6c07a35
1,144
py
Python
contrib/runners/remote_command_runner/remote_command_runner/__init__.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/remote_command_runner/remote_command_runner/__init__.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/remote_command_runner/remote_command_runner/__init__.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the StackStorm, Inc ('StackStorm') 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 "Licen...
52
93
0.767483
2d58f16baa971f7b578bbd7c10c0a09c00cf62a9
4,607
py
Python
pygw2/api/pvp.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2020-01-19T21:27:53.000Z
2020-01-19T21:27:53.000Z
pygw2/api/pvp.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2021-12-09T21:18:13.000Z
2021-12-09T21:18:13.000Z
pygw2/api/pvp.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
null
null
null
from typing import List, Union from ..utils import endpoint, object_parse, LazyLoader from ..core.models.pvp import PvpRank, PvpSeason, PvpLeaderboard, PvpHero class PvpLeaderboardsApi: _instances = {} def __new__(cls, season_id: str, *args, api_key: str = "", **kwargs): if (api_key, season_id) not ...
30.919463
88
0.597569
2d5908059953c83e52833959ba815fdd03b9f6f0
11,260
py
Python
World.py
anotheroni/opengl-hex-game
34ee8cbb4ac14603777a4c05703fa451a986a053
[ "Apache-2.0" ]
null
null
null
World.py
anotheroni/opengl-hex-game
34ee8cbb4ac14603777a4c05703fa451a986a053
[ "Apache-2.0" ]
null
null
null
World.py
anotheroni/opengl-hex-game
34ee8cbb4ac14603777a4c05703fa451a986a053
[ "Apache-2.0" ]
null
null
null
from OpenGL.GL import * from math import * import os import pygame from Ship import Ship from GLText import GLText SQRT_3 = sqrt(3.0) SQRT_3_2 = SQRT_3 * 2 HEX_M = 1 / SQRT_3 class World(object): """ The world class represents and draws a Hexagon-Based Tile Map. Origo is bottom left. Hex Dimens...
37.039474
80
0.505062
2d590cfa93fe54c63c7b2595e9f34d68e308307f
4,947
py
Python
dataprofiler/tests/profilers/test_utils.py
az85252/DataProfiler
1303abe04b48fa87c67d8d9b3a13f8cb88e79afb
[ "Apache-2.0" ]
null
null
null
dataprofiler/tests/profilers/test_utils.py
az85252/DataProfiler
1303abe04b48fa87c67d8d9b3a13f8cb88e79afb
[ "Apache-2.0" ]
null
null
null
dataprofiler/tests/profilers/test_utils.py
az85252/DataProfiler
1303abe04b48fa87c67d8d9b3a13f8cb88e79afb
[ "Apache-2.0" ]
null
null
null
import unittest from datetime import datetime from dataprofiler.profilers import utils class TestShuffleInChunks(unittest.TestCase): """ Validates utils.shuffle_in_chunks is properly working. """ def test_full_sample(self): """ Check if can shuffle full sample. """ sa...
38.952756
88
0.561957
2d595ee109239beff6bb2ba19647dd2b7a327978
455
py
Python
python/gitversion.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
3
2020-06-18T13:31:26.000Z
2021-04-05T17:42:56.000Z
python/gitversion.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
python/gitversion.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
import re import subprocess as sp def describe_tag(default, with_dev=True): try: ver = sp.check_output('git describe --tag'.split()) ver = ver.decode().strip() m = re.match(r'v(?P<ver>\d+(\.\d+)*)((-(?P<dev>\d+))(-.*))?', ver) if with_dev and m.group('dev') is not None: ...
30.333333
74
0.56044
2d5978d3f673e1d57f4aebb917d80e6377cbfbdc
13,109
py
Python
telegram/client.py
Appuxif/pytdjson
3896215ca9b34d2bb3c17ff87f959bb7a58437df
[ "MIT" ]
null
null
null
telegram/client.py
Appuxif/pytdjson
3896215ca9b34d2bb3c17ff87f959bb7a58437df
[ "MIT" ]
null
null
null
telegram/client.py
Appuxif/pytdjson
3896215ca9b34d2bb3c17ff87f959bb7a58437df
[ "MIT" ]
null
null
null
import asyncio import logging import signal from collections import defaultdict from concurrent.futures.thread import ThreadPoolExecutor from dataclasses import dataclass from types import FrameType from typing import Any, Callable, DefaultDict, Dict, List, Optional from uuid import uuid4 from . import VERSION from .a...
35.915068
91
0.648104
2d59813743c4b08a11df9855ff3269d46162c704
4,136
py
Python
FunctionApp/CreateACI/__init__.py
jaypaddy/MythicalSolver
321753c702b8fa2ac6f1977526dc104fbdc24a46
[ "MIT" ]
null
null
null
FunctionApp/CreateACI/__init__.py
jaypaddy/MythicalSolver
321753c702b8fa2ac6f1977526dc104fbdc24a46
[ "MIT" ]
null
null
null
FunctionApp/CreateACI/__init__.py
jaypaddy/MythicalSolver
321753c702b8fa2ac6f1977526dc104fbdc24a46
[ "MIT" ]
null
null
null
import logging import json import time import os import json import azure.functions as func import os.path from azure.common.credentials import ServicePrincipalCredentials from azure.mgmt.resource import ResourceManagementClient from azure.mgmt.resource.resources.models import DeploymentMode class C...
37.261261
154
0.683269
2d59ac99d77ed4fc7563721867a1ca8df5bd7172
36,467
py
Python
importador.py
dambros/importador-bgg-ludopedia
0838e2790d836dd8f292c6546de534d4ed29f21e
[ "MIT" ]
7
2018-06-15T18:17:29.000Z
2021-01-06T03:46:26.000Z
importador.py
dambros/importador-bgg-ludopedia
0838e2790d836dd8f292c6546de534d4ed29f21e
[ "MIT" ]
6
2018-06-20T18:06:20.000Z
2021-02-21T12:04:06.000Z
importador.py
dambros/importador-bgg-ludopedia
0838e2790d836dd8f292c6546de534d4ed29f21e
[ "MIT" ]
2
2018-06-15T21:34:24.000Z
2021-01-03T02:35:03.000Z
""" Script to import data from BoardGameGeek into Ludopedia """ import os import re import sys import time from configparser import ConfigParser from datetime import datetime from enum import Enum from itertools import chain from math import ceil from typing import List, NamedTuple from xml.etree import ElementTree i...
40.654404
100
0.63759
2d59b8ef5ac7f01e61c4b8bcd7ba20af0fd610c0
933
py
Python
tzcode/hook/todo.py
Lewinta/TZCode
4a44ed85ec202446fdba0fd54e20680ed56b8ad3
[ "MIT" ]
null
null
null
tzcode/hook/todo.py
Lewinta/TZCode
4a44ed85ec202446fdba0fd54e20680ed56b8ad3
[ "MIT" ]
null
null
null
tzcode/hook/todo.py
Lewinta/TZCode
4a44ed85ec202446fdba0fd54e20680ed56b8ad3
[ "MIT" ]
null
null
null
import frappe from frappe.utils import nowdate def validate(doc, method): if doc.workflow_state == "Assigned" and not doc.date: frappe.throw("""Please complete the following actions: <ol> <li> Read the description carefully.</li> <li> Estimate how long will take you to solve...
34.555556
86
0.62701
2d59d0bc2dc1bc15cb24bd869df919d4e1cf339a
166
py
Python
pre_request/filters/simple/__init__.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
86
2017-08-17T12:41:52.000Z
2022-02-24T12:17:47.000Z
mask/parse/filters/cross/__init__.py
Eastwu5788/Mask
6df8d6c26ec095e6c6c78101087c452e7bc713df
[ "MIT" ]
10
2020-03-30T03:24:46.000Z
2022-02-23T01:34:53.000Z
pre_request/filters/simple/__init__.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
7
2017-08-18T03:40:35.000Z
2020-05-19T04:09:10.000Z
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2020 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-04-30 09:49'
23.714286
39
0.620482
2d59ff08ef067eade6adfdbba2c2dfa05a0112f5
107
py
Python
HW1/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW1/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW1/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
from automata import CA1D sample = CA1D(201, [101]) # Rule = 90 sample.render(90, 200) sample.show('q1')
13.375
25
0.682243
2d5a071d01b3f52b0af25fdc663cdcfb1fa3b777
1,092
py
Python
src/trainers/basic_trainer.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
2
2021-12-02T15:06:28.000Z
2021-12-03T09:48:32.000Z
src/trainers/basic_trainer.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
23
2022-02-24T09:17:03.000Z
2022-03-21T16:57:58.000Z
src/trainers/basic_trainer.py
alr-internship/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
null
null
null
import copy from pathlib import Path from numpy import datetime_as_string import torch from dataset.data_loading import BasicDataset from networks.UNet.unet_model import UNet from trainers.trainer import Trainer class BasicTrainer(Trainer): def __init__( self, trainer_id: str, device: tor...
29.513514
69
0.677656
2d5a44122bd0e1f6c81c5efbe2c0b3c68f8c193b
2,616
py
Python
geomstats/geometry/grassmannian.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
geomstats/geometry/grassmannian.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
geomstats/geometry/grassmannian.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
"""Grassmannian manifold Gr(n, p). The Grassmannian manifold is the set of all p-dimensional subspaces in n-dimensional space, where p <= n. """ import geomstats.backend as gs from geomstats.geometry.embedded_manifold import EmbeddedManifold from geomstats.geometry.euclidean_space import EuclideanMetric from geomstat...
28.747253
71
0.609327
2d5a67a333812be1215c410a0ffb44ac8c41e996
14,813
py
Python
backend/application/settings.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
null
null
null
backend/application/settings.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
null
null
null
backend/application/settings.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
null
null
null
""" Django settings for application project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os...
31.185263
101
0.560791
2d5af2d31c1f12dd581e56353aaa9c2dea572bb1
4,141
py
Python
funcBlasi.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
1
2021-12-27T11:14:58.000Z
2021-12-27T11:14:58.000Z
funcBlasi.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
null
null
null
funcBlasi.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
1
2021-08-14T13:40:24.000Z
2021-08-14T13:40:24.000Z
""" Functions based on Blasi 1993 kinetic reaction scheme for biomass pyrolysis. Reactions are evaluated at some temperature. Functions: blasi1 - primary reactions only blasi2 - primary and secondary reactions Reference: Blasi, 1993. Combustion Science and Technology, 90, pp.315–340. """ # Modules # ---------------...
35.09322
79
0.479353
2d5af765479dc69c6fc1f3d3203521eaedd444ee
6,719
py
Python
src/utils/.ipynb_checkpoints/plot_scatter-checkpoint.py
PawelRosikiewicz/PriceHook
00009a5718b203daca60023cfc3e5d2f1592e0ed
[ "MIT" ]
null
null
null
src/utils/.ipynb_checkpoints/plot_scatter-checkpoint.py
PawelRosikiewicz/PriceHook
00009a5718b203daca60023cfc3e5d2f1592e0ed
[ "MIT" ]
null
null
null
src/utils/.ipynb_checkpoints/plot_scatter-checkpoint.py
PawelRosikiewicz/PriceHook
00009a5718b203daca60023cfc3e5d2f1592e0ed
[ "MIT" ]
null
null
null
# ********************************************************************************** # # # # Project: Data Frame Explorer # # Author: Pawel Rosikiewicz ...
49.043796
133
0.539812
2d5b03a7d5e047f7a4b95fab36a009d21038a471
83,680
py
Python
tests/integration/__init__.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/__init__.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/__init__.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Set up the Salt integration test suite ''' # Import Python libs from __future__ import absolute_import, print_function import os import re import sys import copy import json import time import stat import errno import signal import shutil import pprint import atexit import socket import lo...
38.140383
211
0.560361
2d5b33059a390f5db8e8df5de2be104977259c36
10,442
py
Python
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
7
2017-05-01T14:15:32.000Z
2017-09-06T20:44:24.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
""" Check that the output from irrational functions is accurate for high-precision input, from 5 to 200 digits. The reference values were verified with Mathematica. """ import time from mpmath import * precs = [5, 15, 28, 35, 57, 80, 100, 150, 200] # sqrt(3) + pi/2 a = \ "3.302847134363773912758768033145623809041389...
35.638225
76
0.77648
2d5b4a384c79295048c17ef14e7e99daafc708bd
1,734
py
Python
whisk/cli/commands/project/app.py
BookletAI/whisk
814a3e3b0ee2a97d9c42044cde9571946b72910e
[ "MIT" ]
8
2020-06-16T13:13:03.000Z
2021-12-25T00:01:57.000Z
whisk/cli/commands/project/app.py
whisk-ml/whisk
55e573f837a8a5f34279fa5e83a721582fdcb24e
[ "MIT" ]
9
2020-05-13T22:15:25.000Z
2021-01-24T23:41:57.000Z
whisk/cli/commands/project/app.py
whisk-ml/whisk
55e573f837a8a5f34279fa5e83a721582fdcb24e
[ "MIT" ]
null
null
null
"""Manage the web service.""" import click from subprocess import call import whisk.git as git @click.group() def cli(): pass @cli.command() def start(): """Start the HTTP web service.""" call("honcho -f app/Procfile.dev start", shell=True) @cli.command() @click.argument("name") def create(name): """...
38.533333
172
0.694925
2d5b80e7d64c0725d0eb6c8a545498287bff2111
1,002
py
Python
Sites/UseSvg.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Sites/UseSvg.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Sites/UseSvg.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxyz.or...
30.363636
79
0.591816
2d5b81827e03051ad7e146ec45a12b3341b7519c
6,427
py
Python
hivwholeseq/sequencing/matrix_distance_consensi.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/matrix_distance_consensi.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/matrix_distance_consensi.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
# vim: fdm=indent ''' author: Fabio Zanini date: 06/08/14 content: Check for contamination by building the matrix of minimal distance from any consensus for a bunch of reads. ''' # Modules import os import sys import argparse from operator import itemgetter import pysam import numpy as np from ...
35.905028
124
0.545356
2d5b88618beb6c23de027c71606f9acfb3f80099
2,156
py
Python
app/dao/permissions_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/dao/permissions_dao.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/dao/permissions_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from app import db from app.dao import DAOClass from app.models import ( MANAGE_API_KEYS, MANAGE_SETTINGS, MANAGE_TEMPLATES, MANAGE_USERS, SEND_EMAILS, SEND_LETTERS, SEND_TEXTS, VIEW_ACTIVITY, Permission, ) # Default permissions for a service default_service_permissions = [ MANA...
29.944444
129
0.662801
2d5b946a2067840dc2a4bf941237d19dbcea9691
722
py
Python
tests/graph_case.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
tests/graph_case.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
tests/graph_case.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from unittest import TestCase from settings import settings from office365.graph.graph_client import GraphClient def get_token(auth_ctx): """ Get token :type auth_ctx: adal.AuthenticationContext """ token = auth_ctx.acquire_token_with_username_password( 'https://graph.microsoft.com', ...
25.785714
63
0.699446
2d5ba0a91e2fc901529571343a445610ecd9364a
2,443
py
Python
public/.julia/v0.5/mosek/deps/src/mosek/8/tools/platform/linux64x86/python/2/setup.py
Giarcr0b/MVO_Tool
8f3348b8b56968febca8307acea3ebe1817fccae
[ "MIT" ]
1
2018-03-12T03:24:25.000Z
2018-03-12T03:24:25.000Z
public/.julia/v0.5/mosek/deps/src/mosek/8/tools/platform/linux64x86/python/2/setup.py
Giarcr0b/MVO_Tool
8f3348b8b56968febca8307acea3ebe1817fccae
[ "MIT" ]
null
null
null
public/.julia/v0.5/mosek/deps/src/mosek/8/tools/platform/linux64x86/python/2/setup.py
Giarcr0b/MVO_Tool
8f3348b8b56968febca8307acea3ebe1817fccae
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES import distutils.cmd import platform,sys import os,os.path import subprocess import ctypes class InstallationError(Exception): pass major,minor,_,_,_ = sys.version_info if major != 2 or minor < 5: print "Python 2.5+ required, g...
38.777778
106
0.643062
2d5ba47c96c8ae869e8567ddd5d6a6b89344bfe1
2,391
py
Python
samples/viewer/viewHouse.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
3
2020-07-03T13:03:08.000Z
2022-02-04T16:59:24.000Z
samples/viewer/viewHouse.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
null
null
null
samples/viewer/viewHouse.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
2
2021-07-25T08:51:41.000Z
2022-02-04T16:59:31.000Z
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions...
40.525424
123
0.753241
2d5bbd66a83ef899adff3b45d2b2a1cc57b109a8
54,650
py
Python
napari/_qt/qt_main_window.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_main_window.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_main_window.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
""" Custom Qt widgets that serve as native objects that the public-facing elements wrap. """ import inspect import sys import time import warnings from typing import Any, ClassVar, Dict, List, Optional, Sequence, Tuple from qtpy.QtCore import QEvent, QEventLoop, QPoint, QProcess, QSize, Qt, Slot from qtpy.QtGui import...
36.604153
109
0.622324
2d5bef13a3a6518ca920578d6cc461fcb1abd0d7
625
py
Python
chapter_3_featurization/pyaudio_help.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_3_featurization/pyaudio_help.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_3_featurization/pyaudio_help.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
# import required modules from pyAudioAnalysis import audioBasicIO from pyAudioAnalysis import audioFeatureExtraction import sys,json, os import numpy as np def convert_mono(filename): mono=filename[0:-4]+'_mono.wav' os.system('ffmpeg -i %s -ac 1 %s'%(filename,mono)) return mono filename=sys.argv[1]; pr...
23.148148
74
0.728
2d5c1e75e38f5583d05318d075fef0ac01f84aef
422
gyp
Python
content/browser/background_sync/background_sync_proto.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
content/browser/background_sync/background_sync_proto.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
content/browser/background_sync/background_sync_proto.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
{ 'targets': [ { # GN version: //content/browser/background_sync:background_sync_proto 'target_name': 'background_sync_proto', 'type': 'static_library', 'sources': [ 'background_sync.proto', ], 'variables': { 'proto_in_dir': '.', 'proto_out_dir': 'conten...
23.444444
75
0.542654