hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
dfefa56726aa2b87bad8ce6780932d1ba636fefd
280
py
Python
ImageCapture.py
Laokashouji/UAV-Swarm-intelligence-system
909b62ab3e08ad1e1cbd986a267aff805dc61a8b
[ "MIT" ]
null
null
null
ImageCapture.py
Laokashouji/UAV-Swarm-intelligence-system
909b62ab3e08ad1e1cbd986a267aff805dc61a8b
[ "MIT" ]
null
null
null
ImageCapture.py
Laokashouji/UAV-Swarm-intelligence-system
909b62ab3e08ad1e1cbd986a267aff805dc61a8b
[ "MIT" ]
null
null
null
""" 无人机获取视频流 """ from djitellopy import tello import cv2 drone = tello.Tello() drone.connect() print(drone.get_battery()) drone.stream_on() while True: img = drone.get_frame_read().frame img = cv2.resize(img, (360, 240)) cv2.imshow("Image", img) cv2.waitKey(1)
15.555556
38
0.675
""" 无人机获取视频流 """ from djitellopy import tello import cv2 drone = tello.Tello() drone.connect() print(drone.get_battery()) drone.stream_on() while True: img = drone.get_frame_read().frame img = cv2.resize(img, (360, 240)) cv2.imshow("Image", img) cv2.waitKey(1)
0
0
0
548634e3e1141f27da15655d5ae090069126088d
1,242
py
Python
myDataset.py
huangzsdy/pytorch_basic_learning
7880bc3fcee1d38623d93fa2a36482ccde0e335a
[ "Apache-2.0" ]
null
null
null
myDataset.py
huangzsdy/pytorch_basic_learning
7880bc3fcee1d38623d93fa2a36482ccde0e335a
[ "Apache-2.0" ]
null
null
null
myDataset.py
huangzsdy/pytorch_basic_learning
7880bc3fcee1d38623d93fa2a36482ccde0e335a
[ "Apache-2.0" ]
null
null
null
import os import torch import torch.utils.data as data from PIL import Image from multiprocessing.dummy import Pool
30.292683
107
0.609501
import os import torch import torch.utils.data as data from PIL import Image from multiprocessing.dummy import Pool def default_loader(path): return Image.open(path).convert('RGB') class myImageFolder(data.Dataset): def __init__(self, label_file, transform = None, target_transform=None, loader=default_loader)...
961
13
153
60f92f4cd0400034e1f7ab9f01a48660f1647b61
1,901
py
Python
datasets/__init__.py
ZongwuYang/tf-imagenet
7ffdc3059df5e515d891c3722c7229fc72a99705
[ "Apache-2.0" ]
1
2018-08-29T13:17:42.000Z
2018-08-29T13:17:42.000Z
datasets/__init__.py
ZongwuYang/tf-imagenet
7ffdc3059df5e515d891c3722c7229fc72a99705
[ "Apache-2.0" ]
null
null
null
datasets/__init__.py
ZongwuYang/tf-imagenet
7ffdc3059df5e515d891c3722c7229fc72a99705
[ "Apache-2.0" ]
null
null
null
# ============================================================================== # Copyright 2018 Paul Balanca. 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 # # ht...
41.326087
86
0.649132
# ============================================================================== # Copyright 2018 Paul Balanca. 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 # # ht...
0
0
0
d08dd77259abac73bfe28cbfea1ac45a2aebdb36
4,901
py
Python
app/handler.py
aiji42/serverless-expect-fes-setlist-line-itaraction
323631f7d66bdd3a93c239ed8cb4e5984bb9f68f
[ "MIT" ]
null
null
null
app/handler.py
aiji42/serverless-expect-fes-setlist-line-itaraction
323631f7d66bdd3a93c239ed8cb4e5984bb9f68f
[ "MIT" ]
null
null
null
app/handler.py
aiji42/serverless-expect-fes-setlist-line-itaraction
323631f7d66bdd3a93c239ed8cb4e5984bb9f68f
[ "MIT" ]
null
null
null
import os import json import re import collections from bs4 import BeautifulSoup import urllib.request, urllib.parse, urllib.error from linebot import ( LineBotApi, WebhookHandler ) from linebot.models import ( MessageEvent, PostbackEvent, TextMessage, TextSendMessage, TemplateSendMessage, PostbackAction, B...
35.773723
149
0.649459
import os import json import re import collections from bs4 import BeautifulSoup import urllib.request, urllib.parse, urllib.error from linebot import ( LineBotApi, WebhookHandler ) from linebot.models import ( MessageEvent, PostbackEvent, TextMessage, TextSendMessage, TemplateSendMessage, PostbackAction, B...
4,313
0
138
fd55ac6494fee1ff51dde69729bc9482441c4a60
1,730
py
Python
Chapter06/pyImage/inferance.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
19
2019-11-06T08:00:03.000Z
2022-01-01T20:02:40.000Z
Chapter06/pyImage/inferance.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
null
null
null
Chapter06/pyImage/inferance.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
9
2020-02-17T23:44:16.000Z
2022-02-03T15:26:46.000Z
import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models from PIL import Image from torch.autograd import Variable test_transforms = transforms.Compose([transforms.Resize(224), ...
29.827586
79
0.672254
import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models from PIL import Image from torch.autograd import Variable test_transforms = transforms.Compose([transforms.Resize(224), ...
719
0
48
544bde56520e6378977c7c97fdc55c0181fb31be
442
py
Python
DiscordEconomy/__init__.py
Nohet/DiscordEconomy
e721a6435bc0ffb40aee99062ff0addfa5d2ae89
[ "MIT" ]
null
null
null
DiscordEconomy/__init__.py
Nohet/DiscordEconomy
e721a6435bc0ffb40aee99062ff0addfa5d2ae89
[ "MIT" ]
null
null
null
DiscordEconomy/__init__.py
Nohet/DiscordEconomy
e721a6435bc0ffb40aee99062ff0addfa5d2ae89
[ "MIT" ]
2
2021-08-31T09:17:05.000Z
2021-10-05T17:09:35.000Z
from .economy import * __title__ = "DiscordEconomy" __summary__ = "Discord.py, other libs, and forks(pycord, nextcord etc.) extension to create economy easily." __uri__ = "https://github.com/Nohet/DiscordEconomy" __version__ = "1.3.2" __author__ = "Nohet" __email__ = "igorczupryniak503@gmail.com" __license__ =...
26
109
0.726244
from .economy import * __title__ = "DiscordEconomy" __summary__ = "Discord.py, other libs, and forks(pycord, nextcord etc.) extension to create economy easily." __uri__ = "https://github.com/Nohet/DiscordEconomy" __version__ = "1.3.2" __author__ = "Nohet" __email__ = "igorczupryniak503@gmail.com" __license__ =...
27
0
25
6a38b2346198a2320edefd7e658bec657962e280
1,498
py
Python
setup.py
pesser/splatting
1427d7c4204282d117403b35698d489e0324287f
[ "MIT" ]
3
2021-02-23T19:25:35.000Z
2021-05-31T12:53:53.000Z
setup.py
pesser/splatting
1427d7c4204282d117403b35698d489e0324287f
[ "MIT" ]
null
null
null
setup.py
pesser/splatting
1427d7c4204282d117403b35698d489e0324287f
[ "MIT" ]
1
2021-07-29T19:58:11.000Z
2021-07-29T19:58:11.000Z
import os, re if "CONDA_PREFIX" in os.environ: # fix compilation in conda env if "CUDA_HOME" not in os.environ and os.path.exists( os.path.join(os.environ["CONDA_PREFIX"], "bin/nvcc")): print("Detected CONDA_PREFIX containing nvcc but no CUDA_HOME, " "setting CUDA_HOME=${CONDA_...
31.87234
88
0.62016
import os, re if "CONDA_PREFIX" in os.environ: # fix compilation in conda env if "CUDA_HOME" not in os.environ and os.path.exists( os.path.join(os.environ["CONDA_PREFIX"], "bin/nvcc")): print("Detected CONDA_PREFIX containing nvcc but no CUDA_HOME, " "setting CUDA_HOME=${CONDA_...
0
0
0
84068d8e94014d1e5063c9011f1b24662220bdf0
8,015
py
Python
src/main.py
gregbartell/mf83_solitaire_solver
3c02eb87c62bc9cde72bc3c5f4641648cc8fff2f
[ "Unlicense" ]
null
null
null
src/main.py
gregbartell/mf83_solitaire_solver
3c02eb87c62bc9cde72bc3c5f4641648cc8fff2f
[ "Unlicense" ]
null
null
null
src/main.py
gregbartell/mf83_solitaire_solver
3c02eb87c62bc9cde72bc3c5f4641648cc8fff2f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # NOTE: you will need to make sure that you have opencv installed for the confidence argument to work with pyautogui import pyautogui import subprocess import sys import time from collections import Counter, namedtuple card_image_paths = ["../screenshots/" + card + ".png" for card in ["ace", "t...
41.102564
146
0.617592
#!/usr/bin/env python3 # NOTE: you will need to make sure that you have opencv installed for the confidence argument to work with pyautogui import pyautogui import subprocess import sys import time from collections import Counter, namedtuple card_image_paths = ["../screenshots/" + card + ".png" for card in ["ace", "t...
1,473
0
91
71ad251bc83a53dd9333972759d373f3e8ba9478
935
py
Python
Ch9/delUneededFiles.py
AdamPellot/AutomateTheBoringStuffProjects
d2f2456a04f6eade5cf19f771c7118a79f696eba
[ "MIT" ]
null
null
null
Ch9/delUneededFiles.py
AdamPellot/AutomateTheBoringStuffProjects
d2f2456a04f6eade5cf19f771c7118a79f696eba
[ "MIT" ]
null
null
null
Ch9/delUneededFiles.py
AdamPellot/AutomateTheBoringStuffProjects
d2f2456a04f6eade5cf19f771c7118a79f696eba
[ "MIT" ]
null
null
null
#! python3 # delUneededFiles.py - Walks through a folder tree and searches for # exceptionally large files or folders—say, ones # that have a file size of more than 100MB. Print # these files with their absolute path to the # screen. # ...
37.4
75
0.649198
#! python3 # delUneededFiles.py - Walks through a folder tree and searches for # exceptionally large files or folders—say, ones # that have a file size of more than 100MB. Print # these files with their absolute path to the # screen. # ...
0
0
0
8d22c7b49d1335d8c7949dcc9045bffe088e92b9
5,474
py
Python
covidprognosis/data/nih_chest_xrays.py
OAfzal/CovidPrognosis
1b5b4d0d712b8fee94279df02a634b61d6d5a3a0
[ "MIT" ]
151
2021-01-13T19:50:19.000Z
2022-03-30T07:16:10.000Z
covidprognosis/data/nih_chest_xrays.py
OAfzal/CovidPrognosis
1b5b4d0d712b8fee94279df02a634b61d6d5a3a0
[ "MIT" ]
14
2021-01-29T15:11:07.000Z
2022-01-28T04:34:03.000Z
covidprognosis/data/nih_chest_xrays.py
OAfzal/CovidPrognosis
1b5b4d0d712b8fee94279df02a634b61d6d5a3a0
[ "MIT" ]
35
2021-01-15T21:21:50.000Z
2022-01-17T06:17:04.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import logging import os from typing import Callable, Dict, List, Optional, Union import numpy as np import pandas as pd from .base_dataset ...
32.583333
87
0.555718
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import logging import os from typing import Callable, Dict, List, Optional, Union import numpy as np import pandas as pd from .base_dataset ...
4,489
0
134
5bc9a58f14f30a6659749e932a9202a8abe48337
2,920
py
Python
decode.py
BUTSpeechFIT/vq-aud
088492e5d02b6e5cb6126b27da869704cd2c9e2c
[ "MIT" ]
null
null
null
decode.py
BUTSpeechFIT/vq-aud
088492e5d02b6e5cb6126b27da869704cd2c9e2c
[ "MIT" ]
null
null
null
decode.py
BUTSpeechFIT/vq-aud
088492e5d02b6e5cb6126b27da869704cd2c9e2c
[ "MIT" ]
null
null
null
import os import sys import argparse import utils if __name__ == '__main__': main()
39.459459
102
0.594178
import os import sys import argparse import utils def load_from_dir(nnet_dir, device): import models model_classname = open(os.path.join(nnet_dir, 'nnet_kind.txt')).read().strip() model_kind = models.get_model(model_classname) model = model_kind.load_from_dir(nnet_dir, map_location=device) ...
2,768
0
50
2a7182773a6e12101a5a24b4070314227931d62b
249
py
Python
dictionaryutils/tests/test_simulate_data.py
uc-cdis/ccledictionary
46928f29b3c170eb15ef6f45fea92228c1063c31
[ "Apache-2.0" ]
4
2019-09-17T20:23:57.000Z
2021-06-01T01:57:49.000Z
dictionaryutils/tests/test_simulate_data.py
uc-cdis/ccledictionary
46928f29b3c170eb15ef6f45fea92228c1063c31
[ "Apache-2.0" ]
9
2018-01-23T17:05:30.000Z
2021-04-01T15:41:36.000Z
dictionaryutils/tests/test_simulate_data.py
uc-cdis/ccledictionary
46928f29b3c170eb15ef6f45fea92228c1063c31
[ "Apache-2.0" ]
7
2019-05-15T18:08:29.000Z
2021-07-18T21:28:18.000Z
from datasimulator.graph import Graph from dictionaryutils import dictionary
24.9
44
0.763052
from datasimulator.graph import Graph from dictionaryutils import dictionary def test(): graph = Graph(dictionary, "DEV", "test") graph.generate_nodes_from_dictionary() graph.construct_graph_edges() assert graph.graph_validation()
148
0
23
3efd05e2b16c6e2342e62db4c04766ab152fb9ba
608
py
Python
tests.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
tests.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
tests.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
from htk.test_scaffold.models import TestScaffold from htk.test_scaffold.tests import BaseTestCase from htk.test_scaffold.tests import BaseWebTestCase from htk.constants import * #################### # Finally, import tests from subdirectories last to prevent circular import from htk.lib.tests import * from htk.scrip...
28.952381
75
0.689145
from htk.test_scaffold.models import TestScaffold from htk.test_scaffold.tests import BaseTestCase from htk.test_scaffold.tests import BaseWebTestCase from htk.constants import * class HtkWebViewsTestCase(BaseWebTestCase): def test_error_pages(self): view_names = ( 'error_403', 'er...
199
22
49
f6cc839e54210dae241e09f4dc1dd7ea3e57a9d7
12,742
py
Python
rest_auth/tests/test_api.py
zwernberg/django-rest-auth
f06bc7016358f4b2eae105cb90a937fd50da7148
[ "MIT" ]
null
null
null
rest_auth/tests/test_api.py
zwernberg/django-rest-auth
f06bc7016358f4b2eae105cb90a937fd50da7148
[ "MIT" ]
null
null
null
rest_auth/tests/test_api.py
zwernberg/django-rest-auth
f06bc7016358f4b2eae105cb90a937fd50da7148
[ "MIT" ]
1
2021-12-10T14:28:59.000Z
2021-12-10T14:28:59.000Z
from django.core.urlresolvers import reverse from django.test import TestCase from django.contrib.auth import get_user_model from django.core import mail from django.conf import settings from django.test.utils import override_settings from django.utils.encoding import force_text from rest_framework import status from...
33.44357
91
0.617956
from django.core.urlresolvers import reverse from django.test import TestCase from django.contrib.auth import get_user_model from django.core import mail from django.conf import settings from django.test.utils import override_settings from django.utils.encoding import force_text from rest_framework import status from...
10,608
0
322
cc4364834405df74525f7feaf4acc5b014cc0b72
23,112
py
Python
sdk/python/pulumi_azure/appservice/app_service.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/appservice/app_service.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/appservice/app_service.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
53.009174
242
0.677051
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
175
22,510
23
a983892c4684a61ec17c01c2092469fb87b0c735
5,733
py
Python
process/sample.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
2
2022-02-08T06:45:41.000Z
2022-02-09T03:49:54.000Z
process/sample.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
null
null
null
process/sample.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
null
null
null
import torch import time import random import torch.utils.data import torch.nn.functional as F from dataset import NASBenchDataset, SplitSubet from sampler import ArchSampler from .train_utils import *
41.543478
168
0.6869
import torch import time import random import torch.utils.data import torch.nn.functional as F from dataset import NASBenchDataset, SplitSubet from sampler import ArchSampler from .train_utils import * def evaluate_sampled_batch(model, sampler : ArchSampler, tier_list, batch_statics_dict, dataset : NASBenchDataset, ...
5,507
0
23
25b4895e6bf5d57fb5261b42596c049b8a96134d
14,537
py
Python
example/example4/ExampleScript_DL.py
sanjayg0/PLoM
d1a090fc316c296a1e3ec46598886bb9a6206471
[ "MIT" ]
null
null
null
example/example4/ExampleScript_DL.py
sanjayg0/PLoM
d1a090fc316c296a1e3ec46598886bb9a6206471
[ "MIT" ]
null
null
null
example/example4/ExampleScript_DL.py
sanjayg0/PLoM
d1a090fc316c296a1e3ec46598886bb9a6206471
[ "MIT" ]
1
2022-01-27T17:15:24.000Z
2022-01-27T17:15:24.000Z
#!/usr/bin/env python # coding: utf-8 # ## Damage and Loss Assessment (12-story RC frame) # # This example continues the example2 to conduct damage and loss assessment using the PLoM model and compare the results against the results based on MSA # ### Run example2 import numpy as np import random import time from m...
31.879386
426
0.675174
#!/usr/bin/env python # coding: utf-8 # ## Damage and Loss Assessment (12-story RC frame) # # This example continues the example2 to conduct damage and loss assessment using the PLoM model and compare the results against the results based on MSA # ### Run example2 import numpy as np import random import time from m...
0
0
0
e74ee302a0d4f8e6bef549312e085aefbaf2a733
267
py
Python
juniper_official/Solutions/EX-KPIs-monitoring/diff-percentage.py
vvikramb/healthbot-rules
72bdad144bebb512e9ac32d607b5924d96225334
[ "Apache-2.0", "BSD-3-Clause" ]
43
2018-11-27T00:42:45.000Z
2022-02-24T01:19:39.000Z
juniper_official/Solutions/EX-KPIs-monitoring/diff-percentage.py
vvikramb/healthbot-rules
72bdad144bebb512e9ac32d607b5924d96225334
[ "Apache-2.0", "BSD-3-Clause" ]
266
2018-10-26T10:19:04.000Z
2022-03-16T04:38:29.000Z
juniper_official/Solutions/EX-KPIs-monitoring/diff-percentage.py
vvikramb/healthbot-rules
72bdad144bebb512e9ac32d607b5924d96225334
[ "Apache-2.0", "BSD-3-Clause" ]
99
2018-10-25T09:53:55.000Z
2021-12-07T09:51:59.000Z
from __future__ import division
29.666667
56
0.726592
from __future__ import division def diff_percentage(max_count, min_count, **kwargs): difference_count = int(max_count) - int(min_count) if difference_count == 0: return 0 variation = int(difference_count/int(min_count))*100 return variation
212
0
23
72308a06717bdd54ae6fb621a24be73315bf28a2
6,246
py
Python
pyinjective/proto/exchange/injective_auction_rpc_pb2_grpc.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
10
2021-09-07T08:03:52.000Z
2022-03-08T08:39:30.000Z
pyinjective/proto/exchange/injective_auction_rpc_pb2_grpc.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
39
2021-08-19T20:09:35.000Z
2022-03-22T19:51:59.000Z
pyinjective/proto/exchange/injective_auction_rpc_pb2_grpc.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
5
2021-11-02T16:23:48.000Z
2022-01-20T22:30:05.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from exchange import injective_auction_rpc_pb2 as exchange_dot_injective__auction__rpc__pb2 class InjectiveAuctionRPCStub(object): """InjectiveAuctionRPC d...
44.935252
123
0.694685
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from exchange import injective_auction_rpc_pb2 as exchange_dot_injective__auction__rpc__pb2 class InjectiveAuctionRPCStub(object): """InjectiveAuctionRPC d...
3,388
0
101
d0bcb99484e5e8980e30e635e29847cb661bcabd
1,707
py
Python
daycare.py
nanomosfet/startbootstrap-creative
7489efd2fa109bd69e7e5c8f248e44f4aff13cc6
[ "MIT" ]
null
null
null
daycare.py
nanomosfet/startbootstrap-creative
7489efd2fa109bd69e7e5c8f248e44f4aff13cc6
[ "MIT" ]
null
null
null
daycare.py
nanomosfet/startbootstrap-creative
7489efd2fa109bd69e7e5c8f248e44f4aff13cc6
[ "MIT" ]
null
null
null
# Copyright 2016 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 w...
29.431034
79
0.673697
# Copyright 2016 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 w...
325
36
214
f34a8e256c671951d588fb57c741d18eea4ce458
14,337
py
Python
Voicelab/toolkits/Voicelab/F1F2PlotNode.py
KorewaLidesu/VoiceLab
afae638b94fd6bb52d6269122636a6f125651f13
[ "MIT" ]
null
null
null
Voicelab/toolkits/Voicelab/F1F2PlotNode.py
KorewaLidesu/VoiceLab
afae638b94fd6bb52d6269122636a6f125651f13
[ "MIT" ]
null
null
null
Voicelab/toolkits/Voicelab/F1F2PlotNode.py
KorewaLidesu/VoiceLab
afae638b94fd6bb52d6269122636a6f125651f13
[ "MIT" ]
null
null
null
from Voicelab.pipeline.Node import Node import parselmouth from parselmouth.praat import call from Voicelab.toolkits.Voicelab.VoicelabNode import VoicelabNode from Voicelab.toolkits.Voicelab.MeasureFormantNode import MeasureFormantNode from Voicelab.VoicelabWizard.VoicelabTab import VoicelabTab from Voicelab.VoicelabWi...
36.57398
185
0.537281
from Voicelab.pipeline.Node import Node import parselmouth from parselmouth.praat import call from Voicelab.toolkits.Voicelab.VoicelabNode import VoicelabNode from Voicelab.toolkits.Voicelab.MeasureFormantNode import MeasureFormantNode from Voicelab.VoicelabWizard.VoicelabTab import VoicelabTab from Voicelab.VoicelabWi...
8,808
3,007
23
887dabde0da3f8b7a4658b2aec83eec101e1cad8
10,305
py
Python
pypiserver/backend.py
GeekMasherOrg/pypiserver
562dbbbfc5783aea160ef44f2c824860ab35a248
[ "MIT" ]
null
null
null
pypiserver/backend.py
GeekMasherOrg/pypiserver
562dbbbfc5783aea160ef44f2c824860ab35a248
[ "MIT" ]
null
null
null
pypiserver/backend.py
GeekMasherOrg/pypiserver
562dbbbfc5783aea160ef44f2c824860ab35a248
[ "MIT" ]
null
null
null
import abc import functools import hashlib import itertools import logging import os import typing as t from pathlib import Path from .cache import CacheManager, ENABLE_CACHING from .core import PkgFile from .pkg_helpers import ( normalize_pkgname, is_listed_path, guess_pkgname_and_version, ) if t.TYPE_CH...
31.610429
80
0.635032
import abc import functools import hashlib import itertools import logging import os import typing as t from pathlib import Path from .cache import CacheManager, ENABLE_CACHING from .core import PkgFile from .pkg_helpers import ( normalize_pkgname, is_listed_path, guess_pkgname_and_version, ) if t.TYPE_CH...
4,749
3,504
498
50fedeeb0a8b0e4fab75f1a80ff905da32cd4052
1,056
py
Python
photobooth.py
roryj/photobomb
f75366404b2808be5a0ac2385a6c5a9d4f5c7851
[ "Apache-2.0" ]
null
null
null
photobooth.py
roryj/photobomb
f75366404b2808be5a0ac2385a6c5a9d4f5c7851
[ "Apache-2.0" ]
null
null
null
photobooth.py
roryj/photobomb
f75366404b2808be5a0ac2385a6c5a9d4f5c7851
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path from lib.photobooth import Photobooth, PhotoPrinter, RandomStaticPhoto if __name__ == "__main__": main()
24.55814
80
0.617424
import argparse from pathlib import Path from lib.photobooth import Photobooth, PhotoPrinter, RandomStaticPhoto def main(): parser = argparse.ArgumentParser(description="Some spooky ass photobombing") parser.add_argument( "--input-files", nargs="+", help="""the list of images to inclu...
879
0
23
505ed46d267856de4a0f5f290547d7e70da255b0
2,597
py
Python
graph_weather/models/layers/processor.py
openclimatefix/graph_weather
e00b75418d62181d213fede2925bb100b4091f57
[ "MIT" ]
6
2022-02-25T09:27:57.000Z
2022-03-28T22:26:56.000Z
graph_weather/models/layers/processor.py
openclimatefix/graph_weather
e00b75418d62181d213fede2925bb100b4091f57
[ "MIT" ]
11
2022-02-25T08:24:17.000Z
2022-03-30T18:31:16.000Z
graph_weather/models/layers/processor.py
openclimatefix/graph_weather
e00b75418d62181d213fede2925bb100b4091f57
[ "MIT" ]
null
null
null
"""Processor for the latent graph In the original paper the processor is described as The Processor iteratively processes the 256-channel latent feature data on the icosahedron grid using 9 rounds of message-passing GNNs. During each round, a node exchanges information with itself and its immediate neighbors. There a...
35.575342
100
0.659992
"""Processor for the latent graph In the original paper the processor is described as The Processor iteratively processes the 256-channel latent feature data on the icosahedron grid using 9 rounds of message-passing GNNs. During each round, a node exchanges information with itself and its immediate neighbors. There a...
0
0
0
db99d7b50bb22bb56bc201d9b14ecbfc6b6597a8
2,289
py
Python
scripts/commit_validation/commit_validation/validators/crc_validator.py
whywhywhyw/o3de
8e09f66799d4c8f188d45861d821e8656a554cb1
[ "Apache-2.0", "MIT" ]
11
2021-07-08T09:58:26.000Z
2022-03-17T17:59:26.000Z
scripts/commit_validation/commit_validation/validators/crc_validator.py
whywhywhyw/o3de
8e09f66799d4c8f188d45861d821e8656a554cb1
[ "Apache-2.0", "MIT" ]
29
2021-07-06T19:33:52.000Z
2022-03-22T10:27:49.000Z
scripts/commit_validation/commit_validation/validators/crc_validator.py
whywhywhyw/o3de
8e09f66799d4c8f188d45861d821e8656a554cb1
[ "Apache-2.0", "MIT" ]
4
2021-07-06T19:24:43.000Z
2022-03-31T12:42:27.000Z
# # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # import binascii import fnmatch import pathlib import re from typing import Type, List from commit_validat...
46.714286
137
0.602446
# # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # import binascii import fnmatch import pathlib import re from typing import Type, List from commit_validat...
1,577
0
27
8dda0fa32095fbf8216f13fbda3a9ed036e7698a
371
py
Python
acmicpc/1076/1076.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/1076/1076.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/1076/1076.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
resistor = {'black':0, 'brown':1, 'red':2, 'orange':3, 'yellow':4, 'green': 5, 'blue':6, 'violet':7, 'grey':8, 'white':9} first = str(resistor[input()]) if first == 0: first = '' second = str(resistor[input()]) if second == 0: second = '' answer = int(first + second) third = 10**resistor[input()] if answer ==...
21.823529
121
0.571429
resistor = {'black':0, 'brown':1, 'red':2, 'orange':3, 'yellow':4, 'green': 5, 'blue':6, 'violet':7, 'grey':8, 'white':9} first = str(resistor[input()]) if first == 0: first = '' second = str(resistor[input()]) if second == 0: second = '' answer = int(first + second) third = 10**resistor[input()] if answer ==...
0
0
0
f61694dc7d853e928e491991d31a759f86ce1810
1,026
py
Python
Practice(Beginner)/FLOW014.py
8Bit1Byte/Codechef-Solutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
2
2021-05-24T11:20:46.000Z
2021-06-18T12:21:43.000Z
Practice(Beginner)/FLOW014.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
Practice(Beginner)/FLOW014.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
''' Problem Name: Grade The Steel Problem Code: FLOW014 Problem Type: https://www.codechef.com/problems/school Problem Link: https://www.codechef.com/problems/FLOW014 Solution Link: https://www.codechef.com/viewsolution/46845982 ''' from sys import stdin, stdout if __name__ == '__main__': t =...
28.5
73
0.576998
''' Problem Name: Grade The Steel Problem Code: FLOW014 Problem Type: https://www.codechef.com/problems/school Problem Link: https://www.codechef.com/problems/FLOW014 Solution Link: https://www.codechef.com/viewsolution/46845982 ''' from sys import stdin, stdout def main(t): curInx = t wh...
648
0
23
70e95ffdf057e015400ccde8b613d5998d074987
3,795
py
Python
tests/unit/pipert/core/base/synchronizer_routines/test_synchronizer_node.py
OperationalBina/PipeRT2
2033f7c55d4eeca4749f6a0cc151a65863d3dfde
[ "MIT" ]
1
2021-11-23T17:20:11.000Z
2021-11-23T17:20:11.000Z
tests/unit/pipert/core/base/synchronizer_routines/test_synchronizer_node.py
OperationalBina/PipeRT2
2033f7c55d4eeca4749f6a0cc151a65863d3dfde
[ "MIT" ]
124
2021-05-10T06:35:48.000Z
2022-03-10T09:25:27.000Z
tests/unit/pipert/core/base/synchronizer_routines/test_synchronizer_node.py
OperationalBina/PipeRT2
2033f7c55d4eeca4749f6a0cc151a65863d3dfde
[ "MIT" ]
4
2021-09-12T08:10:10.000Z
2021-11-29T12:10:20.000Z
from pytest_mock import MockerFixture from pipert2.core.base.synchronise_routines.synchroniser_node import SynchroniserNode
28.320896
99
0.683267
from pytest_mock import MockerFixture from pipert2.core.base.synchronise_routines.synchroniser_node import SynchroniserNode def test_update_fps_by_nodes_required_fps_in_leaf_should_change_source_fps_to_leaf(): d1 = SynchroniserNode(routine_name="d1", flow_name="f1", nodes=[]) d1.curr_fps = 3 d1.original_f...
3,527
0
138
1448808aed17c2d8d7ba348ba21aff1e330f5e23
8,067
py
Python
test.py
1337235931/tensorflow-bee-yolov3_lastversion
daab74071a992bbb5c1e991b7618d8adef8321c3
[ "MIT" ]
1
2021-07-04T04:11:01.000Z
2021-07-04T04:11:01.000Z
test.py
1337235931/tensorflow-bee-yolov3_lastversion
daab74071a992bbb5c1e991b7618d8adef8321c3
[ "MIT" ]
null
null
null
test.py
1337235931/tensorflow-bee-yolov3_lastversion
daab74071a992bbb5c1e991b7618d8adef8321c3
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding=utf-8 import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import cv2 import numpy as np import core.utils as utils import tensorflow as tf import re from PIL import Image import xml.etree.ElementTree as ET from xml.etree import ElementTree # 导入ElementTree模块 return_elements = ["input/inpu...
41.369231
125
0.460022
#! /usr/bin/env python # coding=utf-8 import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import cv2 import numpy as np import core.utils as utils import tensorflow as tf import re from PIL import Image import xml.etree.ElementTree as ET from xml.etree import ElementTree # 导入ElementTree模块 return_elements = ["input/inpu...
8,036
0
46
1c4584ac1bc01ab917fbb00db92b230e45196a27
5,228
py
Python
export.py
OleksandrBlack/safecoinnodes
0021edc8e72e078fcd7bedb465292c96caeeb148
[ "MIT" ]
null
null
null
export.py
OleksandrBlack/safecoinnodes
0021edc8e72e078fcd7bedb465292c96caeeb148
[ "MIT" ]
null
null
null
export.py
OleksandrBlack/safecoinnodes
0021edc8e72e078fcd7bedb465292c96caeeb148
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # export.py - Exports enumerated data for reachable nodes into a JSON file. # # Copyright (c) Addy Yeow Chin Heng <ayeowch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (th...
32.271605
79
0.655318
#!/usr/bin/env python # -*- coding: utf-8 -*- # # export.py - Exports enumerated data for reachable nodes into a JSON file. # # Copyright (c) Addy Yeow Chin Heng <ayeowch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (th...
1,609
0
23
792a4f6c77e7eb1074ad85c3e990c257d8cd4247
3,305
py
Python
report.py
omelinb/Employees-report
74412bfe520a3bb6d771cba05ecf6077a9f9543f
[ "MIT" ]
null
null
null
report.py
omelinb/Employees-report
74412bfe520a3bb6d771cba05ecf6077a9f9543f
[ "MIT" ]
null
null
null
report.py
omelinb/Employees-report
74412bfe520a3bb6d771cba05ecf6077a9f9543f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import csv import sys import argparse from statistics import median from collections import OrderedDict if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("datafile", type=str, help="name of file with employees data") parser.add_argument("-g", "...
34.427083
115
0.544024
#!/usr/bin/python3 import os import csv import sys import argparse from statistics import median from collections import OrderedDict class Report: def __init__(self, datafile, group_size=3): self.datafile = datafile self.group_size = group_size def _calculate_medians(self, data): ...
1,301
1,438
23
b6b09565814145d42a96ccc254c7b72460ee6fdd
4,396
py
Python
explorer/models/overview.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
null
null
null
explorer/models/overview.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
null
null
null
explorer/models/overview.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
1
2022-03-02T19:20:52.000Z
2022-03-02T19:20:52.000Z
import mongoengine.fields as fields from base.db.mongo import MongoBaseModel, Decimal2Field
49.393258
83
0.710419
import mongoengine.fields as fields from base.db.mongo import MongoBaseModel, Decimal2Field class Overview(MongoBaseModel): power = Decimal2Field(help_text="有效算力", precision=0, default=0) raw_power = Decimal2Field(help_text="原值算力", precision=0, default=0) active_miner_count = fields.LongField(help_text="活...
0
4,622
69
42ed2a7474ede574416e5a194487875551b3ed30
1,035
py
Python
db.py
a13ph/text-to-notion-bot
0de684b64535658e514492cee14fb841837f8e88
[ "MIT" ]
1
2021-02-12T19:02:43.000Z
2021-02-12T19:02:43.000Z
db.py
a13ph/text-to-notion-bot
0de684b64535658e514492cee14fb841837f8e88
[ "MIT" ]
null
null
null
db.py
a13ph/text-to-notion-bot
0de684b64535658e514492cee14fb841837f8e88
[ "MIT" ]
null
null
null
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from sqlalchemy.orm import sessionmaker Base = declarative_base() engine = create_engine(os.environ['DATABASE_URL_NOTION']) DBSession = sessionmaker(bind=engine) sessio...
27.236842
73
0.730435
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from sqlalchemy.orm import sessionmaker Base = declarative_base() engine = create_engine(os.environ['DATABASE_URL_NOTION']) DBSession = sessionmaker(bind=engine) sessio...
316
218
69
545f5c0e19b974559bd542dc7ae6b1b359f6f27b
166
py
Python
Timeline/admin/apps.py
Lapeth/timeline
a85ca9a2e451700ff489bf5fc738b8070bf38041
[ "Apache-2.0" ]
null
null
null
Timeline/admin/apps.py
Lapeth/timeline
a85ca9a2e451700ff489bf5fc738b8070bf38041
[ "Apache-2.0" ]
null
null
null
Timeline/admin/apps.py
Lapeth/timeline
a85ca9a2e451700ff489bf5fc738b8070bf38041
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
27.666667
44
0.746988
from django.apps import AppConfig class AdminConfig(AppConfig): name = "Timeline.admin" label = "Timeline_admin" verbose_name = "Timeline administration"
0
110
23
cca3c9716c20ebc6cc31ba13d055d6e2b921d401
1,574
py
Python
src/ros_drawsquare/scripts/draw.py
mynameisvinn/catkin_ws
d63eca698b91add14d18ae87d1bc884a36d460f6
[ "MIT" ]
null
null
null
src/ros_drawsquare/scripts/draw.py
mynameisvinn/catkin_ws
d63eca698b91add14d18ae87d1bc884a36d460f6
[ "MIT" ]
null
null
null
src/ros_drawsquare/scripts/draw.py
mynameisvinn/catkin_ws
d63eca698b91add14d18ae87d1bc884a36d460f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from math import radians if __name__ == '__main__': DrawASquare()
30.862745
96
0.63723
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from math import radians def DrawASquare(): # initiliaze a ros node called drawawquare rospy.init_node('drawasquare', anonymous=False) # What to do you ctrl + c rospy.on_shutdown(myshutdowncallback) # create a pub...
1,365
0
66
6005bb0f9590a149e8faf384eba0e724ce2ad5a3
5,714
py
Python
applications/volnet/export_volnet.py
shamanDevel/fV-SRN
966926ee678a0db0f1c67661537c4bb7eec0c56f
[ "MIT" ]
13
2021-12-06T05:08:09.000Z
2022-03-07T15:11:06.000Z
applications/volnet/export_volnet.py
shamanDevel/fV-SRN
966926ee678a0db0f1c67661537c4bb7eec0c56f
[ "MIT" ]
1
2022-02-07T10:07:44.000Z
2022-02-24T14:13:50.000Z
applications/volnet/export_volnet.py
shamanDevel/fV-SRN
966926ee678a0db0f1c67661537c4bb7eec0c56f
[ "MIT" ]
5
2021-12-13T07:02:23.000Z
2022-01-12T15:46:44.000Z
""" Exports the trained networks to the renderer """ import sys import os sys.path.insert(0, os.getcwd()) import torch import h5py import argparse import io from typing import Union from collections import OrderedDict from tests.volnet.network import InputParametrization, OutputParametrization, SceneNetwork from dif...
41.405797
110
0.666608
""" Exports the trained networks to the renderer """ import sys import os sys.path.insert(0, os.getcwd()) import torch import h5py import argparse import io from typing import Union from collections import OrderedDict from tests.volnet.network import InputParametrization, OutputParametrization, SceneNetwork from dif...
5,147
-1
150
9fb48fd2f1044fca482e3d8b3a6addb631e34497
4,776
py
Python
scripts/sort_concat_format_seqs.py
liberjul/Benniella_phylogenetics
532a2d3d6cbc5d480b4c98c5cb3b0bf927f4fdf9
[ "MIT" ]
null
null
null
scripts/sort_concat_format_seqs.py
liberjul/Benniella_phylogenetics
532a2d3d6cbc5d480b4c98c5cb3b0bf927f4fdf9
[ "MIT" ]
null
null
null
scripts/sort_concat_format_seqs.py
liberjul/Benniella_phylogenetics
532a2d3d6cbc5d480b4c98c5cb3b0bf927f4fdf9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob, os, argparse parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", type=str, help="input FASTA") parser.add_argument("-o", "--output", type=str, help="output files path and prefix") args = parser.parse_args() fastas = glob.glob(args.input) header_list = [] seq_dic...
32.489796
164
0.565536
#!/usr/bin/env python import glob, os, argparse def external_unknown(seq, char="N"): first_char_pos = len(seq) last_char_pos = -1 for i in range(len(seq)): if seq[i] != "-": first_char_pos = i break for i in range(len(seq)): if seq[len(seq) - i - 1] != "-": ...
692
0
46
67e8aad0e66283178743149022d323644a36b6e5
2,277
py
Python
tests/sql/test_sql_filters.py
rhideg/python-query-filter-builder
7b84fb28743990fab353c1776612f492702051d8
[ "MIT" ]
null
null
null
tests/sql/test_sql_filters.py
rhideg/python-query-filter-builder
7b84fb28743990fab353c1776612f492702051d8
[ "MIT" ]
null
null
null
tests/sql/test_sql_filters.py
rhideg/python-query-filter-builder
7b84fb28743990fab353c1776612f492702051d8
[ "MIT" ]
null
null
null
from query_filter_builder.sql.sql_filters import convert_to_sql_with_params simple_obj = { "version": 0.1, "filters": [ { "col": "col1", "value": "asd", }, { "col": "col2", "value": "~asd", }, { "col": "col3", ...
27.107143
133
0.444444
from query_filter_builder.sql.sql_filters import convert_to_sql_with_params simple_obj = { "version": 0.1, "filters": [ { "col": "col1", "value": "asd", }, { "col": "col2", "value": "~asd", }, { "col": "col3", ...
976
0
69
22ea549d48256651eb4b860338f98a6e12017b36
3,565
py
Python
Windows/main/StonePaperScissorv2.py
balaji303/stonepaperpi
7bf33c20109c43b5549520bda1d836898ee20991
[ "MIT" ]
null
null
null
Windows/main/StonePaperScissorv2.py
balaji303/stonepaperpi
7bf33c20109c43b5549520bda1d836898ee20991
[ "MIT" ]
null
null
null
Windows/main/StonePaperScissorv2.py
balaji303/stonepaperpi
7bf33c20109c43b5549520bda1d836898ee20991
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------ # StonePaperPi # Please review ReadMe for instructions on how to build and run the program # # (c) 2022 by Balaji # MIT License # paper # scissor # stone # pip install lobe # pip3 install --extra-index-url https://google-coral.github.io/py-repo...
27.635659
133
0.542777
# ------------------------------------------------------------------------ # StonePaperPi # Please review ReadMe for instructions on how to build and run the program # # (c) 2022 by Balaji # MIT License # paper # scissor # stone # pip install lobe # pip3 install --extra-index-url https://google-coral.github.io/py-repo...
1,664
0
67
3199fd64e0d3d64f127e0f1ee9ab4451565c3b8e
2,619
py
Python
xls/dslx/fuzzer/ast_generator_test.py
ted-xie/xls
ef48ade3403fffc6481ffd779e49aa7082ee268f
[ "Apache-2.0" ]
null
null
null
xls/dslx/fuzzer/ast_generator_test.py
ted-xie/xls
ef48ade3403fffc6481ffd779e49aa7082ee268f
[ "Apache-2.0" ]
null
null
null
xls/dslx/fuzzer/ast_generator_test.py
ted-xie/xls
ef48ade3403fffc6481ffd779e49aa7082ee268f
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # # 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 a...
32.7375
79
0.714395
# Lint as: python3 # # 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 a...
1,544
21
123
b3e094df207cc0e9ff1ec4a290ccecf33836b54d
541
py
Python
les9.py
DyadyaYasha/git_les
f818b6dbfb19a0e8b634dc58e13f0ba6fd6189d8
[ "Apache-2.0" ]
null
null
null
les9.py
DyadyaYasha/git_les
f818b6dbfb19a0e8b634dc58e13f0ba6fd6189d8
[ "Apache-2.0" ]
null
null
null
les9.py
DyadyaYasha/git_les
f818b6dbfb19a0e8b634dc58e13f0ba6fd6189d8
[ "Apache-2.0" ]
null
null
null
# Исключения try: # в блоке try пишется код который потенциально приводит к ошибке n = int(input()) import lalala raise TypeError('Что-то пошло не так') # выбрасывается исключение except ValueError: # except можно типизировать т.е. написать какие ошибки отлавливать print('Не число!!...
28.473684
88
0.7061
# Исключения class CustomError(Exception): pass try: # в блоке try пишется код который потенциально приводит к ошибке n = int(input()) import lalala raise TypeError('Что-то пошло не так') # выбрасывается исключение except ValueError: # except можно типизировать т.е. написать какие ...
0
17
23
176f22bb031e1f2b7f913d2251d4102880bd9648
7,580
py
Python
autogalaxy/mock/fixtures.py
jonathanfrawley/PyAutoGalaxy
55fb44f22ce5490318378dc31596c887d0d2e29b
[ "MIT" ]
null
null
null
autogalaxy/mock/fixtures.py
jonathanfrawley/PyAutoGalaxy
55fb44f22ce5490318378dc31596c887d0d2e29b
[ "MIT" ]
null
null
null
autogalaxy/mock/fixtures.py
jonathanfrawley/PyAutoGalaxy
55fb44f22ce5490318378dc31596c887d0d2e29b
[ "MIT" ]
null
null
null
import autogalaxy as ag from autoarray.mock.fixtures import * from autofit.mock.mock_search import MockSamples, MockSearch from autogalaxy.plot.mat_wrap.lensing_include import Include1D, Include2D # # MODEL # # # PROFILES # # GALAXY # # Plane # # GALAX...
24.37299
89
0.692876
import autogalaxy as ag from autoarray.mock.fixtures import * from autofit.mock.mock_search import MockSamples, MockSearch from autogalaxy.plot.mat_wrap.lensing_include import Include1D, Include2D def make_masked_imaging_7x7(): imaging_7x7 = make_imaging_7x7() masked_imaging_7x7 = imaging_7x7.appl...
6,031
0
1,125
84bbaa3bcb2ae4673f501b9874dbb571586c1179
3,731
py
Python
gui/calculator.py
k2ev/PyAppCalc
e846450ddf3a30538d86d6cc0a6af254bb113ec4
[ "MIT" ]
null
null
null
gui/calculator.py
k2ev/PyAppCalc
e846450ddf3a30538d86d6cc0a6af254bb113ec4
[ "MIT" ]
null
null
null
gui/calculator.py
k2ev/PyAppCalc
e846450ddf3a30538d86d6cc0a6af254bb113ec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'calculator.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
46.6375
75
0.711873
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'calculator.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): Main...
3,403
7
76
a3989f73ffd7742662d3774141602ff3f824fbff
9,218
py
Python
tests/pytests/functional/modules/test_archive.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
2
2017-12-01T19:20:49.000Z
2018-10-03T23:54:12.000Z
tests/pytests/functional/modules/test_archive.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
9
2021-03-31T20:25:25.000Z
2021-07-04T05:33:46.000Z
tests/pytests/functional/modules/test_archive.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
1
2019-12-17T13:37:16.000Z
2019-12-17T13:37:16.000Z
""" Tests for the archive state """ import os import pathlib import shutil import tempfile import textwrap import attr import pytest import salt.utils.files import salt.utils.path import salt.utils.platform import salt.utils.stringutils try: import zipfile # pylint: disable=unused-import HAS_ZIPFILE = True ...
30.422442
88
0.644066
""" Tests for the archive state """ import os import pathlib import shutil import tempfile import textwrap import attr import pytest import salt.utils.files import salt.utils.path import salt.utils.platform import salt.utils.stringutils try: import zipfile # pylint: disable=unused-import HAS_ZIPFILE = True ...
2,097
1,489
89
c5202aca1f24dea8e22296b5b65244b261dc1aa8
602
py
Python
datasources/migrations/0015_datasource_prov_exempt.py
tiferrei/PEDASI
b819aee93de99c00a1aa3eb9d32102b89f72459e
[ "MIT" ]
null
null
null
datasources/migrations/0015_datasource_prov_exempt.py
tiferrei/PEDASI
b819aee93de99c00a1aa3eb9d32102b89f72459e
[ "MIT" ]
18
2019-02-27T12:39:27.000Z
2021-03-24T16:32:47.000Z
datasources/migrations/0015_datasource_prov_exempt.py
Southampton-RSG/PEDASI-IoT
25a111ac7cf4b23fee50ad8eac6ea21564954859
[ "MIT" ]
1
2021-02-16T17:47:15.000Z
2021-02-16T17:47:15.000Z
# Generated by Django 2.0.8 on 2018-12-07 11:17 from django.db import migrations, models
31.684211
252
0.679402
# Generated by Django 2.0.8 on 2018-12-07 11:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datasources', '0014_access_control_levels'), ] operations = [ migrations.AddField( model_name='datasource', name='pr...
0
488
23
b8e6373ba1a7ed0ad82fa54546fabfc48fe2f040
1,305
py
Python
PublicWebServicesAPI_AND_servercommandScripts/removeTempCardsJob.py
jopdop30/PaperCutExamples
c2c913877bedf76a876a54957df2891a684d4a6d
[ "MIT" ]
59
2015-10-02T18:42:19.000Z
2022-01-01T09:37:26.000Z
PublicWebServicesAPI_AND_servercommandScripts/removeTempCardsJob.py
jopdop30/PaperCutExamples
c2c913877bedf76a876a54957df2891a684d4a6d
[ "MIT" ]
16
2016-06-16T06:42:49.000Z
2021-08-31T22:49:59.000Z
PublicWebServicesAPI_AND_servercommandScripts/removeTempCardsJob.py
jopdop30/PaperCutExamples
c2c913877bedf76a876a54957df2891a684d4a6d
[ "MIT" ]
20
2015-09-09T16:27:33.000Z
2020-11-12T18:17:36.000Z
#!/usr/bin/env python3 # If a user has staretd using a temp card this job will remove the card from the card field import xmlrpc.client import sys host="http://localhost:9191/rpc/api/xmlrpc" # If not localhost then this address will need to be whitelisted in PaperCut auth="atoken" # Value defined in advan...
39.545455
121
0.668199
#!/usr/bin/env python3 # If a user has staretd using a temp card this job will remove the card from the card field import xmlrpc.client import sys host="http://localhost:9191/rpc/api/xmlrpc" # If not localhost then this address will need to be whitelisted in PaperCut auth="atoken" # Value defined in advan...
0
0
0
5ea593bfc335ba0a2d02fff745998199c998f1a9
4,598
py
Python
jorldy/core/agent/reinforce.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
300
2021-11-03T07:06:34.000Z
2022-03-24T02:23:56.000Z
jorldy/core/agent/reinforce.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
37
2021-11-04T04:31:07.000Z
2022-03-30T01:40:49.000Z
jorldy/core/agent/reinforce.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
45
2021-11-03T08:05:56.000Z
2022-03-24T08:35:05.000Z
import torch torch.backends.cudnn.benchmark = True from torch.distributions import Normal import numpy as np import os from core.network import Network from core.optimizer import Optimizer from core.buffer import RolloutBuffer from .base import BaseAgent class REINFORCE(BaseAgent): """REINFORCE agent. Args...
32.153846
103
0.580252
import torch torch.backends.cudnn.benchmark = True from torch.distributions import Normal import numpy as np import os from core.network import Network from core.optimizer import Optimizer from core.buffer import RolloutBuffer from .base import BaseAgent class REINFORCE(BaseAgent): """REINFORCE agent. Args...
3,346
0
161
aeefc963986483e3b1a99f4f2cecf30498baae66
1,999
py
Python
scripts/warm_ccd.py
MattBlack85/ekos_scripts
3023a7c23b041e5de812ccccfa683c5c2a0489bf
[ "MIT" ]
null
null
null
scripts/warm_ccd.py
MattBlack85/ekos_scripts
3023a7c23b041e5de812ccccfa683c5c2a0489bf
[ "MIT" ]
null
null
null
scripts/warm_ccd.py
MattBlack85/ekos_scripts
3023a7c23b041e5de812ccccfa683c5c2a0489bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import time import dbus # NOQA: F801 from dbus.mainloop.glib import DBusGMainLoop ccd_regex = re.compile('(.*)?CCD.*') temp = 20 if __name__ == '__main__': try: main() except KeyboardInterrupt: print('\nExiting the program, bye!')
28.971014
93
0.637819
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import time import dbus # NOQA: F801 from dbus.mainloop.glib import DBusGMainLoop ccd_regex = re.compile('(.*)?CCD.*') temp = 20 class NoDevicesError(Exception): pass def main(): # Create a session bus. bus = dbus.SessionBus(mainloop=DBusGMainL...
1,616
20
46
a88754f02bb2d279d4f7c630c3677937832f39b3
865
py
Python
im_tutorials/data/arxiv.py
datasciencecampus/im_tutorials
b234069f30e5a2d631a731d51e27b367c59a2d87
[ "MIT" ]
null
null
null
im_tutorials/data/arxiv.py
datasciencecampus/im_tutorials
b234069f30e5a2d631a731d51e27b367c59a2d87
[ "MIT" ]
null
null
null
im_tutorials/data/arxiv.py
datasciencecampus/im_tutorials
b234069f30e5a2d631a731d51e27b367c59a2d87
[ "MIT" ]
1
2021-04-10T21:27:52.000Z
2021-04-10T21:27:52.000Z
import ast import smart_open import pandas as pd from im_tutorials.utilities import eval_cols, double_eval def arxiv_papers(year=2017): '''arxiv_papers Get arXiv papers csv for a single year and return as dataframe. Args: year (`int`): Year of the dataset. Returns: arxiv_df (`pd.Data...
28.833333
94
0.648555
import ast import smart_open import pandas as pd from im_tutorials.utilities import eval_cols, double_eval def arxiv_papers(year=2017): '''arxiv_papers Get arXiv papers csv for a single year and return as dataframe. Args: year (`int`): Year of the dataset. Returns: arxiv_df (`pd.Data...
0
0
0
39dcc2df49303065b07a216b393b463cf4229320
1,103
py
Python
src/huntsman/drp/utils.py
danjampro/huntsman-drp
9470c03b87991fbe09e194470f28e8b45785c206
[ "MIT" ]
null
null
null
src/huntsman/drp/utils.py
danjampro/huntsman-drp
9470c03b87991fbe09e194470f28e8b45785c206
[ "MIT" ]
null
null
null
src/huntsman/drp/utils.py
danjampro/huntsman-drp
9470c03b87991fbe09e194470f28e8b45785c206
[ "MIT" ]
null
null
null
"""Generic functions for huntsman-drp.""" from contextlib import suppress from datetime import datetime from dateutil.parser import parse as parse_date_dateutil def parse_date(object): """ Parse a date as a `datetime.datetime`. Args: object (Object): The object to parse. Returns: A `...
22.510204
73
0.642792
"""Generic functions for huntsman-drp.""" from contextlib import suppress from datetime import datetime from dateutil.parser import parse as parse_date_dateutil def parse_date(object): """ Parse a date as a `datetime.datetime`. Args: object (Object): The object to parse. Returns: A `...
0
0
0
b5b4a6a8d5c9cf256e50d530d5036e442285efdc
11,835
py
Python
src/mmgroup/structures/abstract_group.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
14
2020-07-10T20:12:05.000Z
2022-03-10T13:46:59.000Z
src/mmgroup/structures/abstract_group.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-03-09T07:05:04.000Z
2022-03-18T20:17:11.000Z
src/mmgroup/structures/abstract_group.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-02-07T21:08:00.000Z
2022-02-07T21:08:00.000Z
from __future__ import absolute_import, division, print_function from __future__ import unicode_literals """Modelling an abstract group Yet to be documented """ import sys import re import warnings from copy import deepcopy from random import sample, randint from numbers import Integral, Number from mmgroup.struc...
31.56
76
0.569497
from __future__ import absolute_import, division, print_function from __future__ import unicode_literals """Modelling an abstract group Yet to be documented """ import sys import re import warnings from copy import deepcopy from random import sample, randint from numbers import Integral, Number from mmgroup.struc...
348
0
81
6eb72eb6fee18f8f571f0475441b17185d9ffa60
6,497
py
Python
symanto_fsb/labels.py
symanto-research/few-shot-learning-label-tuning
bda3af4f9948879bb631541328c753c25e6a6cc0
[ "Apache-2.0" ]
6
2022-03-08T11:06:11.000Z
2022-03-31T06:44:45.000Z
symanto_fsb/labels.py
symanto-research/few-shot-learning-label-tuning
bda3af4f9948879bb631541328c753c25e6a6cc0
[ "Apache-2.0" ]
null
null
null
symanto_fsb/labels.py
symanto-research/few-shot-learning-label-tuning
bda3af4f9948879bb631541328c753c25e6a6cc0
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Symanto Research Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.147959
98
0.507927
# Copyright 2022 The Symanto Research Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
5,831
0
46
09e2dc619c35d5411db322a66ca58bf665f99b11
5,297
py
Python
_modules/disa_stig7.py
sunayu/disa_stig7
7a0905129b9fd2fc3777b4c2143054ed5736b914
[ "Apache-2.0" ]
12
2018-07-06T03:49:55.000Z
2021-04-22T14:38:01.000Z
_modules/disa_stig7.py
sunayu/disa_stig7
7a0905129b9fd2fc3777b4c2143054ed5736b914
[ "Apache-2.0" ]
2
2019-01-15T15:44:37.000Z
2019-01-16T13:57:57.000Z
_modules/disa_stig7.py
sunayu/disa_stig7
7a0905129b9fd2fc3777b4c2143054ed5736b914
[ "Apache-2.0" ]
3
2018-11-30T14:51:33.000Z
2019-10-09T17:09:59.000Z
# Copyright [2018] [Sunayu 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 agreed to...
29.104396
107
0.58939
# Copyright [2018] [Sunayu 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 agreed to...
4,002
0
162
f9f3cbd68c16ef7e7c923d55e2389dd8e2c192bf
2,758
py
Python
migrations/versions/df19fc248886_initial_migration.py
martingathu/Pitches
436098ec1457b52dcaf8d3472acc04200cda4176
[ "MIT" ]
null
null
null
migrations/versions/df19fc248886_initial_migration.py
martingathu/Pitches
436098ec1457b52dcaf8d3472acc04200cda4176
[ "MIT" ]
null
null
null
migrations/versions/df19fc248886_initial_migration.py
martingathu/Pitches
436098ec1457b52dcaf8d3472acc04200cda4176
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: df19fc248886 Revises: Create Date: 2020-05-04 14:05:37.920674 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'df19fc248886' down_revision = None branch_labels = None depends_on = None
41.787879
135
0.680566
"""Initial Migration Revision ID: df19fc248886 Revises: Create Date: 2020-05-04 14:05:37.920674 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'df19fc248886' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
2,431
0
46
4461c8604a4346809d117ad8771559742a70c7bf
283
py
Python
backend/flockly/mongo.py
Flockly/Flockly
1dcaa4d17f049ceba2566d182106c7f898455657
[ "WTFPL" ]
1
2018-04-26T23:34:09.000Z
2018-04-26T23:34:09.000Z
backend/flockly/mongo.py
Flockly/Flockly
1dcaa4d17f049ceba2566d182106c7f898455657
[ "WTFPL" ]
null
null
null
backend/flockly/mongo.py
Flockly/Flockly
1dcaa4d17f049ceba2566d182106c7f898455657
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: mongo.py # $Date: Fri Feb 14 20:24:26 2014 +0800 # $Author: Xiaoyu Liu <i[at]vuryleo[dot]com> """database connections""" from mongoengine import connect import config connect(config.DATABASE_NAME) # vim: foldmethod=marker
17.6875
44
0.699647
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: mongo.py # $Date: Fri Feb 14 20:24:26 2014 +0800 # $Author: Xiaoyu Liu <i[at]vuryleo[dot]com> """database connections""" from mongoengine import connect import config connect(config.DATABASE_NAME) # vim: foldmethod=marker
0
0
0
d69bcdf60b5d6215abeabf00591c19e611756a14
2,084
py
Python
inter_data.py
CNwangbin/deepgozero
d2327c93d301662197cf8aced4a65b5bd3217123
[ "BSD-3-Clause" ]
5
2022-01-21T18:07:29.000Z
2022-03-16T21:38:52.000Z
inter_data.py
CNwangbin/deepgozero
d2327c93d301662197cf8aced4a65b5bd3217123
[ "BSD-3-Clause" ]
2
2022-03-02T07:35:43.000Z
2022-03-04T01:51:19.000Z
inter_data.py
CNwangbin/deepgozero
d2327c93d301662197cf8aced4a65b5bd3217123
[ "BSD-3-Clause" ]
2
2022-01-13T13:30:00.000Z
2022-03-01T10:49:55.000Z
import click as ck import pandas as pd import gzip @ck.command() @ck.option( '--data-file', '-df', default='data/swissprot_exp_annots.pkl', help='Data file generated by uni2pandas script') @ck.option( '--inter-file', '-if', default=f'data/protein.links.full.v11.0.txt.gz', help='Data file with interacti...
30.202899
88
0.56334
import click as ck import pandas as pd import gzip @ck.command() @ck.option( '--data-file', '-df', default='data/swissprot_exp_annots.pkl', help='Data file generated by uni2pandas script') @ck.option( '--inter-file', '-if', default=f'data/protein.links.full.v11.0.txt.gz', help='Data file with interacti...
1,511
0
22
36f172e86974dc32e0992bbc848591f9dbfabcb2
1,987
py
Python
jessiql/sainfo/relations.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/sainfo/relations.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/sainfo/relations.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
from __future__ import annotations from sqlalchemy.orm import RelationshipProperty from sqlalchemy.orm.attributes import InstrumentedAttribute from sqlalchemy.orm.base import ( ONETOMANY, MANYTOONE, MANYTOMANY, ) from sqlalchemy.orm.dynamic import DynaLoader try: # Python 3.9+ from functools impor...
25.151899
109
0.749371
from __future__ import annotations from sqlalchemy.orm import RelationshipProperty from sqlalchemy.orm.attributes import InstrumentedAttribute from sqlalchemy.orm.base import ( ONETOMANY, MANYTOONE, MANYTOMANY, ) from sqlalchemy.orm.dynamic import DynaLoader try: # Python 3.9+ from functools impor...
1,179
0
133
a432a23771d1a3d909226a6514489611f7b5bf1a
3,190
py
Python
app/adm/urls.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
null
null
null
app/adm/urls.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
2
2021-09-02T04:22:45.000Z
2021-09-02T04:52:26.000Z
app/adm/urls.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
1
2021-09-15T02:16:38.000Z
2021-09-15T02:16:38.000Z
# -*- coding: utf-8 -*- from adm import views from django.urls import path app_name = "adm" urlpatterns = [ # Processo path('instaurar/', views.criar_processo_adm, name='criar_processo_adm'), path('listar/', views.listar_adm, name='listar_adm'), path('listar/ajax/', views.processos_adm_ajax, name='pr...
65.102041
131
0.731348
# -*- coding: utf-8 -*- from adm import views from django.urls import path app_name = "adm" urlpatterns = [ # Processo path('instaurar/', views.criar_processo_adm, name='criar_processo_adm'), path('listar/', views.listar_adm, name='listar_adm'), path('listar/ajax/', views.processos_adm_ajax, name='pr...
0
0
0
aae42c0badb0a669d2cb68307fe40b140965d324
11,868
py
Python
cv_fisher.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
3
2020-12-05T11:28:47.000Z
2021-07-09T02:42:21.000Z
cv_fisher.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
null
null
null
cv_fisher.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
2
2021-07-09T02:42:23.000Z
2021-11-30T06:37:47.000Z
#!/usr/bin/python """ Calculate Fisher matrix and P(k) constraints for all redshift bins for a given experiment. """ import numpy as np import pylab as P import scipy.spatial, scipy.integrate, scipy.interpolate from scipy.integrate import simps import radiofisher as rf from radiofisher.units import * from radiofisher....
33.715909
100
0.493765
#!/usr/bin/python """ Calculate Fisher matrix and P(k) constraints for all redshift bins for a given experiment. """ import numpy as np import pylab as P import scipy.spatial, scipy.integrate, scipy.interpolate from scipy.integrate import simps import radiofisher as rf from radiofisher.units import * from radiofisher....
0
0
0
36129dbdd55b42e45f06edb430b1e75efd43fd2f
4,128
py
Python
tests/test_arbor.py
pattonw/ffskel
4a0bb1d61b41eef13658677e730a682e7f3e887d
[ "MIT" ]
null
null
null
tests/test_arbor.py
pattonw/ffskel
4a0bb1d61b41eef13658677e730a682e7f3e887d
[ "MIT" ]
238
2019-03-14T22:28:12.000Z
2022-03-28T05:08:18.000Z
tests/test_arbor.py
pattonw/ffskel
4a0bb1d61b41eef13658677e730a682e7f3e887d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `sarbor` package.""" import unittest import sarbor class TestSarborToy(unittest.TestCase): """Tests for `sarbor` package.""" def setUp(self): """ 0-1-2-3-4-5 | | 6 10 | 7-9 ...
34.4
78
0.578246
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `sarbor` package.""" import unittest import sarbor class TestSarborToy(unittest.TestCase): """Tests for `sarbor` package.""" def setUp(self): """ 0-1-2-3-4-5 | | 6 10 | 7-9 ...
2,216
0
213
508e6840433f9d43b714ea5df2b4a7239ec1454a
1,549
py
Python
tests/test_ahd_to_observation_smkstat.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
3
2021-11-23T16:24:21.000Z
2022-03-30T07:59:03.000Z
tests/test_ahd_to_observation_smkstat.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
40
2021-05-27T14:26:33.000Z
2022-03-29T14:29:33.000Z
tests/test_ahd_to_observation_smkstat.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
1
2021-06-30T11:11:01.000Z
2021-06-30T11:11:01.000Z
import pytest from ahd2fhir.mappers.ahd_to_observation_smkstat import AHD_TYPE, get_fhir_resources from tests.utils import map_resources AHD_PAYLOADS_EXPECTED_NUMBER_OF_CONDITIONS = [ ("payload_1.json", 3), ("payload_2.json", 0), ] @pytest.mark.parametrize( "ahd_json_path,expected_number_of_conditions",...
29.788462
84
0.757908
import pytest from ahd2fhir.mappers.ahd_to_observation_smkstat import AHD_TYPE, get_fhir_resources from tests.utils import map_resources AHD_PAYLOADS_EXPECTED_NUMBER_OF_CONDITIONS = [ ("payload_1.json", 3), ("payload_2.json", 0), ] @pytest.mark.parametrize( "ahd_json_path,expected_number_of_conditions",...
910
0
66
d91dfacc794bfa8401899395ce687c902e4f33d0
383
py
Python
setup.py
roger-selzler/ThingSpeak
92f24d04063dbd947115b7d3dd00730ed60bd17f
[ "MIT" ]
null
null
null
setup.py
roger-selzler/ThingSpeak
92f24d04063dbd947115b7d3dd00730ed60bd17f
[ "MIT" ]
null
null
null
setup.py
roger-selzler/ThingSpeak
92f24d04063dbd947115b7d3dd00730ed60bd17f
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="thingspeak", version='0.0.1', author='Roger Selzler', description='Tools to ease the manipulation of data on thingspek from Mathworks using REST API and python.', url='https://github.com/roger-selzler/ThingSpeak', packages=setupto...
38.3
116
0.64752
import setuptools setuptools.setup( name="thingspeak", version='0.0.1', author='Roger Selzler', description='Tools to ease the manipulation of data on thingspek from Mathworks using REST API and python.', url='https://github.com/roger-selzler/ThingSpeak', packages=setupto...
0
0
0
ac55b30e934ead270e6996f3d6d0a98a2c9b1a61
559
py
Python
assignments/handle_data_types_clinton.py
theCodingProfessor/intro_to_Python
87c3c4816530f4ca07091d17acf645f3261ecaea
[ "MIT" ]
null
null
null
assignments/handle_data_types_clinton.py
theCodingProfessor/intro_to_Python
87c3c4816530f4ca07091d17acf645f3261ecaea
[ "MIT" ]
null
null
null
assignments/handle_data_types_clinton.py
theCodingProfessor/intro_to_Python
87c3c4816530f4ca07091d17acf645f3261ecaea
[ "MIT" ]
null
null
null
# Copyright (C) 2021 Clinton Garwood # MIT Open Source Initiative Approved License # handle_data_types_clinton.py # CIS-135 Python # Assignment #5 # # Include five variables: # # Include three variables: # # An integer with value 1 named one one = 1 # # A float with a value 10.10 named tenTen tenTen = 10.10...
22.36
52
0.697674
# Copyright (C) 2021 Clinton Garwood # MIT Open Source Initiative Approved License # handle_data_types_clinton.py # CIS-135 Python # Assignment #5 # # Include five variables: # # Include three variables: # # An integer with value 1 named one one = 1 # # A float with a value 10.10 named tenTen tenTen = 10.10...
0
0
0
196cf73b5b7b9b6a9c40b256d5690ed0837d6048
37
py
Python
matter/__init__.py
xxxspy/matter.py
178cf22e3a7e1d2c67e0d4e4a7c04782998a2fe7
[ "MIT" ]
null
null
null
matter/__init__.py
xxxspy/matter.py
178cf22e3a7e1d2c67e0d4e4a7c04782998a2fe7
[ "MIT" ]
null
null
null
matter/__init__.py
xxxspy/matter.py
178cf22e3a7e1d2c67e0d4e4a7c04782998a2fe7
[ "MIT" ]
null
null
null
from .matter import * name = 'matter'
18.5
21
0.702703
from .matter import * name = 'matter'
0
0
0
ed893d03c940755b4da6a964c9b200036b54f479
18,886
py
Python
app/device_forms.py
ServerFarm3r/fermentrack
69748378d567f93d1adc3f3cfb10979f7054ec66
[ "MIT" ]
null
null
null
app/device_forms.py
ServerFarm3r/fermentrack
69748378d567f93d1adc3f3cfb10979f7054ec66
[ "MIT" ]
null
null
null
app/device_forms.py
ServerFarm3r/fermentrack
69748378d567f93d1adc3f3cfb10979f7054ec66
[ "MIT" ]
null
null
null
from django import forms from app.models import BrewPiDevice, OldControlConstants, NewControlConstants, SensorDevice, FermentationProfile, FermentationProfilePoint from django.core import validators import fermentrack_django.settings as settings from django.forms import ModelForm from . import udev_integration import...
56.54491
171
0.610876
from django import forms from app.models import BrewPiDevice, OldControlConstants, NewControlConstants, SensorDevice, FermentationProfile, FermentationProfilePoint from django.core import validators import fermentrack_django.settings as settings from django.forms import ModelForm from . import udev_integration import...
9,678
8,697
138
3603adf51e0d8d62fa3317a0b60a5ab6f33dc561
579
py
Python
scripts/plot_cone_response_matrix.py
MaxNoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
1
2020-11-24T19:07:55.000Z
2020-11-24T19:07:55.000Z
scripts/plot_cone_response_matrix.py
maxnoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
null
null
null
scripts/plot_cone_response_matrix.py
maxnoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy.stats import norm from soak19 import wl_to_rgb import pandas as pd cone = pd.read_csv('data/cone_response_5nm.csv', index_col=0, comment='#') fig, axs = plt.subplots(1, 3) _, h = fig.get_size_inches() fig.set_size_inches(h, h) for ax, (name, c) in zip(axs...
25.173913
74
0.711572
import matplotlib.pyplot as plt import numpy as np from scipy.stats import norm from soak19 import wl_to_rgb import pandas as pd cone = pd.read_csv('data/cone_response_5nm.csv', index_col=0, comment='#') fig, axs = plt.subplots(1, 3) _, h = fig.get_size_inches() fig.set_size_inches(h, h) for ax, (name, c) in zip(axs...
0
0
0
b8ac3e1d5e543381265ae44aa5842bc73797e9e3
1,299
py
Python
library/templatetags/library_extras.py
mwschall/storkive
5d52d5a4a06be7755aa1a93472bbc395bdb80d8f
[ "0BSD" ]
null
null
null
library/templatetags/library_extras.py
mwschall/storkive
5d52d5a4a06be7755aa1a93472bbc395bdb80d8f
[ "0BSD" ]
12
2019-12-04T22:20:55.000Z
2022-03-15T05:17:51.000Z
library/templatetags/library_extras.py
mwschall/storkive
5d52d5a4a06be7755aa1a93472bbc395bdb80d8f
[ "0BSD" ]
null
null
null
from django import template from django.template.defaultfilters import pluralize from django.utils.formats import date_format as djd_fmt register = template.Library() @register.filter # noinspection PyShadowingBuiltins @register.filter # noinspection PyShadowingBuiltins @register.filter @register.filter @reg...
25.98
86
0.682063
from django import template from django.template.defaultfilters import pluralize from django.utils.formats import date_format as djd_fmt register = template.Library() @register.filter def classes(value): return ' '.join([str(v) for v in filter(None, list(value))]) # noinspection PyShadowingBuiltins @register.f...
816
0
132
0704dd72f905f655ccaad626805cf5f840e9b8e4
3,036
py
Python
models/mlp_image_classifier.py
nuric/pix2rule
0f0f654e488a1839455786ccc4ad023c0aa0c2e8
[ "MIT" ]
6
2021-06-15T10:37:34.000Z
2022-01-26T14:41:44.000Z
models/mlp_image_classifier.py
nuric/pix2rule
0f0f654e488a1839455786ccc4ad023c0aa0c2e8
[ "MIT" ]
3
2021-08-25T15:17:22.000Z
2021-11-12T13:52:14.000Z
models/mlp_image_classifier.py
nuric/pix2rule
0f0f654e488a1839455786ccc4ad023c0aa0c2e8
[ "MIT" ]
1
2021-11-08T17:36:52.000Z
2021-11-08T17:36:52.000Z
"""Base MLP model.""" from typing import Dict, Any import tensorflow as tf import tensorflow.keras.layers as L import configlib from configlib import config as C from components.inputlayers.categorical import OneHotCategoricalInput import components.inputlayers.image import utils.factory # Setup configurable parame...
34.5
91
0.647892
"""Base MLP model.""" from typing import Dict, Any import tensorflow as tf import tensorflow.keras.layers as L import configlib from configlib import config as C from components.inputlayers.categorical import OneHotCategoricalInput import components.inputlayers.image import utils.factory # Setup configurable parame...
0
0
0
e0e6f5da15964ae5289a463d201d46fc324e20ed
4,192
py
Python
py/reorder_lines_inversed.py
WANDEX/scripts
69e8f1b9579daf2446dccae1b482e1f33480c3b1
[ "MIT" ]
3
2020-11-28T03:32:06.000Z
2021-03-04T15:05:51.000Z
py/reorder_lines_inversed.py
WANDEX/scripts
69e8f1b9579daf2446dccae1b482e1f33480c3b1
[ "MIT" ]
null
null
null
py/reorder_lines_inversed.py
WANDEX/scripts
69e8f1b9579daf2446dccae1b482e1f33480c3b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """reorder_lines_inversed.py. This module is designed to reorganize the string sequence of a simple text document. There are 2 types of string sequence reorganization in reverse order: strict and blocks. In the strict reorganization method, each row is rearranged in rever...
31.518797
78
0.57562
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """reorder_lines_inversed.py. This module is designed to reorganize the string sequence of a simple text document. There are 2 types of string sequence reorganization in reverse order: strict and blocks. In the strict reorganization method, each row is rearranged in rever...
0
0
0
daa7035a19c5dd018dd2bb1cc7912707c1250e7f
1,207
py
Python
exercises_sequence/exe045.py
gpeixotobr/exercices-python
ff1d220f11e139069cf02f2086cd10b32ba73bd7
[ "MIT" ]
null
null
null
exercises_sequence/exe045.py
gpeixotobr/exercices-python
ff1d220f11e139069cf02f2086cd10b32ba73bd7
[ "MIT" ]
null
null
null
exercises_sequence/exe045.py
gpeixotobr/exercices-python
ff1d220f11e139069cf02f2086cd10b32ba73bd7
[ "MIT" ]
null
null
null
import time from random import randint from time import sleep itens = ('Pedra','Papel', 'Tesoura') computador = randint(0, 2) print('''Suas opções: [0] PEDRA [1] PAPEL [2] TESOURA ''') jogador = int(input('Qual é a sua jogada? ')) print('-'* 20) t = 1 print('JO') time.sleep(t) print('KEN') time.sleep(t) print('PO!!!')...
24.632653
56
0.599834
import time from random import randint from time import sleep itens = ('Pedra','Papel', 'Tesoura') computador = randint(0, 2) print('''Suas opções: [0] PEDRA [1] PAPEL [2] TESOURA ''') jogador = int(input('Qual é a sua jogada? ')) print('-'* 20) t = 1 print('JO') time.sleep(t) print('KEN') time.sleep(t) print('PO!!!')...
0
0
0
22eadccf723108d079ab6ea3225009ad804dd517
130
py
Python
numpy/doc/methods_vs_functions.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
343
2015-01-07T05:58:44.000Z
2022-03-15T14:55:21.000Z
numpy/doc/methods_vs_functions.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
61
2015-03-19T18:20:21.000Z
2019-10-23T12:58:23.000Z
numpy/doc/methods_vs_functions.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
66
2015-01-20T15:35:05.000Z
2021-11-25T16:49:41.000Z
""" ===================== Methods vs. Functions ===================== Placeholder for Methods vs. Functions documentation. """
13
52
0.484615
""" ===================== Methods vs. Functions ===================== Placeholder for Methods vs. Functions documentation. """
0
0
0
2edd48bd496075f42344da37597b9e12a8a88ed5
212
py
Python
stl_dsa/test_integrations.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
stl_dsa/test_integrations.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
stl_dsa/test_integrations.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
# from stl_dsa.users.models import User # def test_user_is_member(faker): # email = faker.email() # taggings = # user = User(email=email, first_name=faker.first_name(), last_name=faker.last_name())
26.5
90
0.698113
# from stl_dsa.users.models import User # def test_user_is_member(faker): # email = faker.email() # taggings = # user = User(email=email, first_name=faker.first_name(), last_name=faker.last_name())
0
0
0
abff55820dc7fd32bcbd80476c0ee707928da92b
1,980
py
Python
src/app/drivers/peptable/model_qvals.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/peptable/model_qvals.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/peptable/model_qvals.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
from app.drivers.prottable.base import PepProttableDriver from app.actions.headers import peptable as head from app.readers import tsv as tsvreader from app.actions.peptable import model_qvals as prep from app.drivers.options import peptable_options class ModelQValuesDriver(PepProttableDriver): """Given a peptide...
45
79
0.567677
from app.drivers.prottable.base import PepProttableDriver from app.actions.headers import peptable as head from app.readers import tsv as tsvreader from app.actions.peptable import model_qvals as prep from app.drivers.options import peptable_options class ModelQValuesDriver(PepProttableDriver): """Given a peptide...
1,098
0
108
74ce51dbeaf93da9d265b60596c38f6bb72b3451
42
py
Python
data_preparation/utils/__init__.py
tomchol/ShapeConv
41ead20854daed43b59ef978665fa53f113cbb65
[ "Apache-2.0" ]
57
2021-08-03T08:03:56.000Z
2022-03-25T12:17:44.000Z
data_preparation/utils/__init__.py
tomchol/ShapeConv
41ead20854daed43b59ef978665fa53f113cbb65
[ "Apache-2.0" ]
6
2021-08-30T10:06:46.000Z
2022-03-08T12:47:20.000Z
data_preparation/utils/__init__.py
tomchol/ShapeConv
41ead20854daed43b59ef978665fa53f113cbb65
[ "Apache-2.0" ]
8
2021-08-13T08:32:54.000Z
2022-03-25T11:12:13.000Z
from . import camera, mat_utils, rgbd_util
42
42
0.809524
from . import camera, mat_utils, rgbd_util
0
0
0
76fe6dd3cdd9e636a31280b791b25f9da1c6d094
2,844
py
Python
venv/Lib/site-packages/sql/tests/test_join.py
hu120051/cybercafe_management
901b121cf8bef799d19962df7b11e16d9422421a
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/sql/tests/test_join.py
hu120051/cybercafe_management
901b121cf8bef799d19962df7b11e16d9422421a
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/sql/tests/test_join.py
hu120051/cybercafe_management
901b121cf8bef799d19962df7b11e16d9422421a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2011-2013, Cédric Krier # Copyright (c) 2011-2013, B2CK # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain...
42.447761
79
0.655767
# -*- coding: utf-8 -*- # # Copyright (c) 2011-2013, Cédric Krier # Copyright (c) 2011-2013, B2CK # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain...
1,029
13
103
1b3fccd50f2b856d572b6235bb84d70c1445b5a0
2,853
py
Python
cmd/updateEndpoint.py
robertchoi80/tks-client
ba7cb9b3e937e2e2784f8c06c2f49fb819837bf3
[ "MIT" ]
null
null
null
cmd/updateEndpoint.py
robertchoi80/tks-client
ba7cb9b3e937e2e2784f8c06c2f49fb819837bf3
[ "MIT" ]
null
null
null
cmd/updateEndpoint.py
robertchoi80/tks-client
ba7cb9b3e937e2e2784f8c06c2f49fb819837bf3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import git import ruamel.yaml import os import sys print("Entering updateEndpoint script..") parser = argparse.ArgumentParser() parser.add_argument('--action', required=True, type=str, help="action to take: 'add' or 'delete'") parser.add_argument('--cluster_name', requi...
31.7
104
0.686646
#!/usr/bin/python3 import argparse import git import ruamel.yaml import os import sys print("Entering updateEndpoint script..") parser = argparse.ArgumentParser() parser.add_argument('--action', required=True, type=str, help="action to take: 'add' or 'delete'") parser.add_argument('--cluster_name', requi...
0
0
0
39fd5e0e218d95a439da47c3fe65db27ce8897d8
11,434
py
Python
bfillings/tests/test_muscle_v38.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
bfillings/tests/test_muscle_v38.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
bfillings/tests/test_muscle_v38.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright (c) 2013--, biocore development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------...
39.839721
183
0.671856
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright (c) 2013--, biocore development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------...
0
1,983
23
b8c92b41edc7525498b3e50e34f3a76fcf2f6713
534
py
Python
helper_funcs/step_one.py
Kobsser/appScraper
ccb8febb914fde969415c6a6b2b1233683fbda39
[ "MIT" ]
null
null
null
helper_funcs/step_one.py
Kobsser/appScraper
ccb8febb914fde969415c6a6b2b1233683fbda39
[ "MIT" ]
null
null
null
helper_funcs/step_one.py
Kobsser/appScraper
ccb8febb914fde969415c6a6b2b1233683fbda39
[ "MIT" ]
null
null
null
""" STEP ONE """ import requests def request_tg_code_get_random_hash(input_phone_number): """ requests Login Code and returns a random_hash which is used in STEP TWO """ request_url = "https://my.telegram.org/auth/send_password" request_data = { "phone": input_phone_number ...
26.7
63
0.661049
""" STEP ONE """ import requests def request_tg_code_get_random_hash(input_phone_number): """ requests Login Code and returns a random_hash which is used in STEP TWO """ request_url = "https://my.telegram.org/auth/send_password" request_data = { "phone": input_phone_number ...
0
0
0
a66ae604560e37cdaa1d12503e05f6ed0c1fcecb
487
py
Python
Uso do for.py
JhonatasAntonelli/Pyhton_2
e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424
[ "MIT" ]
null
null
null
Uso do for.py
JhonatasAntonelli/Pyhton_2
e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424
[ "MIT" ]
null
null
null
Uso do for.py
JhonatasAntonelli/Pyhton_2
e455d9b8fae7e8e82dd0e44e5e25de4a49c4c424
[ "MIT" ]
null
null
null
for c in range (0,6): print('oi') for c in range (0,6): print(c) for c in range (6,0,-1): print(c) for c in range (0,20,2): print(c) n = int(input('Digite um número')) for c in range (0,n+1): print(c) i = int(input('Digite um número inicial')) f = int(input('Digite um número final')) p = int(input('...
23.190476
54
0.589322
for c in range (0,6): print('oi') for c in range (0,6): print(c) for c in range (6,0,-1): print(c) for c in range (0,20,2): print(c) n = int(input('Digite um número')) for c in range (0,n+1): print(c) i = int(input('Digite um número inicial')) f = int(input('Digite um número final')) p = int(input('...
0
0
0
1ed3824d303ebbaa73a0006dd0441b6c7d94aaf6
448
py
Python
cmachines_slave/cmachines_slave/persistent_object.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
18
2018-02-21T00:39:37.000Z
2019-05-21T08:03:49.000Z
cmachines_slave/cmachines_slave/persistent_object.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
1
2020-08-08T18:05:31.000Z
2020-08-08T19:57:05.000Z
cmachines_slave/cmachines_slave/persistent_object.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
12
2018-02-22T07:22:58.000Z
2020-01-06T07:45:52.000Z
# -*- coding: utf-8 -*- from datetime import datetime import uuid import os import json
19.478261
65
0.604911
# -*- coding: utf-8 -*- from datetime import datetime import uuid import os import json class PersistentObject(object): def __init__(self, mem_file): self.mem_file = mem_file self.data = {} self.load() def load(self,): if os.path.isfile(self.mem_file): self.data = j...
243
10
103
ee8d9ab20ef3486a2ba22af6d3d18deec3df1328
575
py
Python
src/collection/cd_raw_collection.py
youlu860612/IDAR
30e711fafb17731905febc8e86cb51306456d023
[ "Unlicense" ]
null
null
null
src/collection/cd_raw_collection.py
youlu860612/IDAR
30e711fafb17731905febc8e86cb51306456d023
[ "Unlicense" ]
null
null
null
src/collection/cd_raw_collection.py
youlu860612/IDAR
30e711fafb17731905febc8e86cb51306456d023
[ "Unlicense" ]
null
null
null
# cd_raw_collection.py # "cd" stands for class discovery. This script is used by class discovery # related scripts, and represents a raw input list file. # # Steven Lu 5/20/2019 from entity.cd_subject import CDSubject from collection.raw_collection import RawCollection # Overwrite parent's add_subject() function
31.944444
73
0.758261
# cd_raw_collection.py # "cd" stands for class discovery. This script is used by class discovery # related scripts, and represents a raw input list file. # # Steven Lu 5/20/2019 from entity.cd_subject import CDSubject from collection.raw_collection import RawCollection class CDRawCollection(RawCollection): def _...
164
16
75
a0023bb0475d5600e88fd35f2906730e8ccb2ea0
713
py
Python
tests/generic/snapshots/snap_test_translater.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/snapshots/snap_test_translater.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/snapshots/snap_test_translater.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['test_translate 1'] = [ 'ca', "n't", "'m", "'s", "'ve", 'ha', 'wo', 'atm', 'xmas', "'ll", 'im' ] ...
12.508772
42
0.443198
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['test_translate 1'] = [ 'ca', "n't", "'m", "'s", "'ve", 'ha', 'wo', 'atm', 'xmas', "'ll", 'im' ] ...
0
0
0
2bcdcf5790574b9937fea1e6baba9a832db37686
1,638
py
Python
click to coordinate.py
sunnyCUD/we_want_some_eyes_donut
9d0620a48fc1b68ff9e2e12b39949d4ead0dc90c
[ "MIT" ]
null
null
null
click to coordinate.py
sunnyCUD/we_want_some_eyes_donut
9d0620a48fc1b68ff9e2e12b39949d4ead0dc90c
[ "MIT" ]
null
null
null
click to coordinate.py
sunnyCUD/we_want_some_eyes_donut
9d0620a48fc1b68ff9e2e12b39949d4ead0dc90c
[ "MIT" ]
2
2020-01-13T18:28:52.000Z
2020-04-23T04:27:08.000Z
#!/usr/bin/env python # coding: utf-8 # In[22]: import cv2 import glob import numpy as np def findClickCoordinate(img,dot,dot_size = 5): """ Find coordinate of clicked location Parameters: -img: input image -dot: amount of output dot -dot_size: size of dot Returns: -c...
22.75
71
0.59707
#!/usr/bin/env python # coding: utf-8 # In[22]: import cv2 import glob import numpy as np def findClickCoordinate(img,dot,dot_size = 5): """ Find coordinate of clicked location Parameters: -img: input image -dot: amount of output dot -dot_size: size of dot Returns: -c...
136
0
26
6c73dd38b04df9c7bba92e8573363c485cbca2c6
3,257
py
Python
aphid/profile_plugin_FFFEFD_system_info.py
stepleton/cameo
ca64ef0f286fabcdfb018684bf078709f3188b11
[ "Unlicense" ]
11
2018-08-12T22:55:24.000Z
2022-03-06T17:30:27.000Z
aphid/profile_plugin_FFFEFD_system_info.py
stepleton/cameo
ca64ef0f286fabcdfb018684bf078709f3188b11
[ "Unlicense" ]
1
2021-05-28T22:14:42.000Z
2021-05-28T22:14:42.000Z
aphid/profile_plugin_FFFEFD_system_info.py
stepleton/cameo
ca64ef0f286fabcdfb018684bf078709f3188b11
[ "Unlicense" ]
3
2020-08-24T07:23:33.000Z
2021-09-24T16:13:05.000Z
"""A ProFile "magic block" plugin for Cameo/Aphid system information. Forfeited into the public domain with NO WARRANTY. Read LICENSE for details. This plugin allows the Apple to obtain some basic system information from a Cameo/Aphid. By convention, this plugin is associated with block $FFFEFD. There's no reason it...
33.234694
79
0.683144
"""A ProFile "magic block" plugin for Cameo/Aphid system information. Forfeited into the public domain with NO WARRANTY. Read LICENSE for details. This plugin allows the Apple to obtain some basic system information from a Cameo/Aphid. By convention, this plugin is associated with block $FFFEFD. There's no reason it...
88
0
26
a39ec833d8b309751ca1f78521dae8b3d67ba5a9
1,147
py
Python
makerspace/tests/test_urls.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
makerspace/tests/test_urls.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
makerspace/tests/test_urls.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
from django.test import TestCase from django_hosts import reverse from util.test_utils import CleanUpTempFilesTestMixin, Get, MOCK_JPG_FILE, assert_requesting_paths_succeeds from ..models import Equipment
40.964286
107
0.689625
from django.test import TestCase from django_hosts import reverse from util.test_utils import CleanUpTempFilesTestMixin, Get, MOCK_JPG_FILE, assert_requesting_paths_succeeds from ..models import Equipment class UrlTests(CleanUpTempFilesTestMixin, TestCase): def setUp(self): self.equipment1 = Equipment.o...
832
31
77
2f42afcd96a30c4efcdde57c19ee7397fb53d156
3,453
py
Python
reqlog/support/jwt_plugin/backends.py
JFF-Bohdan/reqlog
a7ba7b6e12609d736b3cd8cd8bc2913d511848ee
[ "MIT" ]
null
null
null
reqlog/support/jwt_plugin/backends.py
JFF-Bohdan/reqlog
a7ba7b6e12609d736b3cd8cd8bc2913d511848ee
[ "MIT" ]
null
null
null
reqlog/support/jwt_plugin/backends.py
JFF-Bohdan/reqlog
a7ba7b6e12609d736b3cd8cd8bc2913d511848ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """`bottle_jwt.auth` module. Main auth providers class implementation. """ from __future__ import print_function from __future__ import unicode_literals import abc import six from .compat import signature __all__ = ["BaseAuthBackend", ] @six.add_metaclass(abc.ABCMeta) class BaseAuthBacke...
33.524272
99
0.611932
# -*- coding: utf-8 -*- """`bottle_jwt.auth` module. Main auth providers class implementation. """ from __future__ import print_function from __future__ import unicode_literals import abc import six from .compat import signature __all__ = ["BaseAuthBackend", ] @six.add_metaclass(abc.ABCMeta) class BaseAuthBacke...
0
0
0
33b980a0a3ce5a7aab7d27dfd5afcd4750ef653d
848
py
Python
code/cloudmanager/install/vm_installer_vcenter.py
Hybrid-Cloud/cloud_manager
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
null
null
null
code/cloudmanager/install/vm_installer_vcenter.py
Hybrid-Cloud/cloud_manager
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
3
2016-03-16T03:26:44.000Z
2016-03-16T03:46:22.000Z
code/cloudmanager/install/vm_installer_vcenter.py
Hybrid-Cloud/orchard
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
null
null
null
import subprocess import log
35.333333
154
0.621462
import subprocess import log class vm_installer_vcenter(object): def __init__(self, ovf_name, vcenter_url, ds, user, pwd): self.ovf_name = ovf_name self.vcenter_url = vcenter_url self.ds = ds self.user = user self.pwd = pwd def _install_with_poweron(self, vm_name): ...
701
14
103
f20f12c759526f75e5227ea606bb361467833b57
1,011
py
Python
setup.py
StartTheShift/jondis
5d59894b7af50b6f941ccb070f7b95e5d81bfd75
[ "BSD-2-Clause" ]
17
2015-01-04T03:26:46.000Z
2019-08-21T06:07:47.000Z
setup.py
StartTheShift/jondis
5d59894b7af50b6f941ccb070f7b95e5d81bfd75
[ "BSD-2-Clause" ]
null
null
null
setup.py
StartTheShift/jondis
5d59894b7af50b6f941ccb070f7b95e5d81bfd75
[ "BSD-2-Clause" ]
8
2015-09-05T00:11:23.000Z
2019-03-10T10:20:29.000Z
from setuptools import setup, find_packages import os setup(name="jondis", version="0.1", description="Redis pool for HA redis clusters", long_description=read('README.md'), author="Jon Haddad", author_email="jon@grapheffect.com", classifiers=[ "Development Status :: 3 - A...
33.7
73
0.603363
from setuptools import setup, find_packages import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name="jondis", version="0.1", description="Redis pool for HA redis clusters", long_description=read('README.md'), author="Jon Haddad", autho...
66
0
23
8a71f9244f52ba5824662bbc0c92cfdf48b01bf3
5,469
py
Python
sql/tests/engines/test_db_count.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
63
2020-03-26T15:26:10.000Z
2020-10-22T06:26:38.000Z
sql/tests/engines/test_db_count.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
82
2020-03-10T17:54:48.000Z
2020-10-23T02:11:06.000Z
sql/tests/engines/test_db_count.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
15
2020-03-10T05:52:14.000Z
2020-10-09T09:09:52.000Z
import pytest import sys from snsql import metadata from snsql.sql.privacy import Privacy privacy = Privacy(alphas=[0.01, 0.05], epsilon=30.0, delta=0.1) overrides = {'censor_dims': False}
49.27027
114
0.544524
import pytest import sys from snsql import metadata from snsql.sql.privacy import Privacy privacy = Privacy(alphas=[0.01, 0.05], epsilon=30.0, delta=0.1) overrides = {'censor_dims': False} class TestDbCounts: @pytest.mark.skipif(sys.version_info < (3, 8), reason="Skip because older PRNG") def test_db_counts...
4,872
383
23
bf25eb165a1e2b2b6f4fbabde0002c8a582e3995
2,353
py
Python
happyplanets/planet.py
nksaunders/uniform-planets
adc8fab6e6a2070f15612c0edcde1272cb9a7bec
[ "MIT" ]
null
null
null
happyplanets/planet.py
nksaunders/uniform-planets
adc8fab6e6a2070f15612c0edcde1272cb9a7bec
[ "MIT" ]
null
null
null
happyplanets/planet.py
nksaunders/uniform-planets
adc8fab6e6a2070f15612c0edcde1272cb9a7bec
[ "MIT" ]
null
null
null
import sys import os.path import logging import warnings from . import PACKAGEDIR from contextlib import contextmanager from matplotlib.backends.backend_pdf import PdfPages import copy import numpy as np import pandas as pd import lightkurve as lk import matplotlib.pyplot as plt from lightkurve import MPLSTYLE from as...
31.373333
96
0.682958
import sys import os.path import logging import warnings from . import PACKAGEDIR from contextlib import contextmanager from matplotlib.backends.backend_pdf import PdfPages import copy import numpy as np import pandas as pd import lightkurve as lk import matplotlib.pyplot as plt from lightkurve import MPLSTYLE from as...
545
1,117
23
0ea8355f9ac6a1ab1062eaddf6cb37a447304deb
3,390
py
Python
hypernets/tests/tabular/tb_dask/drift_detection_test.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
hypernets/tests/tabular/tb_dask/drift_detection_test.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
hypernets/tests/tabular/tb_dask/drift_detection_test.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ """ import numpy as np import pandas as pd from pandas.util import hash_pandas_object from hypernets.tabular.datasets.dsutils import load_bank from . import if_dask_ready, is_dask_installed from ..dask_transofromer_test import setup_dask if is_dask_installed: import dask.dataframe as d...
37.666667
114
0.621534
# -*- coding:utf-8 -*- """ """ import numpy as np import pandas as pd from pandas.util import hash_pandas_object from hypernets.tabular.datasets.dsutils import load_bank from . import if_dask_ready, is_dask_installed from ..dask_transofromer_test import setup_dask if is_dask_installed: import dask.dataframe as d...
2,777
130
22
b912edf4bcee3ee25cab1d157e798845da79ef94
1,370
py
Python
brainrender/__init__.py
hadivafaii/brainrender
e4e165fa7d92492a453f68030a669f540f7966c5
[ "BSD-3-Clause" ]
null
null
null
brainrender/__init__.py
hadivafaii/brainrender
e4e165fa7d92492a453f68030a669f540f7966c5
[ "BSD-3-Clause" ]
null
null
null
brainrender/__init__.py
hadivafaii/brainrender
e4e165fa7d92492a453f68030a669f540f7966c5
[ "BSD-3-Clause" ]
null
null
null
import os import sys from os.path import join as pjoin from loguru import logger from pathlib import Path from rich.logging import RichHandler try: from pyinspect import install_traceback install_traceback() except ImportError: pass # fails in notebooks from . import settings, actors from .scene import S...
22.833333
70
0.641606
import os import sys from os.path import join as pjoin from loguru import logger from pathlib import Path from rich.logging import RichHandler try: from pyinspect import install_traceback install_traceback() except ImportError: pass # fails in notebooks from . import settings, actors from .scene import S...
0
0
0
db53eafa60721e7c9d1393ee4238633978967228
9,455
py
Python
tests/parsers/main_parser/test_headers.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
28
2021-02-22T18:46:52.000Z
2022-02-21T15:14:05.000Z
tests/parsers/main_parser/test_headers.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
5
2021-02-23T09:56:13.000Z
2022-03-13T09:47:42.000Z
tests/parsers/main_parser/test_headers.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
2
2021-02-23T09:11:45.000Z
2021-03-13T11:08:21.000Z
from unittest.mock import patch from mau.parsers import nodes from mau.parsers.main_parser import MainParser from tests.helpers import init_parser_factory, parser_test_factory init_parser = init_parser_factory(MainParser) _test = parser_test_factory(MainParser) @patch("mau.parsers.main_parser.header_anchor") ...
23.461538
79
0.474669
from unittest.mock import patch from mau.parsers import nodes from mau.parsers.main_parser import MainParser from tests.helpers import init_parser_factory, parser_test_factory init_parser = init_parser_factory(MainParser) _test = parser_test_factory(MainParser) def test_default_header_anchor_function(): sourc...
8,445
0
290
4bf1332f9ce8f027a1d7a190699e9d35d1a0c7b5
458
py
Python
mayan/apps/common/setting_migrations.py
O2Graphics/Mayan-EDMS
e11e6f47240f3c536764be66828dbe6428dceb41
[ "Apache-2.0" ]
null
null
null
mayan/apps/common/setting_migrations.py
O2Graphics/Mayan-EDMS
e11e6f47240f3c536764be66828dbe6428dceb41
[ "Apache-2.0" ]
5
2021-03-19T22:56:45.000Z
2022-03-12T00:08:43.000Z
mayan/apps/common/setting_migrations.py
halsten/mayan-edms
10372daede6e6dea0bea67eb98767e3be6fbf86f
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from mayan.apps.smart_settings.classes import NamespaceMigration from .serialization import yaml_load class CommonSettingMigration(NamespaceMigration): """ From version 0001 to 0002 backend arguments are no longer quoted but YAML valid too. Changed in version 3.3....
26.941176
68
0.729258
from __future__ import unicode_literals from mayan.apps.smart_settings.classes import NamespaceMigration from .serialization import yaml_load class CommonSettingMigration(NamespaceMigration): """ From version 0001 to 0002 backend arguments are no longer quoted but YAML valid too. Changed in version 3.3....
103
0
26
de604e17191b552dfe46b96b883c71f3128ba442
4,260
py
Python
utils/data_loader.py
manhtrantienhn/sentiment
0ee59c7b607b5d6b5d9341a867f5a62653e960f8
[ "MIT" ]
1
2022-03-28T10:42:01.000Z
2022-03-28T10:42:01.000Z
utils/data_loader.py
manhtrantienhn/sentiment
0ee59c7b607b5d6b5d9341a867f5a62653e960f8
[ "MIT" ]
null
null
null
utils/data_loader.py
manhtrantienhn/sentiment
0ee59c7b607b5d6b5d9341a867f5a62653e960f8
[ "MIT" ]
null
null
null
import json import numpy as np # import torchtext from torchtext.vocab import Vectors from tqdm import tqdm import torch from torch.utils.data import TensorDataset, DataLoader import nltk nltk.download('punkt') # def clean_text(text): # text = re.sub(r"<.*?>", " ", text) # text = re.sub(r"[^A-Za-z0-9(),!?\'`]"...
48.965517
212
0.701878
import json import numpy as np # import torchtext from torchtext.vocab import Vectors from tqdm import tqdm import torch from torch.utils.data import TensorDataset, DataLoader import nltk nltk.download('punkt') def read_data(train_dataset: str, valid_dataset: str): with open(train_dataset, 'r', encoding='utf-8') a...
3,760
0
92
d4fe28966faa5a50b7d0e50bd68f31a197d1d9e0
3,233
py
Python
fix15/test.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
8
2018-07-09T13:39:51.000Z
2020-12-02T00:53:14.000Z
fix15/test.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
null
null
null
fix15/test.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
null
null
null
import unittest import fix15 import io import unittest.mock import fix15.__main__ test_file = \ """id,firstname,lastname,accountid 00300000053jhOc,john,smith,00100006gG70oPa 003000A694fjJ21,allison,brown,001000000043463 0030000bB09fQt9,thomas,tomlinson,001000004FfoA00 003000000044000,hannah,anderson,001000000000001 00...
35.527473
87
0.694401
import unittest import fix15 import io import unittest.mock import fix15.__main__ test_file = \ """id,firstname,lastname,accountid 00300000053jhOc,john,smith,00100006gG70oPa 003000A694fjJ21,allison,brown,001000000043463 0030000bB09fQt9,thomas,tomlinson,001000004FfoA00 003000000044000,hannah,anderson,001000000000001 00...
2,264
15
219
c816c9419d8c53a405e48f53b1ae479e7a2fe366
1,929
py
Python
smadventure/namegen.py
Gustavo6046/sentient-mushes-adventure
182e0cae27b161ad331f29a954dc17d952811349
[ "MIT" ]
1
2018-05-31T20:37:08.000Z
2018-05-31T20:37:08.000Z
smadventure/namegen.py
Gustavo6046/sentient-mushes-adventure
182e0cae27b161ad331f29a954dc17d952811349
[ "MIT" ]
null
null
null
smadventure/namegen.py
Gustavo6046/sentient-mushes-adventure
182e0cae27b161ad331f29a954dc17d952811349
[ "MIT" ]
null
null
null
""" This name generator is an improved version of das' random syllable-based name generator. Original source at: https://codereview.stackexchange.com/q/156903 Improved by: Gustavo R. Rehermann (Gustavo6046) """ import random vowels = 'aeiou' consonants = 'bcdfghjklmnpqrstvwxyz' pre_consonants = 'tspdkcmnlxrg' post_c...
31.622951
112
0.54225
""" This name generator is an improved version of das' random syllable-based name generator. Original source at: https://codereview.stackexchange.com/q/156903 Improved by: Gustavo R. Rehermann (Gustavo6046) """ import random vowels = 'aeiou' consonants = 'bcdfghjklmnpqrstvwxyz' pre_consonants = 'tspdkcmnlxrg' post_c...
1,443
0
23
5376fc1207478ef38ab9e95e37fb18961034fb9f
4,877
py
Python
stage/configuration/test_mongodb_destination.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
null
null
null
stage/configuration/test_mongodb_destination.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
1
2019-04-24T11:06:38.000Z
2019-04-24T11:06:38.000Z
stage/configuration/test_mongodb_destination.py
anubandhan/datacollector-tests
301c024c66d68353735256b262b681dd05ba16cc
[ "Apache-2.0" ]
2
2019-05-24T06:34:37.000Z
2020-03-30T11:48:18.000Z
import pytest from streamsets.testframework.decorators import stub @stub @pytest.mark.parametrize('stage_attributes', [{'authentication_type': 'USER_PASS'}]) @stub @pytest.mark.parametrize('stage_attributes', [{'authentication_type': 'LDAP'}, {'authentication_type': 'N...
25.534031
119
0.662908
import pytest from streamsets.testframework.decorators import stub @stub @pytest.mark.parametrize('stage_attributes', [{'authentication_type': 'USER_PASS'}]) def test_authentication_source(sdc_builder, sdc_executor, stage_attributes): pass @stub @pytest.mark.parametrize('stage_attributes', [{'authentication_ty...
1,587
0
704
0c338ed5a2b6ac8155e929c1d6f420df08eff519
716
py
Python
src/djanban/apps/charts/migrations/0007_cachedchart_is_expired.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/charts/migrations/0007_cachedchart_is_expired.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/charts/migrations/0007_cachedchart_is_expired.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-05 16:59 from __future__ import unicode_literals from django.db import migrations, models
26.518519
97
0.675978
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-05 16:59 from __future__ import unicode_literals from django.db import migrations, models def delete_all_current_cached_charts(apps, schema): CachedChart = apps.get_model("charts", "CachedChart") CachedChart.objects.all().delete() class Migratio...
127
388
46
e1ae3b8dceb17721b3d805f334f83deed58bf35e
1,430
py
Python
lib/evaluate.py
timhannifan/ml-toolkit
a4a113ea5c88c3e64d50fbafa2c82bdf66c5d373
[ "MIT" ]
null
null
null
lib/evaluate.py
timhannifan/ml-toolkit
a4a113ea5c88c3e64d50fbafa2c82bdf66c5d373
[ "MIT" ]
3
2020-06-05T20:41:55.000Z
2021-06-10T21:24:21.000Z
lib/evaluate.py
timhannifan/ml-toolkit
a4a113ea5c88c3e64d50fbafa2c82bdf66c5d373
[ "MIT" ]
null
null
null
''' Class for evaluating trained Classifier model ''' from sklearn.metrics import accuracy_score func_map = { 'accuracy_score': accuracy_score } class ModelEvaluator: ''' Class for evaluating trained Classifier model ''' def load_input(self, trained_classifier): ''' Handles load...
26
71
0.593007
''' Class for evaluating trained Classifier model ''' from sklearn.metrics import accuracy_score func_map = { 'accuracy_score': accuracy_score } class ModelEvaluator: ''' Class for evaluating trained Classifier model ''' def __init__(self): self.input = None self.config = {} ...
76
0
26