hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7089df20096a6a03930477e8e401ffe4dc43232
1,115
py
Python
setup.py
ajgomez529/google-maps-services-python
9c38623cdd2400caade224d9968abd1bce610daa
[ "Apache-2.0" ]
null
null
null
setup.py
ajgomez529/google-maps-services-python
9c38623cdd2400caade224d9968abd1bce610daa
[ "Apache-2.0" ]
null
null
null
setup.py
ajgomez529/google-maps-services-python
9c38623cdd2400caade224d9968abd1bce610daa
[ "Apache-2.0" ]
null
null
null
from setuptools import setup requirements = ["requests>=2.20.0,<3.0"] with open("README.md") as f: readme = f.read() with open("CHANGELOG.md") as f: changelog = f.read() setup( name="googlemaps", version="4.4.4", description="Python client library for Google Maps Platform", long_descriptio...
28.589744
68
0.632287
from setuptools import setup requirements = ["requests>=2.20.0,<3.0"] with open("README.md") as f: readme = f.read() with open("CHANGELOG.md") as f: changelog = f.read() setup( name="googlemaps", version="4.4.4", description="Python client library for Google Maps Platform", long_descriptio...
true
true
f7089dfe6fe74007cb8636beea498cb478d8602a
21,442
py
Python
auto_enc.py
jobcpf/auto_encrypted
39efd7b76e5efa9035654fd5cf9877a24a7caa08
[ "BSD-3-Clause" ]
null
null
null
auto_enc.py
jobcpf/auto_encrypted
39efd7b76e5efa9035654fd5cf9877a24a7caa08
[ "BSD-3-Clause" ]
null
null
null
auto_enc.py
jobcpf/auto_encrypted
39efd7b76e5efa9035654fd5cf9877a24a7caa08
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """ Auto Mount Encrypted Drives on external Credentials @Author: oliver.blakeman@carbonprojectfinance.co.uk @Date: 2018-07-25 Shebangs: (amend #!/ path at top based on env and app) ferret: #!/usr/bin/python """ # Standard import import sys import os import pwd import time # other from subpro...
39.634011
158
0.523878
import sys import os import pwd import time from subprocess import call, STDOUT, PIPE, Popen FNULL = open(os.devnull, 'w') import Tkinter as tk import logging logfile = "/tmp/auto_enc_test.log" logging.basicConfig(filename=logfile,level=logging.DEBUG) current_env = os.environ['HOME'] base_dir = os.path.join(curr...
true
true
f7089e12767a1d19a0a295981ad26d0728e640fe
139
py
Python
1170.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
1170.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1170.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
for n in range(int(input())): c=float(input()) aux=0 while c>1: c/=2 aux+=1 print(f"{aux} dias") aux=0
15.444444
29
0.460432
for n in range(int(input())): c=float(input()) aux=0 while c>1: c/=2 aux+=1 print(f"{aux} dias") aux=0
true
true
f7089e39411df691557a32c6561b3e8f84d6cb00
17,037
py
Python
lib/python3.8/site-packages/ansible/plugins/callback/__init__.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
4
2021-09-16T01:32:29.000Z
2022-03-24T07:32:10.000Z
lib/python3.8/site-packages/ansible/plugins/callback/__init__.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible/plugins/callback/__init__.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
38.545249
160
0.624523
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import difflib import json import os import sys import warnings from copy import deepcopy from ansible import constants as C from ansible.module_utils.common._collections_compat import MutableMapping from ansible.module_utils.si...
true
true
f7089ef67286d4bd93b7bbb603e0c655b36ca314
3,090
py
Python
docs/source/conf.py
swiftycloud/swifty
5167df9c1ce213fa14887d3bda28beb02f688e33
[ "MIT" ]
33
2019-04-16T06:28:16.000Z
2021-07-30T11:11:05.000Z
docs/source/conf.py
swiftycloud/swifty
5167df9c1ce213fa14887d3bda28beb02f688e33
[ "MIT" ]
null
null
null
docs/source/conf.py
swiftycloud/swifty
5167df9c1ce213fa14887d3bda28beb02f688e33
[ "MIT" ]
2
2019-04-23T15:09:40.000Z
2020-11-22T00:19:24.000Z
# -*- coding: utf-8 -*- # # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # # import os # import sys # sys.path.insert(0, os.path...
31.212121
79
0.721036
from recommonmark.parser import CommonMarkParser source_parsers = { '.md': CommonMarkParser, } templates_path = ['_templates'] source_suffix = ['.rst', '.md'] master_doc = 'index' project = u'Swifty' copyright = u'2017 The Swifty Authors' author = u'The Swifty Authors' # |version| and |release|, also use...
true
true
f7089f47db2e2b77a6377a7ce32ab1734102e04b
12,276
py
Python
src/fuzzysearch/substitutions_only.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
null
null
null
src/fuzzysearch/substitutions_only.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
null
null
null
src/fuzzysearch/substitutions_only.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
null
null
null
from collections import deque, defaultdict from itertools import islice from functools import wraps from fuzzysearch.common import FuzzySearchBase, Match, \ count_differences_with_maximum, get_best_match_in_group, group_matches from fuzzysearch.compat import text_type from fuzzysearch.search_exact import search_ex...
39.220447
95
0.646546
from collections import deque, defaultdict from itertools import islice from functools import wraps from fuzzysearch.common import FuzzySearchBase, Match, \ count_differences_with_maximum, get_best_match_in_group, group_matches from fuzzysearch.compat import text_type from fuzzysearch.search_exact import search_ex...
true
true
f7089fc1652a59fe4bfd3a036437c82422a909ff
4,551
py
Python
opensanctions/crawlers/us_trade_csl.py
opensanctions/opensanctions
7dff9597f982d8918699b2cde3c7c337a941622d
[ "MIT" ]
23
2022-02-09T12:50:36.000Z
2022-03-30T16:04:19.000Z
opensanctions/crawlers/us_trade_csl.py
opensanctions/opennames
39675797b0e70e71f54edff2b8e623e23aef9c15
[ "MIT" ]
10
2022-02-03T08:44:03.000Z
2022-03-21T15:27:40.000Z
opensanctions/crawlers/us_trade_csl.py
opensanctions/opennames
39675797b0e70e71f54edff2b8e623e23aef9c15
[ "MIT" ]
2
2022-02-16T11:51:05.000Z
2022-03-02T16:55:08.000Z
import json from banal import ensure_list from functools import cache from pantomime.types import JSON from requests.exceptions import RequestException from opensanctions.core import Dataset, Context from opensanctions import helpers as h FORMATS = ["%d %b %Y", "%d %B %Y", "%Y", "%b %Y", "%B %Y"] @cache def deref_u...
37
81
0.63964
import json from banal import ensure_list from functools import cache from pantomime.types import JSON from requests.exceptions import RequestException from opensanctions.core import Dataset, Context from opensanctions import helpers as h FORMATS = ["%d %b %Y", "%d %B %Y", "%Y", "%b %Y", "%B %Y"] @cache def deref_u...
true
true
f7089fd57cec358e4874c6bc3d56e045107f7023
6,383
py
Python
lottery_ticket/foundations/trainer.py
mitchellgordon95/lottery-ticket-hypothesis
3b2abee4b1e9ba00fe8501ac86652e2604736405
[ "Apache-2.0" ]
1
2019-06-05T03:13:48.000Z
2019-06-05T03:13:48.000Z
lottery_ticket/foundations/trainer.py
mitchellgordon95/lottery-ticket-hypothesis
3b2abee4b1e9ba00fe8501ac86652e2604736405
[ "Apache-2.0" ]
null
null
null
lottery_ticket/foundations/trainer.py
mitchellgordon95/lottery-ticket-hypothesis
3b2abee4b1e9ba00fe8501ac86652e2604736405
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.920732
80
0.704841
from lottery_ticket.foundations import paths from lottery_ticket.foundations import save_restore import tensorflow as tf def train(sess, dataset, model, optimizer_fn, training_len, output_dir, **params): optimize = optimizer_fn().minimize(model.loss) sess.run(tf.global_variables_initializer()) ini...
true
true
f708a0ea971eb7efea305a6a5c363b305b1237e7
30,838
py
Python
tensorflow_probability/python/experimental/mcmc/windowed_sampling_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/experimental/mcmc/windowed_sampling_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/experimental/mcmc/windowed_sampling_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2021 The TensorFlow Probability 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 ...
35.983664
94
0.646994
from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf import tensorflow_probability as tfp from tensorflow_probability.python.experimental import distribute from tensorflow_probability.python.experimental.mcmc import windowed_sampling from tensorflow_probability.python.internal im...
true
true
f708a2f9c97d4edc9089d4d6c7b978043dd53de3
4,813
py
Python
s3prl/downstream/voxceleb1/expert.py
andybi7676/s3prl
0e5acc5d499a629f946d561d87e8924ba3eb004b
[ "MIT" ]
3
2021-08-07T19:12:56.000Z
2022-03-29T15:16:31.000Z
s3prl/downstream/voxceleb1/expert.py
andybi7676/s3prl
0e5acc5d499a629f946d561d87e8924ba3eb004b
[ "MIT" ]
2
2021-07-28T20:35:59.000Z
2021-07-30T16:01:53.000Z
s3prl/downstream/voxceleb1/expert.py
andybi7676/s3prl
0e5acc5d499a629f946d561d87e8924ba3eb004b
[ "MIT" ]
2
2021-07-21T11:05:26.000Z
2021-07-22T09:46:38.000Z
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ expert.py ] # Synopsis [ the phone linear downstream wrapper ] # Author [ S3PRL ] # Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ] """******************...
37.897638
125
0.606898
import os import math import torch import random import pathlib import torch import torch.nn as nn from torch.utils.data import DataLoader, DistributedSampler from torch.distributed import is_initialized from torch.nn.utils.rnn import pad_sequence from ..model import * from .dataset import SpeakerClassifiDataset from...
true
true
f708a3ecd84ccc0740adfb8ca7ccc4b6f5725a25
1,031
gyp
Python
Dependencies/gyp-master/test/win/shard/shard_ref.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/win/shard/shard_ref.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/win/shard/shard_ref.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
# Copyright 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'refs_to_shard_external_lib', 'type': 'static_library', 'dependencies': [ # Make sure referenc...
24.547619
73
0.531523
{ 'targets': [ { 'target_name': 'refs_to_shard_external_lib', 'type': 'static_library', 'dependencies': [ 'shard.gyp:shard', ], 'sources': [ 'hello.cc', ], }, { 'target_name': 'refs_to_shard_external_exe', 'type': 'exec...
true
true
f708a40a4eec1b5655f85df4fa2c76a70a93f433
2,231
py
Python
singa_easy/modules/mod_modelslicing/utils/lr_scheduler.py
arielclj/singa-easy
fd4bc601a5501062936f874df14711a3cefa1346
[ "Apache-2.0" ]
6
2020-04-28T16:57:15.000Z
2021-08-07T13:06:28.000Z
singa_easy/modules/mod_modelslicing/utils/lr_scheduler.py
arielclj/singa-easy
fd4bc601a5501062936f874df14711a3cefa1346
[ "Apache-2.0" ]
41
2020-04-06T13:18:40.000Z
2021-01-20T04:29:50.000Z
singa_easy/modules/mod_modelslicing/utils/lr_scheduler.py
arielclj/singa-easy
fd4bc601a5501062936f874df14711a3cefa1346
[ "Apache-2.0" ]
10
2020-04-06T09:56:20.000Z
2022-03-21T09:18:51.000Z
from torch.optim.lr_scheduler import _LRScheduler from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.optim.lr_scheduler import CosineAnnealingLR class GradualWarmupScheduler(_LRScheduler): """ Gradually warm-up(increasing) learning rate in optimizer. Proposed in 'Accurate, Large Minibatch SGD: T...
39.839286
113
0.671896
from torch.optim.lr_scheduler import _LRScheduler from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.optim.lr_scheduler import CosineAnnealingLR class GradualWarmupScheduler(_LRScheduler): def __init__(self, optimizer, warmup_epoch, multiplier=1.0, scheduler=None): assert multiplier > 1., '...
true
true
f708a43e245048f8b85402378a032274e63bb224
13,612
py
Python
atomate/vasp/firetasks/glue_tasks.py
dongsenfo/atomate
01558e8c3e38470c02bc8b50c0ee3aa6198e5206
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/firetasks/glue_tasks.py
dongsenfo/atomate
01558e8c3e38470c02bc8b50c0ee3aa6198e5206
[ "BSD-3-Clause-LBNL" ]
1
2019-04-09T20:55:30.000Z
2019-04-09T21:30:24.000Z
atomate/vasp/firetasks/glue_tasks.py
dongsenfo/atomate
01558e8c3e38470c02bc8b50c0ee3aa6198e5206
[ "BSD-3-Clause-LBNL" ]
3
2018-09-01T00:08:51.000Z
2021-11-17T01:32:14.000Z
# coding: utf-8 from __future__ import division, print_function, unicode_literals, \ absolute_import import glob from pymatgen.analysis.elasticity.strain import Strain from pymatgen.io.vasp import Vasprun, zpath """ This module defines tasks that acts as a glue between other vasp Firetasks to allow communicatio...
41.754601
98
0.624082
from __future__ import division, print_function, unicode_literals, \ absolute_import import glob from pymatgen.analysis.elasticity.strain import Strain from pymatgen.io.vasp import Vasprun, zpath import gzip import os import re from pymatgen import MPRester from pymatgen.io.vasp.sets import get_vasprun_outcar...
true
true
f708a4b5c1c05df7983e5a7b61b02ba89c31901e
550
py
Python
experiments/issue488/issue488.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
experiments/issue488/issue488.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
experiments/issue488/issue488.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from downward import suites import common_setup CONFIGS = { 'astar_ipdb': [ '--search', 'astar(ipdb())'], 'astar_pdb': [ '--search', 'astar(pdb())'], 'astar_gapdb': [ '--search', ...
18.965517
54
0.54
from downward import suites import common_setup CONFIGS = { 'astar_ipdb': [ '--search', 'astar(ipdb())'], 'astar_pdb': [ '--search', 'astar(pdb())'], 'astar_gapdb': [ '--search', 'astar(gapdb())'], } exp = common_setup.I...
true
true
f708a57b69d36dd8f2b7f8ddd643b86675efe433
15,355
py
Python
comment/tests/test_utils.py
abhiabhi94/Comment
0956fb395399328ada5d35263307e452567b36aa
[ "MIT" ]
null
null
null
comment/tests/test_utils.py
abhiabhi94/Comment
0956fb395399328ada5d35263307e452567b36aa
[ "MIT" ]
null
null
null
comment/tests/test_utils.py
abhiabhi94/Comment
0956fb395399328ada5d35263307e452567b36aa
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from django.utils import timezone from django.core import signing, mail from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth.models import AnonymousUser from django.shortcuts import reverse from comment.conf import settings ...
42.068493
114
0.696711
from unittest import TestCase from unittest.mock import patch from django.utils import timezone from django.core import signing, mail from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth.models import AnonymousUser from django.shortcuts import reverse from comment.conf import settings ...
true
true
f708a65e39503b03d6e8b8b84ad95a20f948f77c
224
py
Python
example_project/carts/admin.py
aino/django-nimda
334709c64cb253c0d1b5676850bd2d8ff9b8bea4
[ "BSD-3-Clause" ]
null
null
null
example_project/carts/admin.py
aino/django-nimda
334709c64cb253c0d1b5676850bd2d8ff9b8bea4
[ "BSD-3-Clause" ]
7
2020-06-05T17:01:18.000Z
2022-03-11T23:12:34.000Z
example_project/carts/admin.py
aino/django-nimda
334709c64cb253c0d1b5676850bd2d8ff9b8bea4
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Cart, CartItem class CartItemInline(admin.TabularInline): model = CartItem @admin.register(Cart) class CartAdmin(admin.ModelAdmin): inlines = [CartItemInline]
18.666667
42
0.772321
from django.contrib import admin from .models import Cart, CartItem class CartItemInline(admin.TabularInline): model = CartItem @admin.register(Cart) class CartAdmin(admin.ModelAdmin): inlines = [CartItemInline]
true
true
f708a70e28dc3d5e7d2e9aa1e23cc76bac08c8a2
8,167
py
Python
pyflux/arma/tests/test_arima_laplace.py
ThomasHoppe/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
2,091
2016-04-01T02:52:10.000Z
2022-03-29T11:38:15.000Z
pyflux/arma/tests/test_arima_laplace.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
160
2016-04-26T14:52:18.000Z
2022-03-15T02:09:07.000Z
pyflux/arma/tests/test_arima_laplace.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
264
2016-05-02T14:03:31.000Z
2022-03-29T07:48:20.000Z
import numpy as np from pyflux.arma import ARIMA from pyflux.families import Laplace noise = np.random.normal(0,1,100) data = np.zeros(100) for i in range(1,len(data)): data[i] = 0.9*data[i-1] + noise[i] def test_no_terms(): """ Tests an ARIMA model with no AR or MA terms, and that the latent variabl...
42.536458
113
0.691564
import numpy as np from pyflux.arma import ARIMA from pyflux.families import Laplace noise = np.random.normal(0,1,100) data = np.zeros(100) for i in range(1,len(data)): data[i] = 0.9*data[i-1] + noise[i] def test_no_terms(): model = ARIMA(data=data, ar=0, ma=0, family=Laplace()) x = model.fit() asser...
true
true
f708a7e90edec4b5f614803eff0a40a50cd4cc90
2,533
py
Python
examples/example2.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
examples/example2.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
null
null
null
examples/example2.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
import pymel.core as pm s = pm.polySphere()[0] # second in list is the history node, if construction history is on c = pm.polyCube()[0] print c, s c.setTranslation( [0,2,0] ) s.setTranslation( [1,-2,0] ) g = pm.group( s, c, n='newGroup' ) print "The children of %s are %s" % (g, g.getChildren()) #print g.getChildren...
26.946809
106
0.717331
import pymel.core as pm s = pm.polySphere()[0] c = pm.polyCube()[0] print c, s c.setTranslation( [0,2,0] ) s.setTranslation( [1,-2,0] ) g = pm.group( s, c, n='newGroup' ) print "The children of %s are %s" % (g, g.getChildren()) print "difference =", c.translate.get() - s.translate.get() s2 = s.duplicate()[0] s2....
false
true
f708a81d6a696ba3b827ec15b66d87f5d15958c5
2,048
py
Python
kernel/examples/handler/component/vert_secureboost.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/examples/handler/component/vert_secureboost.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/examples/handler/component/vert_secureboost.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# Copyright 2021 Tianmian Tech. 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 applicable la...
39.384615
74
0.751953
from common.python.utils import log_utils from kernel.components.boosting.param import BoostingTreeParam from kernel.examples.handler.component.component_base import Component from kernel.examples.handler.interface import Input from kernel.examples.handler.interface import Output LOGGER = log_utils.get_logger() cl...
true
true
f708a978e4ac5b441e8bee7b68aea9849977d69b
2,239
py
Python
src/attendance.py
Subdue0/pyqt5-demo
aae13e1ab2ffcb2383303028a9c0dd3e3e153d38
[ "MIT" ]
null
null
null
src/attendance.py
Subdue0/pyqt5-demo
aae13e1ab2ffcb2383303028a9c0dd3e3e153d38
[ "MIT" ]
null
null
null
src/attendance.py
Subdue0/pyqt5-demo
aae13e1ab2ffcb2383303028a9c0dd3e3e153d38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5.QtWidgets import QApplication from Page.page import Page class Attendance(Page): def __init__(self, parent=None): super(Page, self).__init__(parent) self.setupUi(self) self.getDataFromDB() self.setRowHeader(self.row_sum) self.field = ['编号', '姓名', '迟到', '早退', '病假'...
22.846939
86
0.678428
from PyQt5.QtWidgets import QApplication from Page.page import Page class Attendance(Page): def __init__(self, parent=None): super(Page, self).__init__(parent) self.setupUi(self) self.getDataFromDB() self.setRowHeader(self.row_sum) self.field = ['编号', '姓名', '迟到', '早退', '病假', '事假', '旷工'] self.set...
true
true
f708a9b201c27dea1e1329bdb0da07f50d3fea38
22
py
Python
battleship/version.py
nickknudsen/battleship-python
788cf76c3349200f8a1e15f49ee2eee74fdb6e86
[ "MIT" ]
315
2016-12-29T17:42:39.000Z
2022-03-24T03:57:41.000Z
battleship/version.py
nickknudsen/battleship-python
788cf76c3349200f8a1e15f49ee2eee74fdb6e86
[ "MIT" ]
147
2017-01-19T17:45:08.000Z
2022-03-31T15:00:29.000Z
battleship/version.py
nickknudsen/battleship-python
788cf76c3349200f8a1e15f49ee2eee74fdb6e86
[ "MIT" ]
112
2016-12-29T12:56:52.000Z
2022-03-16T08:05:49.000Z
__version__ = "1.3.2"
11
21
0.636364
__version__ = "1.3.2"
true
true
f708aa27c15636ec86e4c678122b23f286f52bb0
3,204
py
Python
day15/day15.py
Daggy1234/AOC2020
4ee5cebb6640540f8a3b20e7c7ea37196d4c4ce9
[ "MIT" ]
1
2021-01-17T17:59:19.000Z
2021-01-17T17:59:19.000Z
day15/day15.py
Daggy1234/AOC2020
4ee5cebb6640540f8a3b20e7c7ea37196d4c4ce9
[ "MIT" ]
null
null
null
day15/day15.py
Daggy1234/AOC2020
4ee5cebb6640540f8a3b20e7c7ea37196d4c4ce9
[ "MIT" ]
null
null
null
import functools import time def timer(function): @functools.wraps(function) def wrapper(*args, **kwargs) -> float: time_list = [] ans = None for i in range(0, 10): start = time.perf_counter() ans = function(*args, **kwargs) end = time.perf_counter() ...
26.7
71
0.485955
import functools import time def timer(function): @functools.wraps(function) def wrapper(*args, **kwargs) -> float: time_list = [] ans = None for i in range(0, 10): start = time.perf_counter() ans = function(*args, **kwargs) end = time.perf_counter() ...
true
true
f708aaad810d4f1c0c9891020fc2450dbb9ec8db
1,849
py
Python
IRIS_data_download/IRIS_download_support/obspy/imaging/scripts/plot.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/imaging/scripts/plot.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/imaging/scripts/plot.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple script to plot waveforms in one or more files. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA from argparse import ArgumentParser from obspy import Stream, _...
36.254902
79
0.592212
from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * from argparse import ArgumentParser from obspy import Stream, __version__, read from obspy.core.util.base import ENTRY_POINTS from obspy.core.util.misc import MatplotlibBackend ...
true
true
f708aaf2d466e75e865e8659b2df3dd9d95762c0
7,025
py
Python
code/plotting/plot_evalrep.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
1
2019-08-27T10:05:41.000Z
2019-08-27T10:05:41.000Z
code/plotting/plot_evalrep.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
code/plotting/plot_evalrep.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Plots the power spectra and Fourier-space biases for the HI. # import numpy as np import os, sys import matplotlib.pyplot as plt from pmesh.pm import ParticleMesh from scipy.interpolate import InterpolatedUnivariateSpline as ius from nbodykit.lab import BigFileMesh, BigFileCatalog, FFTPower f...
36.21134
132
0.611103
import numpy as np import os, sys import matplotlib.pyplot as plt from pmesh.pm import ParticleMesh from scipy.interpolate import InterpolatedUnivariateSpline as ius from nbodykit.lab import BigFileMesh, BigFileCatalog, FFTPower from nbodykit.cosmology import Planck15, EHPower, Cosmology sys.path.append('../utils/') s...
true
true
f708ab43517a33dfe1a59f1d6d385c2e637e41da
4,892
py
Python
designate/tests/test_backend/test_nsd4.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
designate/tests/test_backend/test_nsd4.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
designate/tests/test_backend/test_nsd4.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # Author: Artom Lifshitz <artom.lifshitz@enovance.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....
35.194245
79
0.613042
import os import socket import ssl import eventlet import fixtures from mock import MagicMock from designate import exceptions from designate import objects from designate.tests.test_backend import BackendTestCase from designate.tests import resources from designate.backend import impl_nsd4 class NSD4ServerStub: ...
true
true
f708ad4593250f5cec6499371c6a716dfeb0eb8b
1,603
py
Python
generic_link_tracking/migrations/0001_initial.py
jonatron/django_generic_links
71c720b47380a665973543ef69109d34015e5069
[ "MIT" ]
null
null
null
generic_link_tracking/migrations/0001_initial.py
jonatron/django_generic_links
71c720b47380a665973543ef69109d34015e5069
[ "MIT" ]
null
null
null
generic_link_tracking/migrations/0001_initial.py
jonatron/django_generic_links
71c720b47380a665973543ef69109d34015e5069
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ] operations = [ migrations.CreateModel( name='GenericLink', fields=...
37.27907
114
0.561447
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ] operations = [ migrations.CreateModel( name='GenericLink', fields=[ ('id',...
true
true
f708ad495ce75529097465bc672b71eaac2e14bc
12,548
py
Python
custom_components/heartbeat/sensor.py
HausNet/hausmon-hass
3342fa4d01d3962ea6b07a143d64ffc61d07db05
[ "MIT" ]
null
null
null
custom_components/heartbeat/sensor.py
HausNet/hausmon-hass
3342fa4d01d3962ea6b07a143d64ffc61d07db05
[ "MIT" ]
null
null
null
custom_components/heartbeat/sensor.py
HausNet/hausmon-hass
3342fa4d01d3962ea6b07a143d64ffc61d07db05
[ "MIT" ]
null
null
null
"""Support for monitoring the local system for anomalous events.""" from __future__ import annotations import asyncio import time from dataclasses import dataclass import datetime import logging from typing import Any, Dict, Optional, List import pprint import voluptuous as vol from homeassistant.components import p...
35.749288
80
0.626474
from __future__ import annotations import asyncio import time from dataclasses import dataclass import datetime import logging from typing import Any, Dict, Optional, List import pprint import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.components.binary_sensor i...
true
true
f708ad710b2525cc93f4cc91eba0c88665a4cb0b
710
py
Python
app/core/management/commands/wait_for_db.py
Prajwol-Chhetri/recipe-app-api
db09cd7dfe27c68253428ae8e36fe125399aba5b
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
Prajwol-Chhetri/recipe-app-api
db09cd7dfe27c68253428ae8e36fe125399aba5b
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
Prajwol-Chhetri/recipe-app-api
db09cd7dfe27c68253428ae8e36fe125399aba5b
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution until the database is avaialable""" def handle(self, *args, **options): """Handle the comman...
30.869565
78
0.64507
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Waiting for database...') db_conn = None while not db_conn: ...
true
true
f708adf43b497e49417c34ed43afcd34566bbb08
3,535
py
Python
matrix_factorization/mf_keras.py
ashwanikumar04/ml-recommendation-engine
57a7c0d5ac073b976e40c17d8892a4b7291d08ed
[ "MIT" ]
null
null
null
matrix_factorization/mf_keras.py
ashwanikumar04/ml-recommendation-engine
57a7c0d5ac073b976e40c17d8892a4b7291d08ed
[ "MIT" ]
null
null
null
matrix_factorization/mf_keras.py
ashwanikumar04/ml-recommendation-engine
57a7c0d5ac073b976e40c17d8892a4b7291d08ed
[ "MIT" ]
null
null
null
import pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.utils import shuffle import tensorflow as tf from tensorflow import keras from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Embedding, Dot, Add, Flatten from tensorflow.keras.regularize...
28.508065
89
0.655728
import pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.utils import shuffle import tensorflow as tf from tensorflow import keras from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Embedding, Dot, Add, Flatten from tensorflow.keras.regularize...
true
true
f708ae2427e8e0e2382e2ff741c4fafc8c35c6ef
853
py
Python
Config.py
dreasine/Lyrics_generator
c742f632b42d8cc0dfa87da2b32f3e4993b0b971
[ "MIT" ]
null
null
null
Config.py
dreasine/Lyrics_generator
c742f632b42d8cc0dfa87da2b32f3e4993b0b971
[ "MIT" ]
null
null
null
Config.py
dreasine/Lyrics_generator
c742f632b42d8cc0dfa87da2b32f3e4993b0b971
[ "MIT" ]
null
null
null
#coding:utf-8 class Config(object): init_scale = 0.04 learning_rate = 0.001 max_grad_norm = 15 num_layers = 3 num_steps = 25 # number of steps to unroll the RNN for hidden_size = 1000 # size of hidden layer of neurons iteration = 40 save_freq = 5 #The step (counted by the number of iter...
38.772727
107
0.701055
class Config(object): init_scale = 0.04 learning_rate = 0.001 max_grad_norm = 15 num_layers = 3 num_steps = 25 hidden_size = 1000 iteration = 40 save_freq = 5 keep_prob = 0.5 batch_size = 32 model_path = './model/Model' save_time = 40 is_sample = True is_bea...
true
true
f708ae898023a88a8c10dbea4d3b4a59b626e0f7
5,366
py
Python
TF/TARNN/test_tarnn.py
RandolphVI/Question-Difficulty-Prediction
77b4b83b5bc747c5074926d7a37545a5d46ed343
[ "Apache-2.0" ]
29
2019-03-13T07:31:07.000Z
2022-03-21T02:09:32.000Z
TF/TARNN/test_tarnn.py
RandolphVI/Question-Difficulty-Prediction
77b4b83b5bc747c5074926d7a37545a5d46ed343
[ "Apache-2.0" ]
2
2020-12-30T02:17:00.000Z
2021-04-20T08:59:03.000Z
TF/TARNN/test_tarnn.py
RandolphVI/Question-Difficulty-Prediction
77b4b83b5bc747c5074926d7a37545a5d46ed343
[ "Apache-2.0" ]
11
2019-07-21T07:45:11.000Z
2022-01-28T09:28:42.000Z
# -*- coding:utf-8 -*- __author__ = 'Randolph' import os import sys import time import logging sys.path.append('../') logging.getLogger('tensorflow').disabled = True import tensorflow as tf from utils import checkmate as cm from utils import data_helpers as dh from utils import param_parser as parser from sklearn.me...
39.748148
110
0.623742
__author__ = 'Randolph' import os import sys import time import logging sys.path.append('../') logging.getLogger('tensorflow').disabled = True import tensorflow as tf from utils import checkmate as cm from utils import data_helpers as dh from utils import param_parser as parser from sklearn.metrics import mean_squar...
true
true
f708ae9eeb4e2946f5143c922dd31621f9c88830
6,093
py
Python
test_model_images.py
Ambattz/Intelligent_Traffic_Management_System
51c3100ddb3479538d8a6accbcc0ea9f751481a7
[ "MIT" ]
null
null
null
test_model_images.py
Ambattz/Intelligent_Traffic_Management_System
51c3100ddb3479538d8a6accbcc0ea9f751481a7
[ "MIT" ]
null
null
null
test_model_images.py
Ambattz/Intelligent_Traffic_Management_System
51c3100ddb3479538d8a6accbcc0ea9f751481a7
[ "MIT" ]
null
null
null
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image from object_detection....
42.3125
280
0.702445
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image from object_detection....
true
true
f708af28ca60caeeae8f3a4f7d0f575926c07fb3
12,524
py
Python
vegnoveg/vegnonveg-fulltraining-nnframe.py
intel-analytics/WorldBankPoC
49c19268601ff1aa7e396ddc5a8a23abfe73880e
[ "Apache-2.0" ]
3
2018-07-05T14:15:07.000Z
2019-04-29T09:29:11.000Z
vegnoveg/vegnonveg-fulltraining-nnframe.py
intel-analytics/WorldBankPoC
49c19268601ff1aa7e396ddc5a8a23abfe73880e
[ "Apache-2.0" ]
null
null
null
vegnoveg/vegnonveg-fulltraining-nnframe.py
intel-analytics/WorldBankPoC
49c19268601ff1aa7e396ddc5a8a23abfe73880e
[ "Apache-2.0" ]
3
2018-06-19T13:58:12.000Z
2019-11-06T01:20:14.000Z
# Databricks notebook source import pandas as pd from os import listdir from os.path import join, basename import struct import pickle import json import os from scipy import misc import datetime as dt from pyspark.sql.types import * from pyspark.sql.functions import udf from pyspark.ml.evaluation import MulticlassCla...
35.478754
211
0.690913
import pandas as pd from os import listdir from os.path import join, basename import struct import pickle import json import os from scipy import misc import datetime as dt from pyspark.sql.types import * from pyspark.sql.functions import udf from pyspark.ml.evaluation import MulticlassClassificationEvaluator from b...
true
true
f708b00b0a9edc4940fa8641402e3307b8e92005
21,917
py
Python
motion/components/structural.py
TUM-AAS/motron
2f8800d1d6e297fc4baab555ceb2d37f55841406
[ "MIT" ]
null
null
null
motion/components/structural.py
TUM-AAS/motron
2f8800d1d6e297fc4baab555ceb2d37f55841406
[ "MIT" ]
null
null
null
motion/components/structural.py
TUM-AAS/motron
2f8800d1d6e297fc4baab555ceb2d37f55841406
[ "MIT" ]
null
null
null
from typing import Tuple, Optional, List, Union import torch from torch.nn import * import math def gmm(x: torch.Tensor, w: torch.Tensor) -> torch.Tensor: return torch.einsum('ndo,bnd->bno', w, x) class GraphLinear(Module): def __init__(self, in_features: int, out_features: int): super().__init__() ...
42.067179
149
0.60793
from typing import Tuple, Optional, List, Union import torch from torch.nn import * import math def gmm(x: torch.Tensor, w: torch.Tensor) -> torch.Tensor: return torch.einsum('ndo,bnd->bno', w, x) class GraphLinear(Module): def __init__(self, in_features: int, out_features: int): super().__init__() ...
true
true
f708b0b4a2fca5c6fdf52063180014ee9d3f169f
3,060
py
Python
htmltreediff/test_util.py
PolicyStat/htmltreediff
8065e39653ac85647a2d8d1f4acf6e2fbb862b17
[ "BSD-3-Clause" ]
3
2015-04-04T20:35:17.000Z
2021-08-06T16:51:09.000Z
htmltreediff/test_util.py
tex/htmltreediff
ce5a94edd0cfb05ed5130aaed3f06c63668df127
[ "BSD-3-Clause" ]
14
2015-01-15T16:03:14.000Z
2020-03-23T16:29:02.000Z
htmltreediff/test_util.py
tex/htmltreediff
ce5a94edd0cfb05ed5130aaed3f06c63668df127
[ "BSD-3-Clause" ]
2
2017-05-16T04:17:46.000Z
2018-04-30T20:05:32.000Z
from htmltreediff.diff_core import Differ from htmltreediff.edit_script_runner import EditScriptRunner from htmltreediff.changes import ( split_text_nodes, sort_del_before_ins, _strip_changes_new, _strip_changes_old, ) from htmltreediff.util import ( minidom_tostring, node_compare, parse_min...
25.932203
79
0.658824
from htmltreediff.diff_core import Differ from htmltreediff.edit_script_runner import EditScriptRunner from htmltreediff.changes import ( split_text_nodes, sort_del_before_ins, _strip_changes_new, _strip_changes_old, ) from htmltreediff.util import ( minidom_tostring, node_compare, parse_min...
true
true
f708b1c76df52ba9d7f3092ae8e625da432ba56c
518
py
Python
SimPEG/electromagnetics/natural_source/__init__.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
1
2022-02-18T16:31:27.000Z
2022-02-18T16:31:27.000Z
SimPEG/electromagnetics/natural_source/__init__.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
SimPEG/electromagnetics/natural_source/__init__.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
""" module SimPEG.electromagnetics.natural_source SimPEG implementation of the natural source problem (including magenetotelluric, tipper and ZTEM) """ from . import utils from . import sources as Src from . import receivers as Rx from .survey import Survey, Data from .fields import Fields1DPrimarySecondary, Field...
27.263158
82
0.832046
from . import utils from . import sources as Src from . import receivers as Rx from .survey import Survey, Data from .fields import Fields1DPrimarySecondary, Fields3DPrimarySecondary from .simulation import Simulation1DPrimarySecondary, Simulation3DPrimarySecondary from . import sources from . import receivers from .s...
true
true
f708b24eec80e943958c6c09ca5f6ea763affe71
7,182
py
Python
uuv_teleop/scripts/vehicle_keyboard_teleop.py
pengzhi1998/uuv_simulator
42d276fd1cb4cd8ad3166b9d2b434543411c6fdd
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-10-20T09:20:34.000Z
2021-10-20T09:20:34.000Z
uuv_teleop/scripts/vehicle_keyboard_teleop.py
pengzhi1998/uuv_simulator
42d276fd1cb4cd8ad3166b9d2b434543411c6fdd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_teleop/scripts/vehicle_keyboard_teleop.py
pengzhi1998/uuv_simulator
42d276fd1cb4cd8ad3166b9d2b434543411c6fdd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 The UUV Simulator 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...
35.91
106
0.584935
from __future__ import print_function import os import time import sys, select, termios, tty import rospy import numpy as np from std_msgs.msg import Bool from geometry_msgs.msg import Twist, Accel, Vector3 class KeyBoardVehicleTeleop: def __init__(self): self.settings = termios.tcgetattr(sys.stdin...
true
true
f708b3261f5463444587bbbdfaa6a90f62be1e27
4,101
py
Python
influxdb_client/domain/variable_links.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/variable_links.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/variable_links.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa:...
26.288462
159
0.547671
import pprint import re import six class VariableLinks(object): openapi_types = { '_self': 'str', 'org': 'str', 'labels': 'str' } attribute_map = { '_self': 'self', 'org': 'org', 'labels': 'labels' } def __init__(self, _self=None, org=None, l...
true
true
f708b3c0e401d3177d103ade90529035f7330ba6
97
py
Python
tests/run/default_types_fwrap_doctest.py
wilsonify/fwrap
f2e20eb55eaa3de72905e2ef28198da00eebe262
[ "BSD-3-Clause" ]
23
2015-02-25T00:24:15.000Z
2021-09-08T01:35:45.000Z
tests/run/default_types_fwrap_doctest.py
fwrap/fwrap
61a56f2d0050096b4973d88e5f11cfac2ef01a4b
[ "BSD-3-Clause" ]
1
2021-09-08T01:45:02.000Z
2021-09-08T01:45:02.000Z
tests/run/default_types_fwrap_doctest.py
fwrap/fwrap
61a56f2d0050096b4973d88e5f11cfac2ef01a4b
[ "BSD-3-Clause" ]
4
2015-03-22T01:33:39.000Z
2021-09-09T15:25:44.000Z
from default_types_fwrap import * __doc__ = u''' >>> bar(100,200,300) == (1, 2.0, 3.0) True '''
13.857143
37
0.597938
from default_types_fwrap import * __doc__ = u''' >>> bar(100,200,300) == (1, 2.0, 3.0) True '''
true
true
f708b3fb94966bcfac0627771309e72db45d4e20
1,538
py
Python
apps/common/models.py
kwanj-k/ctrim_api
e3ed4afcbcc138400f219f3637b51514e2696e5c
[ "MIT" ]
1
2018-03-11T06:08:13.000Z
2018-03-11T06:08:13.000Z
apps/common/models.py
kwanj-k/ctrim_api
e3ed4afcbcc138400f219f3637b51514e2696e5c
[ "MIT" ]
4
2019-07-22T14:19:35.000Z
2022-02-10T09:13:08.000Z
apps/common/models.py
kwanj-k/ctrim_api
e3ed4afcbcc138400f219f3637b51514e2696e5c
[ "MIT" ]
null
null
null
from django.db import models class CapitalizeField(models.CharField): def __init__(self, *args, **kwargs): super(CapitalizeField, self).__init__(*args, **kwargs) def pre_save(self, model_instance, add): value = getattr(model_instance, self.attname, None) if value: value =...
30.156863
83
0.650845
from django.db import models class CapitalizeField(models.CharField): def __init__(self, *args, **kwargs): super(CapitalizeField, self).__init__(*args, **kwargs) def pre_save(self, model_instance, add): value = getattr(model_instance, self.attname, None) if value: value =...
true
true
f708b425a838a4e43cb89ce3167062b2ad9a31d7
943
py
Python
convert/convert.py
qyp1997/leetcoder
4c01f11e5138cbb9aa12b4f6ef0c4a60d25b92c2
[ "MIT" ]
null
null
null
convert/convert.py
qyp1997/leetcoder
4c01f11e5138cbb9aa12b4f6ef0c4a60d25b92c2
[ "MIT" ]
null
null
null
convert/convert.py
qyp1997/leetcoder
4c01f11e5138cbb9aa12b4f6ef0c4a60d25b92c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2020/10/21 10:39 @Auth : Qi @IDE : PyCharm @Title: 6. Z 字形变换 @Link : https://leetcode-cn.com/problems/zigzag-conversion/ """ class Solution: def convert(self, s: str, numRows: int) -> str: if numRows <= 0: return '' if numRows == 1: retu...
24.179487
59
0.397667
class Solution: def convert(self, s: str, numRows: int) -> str: if numRows <= 0: return '' if numRows == 1: return s ret = '' for i in range(numRows): tmp = i time = numRows * 2 - 2 while tmp < len(s): if i...
true
true
f708b523234576243dd72acacbe4d452a5ad4554
3,430
py
Python
setup.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
1
2019-12-08T16:18:16.000Z
2019-12-08T16:18:16.000Z
setup.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
4
2020-03-24T16:44:22.000Z
2021-02-02T21:54:26.000Z
setup.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
1
2019-03-26T03:01:02.000Z
2019-03-26T03:01:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Based on Kenneth Reitz's setup.py: # https://github.com/kennethreitz/setup.py # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup...
27.007874
87
0.637609
# https://github.com/kennethreitz/setup.py # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'nwswx' DESCRIPTION = 'A Python 3 client for...
true
true
f708b53394c167baaaa7923247a193908ac67370
1,028
py
Python
python-client/onesaitplatform/mqttclient/utils.py
javieronsurbe/onesait-cloud-platform-clientlibraries
832cb058b3144cbe56b1ac2cb88a040573741d66
[ "Apache-2.0" ]
14
2019-05-14T13:23:35.000Z
2019-12-24T14:49:02.000Z
python-client/onesaitplatform/mqttclient/utils.py
javieronsurbe/onesait-cloud-platform-clientlibraries
832cb058b3144cbe56b1ac2cb88a040573741d66
[ "Apache-2.0" ]
7
2019-11-13T09:38:03.000Z
2021-04-07T16:24:14.000Z
python-client/onesaitplatform/mqttclient/utils.py
javieronsurbe/onesait-cloud-platform-clientlibraries
832cb058b3144cbe56b1ac2cb88a040573741d66
[ "Apache-2.0" ]
9
2019-04-09T15:38:28.000Z
2021-03-24T13:10:14.000Z
from threading import Event class Message: def __init__(self, timeout=10): self._ready = Event() self._timeout = timeout self._response = None @property def result(self): received = self._ready.wait(timeout=self._timeout) if not received: raise MqttErro...
25.073171
81
0.63035
from threading import Event class Message: def __init__(self, timeout=10): self._ready = Event() self._timeout = timeout self._response = None @property def result(self): received = self._ready.wait(timeout=self._timeout) if not received: raise MqttErro...
true
true
f708b5fba4d0b3640baa91f053179f9e31692cc9
671
py
Python
src/utils/preprocessor.py
EternalImmortal/Real-time-emotion-classifier-mini-Xception
161f295d4be511f7e4cc700399ca37c48ea81f6a
[ "MIT" ]
null
null
null
src/utils/preprocessor.py
EternalImmortal/Real-time-emotion-classifier-mini-Xception
161f295d4be511f7e4cc700399ca37c48ea81f6a
[ "MIT" ]
null
null
null
src/utils/preprocessor.py
EternalImmortal/Real-time-emotion-classifier-mini-Xception
161f295d4be511f7e4cc700399ca37c48ea81f6a
[ "MIT" ]
null
null
null
import numpy as np # from scipy.misc import imread, imresize from scipy import misc def preprocess_input(x, v2=True): x = x.astype('float32') x = x / 255.0 if v2: x = x - 0.5 x = x * 2.0 return x def _imread(image_name): return misc.imread(image_name) def _imresize(image_array,...
23.137931
62
0.692996
import numpy as np from scipy import misc def preprocess_input(x, v2=True): x = x.astype('float32') x = x / 255.0 if v2: x = x - 0.5 x = x * 2.0 return x def _imread(image_name): return misc.imread(image_name) def _imresize(image_array, size): return misc.imresize(image_arr...
true
true
f708b63569034b151cc8bc23cfe647bf20e52cb7
618
py
Python
var/spack/repos/builtin/packages/py-neurolab/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-neurolab/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-neurolab/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyNeurolab(PythonPackage): """Simple and powerfull neural network library for pyth...
32.526316
95
0.731392
from spack.package import * class PyNeurolab(PythonPackage): homepage = "http://neurolab.googlecode.com/" pypi = "neurolab/neurolab-0.3.5.tar.gz" version('0.3.5', sha256='96ec311988383c63664f3325668f27c30561cf4349e3bc5420665c042a3b9191') depends_on('py-setuptools', type='build') depends_on...
true
true
f708b6dd3656aa570905a5bd46dc4d5ebef18b39
7,616
py
Python
conans/test/unittests/client/generators/pkg_config_test.py
sigmunjr/conan
ce173d25640d5c9cdd62b1c67598291be003633d
[ "MIT" ]
1
2020-11-07T21:25:57.000Z
2020-11-07T21:25:57.000Z
conans/test/unittests/client/generators/pkg_config_test.py
ttencate/conan
3dc4fb35cc3be9865f0ae480c89e6a58813d5076
[ "MIT" ]
null
null
null
conans/test/unittests/client/generators/pkg_config_test.py
ttencate/conan
3dc4fb35cc3be9865f0ae480c89e6a58813d5076
[ "MIT" ]
null
null
null
import unittest from conans.client.conf import get_default_settings_yml from conans.client.generators.pkg_config import PkgConfigGenerator from conans.model.build_info import CppInfo from conans.model.conan_file import ConanFile from conans.model.env_info import EnvValues from conans.model.ref import ConanFileReferenc...
36.266667
86
0.693015
import unittest from conans.client.conf import get_default_settings_yml from conans.client.generators.pkg_config import PkgConfigGenerator from conans.model.build_info import CppInfo from conans.model.conan_file import ConanFile from conans.model.env_info import EnvValues from conans.model.ref import ConanFileReferenc...
true
true
f708b85991c8dfcba354718ee1d392233e0b43f4
156
py
Python
src/decisionengine_modules/AWS/sources/BillingInfoSourceProxy.py
hyunwoo18/decisionengine_modules
a67462628c2074e768d0825edee4ee5d570030e0
[ "BSD-3-Clause" ]
null
null
null
src/decisionengine_modules/AWS/sources/BillingInfoSourceProxy.py
hyunwoo18/decisionengine_modules
a67462628c2074e768d0825edee4ee5d570030e0
[ "BSD-3-Clause" ]
null
null
null
src/decisionengine_modules/AWS/sources/BillingInfoSourceProxy.py
hyunwoo18/decisionengine_modules
a67462628c2074e768d0825edee4ee5d570030e0
[ "BSD-3-Clause" ]
null
null
null
from decisionengine.framework.modules import Source, SourceProxy BillingInfoSourceProxy = SourceProxy.SourceProxy Source.describe(BillingInfoSourceProxy)
26
64
0.878205
from decisionengine.framework.modules import Source, SourceProxy BillingInfoSourceProxy = SourceProxy.SourceProxy Source.describe(BillingInfoSourceProxy)
true
true
f708b96f67ceebcc32a1ac0dc93b639c6567d104
27
py
Python
search/serialize/tests/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
35
2018-12-18T02:51:09.000Z
2022-03-30T04:43:20.000Z
search/serialize/tests/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
172
2018-02-02T14:35:11.000Z
2018-12-04T15:35:30.000Z
search/serialize/tests/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
13
2019-01-10T22:01:48.000Z
2021-11-05T12:25:08.000Z
"""Serialization tests."""
13.5
26
0.666667
true
true
f708b9851df648db1d879ef81fdf4b02ee8f4efb
493
py
Python
output/models/ms_data/complex_type/ct_e008_xsd/ct_e008.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/complex_type/ct_e008_xsd/ct_e008.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/complex_type/ct_e008_xsd/ct_e008.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Dict @dataclass class FooType: class Meta: name = "fooType" value: str = field( default="", metadata={ "required": True, } ) any_attributes: Dict[str, str] = field( default_factory=dict, ...
17
43
0.527383
from dataclasses import dataclass, field from typing import Dict @dataclass class FooType: class Meta: name = "fooType" value: str = field( default="", metadata={ "required": True, } ) any_attributes: Dict[str, str] = field( default_factory=dict, ...
true
true
f708bab24562ef63a18b37d8b771cc69788e98b2
5,371
py
Python
pytorch_lightning/plugins/training_type/parallel.py
randommm/pytorch-lightning
10e87b7b7acbbad8fc12ec5c07638ed093547ef8
[ "Apache-2.0" ]
1
2021-07-22T14:06:43.000Z
2021-07-22T14:06:43.000Z
pytorch_lightning/plugins/training_type/parallel.py
randommm/pytorch-lightning
10e87b7b7acbbad8fc12ec5c07638ed093547ef8
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/parallel.py
randommm/pytorch-lightning
10e87b7b7acbbad8fc12ec5c07638ed093547ef8
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
36.787671
118
0.707876
import os from abc import ABC, abstractmethod from contextlib import contextmanager from typing import Any, List, Optional import torch from torch.nn.parallel import DistributedDataParallel import pytorch_lightning as pl from pytorch_lightning.overrides.base import unwrap_lightning_module from pytorch_lightning.plugi...
true
true
f708bacf347d7ba9da3a06c0436000a3c9c5d36a
724
gyp
Python
binding.gyp
manishmalik/Modsecurity-nodejs
fe198394dd4b062b6404a7b7c4000f8888c9a580
[ "MIT" ]
15
2017-04-21T20:23:02.000Z
2020-12-21T11:56:53.000Z
binding.gyp
manishmalik/Modsecurity-nodejs
fe198394dd4b062b6404a7b7c4000f8888c9a580
[ "MIT" ]
1
2016-08-07T05:04:32.000Z
2016-08-09T10:36:09.000Z
binding.gyp
manishmalik/Modsecurity-nodejs
fe198394dd4b062b6404a7b7c4000f8888c9a580
[ "MIT" ]
4
2016-06-18T21:31:32.000Z
2018-11-13T22:40:24.000Z
{ "targets": [ { "target_name": "modsecurity", "sources": [ "modsecurity_wrap.cxx" ], "include_dirs": ['/usr/include/modsecurity/',], "libraries": ['/usr/lib/libmodsecurity.a', '/usr/lib/libmodsecurity.so', '/usr/lib/libmodsecurity.a', '/usr/lib/libmodsecurity.so.3.0.0', ...
32.909091
53
0.569061
{ "targets": [ { "target_name": "modsecurity", "sources": [ "modsecurity_wrap.cxx" ], "include_dirs": ['/usr/include/modsecurity/',], "libraries": ['/usr/lib/libmodsecurity.a', '/usr/lib/libmodsecurity.so', '/usr/lib/libmodsecurity.a', '/usr/lib/libmodsecurity.so.3.0.0', ...
true
true
f708bb067419da2a8f90d27a3e62ee93b9af35d0
2,044
py
Python
grab/captcha/backend/gui.py
brabadu/grab
92b1d68ceeece3087e053064520261a7aef3bd02
[ "MIT" ]
1
2021-05-10T16:03:24.000Z
2021-05-10T16:03:24.000Z
grab/captcha/backend/gui.py
brabadu/grab
92b1d68ceeece3087e053064520261a7aef3bd02
[ "MIT" ]
null
null
null
grab/captcha/backend/gui.py
brabadu/grab
92b1d68ceeece3087e053064520261a7aef3bd02
[ "MIT" ]
null
null
null
import tempfile import webbrowser import time import os import pygtk import gtk try: from StringIO import StringIO except ImportError: from io import StringIO from grab import Grab from .base import CaptchaBackend pygtk.require('2.0') class CaptchaWindow(object): def __init__(self, path, solution): ...
25.873418
53
0.606654
import tempfile import webbrowser import time import os import pygtk import gtk try: from StringIO import StringIO except ImportError: from io import StringIO from grab import Grab from .base import CaptchaBackend pygtk.require('2.0') class CaptchaWindow(object): def __init__(self, path, solution): ...
true
true
f708bb09bee3270dd8d3eb7e6cd9129f9c54f611
54
py
Python
constants.py
I-question-this/metame
a055afde75e15d97a53731a223bfe5e5ba29c5ee
[ "MIT" ]
484
2016-08-08T01:49:49.000Z
2022-03-06T05:20:37.000Z
constants.py
I-question-this/metame
a055afde75e15d97a53731a223bfe5e5ba29c5ee
[ "MIT" ]
15
2016-08-08T01:59:36.000Z
2021-02-01T05:27:54.000Z
constants.py
I-question-this/metame
a055afde75e15d97a53731a223bfe5e5ba29c5ee
[ "MIT" ]
94
2016-08-08T02:47:17.000Z
2022-02-01T17:44:27.000Z
supported_archs = ["x86"] supported_bits = [32, 64]
13.5
26
0.666667
supported_archs = ["x86"] supported_bits = [32, 64]
true
true
f708bb468e7ab709812ea009bdf654073360cd69
2,275
py
Python
code/processing/growth_rates/2021-08-14_r1_DoubleKO_acetate/analysis.py
cremerlab/useless_expression
a6020674f0ae73b4cc6173de60a0ea93016ee562
[ "MIT" ]
null
null
null
code/processing/growth_rates/2021-08-14_r1_DoubleKO_acetate/analysis.py
cremerlab/useless_expression
a6020674f0ae73b4cc6173de60a0ea93016ee562
[ "MIT" ]
null
null
null
code/processing/growth_rates/2021-08-14_r1_DoubleKO_acetate/analysis.py
cremerlab/useless_expression
a6020674f0ae73b4cc6173de60a0ea93016ee562
[ "MIT" ]
null
null
null
#%% import numpy as np import pandas as pd import futileprot.viz import altair as alt import altair_saver import scipy.stats colors, palette = futileprot.viz.altair_style() # Add metadata DATE = '2021-08-14' RUN_NO = 1 STRAINS = 'DoubleKO' MEDIUM = 'acetate' # Load the measurement data data = pd.read_csv(f'./output...
32.971014
89
0.551648
import numpy as np import pandas as pd import futileprot.viz import altair as alt import altair_saver import scipy.stats colors, palette = futileprot.viz.altair_style() DATE = '2021-08-14' RUN_NO = 1 STRAINS = 'DoubleKO' MEDIUM = 'acetate' data = pd.read_csv(f'./output/{DATE}_r{RUN_NO}_{STRAINS}_{MEDIUM}_exponentia...
true
true
f708bc3b0e1b8efa4b672733fdae01f2f74c4bfb
142
py
Python
wxwork_hr_syncing/wizard/__init__.py
rainbow-studio-solution/wxwork
344a0a8f8f0ac364101a1bb4a98c132588118839
[ "MulanPSL-1.0" ]
9
2021-01-02T15:42:21.000Z
2021-08-13T08:09:16.000Z
wxwork_hr_syncing/wizard/__init__.py
rainbow-studio-solution/wxwork
344a0a8f8f0ac364101a1bb4a98c132588118839
[ "MulanPSL-1.0" ]
null
null
null
wxwork_hr_syncing/wizard/__init__.py
rainbow-studio-solution/wxwork
344a0a8f8f0ac364101a1bb4a98c132588118839
[ "MulanPSL-1.0" ]
4
2021-01-11T04:57:07.000Z
2021-05-21T06:01:55.000Z
# -*- coding: utf-8 -*- from . import wizard_wxwork_contacts_sync from . import wizard_wxwork_sync_tag from . import wizard_wxwork_sync_user
23.666667
41
0.788732
from . import wizard_wxwork_contacts_sync from . import wizard_wxwork_sync_tag from . import wizard_wxwork_sync_user
true
true
f708bcd4339a6533749a5be7215ccfd3de77d575
1,536
py
Python
rango/models.py
StandeBoerIsle/tango_with_django_project
bb2e3a54e7dbc10c3e6ab7832a53dc0c75121341
[ "MIT" ]
null
null
null
rango/models.py
StandeBoerIsle/tango_with_django_project
bb2e3a54e7dbc10c3e6ab7832a53dc0c75121341
[ "MIT" ]
null
null
null
rango/models.py
StandeBoerIsle/tango_with_django_project
bb2e3a54e7dbc10c3e6ab7832a53dc0c75121341
[ "MIT" ]
1
2018-02-20T15:46:10.000Z
2018-02-20T15:46:10.000Z
from __future__ import unicode_literals from django.db import models from django import forms from django.template.defaultfilters import slugify from django.contrib.auth.models import User from django.utils import timezone class Category(models.Model): name = models.CharField(max_length=128, unique=True) vie...
30.117647
75
0.71224
from __future__ import unicode_literals from django.db import models from django import forms from django.template.defaultfilters import slugify from django.contrib.auth.models import User from django.utils import timezone class Category(models.Model): name = models.CharField(max_length=128, unique=True) vie...
true
true
f708be84c637a1aff470e51a222399852d8dac30
3,127
py
Python
sensor_stick/src/sensor_stick/features.py
Fred159/3D-Perception
a23a42dc19d0a38e48beb5e7c0725e6d14c542f3
[ "MIT" ]
8
2018-12-05T06:18:25.000Z
2021-01-15T03:13:50.000Z
sensor_stick/src/sensor_stick/features.py
Fred159/3D-Perception
a23a42dc19d0a38e48beb5e7c0725e6d14c542f3
[ "MIT" ]
null
null
null
sensor_stick/src/sensor_stick/features.py
Fred159/3D-Perception
a23a42dc19d0a38e48beb5e7c0725e6d14c542f3
[ "MIT" ]
1
2020-05-11T02:30:31.000Z
2020-05-11T02:30:31.000Z
import matplotlib.colors import matplotlib.pyplot as plt import numpy as np from pcl_helper import * print('run features.py') def rgb_to_hsv(rgb_list): rgb_normalized = [1.0 * rgb_list[0] / 255, 1.0 * rgb_list[1] / 255, 1.0 * rgb_list[2] / 255] hsv_normalized = matplotlib.colors.rgb_to_hsv([[rgb_normalized]]...
39.0875
116
0.683722
import matplotlib.colors import matplotlib.pyplot as plt import numpy as np from pcl_helper import * print('run features.py') def rgb_to_hsv(rgb_list): rgb_normalized = [1.0 * rgb_list[0] / 255, 1.0 * rgb_list[1] / 255, 1.0 * rgb_list[2] / 255] hsv_normalized = matplotlib.colors.rgb_to_hsv([[rgb_normalized]]...
true
true
f708bf57521f7d9481aa81d8b11d1bb1fd26633a
2,945
py
Python
form_designer/views.py
LUKKIEN/django-form-designer
009e0870cae19e8570b9a480b6b64aee1dd38dfe
[ "BSD-3-Clause" ]
1
2015-03-03T20:37:07.000Z
2015-03-03T20:37:07.000Z
form_designer/views.py
piquadrat/django-form-designer
5ae7c3b00e538ada23d830d15424b557cac73017
[ "BSD-3-Clause" ]
null
null
null
form_designer/views.py
piquadrat/django-form-designer
5ae7c3b00e538ada23d830d15424b557cac73017
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.utils.translation import ugettext as _ from django.http import HttpResponseRedirect from django.conf import settings from django.contrib import messages from django.core.context_processors import cs...
40.902778
109
0.70017
from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.utils.translation import ugettext as _ from django.http import HttpResponseRedirect from django.conf import settings from django.contrib import messages from django.core.context_processors import cs...
true
true
f708c262f5a211812d82ac8ab406748ba1e16bbe
913
py
Python
share/qt/clean_mac_info_plist.py
yuancoins/BlackDiamondcoin
2eea1615f8e7dfaa97203b5d66b3ac7241f859d6
[ "MIT" ]
1
2020-01-12T20:20:45.000Z
2020-01-12T20:20:45.000Z
share/qt/clean_mac_info_plist.py
yuancoins/BlackDiamondcoin
2eea1615f8e7dfaa97203b5d66b3ac7241f859d6
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
yuancoins/BlackDiamondcoin
2eea1615f8e7dfaa97203b5d66b3ac7241f859d6
[ "MIT" ]
1
2019-08-22T12:51:26.000Z
2019-08-22T12:51:26.000Z
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the blackdiamondcoin-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "...
30.433333
109
0.730559
from string import Template from datetime import date bitcoinDir = "./"; inFile = bitcoinDir+"/share/qt/Info.plist" outFile = "blackdiamondcoin-Qt.app/Contents/Info.plist" version = "unknown"; fileForGrabbingVersion = bitcoinDir+"bitcoin-qt.pro" for line in open(fileForGrabbingVersion): lineArr = line.re...
false
true
f708c3199d4231ae99a6c0e5aafc7662e7c6bc86
9,291
py
Python
test/functional/feature_part_usbdevice.py
dmuralov/particl-core
ac4dc00b7cd6293329ff4bf3acaa65636238910a
[ "MIT" ]
null
null
null
test/functional/feature_part_usbdevice.py
dmuralov/particl-core
ac4dc00b7cd6293329ff4bf3acaa65636238910a
[ "MIT" ]
null
null
null
test/functional/feature_part_usbdevice.py
dmuralov/particl-core
ac4dc00b7cd6293329ff4bf3acaa65636238910a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2020 The Particl Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os import json import configparser from test_framework.test_falcon import ( FalconTestFramewo...
38.7125
158
0.6347
import os import json import configparser from test_framework.test_falcon import ( FalconTestFramework, isclose, getIndexAtProperty, ) from test_framework.test_framework import SkipTest from test_framework.util import assert_raises_rpc_error from test_framework.authproxy import JSONRPCException class US...
true
true
f708c3bb5a529fe11a122490916ffbb446bcaccc
5,304
py
Python
submit.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
null
null
null
submit.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
null
null
null
submit.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
1
2021-12-17T12:49:06.000Z
2021-12-17T12:49:06.000Z
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import DOTA_devkit.polyiou as polyiou import math import pdb def py_cpu_nms_poly_fast_np(d...
34
114
0.534691
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import DOTA_devkit.polyiou as polyiou import math import pdb def py_cpu_nms_poly_fast_np(d...
true
true
f708c565a30af39e3fe1c4a21b9dd18553b91c54
17,392
py
Python
nsot/api/serializers.py
narJH27/nsot
22e6a81c76147e55ab9a19eb55cdc741c5723fbc
[ "Apache-2.0" ]
null
null
null
nsot/api/serializers.py
narJH27/nsot
22e6a81c76147e55ab9a19eb55cdc741c5723fbc
[ "Apache-2.0" ]
null
null
null
nsot/api/serializers.py
narJH27/nsot
22e6a81c76147e55ab9a19eb55cdc741c5723fbc
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import ast from collections import OrderedDict import json import logging from django.contrib.auth import get_user_model from rest_framework import fields, serializers from rest_framework_bulk import BulkSerializerMixin, BulkListSerializer from . import auth from .. import exc,...
30.673721
79
0.626437
from __future__ import unicode_literals import ast from collections import OrderedDict import json import logging from django.contrib.auth import get_user_model from rest_framework import fields, serializers from rest_framework_bulk import BulkSerializerMixin, BulkListSerializer from . import auth from .. import exc,...
true
true
f708c660e4e2ca50541d552931d0c6fba439a8f4
5,069
py
Python
stonesoup/predictor/tests/test_kalman.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/predictor/tests/test_kalman.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
null
null
null
stonesoup/predictor/tests/test_kalman.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
null
null
null
# coding: utf-8 import datetime import pytest import numpy as np from ...models.transition.linear import ConstantVelocity from ...predictor.kalman import ( KalmanPredictor, ExtendedKalmanPredictor, UnscentedKalmanPredictor, SqrtKalmanPredictor) from ...types.prediction import GaussianStatePrediction from ...ty...
37.828358
95
0.655356
import datetime import pytest import numpy as np from ...models.transition.linear import ConstantVelocity from ...predictor.kalman import ( KalmanPredictor, ExtendedKalmanPredictor, UnscentedKalmanPredictor, SqrtKalmanPredictor) from ...types.prediction import GaussianStatePrediction from ...types.state import...
true
true
f708c66d9c43e6918050056e64a62284c29ad04e
1,997
py
Python
changeDetection.py
jials/CS4243-project
100d7ed1cbd379de3b2e65c16e037bf4afec0fb1
[ "MIT" ]
null
null
null
changeDetection.py
jials/CS4243-project
100d7ed1cbd379de3b2e65c16e037bf4afec0fb1
[ "MIT" ]
null
null
null
changeDetection.py
jials/CS4243-project
100d7ed1cbd379de3b2e65c16e037bf4afec0fb1
[ "MIT" ]
null
null
null
import numpy as np import cv2 import imageMarker lucas_kanade_params = dict( winSize= (4, 4), maxLevel= 3, #level of pyramids used criteria= (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03) ) def mark_features_on_all_images(images, features_coordinates): marked_images = [] marked_frame_...
31.698413
119
0.632949
import numpy as np import cv2 import imageMarker lucas_kanade_params = dict( winSize= (4, 4), maxLevel= 3, criteria= (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03) ) def mark_features_on_all_images(images, features_coordinates): marked_images = [] marked_frame_coordinates = [] la...
true
true
f708c78dacddea891ed254f73d442a2f1c1a0533
270
py
Python
python/testData/highlighting/multipleKeywordContainers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/highlighting/multipleKeywordContainers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/highlighting/multipleKeywordContainers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def handle(foo, **args, <error descr="multiple ** parameters are not allowed">**moreargs</error>): print(foo, args, moreargs) def handle(foo, **args: int, <error descr="multiple ** parameters are not allowed">**moreargs: int</error>): print(foo, args, moreargs)
54
108
0.688889
def handle(foo, **args, <error descr="multiple ** parameters are not allowed">**moreargs</error>): print(foo, args, moreargs) def handle(foo, **args: int, <error descr="multiple ** parameters are not allowed">**moreargs: int</error>): print(foo, args, moreargs)
false
true
f708c79acb0b72bf6f596c6e15d29009ca1ee58b
67,151
py
Python
Scripts/ANN_AllAnalysis_ClimateModels_v4-RandomNoise-TestWarmthGFDL.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
1
2022-02-12T11:56:54.000Z
2022-02-12T11:56:54.000Z
Scripts/ANN_AllAnalysis_ClimateModels_v4-RandomNoise-TestWarmthGFDL.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
null
null
null
Scripts/ANN_AllAnalysis_ClimateModels_v4-RandomNoise-TestWarmthGFDL.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
null
null
null
""" ANN for evaluating model biases, differences, and other thresholds using explainable AI (add warmth/cool GFDL-CM3 model only) Reference : Barnes et al. [2020, JAMES] Author : Zachary M. Labe Date : 20 July 2021 Version : 4 - subsamples random weight class (#8) for mmmean """ ### Import packages imp...
51.496166
355
0.420024
import sys import math import time import matplotlib.pyplot as plt import numpy as np import keras.backend as K from keras.layers import Dense, Activation from keras import regularizers from keras import metrics from keras import optimizers from keras.models import Sequential import tensorflow.keras as keras import te...
true
true
f708c7fb5daa5795a1afe4d156b806022b4a3826
19,116
py
Python
ansible/modules/cloud/rackspace/rax_files_objects.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/cloud/rackspace/rax_files_objects.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/cloud/rackspace/rax_files_objects.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # (c) 2013, Paul Durivage <paul.durivage@rackspace.com> # # This file is part of Ansible. # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (a...
30.43949
99
0.615191
ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: rax_files_objects short_description: Upload, download, and delete objects in Rackspace Cloud Files description: - Upload, download, and delete ...
true
true
f708c8fa7db92a7a71d90a6a40b14f43250d1014
678
py
Python
ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
479
2016-01-08T00:53:34.000Z
2022-03-22T10:28:19.000Z
ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
38
2017-12-29T17:09:04.000Z
2022-01-31T08:27:47.000Z
ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
103
2016-01-10T01:32:17.000Z
2021-12-24T17:21:06.000Z
class _OBJECT_ATTRIBUTES(_OBJECT_ATTRIBUTES): @classmethod def from_string(cls, path, attributes=OBJ_CASE_INSENSITIVE): # Directly on constructor ? self = cls() self.Length = ctypes.sizeof(self) self.RootDirectory = 0 self.ObjectName = ctypes.pointer(LSA_UNICODE_STRING.from_strin...
42.375
95
0.669617
class _OBJECT_ATTRIBUTES(_OBJECT_ATTRIBUTES): @classmethod def from_string(cls, path, attributes=OBJ_CASE_INSENSITIVE): self = cls() self.Length = ctypes.sizeof(self) self.RootDirectory = 0 self.ObjectName = ctypes.pointer(LSA_UNICODE_STRING.from_string(path)) self.Attrib...
true
true
f708cb03dff9c74d69c541a4405a739d71ae3c40
860
py
Python
tests/lib/test_script.py
lucasan123/BitgesellX-server
99e184f5e829dad7901d4ed4e4490ac8ddc6c538
[ "MIT" ]
null
null
null
tests/lib/test_script.py
lucasan123/BitgesellX-server
99e184f5e829dad7901d4ed4e4490ac8ddc6c538
[ "MIT" ]
null
null
null
tests/lib/test_script.py
lucasan123/BitgesellX-server
99e184f5e829dad7901d4ed4e4490ac8ddc6c538
[ "MIT" ]
null
null
null
import pytest from bitgesellx.lib.script import OpCodes, is_unspendable_legacy, is_unspendable_genesis @pytest.mark.parametrize("script, iug", ( (bytes([OpCodes.OP_RETURN]), False), (bytes([OpCodes.OP_RETURN]) + bytes([2, 28, 50]), False), (bytes([OpCodes.OP_0, OpCodes.OP_RETURN]), True), (bytes([OpC...
31.851852
88
0.70814
import pytest from bitgesellx.lib.script import OpCodes, is_unspendable_legacy, is_unspendable_genesis @pytest.mark.parametrize("script, iug", ( (bytes([OpCodes.OP_RETURN]), False), (bytes([OpCodes.OP_RETURN]) + bytes([2, 28, 50]), False), (bytes([OpCodes.OP_0, OpCodes.OP_RETURN]), True), (bytes([OpC...
true
true
f708cbdb70c458a183de5c672f8e50b1773e3d2a
974
py
Python
tests/test_worker_aio.py
chainsquad/python-graphenelib
6df90dbc116d8333f2d3db830818d9f22934e33f
[ "MIT" ]
83
2015-09-04T13:49:55.000Z
2022-03-30T21:13:54.000Z
tests/test_worker_aio.py
chainsquad/python-graphenelib
6df90dbc116d8333f2d3db830818d9f22934e33f
[ "MIT" ]
146
2015-09-23T19:07:16.000Z
2021-07-01T01:39:15.000Z
tests/test_worker_aio.py
chainsquad/python-graphenelib
6df90dbc116d8333f2d3db830818d9f22934e33f
[ "MIT" ]
70
2015-09-23T18:43:37.000Z
2021-11-12T14:58:29.000Z
# -*- coding: utf-8 -*- import aiounittest from datetime import datetime from .fixtures_aio import fixture_data, Worker, Workers, Account from graphenecommon import exceptions class Testcases(aiounittest.AsyncTestCase): def setUp(self): fixture_data() async def test_worker(self): w = await Wo...
32.466667
72
0.678645
import aiounittest from datetime import datetime from .fixtures_aio import fixture_data, Worker, Workers, Account from graphenecommon import exceptions class Testcases(aiounittest.AsyncTestCase): def setUp(self): fixture_data() async def test_worker(self): w = await Worker("1.14.139") ...
true
true
f708cdb5883a2e4ef8a0b863ae08e582d5757825
2,436
py
Python
integration_tests/test_suites/celery-k8s-integration-test-suite/conftest.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-01-31T19:16:29.000Z
2021-01-31T19:16:29.000Z
integration_tests/test_suites/celery-k8s-integration-test-suite/conftest.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
null
null
null
integration_tests/test_suites/celery-k8s-integration-test-suite/conftest.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2019-09-11T03:02:27.000Z
2019-09-11T03:02:27.000Z
# pylint: disable=unused-import import os import docker import pytest from dagster_celery_k8s.launcher import CeleryK8sRunLauncher from dagster_k8s_test_infra.helm import TEST_AWS_CONFIGMAP_NAME from dagster_k8s_test_infra.integration_utils import image_pull_policy from dagster_test.test_project import build_and_tag_t...
32.052632
100
0.721675
import os import docker import pytest from dagster_celery_k8s.launcher import CeleryK8sRunLauncher from dagster_k8s_test_infra.helm import TEST_AWS_CONFIGMAP_NAME from dagster_k8s_test_infra.integration_utils import image_pull_policy from dagster_test.test_project import build_and_tag_test_image, get_test_project_dock...
true
true
f708cdc6ccb2bec72bbd500c4dbdbfa7b65f8e8d
1,633
py
Python
My_AutoML/_legacy/__init__.py
PanyiDong/AutoML
4d981b0287fa27d7a38f029e4b20b3a89e1de4f9
[ "MIT" ]
2
2022-03-03T16:24:08.000Z
2022-03-03T17:17:28.000Z
My_AutoML/_legacy/__init__.py
PanyiDong/My_AutoML
510727bd797e4f6fa213939c62d1d7601952e491
[ "MIT" ]
null
null
null
My_AutoML/_legacy/__init__.py
PanyiDong/My_AutoML
510727bd797e4f6fa213939c62d1d7601952e491
[ "MIT" ]
null
null
null
""" File: __init__.py Author: Panyi Dong GitHub: https://github.com/PanyiDong/ Mathematics Department, University of Illinois at Urbana-Champaign (UIUC) Project: My_AutoML Latest Version: 0.2.0 Relative Path: /My_AutoML/_legacy/__init__.py File Created: Thursday, 7th April 2022 3:59:55 pm Author: Panyi Dong (panyid2@i...
35.5
78
0.784446
from My_AutoML._hpo._legacy import ( AutoTabular, AutoTabularClassifier, AutoTabularRegressor, )
true
true
f708ce1cc05e059b422d58631ec18ea706b397a7
2,612
py
Python
bokeh_plot.py
ulrica221/used_car_playground
ff99ebc6bf256bb4d90be979c90cbd54479a9959
[ "MIT" ]
null
null
null
bokeh_plot.py
ulrica221/used_car_playground
ff99ebc6bf256bb4d90be979c90cbd54479a9959
[ "MIT" ]
null
null
null
bokeh_plot.py
ulrica221/used_car_playground
ff99ebc6bf256bb4d90be979c90cbd54479a9959
[ "MIT" ]
null
null
null
from bokeh.io import show, output_notebook from bokeh.models import (CDSView, ColorBar, ColumnDataSource, CustomJS, CustomJSFilter, GeoJSONDataSource, HoverTool, LinearColorMapper, Slider) from bokeh.layouts import column, row, widgetbox # p...
45.034483
112
0.517228
from bokeh.io import show, output_notebook from bokeh.models import (CDSView, ColorBar, ColumnDataSource, CustomJS, CustomJSFilter, GeoJSONDataSource, HoverTool, LinearColorMapper, Slider) from bokeh.layouts import column, row, widgetbox fro...
true
true
f708ce5f44d667ef8e7f39018776b1547561c78b
31,248
py
Python
kscore/serialize.py
WeiZhixiong/ksc-sdk-python
a93237ce376e107eaae644678ef6b99819a9f8eb
[ "Apache-2.0" ]
53
2016-09-21T15:52:14.000Z
2021-12-23T09:23:00.000Z
kscore/serialize.py
WeiZhixiong/ksc-sdk-python
a93237ce376e107eaae644678ef6b99819a9f8eb
[ "Apache-2.0" ]
27
2016-09-21T15:24:43.000Z
2021-11-18T08:38:38.000Z
kscore/serialize.py
WeiZhixiong/ksc-sdk-python
a93237ce376e107eaae644678ef6b99819a9f8eb
[ "Apache-2.0" ]
68
2016-09-06T10:33:09.000Z
2021-11-16T07:13:03.000Z
# Copyright 2014 ksyun.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" fil...
40.476684
79
0.634633
import re import base64 from xml.etree import ElementTree import calendar from kscore.compat import six from kscore.compat import json, formatdate from kscore.utils import parse_to_aware_datetime from kscore.utils import percent_encode from kscore import validate DEFAULT_TIMESTAMP_FORMAT = 'iso8601' ISO8601 = '%Y-%...
true
true
f708cecc49ed56d9057dcff2713d8f85cfda72a4
9,432
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
63.302013
172
0.791031
from typing import Any, Optional, TYPE_CHECKING from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential from ._configuration_async import ComputeManagementClientConfiguration from .operatio...
true
true
f708ceee9ccbcb860ce2b2f569a32b4453f38050
2,392
py
Python
custom/penn_state/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
custom/penn_state/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
custom/penn_state/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
import datetime from dimagi.ext.couchdbkit import (Document, StringProperty, ListProperty, DictProperty, DateProperty) from corehq.apps.groups.models import Group from .constants import * class LegacyWeeklyReport(Document): """ This doc stores the aggregate weekly results per site. Example: ...
30.278481
75
0.539716
import datetime from dimagi.ext.couchdbkit import (Document, StringProperty, ListProperty, DictProperty, DateProperty) from corehq.apps.groups.models import Group from .constants import * class LegacyWeeklyReport(Document): domain = StringProperty() site = StringProperty() week_end_date = DatePrope...
true
true
f708cef5f660495ed8e57399503b12749a716007
121,273
py
Python
tests/unit/gapic/gaming_v1beta/test_game_server_clusters_service.py
LaudateCorpus1/python-game-servers
9e22e6dd4e2543d694e33eb1ec2c4f9a05d8b940
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/gaming_v1beta/test_game_server_clusters_service.py
LaudateCorpus1/python-game-servers
9e22e6dd4e2543d694e33eb1ec2c4f9a05d8b940
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/gaming_v1beta/test_game_server_clusters_service.py
LaudateCorpus1/python-game-servers
9e22e6dd4e2543d694e33eb1ec2c4f9a05d8b940
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.683573
143
0.698573
import os import mock import grpc from grpc.experimental import aio import math import pytest from proto.marshal.rules.dates import DurationRule, TimestampRule from google.api_core import client_options from google.api_core import exceptions as core_exceptions from google.api_core import future from google.api_core ...
true
true
f708cf65433e09e25b9e03b6708df6923be84eac
168
py
Python
src/pydantic_vault/__init__.py
nymous/pydantic-vault
1d35885a9bb588d8f4d788d0a259a4894c207e8d
[ "MIT" ]
26
2020-03-13T10:13:15.000Z
2022-02-05T17:58:06.000Z
src/pydantic_vault/__init__.py
nymous/pydantic-vault
1d35885a9bb588d8f4d788d0a259a4894c207e8d
[ "MIT" ]
7
2020-03-21T14:24:57.000Z
2021-09-02T14:03:11.000Z
src/pydantic_vault/__init__.py
nymous/pydantic-vault
1d35885a9bb588d8f4d788d0a259a4894c207e8d
[ "MIT" ]
1
2021-06-06T20:53:02.000Z
2021-06-06T20:53:02.000Z
__version__ = "0.7.1" from .vault_settings import VaultParameterError, vault_config_settings_source __all__ = ["vault_config_settings_source", "VaultParameterError"]
28
77
0.827381
__version__ = "0.7.1" from .vault_settings import VaultParameterError, vault_config_settings_source __all__ = ["vault_config_settings_source", "VaultParameterError"]
true
true
f708cf955db7b4498d4f38ba6a115c6fb17aea00
7,505
py
Python
accelbyte_py_sdk/api/lobby/operations/notification/free_form_notification.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/notification/free_form_notification.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/notification/free_form_notification.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:26.691956+08:00 # from: Justice Lobby Service (1.33.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylin...
29.664032
148
0.64024
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from .....core import Operation from .....core import HttpResponse from ...models import ModelFreeFormNotificationRequest from ...models import RestapiErrorResponseBody class FreeFormNotification(Operation): _...
true
true
f708cfc7280e646718c5d5f20ecb8f4fc890797b
2,719
py
Python
Scripts/extract_cds.py
sivico26/Bioinfo_errands
5cea098f422e1134639e4d6d8aa76098a0c70551
[ "MIT" ]
1
2021-01-13T22:07:00.000Z
2021-01-13T22:07:00.000Z
Scripts/extract_cds.py
sivico26/Bioinfo_errands
5cea098f422e1134639e4d6d8aa76098a0c70551
[ "MIT" ]
null
null
null
Scripts/extract_cds.py
sivico26/Bioinfo_errands
5cea098f422e1134639e4d6d8aa76098a0c70551
[ "MIT" ]
null
null
null
#!/usr/bin/env python from Bio import SeqIO import argparse import pathlib def get_arguments(): parser = argparse.ArgumentParser(description='Extract CDS from a genbank to output a fasta', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('input', type=str, help='Path to input...
34.417722
250
0.598014
from Bio import SeqIO import argparse import pathlib def get_arguments(): parser = argparse.ArgumentParser(description='Extract CDS from a genbank to output a fasta', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('input', type=str, help='Path to input genbank file') pa...
true
true
f708d0b021de0c328c38f3e3891f14b4ae0db94c
1,479
py
Python
backend/stock/workers/get_valuation_ratio.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
1
2021-09-30T05:25:08.000Z
2021-09-30T05:25:08.000Z
backend/stock/workers/get_valuation_ratio.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
8
2021-09-30T05:27:09.000Z
2021-12-03T23:02:24.000Z
backend/stock/workers/get_valuation_ratio.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
3
2021-09-29T05:11:45.000Z
2021-10-31T07:26:31.000Z
import logging import pandas as pd from stock.models import MyStock from stock.models import ValuationRatio from yahooquery import Ticker logger = logging.getLogger("stock") class MyValuationRatio: def __init__(self, symbol): self.stock = MyStock.objects.get(symbol=symbol) def get(self): s...
26.410714
64
0.536173
import logging import pandas as pd from stock.models import MyStock from stock.models import ValuationRatio from yahooquery import Ticker logger = logging.getLogger("stock") class MyValuationRatio: def __init__(self, symbol): self.stock = MyStock.objects.get(symbol=symbol) def get(self): s...
true
true
f708d15462b81866e50f7f7ce288da9790a439e4
13,342
py
Python
slybot/slybot/utils.py
1583582847/-
11e10d5ffc0bf7f25534f5f444f59e9b792b42b8
[ "BSD-3-Clause" ]
1
2019-01-03T02:16:01.000Z
2019-01-03T02:16:01.000Z
slybot/slybot/utils.py
1583582847/-
11e10d5ffc0bf7f25534f5f444f59e9b792b42b8
[ "BSD-3-Clause" ]
null
null
null
slybot/slybot/utils.py
1583582847/-
11e10d5ffc0bf7f25534f5f444f59e9b792b42b8
[ "BSD-3-Clause" ]
null
null
null
from six.moves.urllib_parse import urlparse import chardet import itertools import json import os import re import six from collections import OrderedDict, namedtuple from itertools import chain from scrapely.htmlpage import HtmlPage, HtmlTagType from scrapy.utils.misc import load_object from w3lib.encoding import ht...
32.227053
79
0.590766
from six.moves.urllib_parse import urlparse import chardet import itertools import json import os import re import six from collections import OrderedDict, namedtuple from itertools import chain from scrapely.htmlpage import HtmlPage, HtmlTagType from scrapy.utils.misc import load_object from w3lib.encoding import ht...
true
true
f708d1cd931d1d693bf81474cd5bdb17ae3406f6
834
py
Python
shapenet/networks/utils.py
ss18/shapenet
5a605bee6b2750f3a586ca9a740165e66b5dd7d8
[ "BSD-2-Clause" ]
null
null
null
shapenet/networks/utils.py
ss18/shapenet
5a605bee6b2750f3a586ca9a740165e66b5dd7d8
[ "BSD-2-Clause" ]
null
null
null
shapenet/networks/utils.py
ss18/shapenet
5a605bee6b2750f3a586ca9a740165e66b5dd7d8
[ "BSD-2-Clause" ]
1
2020-09-25T08:55:12.000Z
2020-09-25T08:55:12.000Z
# author: Justus Schock (justus.schock@rwth-aachen.de) import torch class CustomGroupNorm(torch.nn.Module): """ Custom Group Norm which adds n_groups=2 as default parameter """ def __init__(self, n_features, n_groups=2): """ Parameters ---------- n_features : int ...
20.85
64
0.533573
import torch class CustomGroupNorm(torch.nn.Module): def __init__(self, n_features, n_groups=2): super().__init__() self.norm = torch.nn.GroupNorm(n_groups, n_features) def forward(self, x): return self.norm(x)
true
true
f708d1eeb45291c951a49f1eee98109cbc0c9f78
2,499
py
Python
hooks/charmhelpers/fetch/giturl.py
andreibacos/nova-compute-charm
09a27bf91b8b4ee9c1226f8bebc489a192549873
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/charmhelpers/fetch/giturl.py
andreibacos/nova-compute-charm
09a27bf91b8b4ee9c1226f8bebc489a192549873
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/charmhelpers/fetch/giturl.py
andreibacos/nova-compute-charm
09a27bf91b8b4ee9c1226f8bebc489a192549873
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2014-2015 Canonical Limited. # # 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 ...
36.217391
75
0.635054
import os from subprocess import check_call, CalledProcessError from charmhelpers.fetch import ( BaseFetchHandler, UnhandledSource, filter_installed_packages, apt_install, ) if filter_installed_packages(['git']) != []: apt_install(['git']) if filter_installed_packages(['git']) != []: r...
true
true
f708d2da1b61965d0523fb2dd82a2fff52ab6f66
2,098
py
Python
enb/tcall.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
enb/tcall.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
enb/tcall.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Timed calls to subprocess, so that real execution times can be obtained. """ __author__ = "Miguel Hernández Cabronero <miguel.hernandez@uab.cat>" __date__ = "23/05/2020" import os import subprocess import re import time import platform import shutil class InvocationE...
31.787879
108
0.661106
__author__ = "Miguel Hernández Cabronero <miguel.hernandez@uab.cat>" __date__ = "23/05/2020" import os import subprocess import re import time import platform import shutil class InvocationError(Exception): pass def get_status_output_time(invocation, expected_status_value=0, wall=False): if "Darwin" in pl...
true
true
f708d313d84dcab7bba4a1676f1e38302853d437
1,000
py
Python
pyf/_close_.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
1
2022-03-13T22:08:25.000Z
2022-03-13T22:08:25.000Z
pyf/_close_.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
21
2022-03-17T16:53:04.000Z
2022-03-31T23:55:24.000Z
pyf/_close_.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
null
null
null
def _close_(fh): """Implementation of perl close""" global AUTODIE, TRACEBACK, OS_ERROR, TRACE_RUN try: if hasattr(fh, '_sp'): # issue 72: subprocess fh.flush() fh._sp.communicate() if TRACE_RUN: sp = subprocess.CompletedProcess(f"op...
32.258065
89
0.518
def _close_(fh): global AUTODIE, TRACEBACK, OS_ERROR, TRACE_RUN try: if hasattr(fh, '_sp'): fh.flush() fh._sp.communicate() if TRACE_RUN: sp = subprocess.CompletedProcess(f"open({fh._file})", fh._sp.returncode) _carp(f'tra...
true
true
f708d3202e725236311e670212f40c058faa6dcf
3,055
py
Python
SiebelCOM/sa.py
komarov-sergey/py-siebel-com
3253c1380ba292234deac5def2c340bbb478f593
[ "MIT" ]
3
2018-04-04T17:29:42.000Z
2022-02-09T16:48:34.000Z
SiebelCOM/sa.py
KomarovSergei/py-siebel-com
3253c1380ba292234deac5def2c340bbb478f593
[ "MIT" ]
null
null
null
SiebelCOM/sa.py
KomarovSergei/py-siebel-com
3253c1380ba292234deac5def2c340bbb478f593
[ "MIT" ]
1
2021-05-06T06:03:34.000Z
2021-05-06T06:03:34.000Z
import win32com.client as wc from utils import vstr from utils import vshort from utils import vstrarr from utils import check_error from bc import SiebelBusObject from ps import SiebelPropertySet from bs import SiebelService PROGID = 'SiebelDataServer.ApplicationObject' class SiebelApplication(object): def __...
27.522523
78
0.646154
import win32com.client as wc from utils import vstr from utils import vshort from utils import vstrarr from utils import check_error from bc import SiebelBusObject from ps import SiebelPropertySet from bs import SiebelService PROGID = 'SiebelDataServer.ApplicationObject' class SiebelApplication(object): def __...
true
true
f708d38e4ada2c2472030b04a3af3bd0cb4f2dc2
413
py
Python
transfermarket.py
DaniilGumin/SiteParser
97aca6393141f5a3e8fba03745b01e8d4a918d2f
[ "MIT" ]
null
null
null
transfermarket.py
DaniilGumin/SiteParser
97aca6393141f5a3e8fba03745b01e8d4a918d2f
[ "MIT" ]
null
null
null
transfermarket.py
DaniilGumin/SiteParser
97aca6393141f5a3e8fba03745b01e8d4a918d2f
[ "MIT" ]
null
null
null
from lxml import html import requests url = 'https://www.transfermarkt.com/ac-mailand/transfers/verein/5/saison_id/2017' headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Firefox/45.0' } page = requests.get(url, headers=headers) tree = html.fromstring(page.content) pl...
27.533333
101
0.72155
from lxml import html import requests url = 'https://www.transfermarkt.com/ac-mailand/transfers/verein/5/saison_id/2017' headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Firefox/45.0' } page = requests.get(url, headers=headers) tree = html.fromstring(page.content) pl...
true
true
f708d555666b85db4bf67ef80495a4f682e089a3
753
py
Python
package/alphabets/capital_alphabets/O.py
venkateshvsn/patterns
7e1d1926b40695a65e04c370655c5d79dd63bf6e
[ "MIT" ]
null
null
null
package/alphabets/capital_alphabets/O.py
venkateshvsn/patterns
7e1d1926b40695a65e04c370655c5d79dd63bf6e
[ "MIT" ]
null
null
null
package/alphabets/capital_alphabets/O.py
venkateshvsn/patterns
7e1d1926b40695a65e04c370655c5d79dd63bf6e
[ "MIT" ]
null
null
null
def for_O(): """printing capital 'O' using for loop""" for row in range(5): for col in range(5): if col==0 and row not in(0,4) or col==4 and row not in(0,4) or row==0 and col in(1,2,3) or row==4 and col in(1,2,3) : print("*",end=" ") else: p...
28.961538
130
0.409031
def for_O(): for row in range(5): for col in range(5): if col==0 and row not in(0,4) or col==4 and row not in(0,4) or row==0 and col in(1,2,3) or row==4 and col in(1,2,3) : print("*",end=" ") else: print(" ",end=" ") print() def whi...
true
true
f708d6c9b4f981534604870130c87e1774584567
2,074
py
Python
plugins/hw_wallet/plugin.py
qupengcheng/btcnano-1.0
777733284a103c619ac15933cc0b8106642b9dca
[ "MIT" ]
3
2018-01-16T09:45:41.000Z
2018-01-27T04:07:10.000Z
plugins/hw_wallet/plugin.py
qupengcheng/btcnano-1.0
777733284a103c619ac15933cc0b8106642b9dca
[ "MIT" ]
null
null
null
plugins/hw_wallet/plugin.py
qupengcheng/btcnano-1.0
777733284a103c619ac15933cc0b8106642b9dca
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 The Electrum developers # # 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...
38.407407
73
0.737223
from bitcoinnano.plugins import BasePlugin, hook from bitcoinnano.i18n import _ class HW_PluginBase(BasePlugin): def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.device = self.keystore_class.device self.keystore_class.plug...
true
true
f708d6ec719c9d7fc6f27e40ee97ebb008dbadeb
9,417
py
Python
test_widerface.py
DevD1092/Retinaface_DLIB
455e393f1bd688cf2d1cc41960105af9ea8a26c6
[ "Apache-2.0" ]
3
2021-09-23T23:56:46.000Z
2022-03-25T16:15:33.000Z
test_widerface.py
DevD1092/Retinaface_DLIB
455e393f1bd688cf2d1cc41960105af9ea8a26c6
[ "Apache-2.0" ]
null
null
null
test_widerface.py
DevD1092/Retinaface_DLIB
455e393f1bd688cf2d1cc41960105af9ea8a26c6
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys import argparse import torch import torch.backends.cudnn as cudnn import numpy as np from data import cfg_mnet, cfg_re50 from layers.functions.prior_box import PriorBox from utils.nms.py_cpu_nms import py_cpu_nms import cv2 from models.retinaface import RetinaF...
41.484581
162
0.606456
from __future__ import print_function import os import sys import argparse import torch import torch.backends.cudnn as cudnn import numpy as np from data import cfg_mnet, cfg_re50 from layers.functions.prior_box import PriorBox from utils.nms.py_cpu_nms import py_cpu_nms import cv2 from models.retinaface import RetinaF...
true
true
f708d97eef5629065ace28e265a871b9fdfb1637
3,058
py
Python
projectlaika/addWindow.py
TheSgtPepper23/LaikaIA
fc73aa17f74462b211c4a4159b663ed7c3cdb1bd
[ "MIT" ]
null
null
null
projectlaika/addWindow.py
TheSgtPepper23/LaikaIA
fc73aa17f74462b211c4a4159b663ed7c3cdb1bd
[ "MIT" ]
null
null
null
projectlaika/addWindow.py
TheSgtPepper23/LaikaIA
fc73aa17f74462b211c4a4159b663ed7c3cdb1bd
[ "MIT" ]
null
null
null
import os import hashlib from PyQt5 import uic from PyQt5.QtWidgets import QMainWindow, QMessageBox from internationalization import LANGUAGE from logic import Hash from windows.message import Message from databaseAccess import DbMethods class AddWindow(QMainWindow): def __init__(self, lang): QMainWindow._...
46.333333
117
0.64225
import os import hashlib from PyQt5 import uic from PyQt5.QtWidgets import QMainWindow, QMessageBox from internationalization import LANGUAGE from logic import Hash from windows.message import Message from databaseAccess import DbMethods class AddWindow(QMainWindow): def __init__(self, lang): QMainWindow._...
true
true
f708d9f68089c5a0379aa93fd7e35b1682b87353
736
py
Python
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_raw.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_raw.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_raw.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.frame import H2OFrame def h2oparse_raw(): """ Python API test: h2o.parse_raw(setup, id=None, first_line_is_header=0) copied fro...
28.307692
92
0.743207
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.frame import H2OFrame def h2oparse_raw(): fraw = h2o.import_file(pyunit_utils.locate("smalldata/jira/hexdev_29.csv"), parse=False) a...
true
true
f708dc3f498afa726fef95d36981fa1fcc1f7c69
712
py
Python
backend/lambda-developer-endpoints/index.py
UBC-CIC/people-counting-with-aws-rekognition-Admin-Website
a635cfcf8acd7f66da761a2e03c99479b74d0b82
[ "Apache-1.1" ]
null
null
null
backend/lambda-developer-endpoints/index.py
UBC-CIC/people-counting-with-aws-rekognition-Admin-Website
a635cfcf8acd7f66da761a2e03c99479b74d0b82
[ "Apache-1.1" ]
null
null
null
backend/lambda-developer-endpoints/index.py
UBC-CIC/people-counting-with-aws-rekognition-Admin-Website
a635cfcf8acd7f66da761a2e03c99479b74d0b82
[ "Apache-1.1" ]
1
2021-06-04T00:17:51.000Z
2021-06-04T00:17:51.000Z
import json import boto3 import os client = boto3.client('dynamodb') CURRENT_COUNTS_TABLE_NAME = os.environ['CURRENT_COUNTS_TABLE_NAME'] AVERAGE_COUNTS_TABLE_NAME = os.environ['AVERAGE_COUNTS_TABLE_NAME'] def lambda_handler(event, context): if "getCurrentCounts" in event: response = client.scan(TableName=C...
28.48
67
0.640449
import json import boto3 import os client = boto3.client('dynamodb') CURRENT_COUNTS_TABLE_NAME = os.environ['CURRENT_COUNTS_TABLE_NAME'] AVERAGE_COUNTS_TABLE_NAME = os.environ['AVERAGE_COUNTS_TABLE_NAME'] def lambda_handler(event, context): if "getCurrentCounts" in event: response = client.scan(TableName=C...
true
true
f708dc7d41fdf5af19cb3cc6f93b7b6e31a65bbc
2,096
py
Python
archai/datasets/providers/svhn_provider.py
bluetyson/archai
b370a7397cb8703a052d82297ae748a35c6a49c7
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
archai/datasets/providers/svhn_provider.py
QPC-database/archai
50f70ccccf536466cc0370c8a63401e05dec33fd
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
archai/datasets/providers/svhn_provider.py
QPC-database/archai
50f70ccccf536466cc0370c8a63401e05dec33fd
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import List, Tuple, Union, Optional from overrides import overrides, EnforceOverrides from torch.utils.data.dataset import Dataset import torchvision from torchvision.transforms import transforms from torch.utils.data impo...
35.525424
107
0.670324
from typing import List, Tuple, Union, Optional from overrides import overrides, EnforceOverrides from torch.utils.data.dataset import Dataset import torchvision from torchvision.transforms import transforms from torch.utils.data import ConcatDataset from archai.datasets.dataset_provider import DatasetPro...
true
true
f708df00d9857cd302b7ec9775cbf7aa234f50ba
49,006
py
Python
test/test_resources_site_shared_credential.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
test/test_resources_site_shared_credential.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
test/test_resources_site_shared_credential.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
1,195.268293
48,043
0.491593
from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.resources_site_shared_credential import ResourcesSiteSharedCredential from swagger_client.rest import ApiException class TestResourcesSiteSharedCredential(unittest.TestCase): def setUp(self): pas...
true
true
f708df1e87b7c6f449fe4da943695469a8a37f7f
1,800
py
Python
setup.py
coderfi/rets
6d1a23d0356e41fbeaf5edeb5d40b516a9946a07
[ "MIT" ]
null
null
null
setup.py
coderfi/rets
6d1a23d0356e41fbeaf5edeb5d40b516a9946a07
[ "MIT" ]
null
null
null
setup.py
coderfi/rets
6d1a23d0356e41fbeaf5edeb5d40b516a9946a07
[ "MIT" ]
null
null
null
import sys from setuptools import setup if sys.version_info < (3, 5): print('rets requires Python 3.5 or later') sys.exit(1) long_desc = 'Python 3 client for the Real Estate Transaction Standard (RETS) Version 1.7.2' install_requires = [ 'requests>=2.12.3', 'requests-toolbelt>=0.7.0,!=0.9.0', '...
26.470588
91
0.618889
import sys from setuptools import setup if sys.version_info < (3, 5): print('rets requires Python 3.5 or later') sys.exit(1) long_desc = 'Python 3 client for the Real Estate Transaction Standard (RETS) Version 1.7.2' install_requires = [ 'requests>=2.12.3', 'requests-toolbelt>=0.7.0,!=0.9.0', '...
true
true
f708e019c4c06af383eb73f2545dc68cbdeaf8c3
6,534
py
Python
src/services/stream/crunchyroll.py
flipstables/holo
4e86ce74172318ab179fede29d849e34e92c7b0b
[ "MIT" ]
102
2016-01-07T21:54:42.000Z
2022-01-17T02:03:05.000Z
src/services/stream/crunchyroll.py
flipstables/holo
4e86ce74172318ab179fede29d849e34e92c7b0b
[ "MIT" ]
25
2016-01-10T11:46:40.000Z
2018-06-19T14:47:04.000Z
src/services/stream/crunchyroll.py
flipstables/holo
4e86ce74172318ab179fede29d849e34e92c7b0b
[ "MIT" ]
36
2016-02-18T17:37:17.000Z
2019-02-24T02:01:40.000Z
from logging import debug, info, warning, error, exception import re from datetime import datetime, timedelta from .. import AbstractServiceHandler from data.models import Episode, UnprocessedStream class ServiceHandler(AbstractServiceHandler): _show_url = "http://crunchyroll.com/{id}" _show_re = re.compile("crunch...
30.25
111
0.712274
from logging import debug, info, warning, error, exception import re from datetime import datetime, timedelta from .. import AbstractServiceHandler from data.models import Episode, UnprocessedStream class ServiceHandler(AbstractServiceHandler): _show_url = "http://crunchyroll.com/{id}" _show_re = re.compile("crunch...
true
true
f708e062dee09bdd223cf03577105bdf406b13fd
1,386
py
Python
var/spack/repos/builtin/packages/r-multcomp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-multcomp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-multcomp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RMultcomp(RPackage): """Simultaneous tests and confidence intervals for general linear ...
47.793103
96
0.727273
from spack import * class RMultcomp(RPackage): homepage = "http://multcomp.r-forge.r-project.org/" url = "https://cloud.r-project.org/src/contrib/multcomp_1.4-6.tar.gz" list_url = "https://cloud.r-project.org/src/contrib/Archive/multcomp" version('1.4-10', sha256='29bcc635c0262e304551b139cd9ee...
true
true
f708e0a2f1d6f3fbaa539ae288ad1af3bf9feb80
16,474
py
Python
model-optimizer/extensions/middle/Reduce_test.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
model-optimizer/extensions/middle/Reduce_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/middle/Reduce_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2018-12-14T07:52:51.000Z
2018-12-14T07:52:51.000Z
""" Copyright (c) 2018-2019 Intel Corporation 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...
51.320872
119
0.440452
import unittest import numpy as np from extensions.middle.Reduce import ReduceReplacer from mo.middle.passes.eliminate_test import build_graph from mo.middle.passes.fusing.fuse_linear_ops_test import compare_graphs nodes_attributes = { 'placeholder_1': {'shape': None, 'type': 'Placeholder', 'kind': 'op', 'o...
true
true