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
03622d2bea5b69bb3cd39b0a8ca6acd8476b6fd0
1,258
py
Python
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
class Player: def __init__(self, id, rating=1000, win_count=0, lose_count=0, win_streak=0, best_win_streak=0): self.id = id self.rating = rating self.win_count = win_count self.lose_count = lose_count self.win_streak = win_streak self.best_win_streak = best_win_streak...
27.347826
100
0.582671
03623b03e44c5ef505ed1d031eaf9f8ad2f3b2bf
3,322
py
Python
openbb_terminal/stocks/dark_pool_shorts/nyse_view.py
quincyhill/GamestonkTerminal
7b374b76629a963cef9a22b41bc8acbef70e876a
[ "MIT" ]
null
null
null
openbb_terminal/stocks/dark_pool_shorts/nyse_view.py
quincyhill/GamestonkTerminal
7b374b76629a963cef9a22b41bc8acbef70e876a
[ "MIT" ]
null
null
null
openbb_terminal/stocks/dark_pool_shorts/nyse_view.py
quincyhill/GamestonkTerminal
7b374b76629a963cef9a22b41bc8acbef70e876a
[ "MIT" ]
null
null
null
"""NYSE Short Data View""" __docformat__ = "numpy" import logging import os from typing import List, Optional import matplotlib.pyplot as plt import seaborn as sns from plotly import express as px from openbb_terminal.config_terminal import theme from openbb_terminal.config_plot import PLOT_DPI from openbb_terminal...
26.365079
109
0.619807
03626b26ec97f1f02e2a596fb8aa4b112199ea01
908
py
Python
429_N-ary-Tree-Level-Order-Traversal.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
429_N-ary-Tree-Level-Order-Traversal.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
429_N-ary-Tree-Level-Order-Traversal.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val, children): self.val = val self.children = children """ from collections import deque class Solution(object): def levelOrder(self, root): """ :type root: Node :rtype: List[List[int]] """ res ...
23.282051
48
0.449339
0362754aa375385265c683a414ee438ec62e37bb
2,102
py
Python
adpkd_segmentation/create_eval_configs.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
5
2021-07-09T16:10:56.000Z
2022-03-23T10:22:16.000Z
adpkd_segmentation/create_eval_configs.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
3
2021-06-23T02:47:42.000Z
2022-02-04T22:43:27.000Z
adpkd_segmentation/create_eval_configs.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
2
2021-06-05T22:19:29.000Z
2022-03-13T20:50:13.000Z
"""Creates evaluation configs from the train config""" import argparse import os import yaml from copy import deepcopy keys_to_copy = {"_MODEL_CONFIG", "_LOSSES_METRICS_CONFIG"} def create_config(config, new_conf_type): assert new_conf_type in {"val", "test"} config = deepcopy(config) new_conf = {} ...
31.848485
76
0.666032
0362980e48541f113c49c333a6b2778f25f412eb
3,609
py
Python
vr/common/balancer/varnish.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
null
null
null
vr/common/balancer/varnish.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
4
2017-04-02T13:28:36.000Z
2019-03-01T14:32:54.000Z
vr/common/balancer/varnish.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
2
2018-05-08T16:14:21.000Z
2022-03-26T07:43:50.000Z
import errno import posixpath import re from .base import SshBasedBalancer BACKEND_TPL = '{.backend={.host="%(host)s"; .port="%(port)s";}}' DIRECTOR_TPL = """ // This pool was written by Velociraptor. You probably shouldn't edit it. director %(pool)s round-robin { %(backends)s } """ def _render_backend(node): ...
34.04717
79
0.60737
0362b523a3ebda0c0a0cbdff2aaf37dafb4a04d8
1,952
py
Python
chapter2/intogen-mutations/develop/workflows/common/scan_projects.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/intogen-mutations/develop/workflows/common/scan_projects.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/intogen-mutations/develop/workflows/common/scan_projects.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
import os import subprocess from wok.task import task from intogensm.utils import list_projects from intogensm.config import GlobalConfig, PathsConfig @task.source() def scan_projects(project_out): log = task.logger config = GlobalConfig(task.conf) paths = PathsConfig(config) projects_path = paths.projects_pa...
27.492958
135
0.659836
0362cd07279c3cb389094edf752f4a6f3a5445af
8,891
py
Python
quenchmark/collectors/meta.py
qosf/quantum-bench
cfd9d0905a448e9a21154789fa8c10319312c77b
[ "MIT" ]
2
2021-05-22T20:30:14.000Z
2022-01-05T18:52:32.000Z
quenchmark/collectors/meta.py
qosf/quantum-bench
cfd9d0905a448e9a21154789fa8c10319312c77b
[ "MIT" ]
null
null
null
quenchmark/collectors/meta.py
qosf/quantum-bench
cfd9d0905a448e9a21154789fa8c10319312c77b
[ "MIT" ]
2
2021-11-18T19:38:59.000Z
2022-01-05T18:52:35.000Z
import datetime as dt from functools import reduce from difflib import SequenceMatcher as SM from cached_property import cached_property import github from quenchmark.config import OAUTH_TOKEN from quenchmark.plugins import Collector class MetaCollector(Collector): osi_license_ids = ["MPL-2.0", "GPL-2.0", "MIT"...
36.739669
110
0.602294
0362e621fcff3dd8dac1fab92ee14e8ea94c34f0
4,033
py
Python
tests/python_tests/__init__.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
1
2022-02-23T07:17:32.000Z
2022-02-23T07:17:32.000Z
tests/python_tests/__init__.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
null
null
null
tests/python_tests/__init__.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
1
2022-03-01T12:28:03.000Z
2022-03-01T12:28:03.000Z
# # __init__.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project 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 t...
31.755906
104
0.612199
036338e5388cde4b389e3390a087ae103ecb6894
3,431
py
Python
demos/demo_utils/case_study_graphics.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
28
2018-07-04T21:46:18.000Z
2022-01-10T07:48:59.000Z
demos/demo_utils/case_study_graphics.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
1
2018-10-03T22:40:00.000Z
2018-10-04T17:49:49.000Z
demos/demo_utils/case_study_graphics.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
5
2018-09-18T18:43:19.000Z
2020-11-28T22:07:22.000Z
import numpy as np import matplotlib.pyplot as plt from GPdoemd.marginal import taylor_first_order class Graphics: def __init__ (self, X, Y, mvar): self.X = X self.Y = Y assert len(X) == len(Y) self.N = len( X ) self.mvar = mvar self.mstd = np...
34.656566
82
0.495482
03634fdb7546e9482f0844bbd904526ebf35cb44
8,865
py
Python
trainer.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
7
2021-02-25T17:33:19.000Z
2022-02-25T08:11:12.000Z
trainer.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
3
2021-03-09T08:36:42.000Z
2021-12-08T02:45:07.000Z
trainer.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
1
2022-02-10T07:30:20.000Z
2022-02-10T07:30:20.000Z
import os from time import time import torch import numpy as np from tqdm import tqdm from utils import TranscriptEncoder, classes class Train: """ Trainer class which defines model training and evaluation methods. """ def __init__(self, model, train_iterator, valid_iterator, loss, metric, optimiz...
39.575893
155
0.568754
0363510489e8257b0737e9306560dbe6f3f0e028
8,456
py
Python
examples/Adafruit_Nokia_LCD/PCD8544.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
92
2015-01-23T09:38:40.000Z
2021-11-08T11:19:45.000Z
examples/Adafruit_Nokia_LCD/PCD8544.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
9
2015-01-31T14:38:23.000Z
2019-10-29T00:37:15.000Z
examples/Adafruit_Nokia_LCD/PCD8544.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
60
2015-03-11T06:58:17.000Z
2022-01-13T04:47:33.000Z
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
56
3,048
0.649953
036359d2051eb43c49d20af39013ddebceeb6360
10,163
py
Python
src/Environments/rendezvous/gridworld_env.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
4
2021-07-05T12:26:24.000Z
2022-03-22T23:31:30.000Z
src/Environments/rendezvous/gridworld_env.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
null
null
null
src/Environments/rendezvous/gridworld_env.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
3
2021-05-31T08:59:35.000Z
2022-02-28T05:20:55.000Z
import random, math, os import numpy as np from enum import Enum import sys sys.path.append('../') sys.path.append('../../') from reward_machines.sparse_reward_machine import SparseRewardMachine """ Enum with the actions that the agent can execute """ class Actions(Enum): up = 0 # move up right = 1 # move ...
30.428144
149
0.537046
036365687822f88be8ae433b2e3a94c63684b38e
2,723
py
Python
place_emu/util/measure_gen.py
nipunpruthi/placement-emulation
aff2ef1334e3b25e1f32202dfe34dfbed74c6d4a
[ "Apache-2.0" ]
8
2018-05-15T14:03:31.000Z
2021-11-12T17:33:53.000Z
place_emu/util/measure_gen.py
nipunpruthi/placement-emulation
aff2ef1334e3b25e1f32202dfe34dfbed74c6d4a
[ "Apache-2.0" ]
2
2018-10-24T07:52:44.000Z
2021-12-15T11:50:58.000Z
place_emu/util/measure_gen.py
nipunpruthi/placement-emulation
aff2ef1334e3b25e1f32202dfe34dfbed74c6d4a
[ "Apache-2.0" ]
5
2018-05-30T03:54:53.000Z
2022-02-11T15:15:54.000Z
# script for creating suitable measurement shell-scripts import yaml import json import argparse # read interface IPs from string and return as dict def get_interfaces(if_string): interfaces = {} # remove brackets and split at commas if_string = if_string.replace('(','').replace(')','') split_strings ...
36.797297
133
0.621741
03636b4ea16a8931f0e2f9e7f911a68f2a51d82c
1,767
py
Python
examples/python-guide/simple_example.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
59
2017-03-09T15:33:52.000Z
2021-09-16T05:47:10.000Z
examples/python-guide/simple_example.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
1
2017-03-09T07:43:02.000Z
2017-04-09T19:34:06.000Z
examples/python-guide/simple_example.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
17
2017-03-27T06:37:47.000Z
2020-05-28T09:17:38.000Z
# coding: utf-8 # pylint: disable = invalid-name, C0111 import json import lightgbm as lgb import pandas as pd from sklearn.metrics import mean_squared_error # load or create your dataset print('Load data...') df_train = pd.read_csv('../regression/regression.train', header=None, sep='\t') df_test = pd.read_csv('../re...
25.985294
79
0.681947
03638080e771d5538e0a3d13c9f9727eea03bfcb
3,246
py
Python
plorts/style.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
1
2016-08-02T21:57:46.000Z
2016-08-02T21:57:46.000Z
plorts/style.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
null
null
null
plorts/style.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
null
null
null
# Most of this is lifted from Seaborn (https://stanford.edu/~mwaskom/software/seaborn/) # # Copyright (c) 2012-2013, Michael L. Waskom # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistrib...
47.735294
97
0.750462
0363966b9407f4d429e5d755e0307ae4611e83d4
941
py
Python
src/fortrace/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
"""This package is used to create and control virtual machines (named guest in the further documentation) with the purpose to generate benign network traffic. The architecture of fortrace is as follows: We need a host system with a hypervisor installed. In our case we used Ubuntu 14.04 and Kernel Based Virtual Machin...
39.208333
119
0.790648
0363a95064f916a50a2fb9b9a5e3730f6510c39c
2,552
py
Python
aioyoyo/protocol.py
henry232323/oyoyo-asyncio
b7d63e7fbb30820f86b077bd76aed165038c61a9
[ "MIT" ]
1
2017-06-10T02:13:39.000Z
2017-06-10T02:13:39.000Z
aioyoyo/protocol.py
henry232323/aioyoyo
b7d63e7fbb30820f86b077bd76aed165038c61a9
[ "MIT" ]
null
null
null
aioyoyo/protocol.py
henry232323/aioyoyo
b7d63e7fbb30820f86b077bd76aed165038c61a9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright (c) 2016-2017, henry232323 # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify...
44.77193
77
0.710815
0363bb590941aff9a36ba22b62d996dceea38efd
19,681
py
Python
appengine/findit/pipelines/flake_failure/test/next_commit_position_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/pipelines/flake_failure/test/next_commit_position_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/pipelines/flake_failure/test/next_commit_position_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from dto.commit_id_range import CommitID from dto.int_range import IntRange from dto.step_metadata import StepMetadata from gae_libs import pipe...
41.697034
80
0.758346
0363c092e40b89899dc8f160f0a8366fd762e54a
714
py
Python
factor_gnn/layers.py
fy0cc/factor-inference-net
1ade2a91f5adf8f049f818183910797db56a70b4
[ "MIT" ]
null
null
null
factor_gnn/layers.py
fy0cc/factor-inference-net
1ade2a91f5adf8f049f818183910797db56a70b4
[ "MIT" ]
null
null
null
factor_gnn/layers.py
fy0cc/factor-inference-net
1ade2a91f5adf8f049f818183910797db56a70b4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from .mlp import MLP NDIM_HIDDEN = 64 class SigmoidWrapper(nn.Module): def __init__(self, model): super(SigmoidWrapper, self).__init__() self.model = model self.m = nn.Sigmoid() def forward(self, *args, **kwargs): return self.m(self.model(*...
26.444444
90
0.654062
0363e273ba63530b396bb57367685b743b692863
468
py
Python
sim/data_providers/__init__.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
5
2021-02-24T14:32:37.000Z
2022-01-05T16:37:26.000Z
sim/data_providers/__init__.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
149
2021-03-23T14:44:39.000Z
2022-03-31T06:09:07.000Z
sim/data_providers/__init__.py
LaudateCorpus1/nanotune
0ada354597b16f6dbb17ca7be01ab7668b6d5049
[ "MIT" ]
10
2021-03-29T13:36:38.000Z
2022-02-16T23:06:35.000Z
""" Set up data_providers namespace """ from .static_data_provider import StaticDataProvider from .passthrough_data_provider import PassthroughDataProvider from .qcodes_data_provider import QcodesDataProvider from .synthetic_pinchoff_data_provider import SyntheticPinchoffDataProvider from .delayed_data_provider import ...
52
75
0.899573
0363ed51666976b392e58b1b8d5f9cae42aae4ba
3,088
py
Python
src/morphforgeexamples/exset3_multicell_simulations/multicell_simulation020.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgeexamples/exset3_multicell_simulations/multicell_simulation020.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgeexamples/exset3_multicell_simulations/multicell_simulation020.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
35.090909
97
0.686528
036403b9595d307ea4e9b612d9383b45c52b8602
17,257
py
Python
src/python/pants/util/dirutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/util/dirutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/util/dirutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import atexit import errno import os import shutil import stat import tempfile import thr...
33.250482
120
0.701976
03643bf814c3acf8ac3896f17910523f207e0e59
1,509
py
Python
Assignment4/test_helperfunctions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment4/test_helperfunctions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment4/test_helperfunctions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
""" File where testing references are stores """ import pandas as pd import numpy as np import pytest from Assignment2.helper_functions import CleanData, WarpData, WarpAddress # Reference Dataframe for CleanData, WarpData testing df = pd.DataFrame( np.array( [ [1, 2, 3, 4, 5], [4, ...
23.952381
73
0.654738
03643edace33fa3e4502d9cfc48e8003044ac1ca
22,437
py
Python
nova/image/glance.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/image/glance.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/image/glance.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 OpenStack Foundation # 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.apach...
36.721768
79
0.621117
0364415c3b219d1b25fbb5d4cd1ef70e26b9f5ce
1,410
py
Python
plugins/poto.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
1
2020-10-29T15:44:57.000Z
2020-10-29T15:44:57.000Z
plugins/poto.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
null
null
null
plugins/poto.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
4
2020-10-28T09:02:35.000Z
2020-12-27T22:45:57.000Z
import logging from pikabot.utils import ItzSjDude logger = logging.getLogger(__name__) if 1 == 1: name = "Profile Photos" @ItzSjDude(outgoing=True, pattern="poto(.*)") async def potocmd(event): id = "".join(event.raw_text.split(maxsplit=2)[1:]) user = await event.get_reply_message() ...
36.153846
79
0.548227
03646f5a9d663c6f43a3afe7b94a8bf409ec8371
11,569
py
Python
nlisim/oldmodules/neutrophil.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
4
2021-05-21T15:46:15.000Z
2022-03-01T02:58:32.000Z
nlisim/oldmodules/neutrophil.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
10
2020-11-10T23:20:37.000Z
2022-03-12T01:34:47.000Z
nlisim/oldmodules/neutrophil.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
2
2020-12-16T14:24:26.000Z
2021-01-08T15:56:20.000Z
from enum import IntEnum import itertools from random import choice, shuffle from typing import Any, Dict, Tuple import attr import numpy as np from nlisim.cell import CellData, CellList from nlisim.coordinates import Point, Voxel from nlisim.grid import RectangularGrid from nlisim.module import ModuleModel, ModuleSt...
37.319355
100
0.578529
03648ff9868ff001b30ca0ef315cb4b310270bfa
1,019
py
Python
setup.py
jattenberg/feet
091867cdd38165b989fd416bfaa428a380238662
[ "MIT" ]
2
2020-08-03T05:28:54.000Z
2021-02-21T13:13:50.000Z
setup.py
jattenberg/feet
091867cdd38165b989fd416bfaa428a380238662
[ "MIT" ]
null
null
null
setup.py
jattenberg/feet
091867cdd38165b989fd416bfaa428a380238662
[ "MIT" ]
null
null
null
from setuptools import setup required_libraries = [ "allennlp", "beautifulsoup4", "convoys", "cycler", "faker", "flair", "gensim==3.4.0", "geopandas", "google_compute_engine", "html2text", "jupyter", "kiwisolver", "matplotlib", "numpy", "google_compute_engine...
19.596154
78
0.58685
03649f36ff0b468d9fef56d761c12ebceadbdb18
20,530
py
Python
tests/python/pants_test/backend/jvm/tasks/test_classpath_products.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_classpath_products.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_classpath_products.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from pant...
48.419811
123
0.696006
0364a299776cdc4644da80b41c0a6d83cd52ef7d
5,763
py
Python
experiments/vitchyr/probabilistic_goal_reaching/ant_full_state/exp_6_learned_and_fixed_laplacian_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/ant_full_state/exp_6_learned_and_fixed_laplacian_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/ant_full_state/exp_6_learned_and_fixed_laplacian_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.vitchyr.probabilistic_goal_reaching.launcher import \ probabilistic_goal_reaching_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( # env_id='FetchPush-v1', obse...
31.320652
86
0.5308
0364b94f68cce215bdd7c2e4006f6dec0fb01068
3,110
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/contacts/block_from_replies.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/contacts/block_from_replies.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/contacts/block_from_replies.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.588235
170
0.62926
036502b33d2e52a105881bc55201b7ce0f27b338
2,114
py
Python
metapool/amplipool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/amplipool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/amplipool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
import os import pandas as pd from metapool.plate import _decompress_well, _plate_position def assign_emp_index(plate_df, metadata): """Assign an EMP index to wells based on their compressed position Parameters ---------- plate_df: pd.DataFrame Object with a Well column, and other metadata v...
34.655738
79
0.657048
036522901eb4ac7f4bc8cdfeeb5382925ee6ebbd
193
py
Python
terrascript/external/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/external/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/external/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/external/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.444444
79
0.766839
03653fc527f6001d29ceef8ea1a98e542c2a29c3
10,198
py
Python
docs/practice-problem/Thomas/MaxTempPrediction.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
null
null
null
docs/practice-problem/Thomas/MaxTempPrediction.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
5
2021-07-20T19:11:39.000Z
2021-07-21T03:10:27.000Z
docs/practice-problem/Thomas/MaxTempPrediction.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
2
2021-02-25T15:43:59.000Z
2022-03-20T13:57:34.000Z
import pandas as pd from catboost import Pool import shap import numpy as np import sys from plotly.offline import init_notebook_mode from IPython.core.display import display, HTML import plotly.express as px from catboost import CatBoostRegressor import math from sklearn.metrics import mean_absolute_error import plotl...
25.883249
127
0.673171
036550592b7cfa9d668c1f0e344c64091907be1b
18,735
py
Python
postprocess/augments.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/augments.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/augments.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
from common import * from utility.draw import * from dataset.reader import * from dataset.transform import * from net.layer.mask import * ##-------------------------------------------------------------- AUG_FACTOR = 16 def draw_proposal(image,proposal): image = image.copy() for p in proposal: x0,y0,x...
33.218085
113
0.546037
03656af6ff3e38ad6251c6363e3394f1fb78eab4
4,379
py
Python
torchlib/deep_rl/algorithm/model_based/policy.py
vermouth1992/mbrl_hvac
2402b1bfa36dff74df669bd1bd1956eb8c346923
[ "MIT" ]
2
2020-12-22T10:02:59.000Z
2020-12-22T19:57:55.000Z
torchlib/deep_rl/algorithm/model_based/policy.py
Sayani21/mbrl-hvac
eb0e2213cc2734b1a8f83e485180cc622ffced5d
[ "MIT" ]
1
2022-03-12T00:52:44.000Z
2022-03-12T00:52:44.000Z
torchlib/deep_rl/algorithm/model_based/policy.py
Sayani21/mbrl-hvac
eb0e2213cc2734b1a8f83e485180cc622ffced5d
[ "MIT" ]
1
2021-07-19T15:40:26.000Z
2021-07-19T15:40:26.000Z
""" Policy Network for training imitation learning model. For discrete case, we use classifier. For continuous case, we use regressor. """ import numpy as np import torch import torch.nn as nn from torchlib.common import move_tensor_to_gpu, convert_numpy_to_tensor, enable_cuda from torchlib.deep_rl import BaseAgent fr...
32.679104
117
0.61087
0365767186638dd7795295dedce80571c43155f2
620
py
Python
tests/test_config.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-14T21:16:07.000Z
2020-07-09T07:30:44.000Z
tests/test_config.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-01T12:33:36.000Z
2020-04-01T12:33:49.000Z
tests/test_config.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test configs.""" from onyx.app import create_app from onyx.app_config import DevConfig, ProdConfig def test_production_config(): """Production config.""" app = create_app(config=ProdConfig) assert app.config['ENV'] == 'prod' assert app.config['DEBUG'] is False assert app....
29.52381
50
0.685484
0365772a377321dae35fc18c850d599e14095628
823
py
Python
largest_digit.py
xilix5688/StanCode
12041459f04c0fe20917dcec3cfff4ed4ae682f3
[ "MIT" ]
null
null
null
largest_digit.py
xilix5688/StanCode
12041459f04c0fe20917dcec3cfff4ed4ae682f3
[ "MIT" ]
null
null
null
largest_digit.py
xilix5688/StanCode
12041459f04c0fe20917dcec3cfff4ed4ae682f3
[ "MIT" ]
null
null
null
""" This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) # 5 print(find_largest_digit(281)) # 8 print(find_largest_digit(6)) ...
21.102564
58
0.680437
03658689e63484f3bfa319bd1d18c8ec5f61ef93
6,250
py
Python
demo/covid_video_classification.py
VectorInstitute/vector_cv_tools
37d5b4c41a83f15554994bf7d19d8d274282ee61
[ "MIT" ]
6
2021-06-10T03:10:34.000Z
2021-07-14T19:27:01.000Z
demo/covid_video_classification.py
VectorInstitute/vector_cv_tools
37d5b4c41a83f15554994bf7d19d8d274282ee61
[ "MIT" ]
null
null
null
demo/covid_video_classification.py
VectorInstitute/vector_cv_tools
37d5b4c41a83f15554994bf7d19d8d274282ee61
[ "MIT" ]
1
2021-11-28T20:03:50.000Z
2021-11-28T20:03:50.000Z
import streamlit as st import tempfile import os from os.path import join import random import torch import numpy as np import cv2 from model import all_models, get_model from vector_cv_tools.utils import VideoReader if torch.cuda.is_available(): device = torch.device('cuda') else: device = torch.device('cpu...
29.904306
89
0.61888
03658c4f1ff5fc2e9454478f78c315325cbc767a
19,729
py
Python
fairseq/data/summarization_dataset.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
fairseq/data/summarization_dataset.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
fairseq/data/summarization_dataset.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import numpy as np import torch from fairseq.data import FairseqDataset, data_utils logger = logging.getLogger(__name__) d...
39.937247
90
0.597445
0365917e3b08d8bcb978f439198a4fa2338683c9
3,058
py
Python
examples/logistic_regression_mine.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
null
null
null
examples/logistic_regression_mine.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
null
null
null
examples/logistic_regression_mine.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
null
null
null
import autograd.numpy as np from autograd import grad from autograd.test_util import check_grads def sigmoid(x): # This approximation of sigmoid performs better than sigmoid # return 0.5*(np.tanh(x) + 1) # The below is same formula as above when both expanded # return 1/( 1 + np.e**(-2*x)) ...
29.980392
117
0.64879
03659a7b357e03ee2e74fd36e96005b7dbaa7a58
7,323
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pool_database_activities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pool_database_activities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pool_database_activities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
43.850299
233
0.677591
0365b93e8dc51561f11e900a383b1bae79c67990
2,490
py
Python
tests/unit_tests/tasks/time_series_forecaster_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
3,979
2019-04-02T02:01:52.000Z
2022-03-31T16:53:14.000Z
tests/unit_tests/tasks/time_series_forecaster_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
939
2019-04-02T18:13:53.000Z
2022-03-31T16:25:08.000Z
tests/unit_tests/tasks/time_series_forecaster_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
826
2019-04-02T00:53:31.000Z
2022-03-31T10:11:02.000Z
# Copyright 2020 The AutoKeras Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
32.337662
80
0.739759
0365d81e0a81d072666346ab22509b7bbdd03304
934
py
Python
py_script/server/send_test/train_signal.py
felixfilipi/e-Eyes-Attendance-System
aab63baf1d234662cfadf54773a7b76449030d4a
[ "MIT" ]
2
2021-10-17T09:12:56.000Z
2021-10-17T13:23:17.000Z
py_script/server/send_test/train_signal.py
felixfilipi/e-Eyes-Attendance-System
aab63baf1d234662cfadf54773a7b76449030d4a
[ "MIT" ]
6
2021-08-16T10:19:58.000Z
2021-08-23T16:17:32.000Z
py_script/server/send_test/train_signal.py
felixfilipi/eEyes-Hackathon
e1cd4809af136265bd1fbdaf387f76ca4ce9d7b0
[ "MIT" ]
1
2021-08-11T10:24:14.000Z
2021-08-11T10:24:14.000Z
import sys import time import random import json import base64 import mysql.connector import paho.mqtt.client as mqtt broker = "mqtt.antares.id" port = 1883 rqi = "try" client = mqtt.Client(rqi) access_key = "c9ab16824dc3b3d4:c76af9ff466e3c4d" to = "/antares-cse/antares-id/e-eyes/send_file" topic = "/oneM2M/req/c9ab1...
19.061224
72
0.61242
0365f41a6e213a150edf58931afb4e4b684451c4
3,307
py
Python
venv/Lib/site-packages/pyrogram/raw/types/messages/messages_not_modified.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/messages/messages_not_modified.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/messages/messages_not_modified.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.011494
107
0.64681
0365fd084b55e1d6b7bed7d550e6d55db980f1a0
213
py
Python
onefeed/retriever/hackernews/items.py
dadaers/OneFeed
e16207418977078fee7cd7e9cf40519f7a9d462d
[ "Apache-2.0" ]
2
2020-05-26T13:32:02.000Z
2020-05-28T05:26:51.000Z
onefeed/retriever/hackernews/items.py
dadaers/OneFeed
e16207418977078fee7cd7e9cf40519f7a9d462d
[ "Apache-2.0" ]
null
null
null
onefeed/retriever/hackernews/items.py
dadaers/OneFeed
e16207418977078fee7cd7e9cf40519f7a9d462d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class HomepageItem(scrapy.Item): title = scrapy.Field() points = scrapy.Field() comments = scrapy.Field() link = scrapy.Field() source = scrapy.Field()
17.75
32
0.624413
0366498a50189fa9c3ee7c6f488cd84c98738bc2
2,857
py
Python
scrappers/get_tickers.py
dli-invest/fin_news_nlp
a7d18348f6cf6ebde3ff0f964d73d4ce5117ea4a
[ "Apache-2.0" ]
1
2022-02-12T18:01:30.000Z
2022-02-12T18:01:30.000Z
scrappers/get_tickers.py
dli-invest/fin_news_nlp
a7d18348f6cf6ebde3ff0f964d73d4ce5117ea4a
[ "Apache-2.0" ]
39
2021-10-22T04:58:27.000Z
2022-02-19T05:32:28.000Z
scrappers/get_tickers.py
dli-invest/fin_news_nlp
a7d18348f6cf6ebde3ff0f964d73d4ce5117ea4a
[ "Apache-2.0" ]
2
2021-10-02T19:43:50.000Z
2021-11-30T10:01:09.000Z
""" Grab stocks from cad tickers """ import pandas as pd class TickerControllerV2: """ Grabs cad_tickers dataframes and normalized them """ def __init__(self, cfg: dict): """ Extract yahoo finance tickers from website Consider using hardcoded csvs sheets for the tickers to ...
39.136986
141
0.59888
03665d7773ea87a4c2c7b48289fe5c5e9158786a
498
py
Python
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
import unittest from objects.member import Member class MemberTest(unittest.TestCase): def setUp(self): self.user = Member() def test_setMemberUsername(self): self.user.setUsername("username") self.assertEqual("username", self.user.username) def test_getMemberUsername(self...
22.636364
55
0.65261
03665e22c6306bca2e399c69f75b223b53bab3ff
6,795
py
Python
openpnm/phases/Air.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2021-07-20T13:56:57.000Z
2021-07-20T13:56:57.000Z
openpnm/phases/Air.py
yushun9897/OpenPNM
031894a53650c3193d767b0460c8ea2e66799825
[ "MIT" ]
null
null
null
openpnm/phases/Air.py
yushun9897/OpenPNM
031894a53650c3193d767b0460c8ea2e66799825
[ "MIT" ]
null
null
null
from openpnm.phases import GenericPhase import openpnm.models as mods class Air(GenericPhase): r""" Creates Phase object with preset models and values for air. Parameters ---------- network : OpenPNM Network object The network to which this phase object will be attached. project : Op...
52.269231
79
0.369684
036670bbc3626a6f559c7a5e006fac66f9e9e4f3
1,207
py
Python
wgctl/util/config.py
apognu/wgctl-py
93b069041c7ca55ae2af1cb415759c01f13fe235
[ "MIT" ]
22
2018-08-14T15:19:36.000Z
2021-12-01T04:26:48.000Z
wgctl/util/config.py
apognu/wgctl-py
93b069041c7ca55ae2af1cb415759c01f13fe235
[ "MIT" ]
null
null
null
wgctl/util/config.py
apognu/wgctl-py
93b069041c7ca55ae2af1cb415759c01f13fe235
[ "MIT" ]
2
2019-02-18T03:58:59.000Z
2021-01-20T21:47:09.000Z
import yaml from os import path from pathlib import Path from wgctl.util.cli import fatal def get_config(instance): config_path = '/etc/wireguard/{}.yml'.format(instance) if path.isfile(instance): config_path = instance instance = Path(instance).resolve().stem try: with open(config_path) as strea...
27.431818
62
0.70174
0366a0a559dbf2339c0ca8d12b2fe5305778dd41
4,513
py
Python
ai_ml_projects/masters_courses/nlp/classes.py
5aurabhpathak/src
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2021-07-07T06:51:18.000Z
2021-07-07T06:51:18.000Z
ai_ml_projects/masters_courses/nlp/classes.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
null
null
null
ai_ml_projects/masters_courses/nlp/classes.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2020-08-11T09:53:22.000Z
2020-08-11T09:53:22.000Z
#Object oriented aspect of code. Contains classes used by other modules from nltk.corpus import names class NounPhrase: def __init__(self, np): self.np = np self.gender = None self.name = " ".join(np.leaves()) self.person = 'third' self.number = None self.__calculat...
46.525773
286
0.538223
0366a3725b6736d06a853056bd249447196a9337
6,649
py
Python
salt/states/rabbitmq_user.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/states/rabbitmq_user.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/states/rabbitmq_user.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Manage RabbitMQ Users ===================== Example: .. code-block:: yaml rabbit_user: rabbitmq_user.present: - password: password - force: True - tags: - monitoring - user - perms: -...
29.95045
79
0.499624
0366c5b7a3e08b653411bbfa33bb07f4266aeed0
431
py
Python
count_stored_games.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
count_stored_games.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
4
2021-03-25T19:52:40.000Z
2021-12-12T17:57:11.000Z
count_stored_games.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
import pathlib from ttt_package.classes import TTTBase file_dir = pathlib.Path( "C:\\Users\\Ipgnosis\\Documents\\Github\\tic_tac_toe\\game_files") file_name = 'new_game_record.txt' file_path = file_dir / file_name # instantiate ML_base game_history = TTTBase(file_path) print("Count stored games for:", file_...
19.590909
70
0.75406
0366d6dabcadac8938c4b1e242433c1ab114d231
4,028
py
Python
alipay/aop/api/request/AlipayDataIotdataSearchlibraryBaiQueryRequest.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/AlipayDataIotdataSearchlibraryBaiQueryRequest.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/AlipayDataIotdataSearchlibraryBaiQueryRequest.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.AlipayDataIotdataSearchlibraryBaiQueryModel import AlipayDataIotdataSearchlibraryBaiQueryModel class AlipayDataIotdataSearchlibraryB...
27.77931
148
0.649454
0366fd77b9d50d1ff53f6f29681f7fc74bb15084
4,516
py
Python
scripts/example_Nernst_Planck_multiphysics_2d.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2021-07-20T13:56:57.000Z
2021-07-20T13:56:57.000Z
scripts/example_Nernst_Planck_multiphysics_2d.py
jgostick/openpnm
8298608a38f6aae4a96b0f3b9dd9b9e4460e8692
[ "MIT" ]
null
null
null
scripts/example_Nernst_Planck_multiphysics_2d.py
jgostick/openpnm
8298608a38f6aae4a96b0f3b9dd9b9e4460e8692
[ "MIT" ]
null
null
null
import openpnm as op from openpnm.phases import mixtures import numpy as np ws = op.Workspace() proj = ws.new_project() # ws.settings['loglevel'] = 20 """ Details about the continum and numerical model equations can be found on: Agnaou, M., Sadeghi, M. A., Tranter, T. G., & Gostick, J. (2020). Modeling tr...
37.322314
77
0.697963
0367353030a7a4e1e253147da6b2086bd60f72b8
6,950
py
Python
trax/rl/space_serializer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/space_serializer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/space_serializer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.02765
80
0.713525
03673bebb7bdf9c54157b66ac0a2568f111e7cd1
2,466
py
Python
automatization_scripts/tools/environment.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/environment.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/environment.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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: # # h...
31.21519
91
0.669505
036741bef60c708065824d4315fc2dbc5986045f
11,245
py
Python
modules/templates/GIMS/layouts.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/GIMS/layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/GIMS/layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Menu Layouts for GIMS License: MIT """ __all__ = ("S3MainMenuLayout", "S3AboutMenuLayout", "MA", "S3LanguageMenuLayout", "ML", "S3OrgMenuLayout", "OM", "S3PersonalMenuLayout", "MP", ) from gluon import curre...
35.812102
121
0.382036
036767f9deea527bd0dd54a1527f503e2f40266a
2,776
py
Python
taxamo/models/getDomesticSummaryReportOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/models/getDomesticSummaryReportOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/models/getDomesticSummaryReportOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
#!/usr/bin/env python """ Copyright 2014-2021 by Taxamo 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 applic...
40.823529
86
0.657781
03676bf7ffc49c0d7bb309a73d856e9e8da335b6
10,282
py
Python
datum/utils/common_utils.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
6
2020-05-17T10:03:24.000Z
2021-07-05T18:38:06.000Z
datum/utils/common_utils.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
2
2021-07-26T03:22:47.000Z
2022-02-09T23:33:33.000Z
datum/utils/common_utils.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
1
2021-06-14T14:49:38.000Z
2021-06-14T14:49:38.000Z
# Copyright 2020 The OpenAGI Datum Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
29.631124
99
0.663781
036774be6856536c68d430a9f16e6b12f3a70887
1,009
py
Python
onadata/libs/models/clone_xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/libs/models/clone_xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/libs/models/clone_xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 from django.contrib.auth.models import User from onadata.apps.viewer.models.data_dictionary import \ DataDictionary, upload_to from django.core.files.storage import default_storage from onadata.apps.logger.models.xform import XForm class CloneXForm: def __init__(self, xform, username): ...
33.633333
64
0.624381
036776bcb99c41650753b3273da5e042537e0cd9
1,789
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/xstatic/pkg/d3/__init__.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/lib/python2.7/site-packages/xstatic/pkg/d3/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/xstatic/pkg/d3/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
""" XStatic resource package See package 'XStatic' for documentation and basic tools. """ DISPLAY_NAME = 'D3' # official name, upper/lowercase allowed, no spaces PACKAGE_NAME = 'XStatic-%s' % DISPLAY_NAME # name used for PyPi NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar') ...
35.78
77
0.686976
036796b0dff55ce88a33f66bdb2acf38c71cfcb4
521
py
Python
RGUtil/RGCodeUtil.py
RengeRenge/renge-website
2e8ad6588616d64a9b484de60de145dc7c65576b
[ "MIT" ]
null
null
null
RGUtil/RGCodeUtil.py
RengeRenge/renge-website
2e8ad6588616d64a9b484de60de145dc7c65576b
[ "MIT" ]
null
null
null
RGUtil/RGCodeUtil.py
RengeRenge/renge-website
2e8ad6588616d64a9b484de60de145dc7c65576b
[ "MIT" ]
null
null
null
from enum import IntEnum class RGVerifyType(IntEnum): new = 0 bind = 1 forget_pwd = 2 class RGResCode(IntEnum): ok = 1000 not_existed = 1001 has_existed = 1002 insert_fail = 1003 del_fail = 1004 lack_param = 1005 update_fail = 1006 database_error = 1007 timeout = 1008...
18.607143
32
0.658349
0367a24300f2be6da3723b84e42e4741feb9d4d2
910
py
Python
main.py
avnes/pyrhout
eb9da39c1315633984539250d08599a99eb585eb
[ "MIT" ]
null
null
null
main.py
avnes/pyrhout
eb9da39c1315633984539250d08599a99eb585eb
[ "MIT" ]
null
null
null
main.py
avnes/pyrhout
eb9da39c1315633984539250d08599a99eb585eb
[ "MIT" ]
null
null
null
"""Show request headers""" import json import flask from waitress import serve app = flask.Flask(__name__) def get_json(headers) -> str: """Construct a str formatted like JSON""" body: dict = {} for key, value in headers.items(): body[key] = value return json.dumps(body, indent=2) @app.ro...
23.333333
70
0.645055
0367cf8a6a0467c55b19f060c2248f86743c26fa
1,395
py
Python
salt/runners/sysmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
salt/runners/sysmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/runners/sysmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' A Salt runner module to mirror and aggregate the Salt execution module of the same name ''' # Import Python libs import itertools # Import salt libs import salt.client import salt.output def __virtual__(): ''' Rename to sys ''' return 'sys' def doc(): ''' Collect all the sys.doc output ...
24.473684
77
0.626523
036830dd227bfa21125c7c10dab2950739848f8c
10,128
py
Python
tensorflow/tools/pip_package/setup.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2019-01-29T13:05:38.000Z
2019-01-29T13:05:38.000Z
tensorflow/tools/pip_package/setup.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
tensorflow/tools/pip_package/setup.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2019-12-20T01:12:47.000Z
2019-12-20T01:12:47.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...
34.684932
83
0.681082
03686c95ba3d172086e1e5c2f554bec02d8a90d9
1,193
py
Python
tests/ut/python/pass/test_micro_tuning.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/ut/python/pass/test_micro_tuning.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/ut/python/pass/test_micro_tuning.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.137931
142
0.755239
03687518de89490b226f98f6e4b68485d077d8d9
814
py
Python
alipay/aop/api/domain/AlipayOpenLotteryRegionGetModel.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/domain/AlipayOpenLotteryRegionGetModel.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/domain/AlipayOpenLotteryRegionGetModel.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.constant.ParamConstants import * class AlipayOpenLotteryRegionGetModel(object): def __init__(self): self._env = None @property def env(self): return self._env @env.setter def env(self, value): ...
19.853659
57
0.555283
03687e3c970b598139f36dbbaeedccd242b5bb9b
3,217
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/aio/_configuration.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 ...
47.308824
130
0.698788
03687f4369bbd047299cb58963a0630b01eec24a
9,338
py
Python
src/qfit/backbone.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
src/qfit/backbone.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
src/qfit/backbone.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
''' Excited States software: qFit 3.0 Contributors: Saulo H. P. de Oliveira, Gydo van Zundert, and Henry van den Bedem. Contact: vdbedem@stanford.edu Copyright (C) 2009-2019 Stanford University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
34.585185
95
0.642536
03688a59b88580fe09f329b71dc8d6499c55f68f
1,212
py
Python
clients/kratos/python/test/test_admin_update_identity_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_admin_update_identity_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_admin_update_identity_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
32.756757
446
0.749175
03688bdd2856083a9c51d5dcb71146a14b89a344
270
py
Python
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- from shoutbox.models import Shout from django.contrib.admin import site, ModelAdmin class ShoutModelAdmin(ModelAdmin): list_display = ('message', 'user', 'post_date') search_fields = ('message',) site.register(Shout, ShoutModelAdmin)
22.5
51
0.722222
03688e0baf36a68bf9c65bfdef50ba3de123ebaa
2,241
py
Python
env/env_wrapper.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
33
2019-06-06T13:59:51.000Z
2022-03-07T10:36:42.000Z
env/env_wrapper.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
8
2019-07-09T16:58:28.000Z
2022-02-10T00:27:39.000Z
env/env_wrapper.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
12
2019-06-07T10:43:12.000Z
2022-03-09T13:47:01.000Z
# ----------------------------------------------------------------------------- # @author: # Tingwu Wang # @brief: # The environment wrapper # ----------------------------------------------------------------------------- import init_path from util import dm_control_util import os # os.environ['DISABLE_M...
28.730769
80
0.601963
036899ab5316c3c5d02447c18c1ac34ff84a90cd
3,502
py
Python
tests/common/test_op/ascend/apply_adagrad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/apply_adagrad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/apply_adagrad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
39.348315
97
0.670474
0368b1638be129a8e74ab063adf5eea280f8c235
1,512
py
Python
segment.py
osmith93/str8ts
41e7942bdd1c3c58c81f3a9b5109a8486eb48dae
[ "MIT" ]
null
null
null
segment.py
osmith93/str8ts
41e7942bdd1c3c58c81f3a9b5109a8486eb48dae
[ "MIT" ]
null
null
null
segment.py
osmith93/str8ts
41e7942bdd1c3c58c81f3a9b5109a8486eb48dae
[ "MIT" ]
null
null
null
from board import Cell from typing import Set class Segment: horizontal = "horizontal" vertical = "vertical" def __init__(self, cells: Set[Cell], direction: str, maximum=9): self.lower_bound = 1 self.upper_bound = maximum self.cells = cells self.direction = direction ...
26.068966
75
0.60119
0368b97c30eeea0f36f6cd869c2c3eadf7c44cd5
1,037
py
Python
camper/twit/threads.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/twit/threads.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/twit/threads.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
import datetime import threading from time import sleep import twitter from django.conf import settings class SendTweetThread(threading.Thread): def __init__(self, initial_tweet, **kwargs): self.class_instance = initial_tweet.__class__ self.initial_tweet = self.current_tweet = initial_tweet ...
33.451613
82
0.637416
0368be81ee6a2a3d6d3109dbe954d47ced9cc459
622
py
Python
python/eggroll/roll_paillier_tensor/__init__.py
ZYKJShadow/eggroll
02b845c46cfb7a67459c6d842fa9ef3a02ae60ba
[ "Apache-2.0" ]
1
2020-03-26T07:21:49.000Z
2020-03-26T07:21:49.000Z
federatedml/encrypted_tensor/__init__.py
renzhenghang/FATE
c2adc4d40f6d54508bc49c94380aca63eea9db97
[ "Apache-2.0" ]
null
null
null
federatedml/encrypted_tensor/__init__.py
renzhenghang/FATE
c2adc4d40f6d54508bc49c94380aca63eea9db97
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 - now, Eggroll 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 ...
44.428571
75
0.745981
0368eaeb76cf85bc6ffe1d613bb340c7a750c145
2,807
py
Python
Assignment1/model.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
Assignment1/model.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
Assignment1/model.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
# Copyright (c) 2018-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import torch.nn as nn import torch.utils.data.dataloader class RNNModel(nn.Module): """Container module with an encoder, ...
38.986111
110
0.615248
03692e59b1571f63b79cc923ce60e21e3eaebf0e
2,537
py
Python
Assignment_3/Assignment3/src/Task3.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
Assignment_3/Assignment3/src/Task3.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
1
2021-02-02T23:14:05.000Z
2021-02-02T23:14:05.000Z
Assignment_3/Assignment3/src/Task3.py
thealphadollar/CS60050-ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 26 01:37:42 2020 @author: praveshj """ import numpy as np import math import random print("Data Loading. May Take Time....") X = np.genfromtxt('../data/tfidf.csv',delimiter = ' ') # print(X.shape) #Cosine Similarity and Distance will ...
26.427083
97
0.59598
036984d5754d1c18284e46921abd9eb9ea036f8c
7,869
py
Python
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from kinova_msgs/ArmPoseGoal.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import std_msgs.msg class ArmPoseGoal(genpy.Message): _md5sum = "3...
37.293839
236
0.645444
03698f9723e7b430d1b4523af6d6f612cc980827
2,184
py
Python
backend/config_app/config_ping_carto/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_ping_carto/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_ping_carto/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_socials_config = [ ### - - - - - - - - - - - - - - - ### ### CONFIG PING ### SOCIAL NETWORKS { "field" : "app_twitter", "content" : u"twitter", "icon_class" : "fab fa-twitter", "url" : "https://tw...
43.68
236
0.53022
03698f975ff64bab6db6583dab9509298ba035cd
2,482
py
Python
bot/exts/utils/announcements.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/utils/announcements.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/utils/announcements.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from bot.bot import Bot import bot.constants as constants class Announcements(commands.Cog): """ commands to subscribe and unsubscribe from the announcement notifications """ name = constants.Bot.name def __init__(self, bot: commands.Bot): ...
29.903614
106
0.609992
03699b279447f1352d2247cc84d122fc284f9801
3,995
py
Python
pywick/models/segmentation/testnets/psp_saeed.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/testnets/psp_saeed.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/testnets/psp_saeed.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
# Source: https://github.com/saeedizadi/binseg_pytoch/blob/master/models/pspnet.py import torch import torch.nn.init as init import torch.nn as nn from torchvision import models import torch.nn.functional as F import numpy as np import math def initialize_weights(method='kaiming', *models): for model in models: ...
33.571429
120
0.557196
0369b415091f22b509251cd382e8c512792b65e5
2,628
py
Python
examples/generator/mock_language/MockLanguageLexer.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
22
2021-11-30T21:52:30.000Z
2022-03-17T02:05:17.000Z
examples/generator/mock_language/MockLanguageLexer.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
51
2021-11-24T03:42:49.000Z
2022-03-25T20:51:24.000Z
examples/generator/mock_language/MockLanguageLexer.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
6
2021-11-30T22:36:49.000Z
2022-03-17T17:21:16.000Z
# Generated from MockLanguage.g4 by ANTLR 4.10.1 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): return [ 4,0,8,56,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2, 6...
36.5
103
0.549087
0369c7b8334914584da925c41981bd3d77c9e3f9
142
py
Python
lewis_emulators/mecfrf/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/mecfrf/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/mecfrf/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .device import SimulatedMecfrf from ..lewis_versions import LEWIS_LATEST framework_version = LEWIS_LATEST __all__ = ['SimulatedMecfrf']
23.666667
41
0.830986
0369c9427d0bba09ff471ce8dfe504a8d1295765
3,692
py
Python
screens/pause.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
screens/pause.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
screens/pause.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
2
2020-12-15T11:53:41.000Z
2021-01-07T01:09:33.000Z
''' Pause Screen Pause screen - This screen is displayed on top of the game when player presses escape during the game, and enters the pause menu. Each button is attached to a function, resume and quitToMainMenu output a string which is interpreted by the screens loop, wheres quitgame just kills the game. The reaso...
33.261261
76
0.529252
0369d1134be28112b02e3e0a8742f15e43077af9
752
py
Python
examples/histogram.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
1
2016-08-02T21:57:46.000Z
2016-08-02T21:57:46.000Z
examples/histogram.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
null
null
null
examples/histogram.py
brucespang/plorts
78194a64128a0bba9cdf49279bcc09807df62fcf
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import plorts import seaborn as sns plt.style.use(['plorts', 'plorts-web']) xmax = 2*np.pi f = lambda x,offset: (offset+1)*np.sin(x-offset) xs = np.arange(0,xmax,0.1) offsets = range(0,len(plorts.palettes.solarized)) offsets = [4,5,6,7] df = pd.Dat...
30.08
147
0.663564
0369fd292333f32fe23d7a5a704aa9919ac4bc79
1,084
py
Python
miniworld/model/network/backends/bridged/brctl/NetworkBackendBridged.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/backends/bridged/brctl/NetworkBackendBridged.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/backends/bridged/brctl/NetworkBackendBridged.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
from miniworld.Scenario import scenario_config from miniworld.model.network.backends.bridged.iproute2.NetworkBackendBridged import NetworkBackendBridgedIproute2 def NetworkBackendBridgedBrctl(): class NetworkBackendBridgedBrctl(NetworkBackendBridgedIproute2()): """ 1. Use brctl to setup and confi...
38.714286
113
0.710332
036a0d9a17d722f913e01f8eea60165b7b496813
2,751
py
Python
heroku_config.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
heroku_config.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
heroku_config.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import os class Var(object): APP_ID = int(os.environ.get("APP_ID", 6)) # 6 is a placeholder API_HASH = os.environ.get("API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e") STRING_SESSION = os.environ.get("STRING_SESSION", None) DB_URI = os.environ.get("DATABASE_URL", None) TEMP_DOWNLOAD_DIRECTORY = ...
49.125
120
0.706652
036ab9cb5383fdf02c6680d988d0627074b63e76
115
py
Python
tbonlineproject/userprofiles/admin.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
null
null
null
tbonlineproject/userprofiles/admin.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
3
2021-06-08T23:57:13.000Z
2022-01-13T03:42:01.000Z
tbonlineproject/userprofiles/admin.py
nathangeffen/tbonline-2
0d5869197e66a0057fa07cb99f21dde7f5b47c30
[ "MIT" ]
null
null
null
from django.contrib import admin from userprofiles.models import UserProfile admin.site.register(UserProfile)
23
44
0.826087
036abf83a9b0eb2d9764d42b8593640a67f4015a
24,696
py
Python
ocdeployer/deploy.py
bsquizz/ocdeployer
a99dddd481ee6e32de479d308676b2ffa3895200
[ "MIT" ]
13
2018-10-16T12:47:26.000Z
2021-01-27T19:31:28.000Z
ocdeployer/deploy.py
bsquizz/ocdeployer
a99dddd481ee6e32de479d308676b2ffa3895200
[ "MIT" ]
14
2018-11-09T09:40:05.000Z
2021-04-22T19:56:21.000Z
ocdeployer/deploy.py
bsquizz/ocdeployer
a99dddd481ee6e32de479d308676b2ffa3895200
[ "MIT" ]
16
2018-11-08T18:08:49.000Z
2022-03-27T03:46:17.000Z
""" Handles deploy logic for components """ import copy import importlib import json import logging import os import sys import threading import yaml import concurrent.futures from .config import merge_cfgs from .images import get_is_configs, import_images from .utils import apply_template, load_cfg_file, trigger_buil...
37.361573
100
0.637269
036ac24be2773e2e33d9b41b822bcd44f1a1c219
2,886
py
Python
scapy/scapy/tools/check_asdis.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/tools/check_asdis.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/tools/check_asdis.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function import getopt def usage(): print("""Usage: check_asdis -i <pcap_file> [-o <wrong_packets.pcap>] -v increase verbosity -d hexdiff packets that differ -z compress output pcap -a open pcap file in append mode""", file=sys.stderr) ...
28.294118
117
0.501386
036ac55b5e1a8b50c82fc86e866d260b6147e7e7
7,713
py
Python
cgen/hsm/ast.py
jszeman/chsm
0283d722553aea09477e039a718b9500d814f0ae
[ "MIT" ]
4
2021-04-16T18:28:00.000Z
2022-03-01T07:29:21.000Z
cgen/hsm/ast.py
xsession/chsm
1c502897c8fce56bb48ad49de6d642f2bb66ff95
[ "MIT" ]
6
2020-10-25T19:56:59.000Z
2022-03-24T05:00:10.000Z
cgen/hsm/ast.py
xsession/chsm
1c502897c8fce56bb48ad49de6d642f2bb66ff95
[ "MIT" ]
1
2021-05-27T07:01:28.000Z
2021-05-27T07:01:28.000Z
class Ast: def __init__(self): self.nodes = [] def __repr__(self): return ''.join([str(n) for n in self.nodes]) class Node: def __init__(self, node_type, **kwargs): self.node_type = node_type self.indent = 0 class Comment(Node): def __init__(self, text, **kwargs): ...
27.063158
110
0.54661
036aca2ccbf7289b06acba4f97012f170b1633a2
13,222
py
Python
tensorflow_asr/losses/rnnt_loss.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
608
2020-10-15T16:11:23.000Z
2022-03-28T21:23:55.000Z
tensorflow_asr/losses/rnnt_loss.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
174
2020-10-15T16:14:27.000Z
2022-03-28T11:48:56.000Z
tensorflow_asr/losses/rnnt_loss.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
191
2020-10-16T01:24:15.000Z
2022-03-28T10:30:55.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) and M. Yusuf Sarıgöz (@monatis) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
32.406863
120
0.629557
036afcd20480d436d2ee9b23455c4009e481821a
87
py
Python
starkcore/utils/host.py
starkinfra/core-python
f57a1dd70cb98f96c84d1d318fc21dcd26ecbb34
[ "MIT" ]
null
null
null
starkcore/utils/host.py
starkinfra/core-python
f57a1dd70cb98f96c84d1d318fc21dcd26ecbb34
[ "MIT" ]
null
null
null
starkcore/utils/host.py
starkinfra/core-python
f57a1dd70cb98f96c84d1d318fc21dcd26ecbb34
[ "MIT" ]
1
2022-03-15T17:42:52.000Z
2022-03-15T17:42:52.000Z
from .enum import Enum class StarkHost(Enum): infra = "infra" bank = "bank"
10.875
22
0.62069
036b2161145519d77899de8eb82ad5a4783fba2d
24,409
py
Python
fabric_cf/orchestrator/swagger_client/api/slivers_api.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
fabric_cf/orchestrator/swagger_client/api/slivers_api.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
9
2021-06-08T21:45:01.000Z
2021-12-03T15:39:48.000Z
fabric_cf/orchestrator/swagger_client/api/slivers_api.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
# coding: utf-8 """ Fabric Orchestrator API This is Fabric Orchestrator API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: kthare10@unc.edu Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and pyt...
43.822262
589
0.63198
036b624f7994e4356cd224eddade88deb0d7192e
389
py
Python
office365/sharepoint/files/file_version_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/files/file_version_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/files/file_version_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.sharepoint.files.file_version import FileVersion class FileVersionCollection(ClientObjectCollection): """Represents a collection of FileVersion.""" def __init__(self, context, resource_path=None): super(FileVe...
43.222222
88
0.820051
036b838e9d29d4acca971f584f2cd9658f448676
7,786
py
Python
alipay/aop/api/domain/House.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/domain/House.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/domain/House.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.constant.ParamConstants import * from alipay.aop.api.domain.HouseOwner import HouseOwner class House(object): def __init__(self): self._area_code = None self._built_year = None self._house_owners = None ...
34.451327
89
0.598639
036b8bd2f980ffa9a985d4da5d8a361bb0df1c93
20,497
py
Python
vplexapi-7.0.0/vplexapi/api/storage_array_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/api/storage_array_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/api/storage_array_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library...
45.247241
162
0.633751
036ba9cb9f1450609a6781e8db99f8c2fad9e68a
2,041
py
Python
alipay/aop/api/domain/AlipayBossFncAntbudgetCancelModel.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/domain/AlipayBossFncAntbudgetCancelModel.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/domain/AlipayBossFncAntbudgetCancelModel.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.constant.ParamConstants import * class AlipayBossFncAntbudgetCancelModel(object): def __init__(self): self._biz_budget_apply_code = None self._biz_type = None self._biz_uk_id = None @property def biz_b...
28.746479
93
0.618814
036bb8214276d00df5fe3da5ff3e84595cdc0b69
6,948
py
Python
pybie2d/kernels/high_level/stokes.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
11
2018-10-26T17:34:29.000Z
2020-04-27T21:21:33.000Z
pybie2d/kernels/high_level/stokes.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
pybie2d/kernels/high_level/stokes.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
""" This submodule provides higher-level wrappers for the Stokes Kernel Functions """ import numpy as np import numexpr as ne import numba import warnings from ...backend_defaults import get_backend from ... import have_fmm if have_fmm: from ... import FMM from ..low_level.stokes import Stokes_Kernel_Apply, Stok...
37.354839
80
0.588659