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
fec111f93a51990a6580549279d4bc1fdb55d776
788
py
Python
pyvisdk/esxcli/handlers/ha_cli_handler_storage_core_path_stats.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/esxcli/handlers/ha_cli_handler_storage_core_path_stats.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/esxcli/handlers/ha_cli_handler_storage_core_path_stats.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
from pyvisdk.esxcli.executer import execute_soap from pyvisdk.esxcli.base import Base class StorageCorePathStats(Base): ''' Stats operations pertaining to the pluggable storage architectures' device paths on the system. ''' moid = 'ha-cli-handler-storage-core-path-stats' def get(self, path=None):...
43.777778
129
0.649746
from pyvisdk.esxcli.executer import execute_soap from pyvisdk.esxcli.base import Base class StorageCorePathStats(Base): ''' Stats operations pertaining to the pluggable storage architectures' device paths on the system. ''' moid = 'ha-cli-handler-storage-core-path-stats' def get(self, path=None):...
0
0
0
72231b2c2e74d2130235d5ec9abb2e7fa0bfae55
269
py
Python
src/yellowdog_client/model/compute_source_traits_filter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/compute_source_traits_filter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/compute_source_traits_filter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Optional @dataclass
24.454545
43
0.765799
from dataclasses import dataclass from typing import Optional @dataclass class ComputeSourceTraitsFilter: canStopStart: Optional[bool] = None canRestart: Optional[bool] = None canScaleOut: Optional[bool] = None isSelfMaintained: Optional[bool] = None
0
172
22
7a27cbd111b959281707eb4f759182f97a7d02d6
32,025
py
Python
opengl/gl/raw/gl_2_0.py
SilentPenguin/OpenGL.py
dd16bf7ea2fa20a7ea489e711a5df20d604c34dc
[ "Apache-2.0" ]
1
2016-11-09T06:11:24.000Z
2016-11-09T06:11:24.000Z
opengl/gl/raw/gl_2_0.py
SilentPenguin/OpenGL.py
dd16bf7ea2fa20a7ea489e711a5df20d604c34dc
[ "Apache-2.0" ]
3
2016-11-09T06:21:08.000Z
2016-11-18T15:17:22.000Z
opengl/gl/raw/gl_2_0.py
SilentPenguin/OpenGL.py
dd16bf7ea2fa20a7ea489e711a5df20d604c34dc
[ "Apache-2.0" ]
null
null
null
#BEWARE: automatically generated code #This code was generated by /generate/__main__.py from opengl.gl.raw.bindings import * @accepts(t.enum, t.enum) @returns(t.void) @binds(dll) def blend_equation_separate(modergb, modealpha): ''' set the RGB blend equation and the alpha blend equation separately. A...
30.675287
94
0.714379
#BEWARE: automatically generated code #This code was generated by /generate/__main__.py from opengl.gl.raw.bindings import * @accepts(t.enum, t.enum) @returns(t.void) @binds(dll) def blend_equation_separate(modergb, modealpha): ''' set the RGB blend equation and the alpha blend equation separately. A...
1,535
0
1,386
46197a584db2c1a4a57c3ce00e14574ba08eaec0
1,353
py
Python
presearch_trrosetta/prepare/crawling.py
jobc90/Protein-Resarch
0b3d9366cc66fdc50e791991c323de1ae7840a61
[ "MIT" ]
null
null
null
presearch_trrosetta/prepare/crawling.py
jobc90/Protein-Resarch
0b3d9366cc66fdc50e791991c323de1ae7840a61
[ "MIT" ]
null
null
null
presearch_trrosetta/prepare/crawling.py
jobc90/Protein-Resarch
0b3d9366cc66fdc50e791991c323de1ae7840a61
[ "MIT" ]
2
2021-06-29T00:06:50.000Z
2021-06-29T04:21:49.000Z
from bs4 import BeautifulSoup from urllib import request from urllib.error import HTTPError import tqdm import os import argparse if __name__ == '__main__': main()
30.066667
86
0.617886
from bs4 import BeautifulSoup from urllib import request from urllib.error import HTTPError import tqdm import os import argparse def get_download(url, fname): try: request.urlretrieve(url, fname) except HTTPError as e: print('error') return def get_casp_data(casps, downl...
1,096
0
75
b413c46d5bf2d1d42f0aa6e600f5711c0f78b565
1,269
py
Python
app/src/main/python/make_first_page.py
108360224/watch_video
bfbcd0fbe617eceb974d8c1e9c976f47ad7b0814
[ "MIT" ]
null
null
null
app/src/main/python/make_first_page.py
108360224/watch_video
bfbcd0fbe617eceb974d8c1e9c976f47ad7b0814
[ "MIT" ]
null
null
null
app/src/main/python/make_first_page.py
108360224/watch_video
bfbcd0fbe617eceb974d8c1e9c976f47ad7b0814
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 2 11:26:18 2020 @author: max """ import cv2 import numpy as np from PIL import Image, ImageDraw, ImageFont import requests
32.538462
117
0.62569
# -*- coding: utf-8 -*- """ Created on Sat May 2 11:26:18 2020 @author: max """ import cv2 import numpy as np from PIL import Image, ImageDraw, ImageFont import requests def make_first_page(src,text): def cv2ImgAddText(img, text, left, top, textColor=(0, 0, 0), textSize=10): if (isinstance(img, np.ndarray...
1,092
0
22
80326bb606fdfb5c3b5b1a0edb1e62da0bed7444
2,413
py
Python
tests/config_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
1
2015-11-08T13:00:51.000Z
2015-11-08T13:00:51.000Z
tests/config_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
null
null
null
tests/config_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
null
null
null
from nose.tools import assert_equal import os import tempfile import re from asciinema.config import Config
32.608108
76
0.645669
from nose.tools import assert_equal import os import tempfile import re from asciinema.config import Config def create_config(content=None, overrides={}): dir = tempfile.mkdtemp() path = dir + '/config' if content: with open(path, 'w') as f: f.write(content) return Config(path,...
1,981
4
316
fcd925ed6692d34e5f41292cc768682829c1cd50
4,707
py
Python
decoder/utils.py
Am473ur/HexQBot
0c9605ec972ff43ce626a257bc087bf614379d6d
[ "Apache-2.0" ]
20
2020-07-13T17:18:41.000Z
2022-03-02T01:21:58.000Z
decoder/utils.py
Am473ur/HexQBot
0c9605ec972ff43ce626a257bc087bf614379d6d
[ "Apache-2.0" ]
1
2020-07-14T15:26:02.000Z
2020-07-17T15:07:01.000Z
decoder/utils.py
Am473ur/HexQBot
0c9605ec972ff43ce626a257bc087bf614379d6d
[ "Apache-2.0" ]
2
2020-11-17T13:10:13.000Z
2020-11-17T13:30:47.000Z
import requests from base64 import b32encode, b32decode, b64encode, b64decode, b85encode, b85decode from base58 import b58decode, b58encode import base91 import hashlib import json def ensure_str(s, encoding='utf-8', errors='strict'): """Coerce *s* to `str`. For Python 3: - `str` -> `str` - `byte...
37.959677
102
0.577438
import requests from base64 import b32encode, b32decode, b64encode, b64decode, b85encode, b85decode from base58 import b58decode, b58encode import base91 import hashlib import json def ensure_str(s, encoding='utf-8', errors='strict'): """Coerce *s* to `str`. For Python 3: - `str` -> `str` - `byte...
3,839
0
253
51318ed4899cccb49c4022e5edbbaa06ce91410f
6,879
py
Python
model_neu/princeton/mod_1.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/princeton/mod_1.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/princeton/mod_1.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
""" Cascaded Convolution Model - Pranav Shrestha (ps2958) - Jeffrey Wan (jw3468) """ import pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.preprocessing import text, sequence from keras.preprocessing.text import Tokenizer from keras.utils import to_categorical from keras.mo...
34.918782
120
0.725687
""" Cascaded Convolution Model - Pranav Shrestha (ps2958) - Jeffrey Wan (jw3468) """ import pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.preprocessing import text, sequence from keras.preprocessing.text import Tokenizer from keras.utils import to_categorical from keras.mo...
1,690
0
69
67426b9d856287309ee4d0aa254d80958bd28adc
689
py
Python
stage1/Criteria.py
zyl1205/mywork
04b02b5f72dde17f094b169459385ca8635ecb95
[ "MIT" ]
null
null
null
stage1/Criteria.py
zyl1205/mywork
04b02b5f72dde17f094b169459385ca8635ecb95
[ "MIT" ]
null
null
null
stage1/Criteria.py
zyl1205/mywork
04b02b5f72dde17f094b169459385ca8635ecb95
[ "MIT" ]
null
null
null
# #author :Sachin Mehta #Description : This repository contains source code for semantically segmenting WSIs; however, it could be easily # adapted for other domains such as natural image segmentation #File Description: This file implements the Cross entropy loss for 2D data. #===========...
34.45
117
0.624093
# #author :Sachin Mehta #Description : This repository contains source code for semantically segmenting WSIs; however, it could be easily # adapted for other domains such as natural image segmentation #File Description: This file implements the Cross entropy loss for 2D data. #===========...
142
15
77
aba6561375f6e3d6efb4747ad67f9608dec2e9bc
2,419
py
Python
aardvark/aardvark_connection.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
aardvark/aardvark_connection.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
aardvark/aardvark_connection.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
""" Defines the abstract class Aardvark Connection, which is used by child classes to test the I2C and SPI connections. """ from abc import ABCMeta, abstractmethod import unittest from aardvark_py import aa_find_devices_ext, aa_open, aa_close, AA_PORT_NOT_FREE class AardvarkConnection(unittest.TestCase): """ ...
32.253333
86
0.641174
""" Defines the abstract class Aardvark Connection, which is used by child classes to test the I2C and SPI connections. """ from abc import ABCMeta, abstractmethod import unittest from aardvark_py import aa_find_devices_ext, aa_open, aa_close, AA_PORT_NOT_FREE class AardvarkConnection(unittest.TestCase): """ ...
164
0
27
2489033ff8cd99e1f60ac2c043d6d3a6b725a1e8
2,117
py
Python
Nut-defect-detection/dataset.py
GT-AcerZhang/Dive-into-Computer-Vision-in-PaddlePaddle2.0
a0ee2058996bd2cac4e46bb4c0d93520251173fd
[ "Apache-2.0" ]
5
2020-12-06T12:48:29.000Z
2021-02-27T16:45:50.000Z
Nut-defect-detection/dataset.py
GT-AcerZhang/Dive-into-Computer-Vision-in-PaddlePaddle2.0
a0ee2058996bd2cac4e46bb4c0d93520251173fd
[ "Apache-2.0" ]
null
null
null
Nut-defect-detection/dataset.py
GT-AcerZhang/Dive-into-Computer-Vision-in-PaddlePaddle2.0
a0ee2058996bd2cac4e46bb4c0d93520251173fd
[ "Apache-2.0" ]
2
2021-02-22T06:36:54.000Z
2021-03-05T09:32:03.000Z
#!/usr/bin/env python # _*_coding:utf-8 _*_ #@Time :2020/12/8 13:52 #@Author :Wenbo #@FileName: dataset.py.py import numpy as np from PIL import Image from paddle.io import Dataset import paddle.vision.transforms as T import paddle as pd class MyDataset(Dataset): """ 步骤一:继承paddle.io.Dataset...
32.075758
100
0.529523
#!/usr/bin/env python # _*_coding:utf-8 _*_ #@Time :2020/12/8 13:52 #@Author :Wenbo #@FileName: dataset.py.py import numpy as np from PIL import Image from paddle.io import Dataset import paddle.vision.transforms as T import paddle as pd class MyDataset(Dataset): """ 步骤一:继承paddle.io.Dataset...
1,047
0
55
603c6f5c42f519d2b48f8c534d7356c54de50fb9
3,816
py
Python
avatar2/targets/gdb_target.py
m3lixir-nyu/avatar2
fde07d1efa4b5ae6f3be5f19ae508ff19ed840d0
[ "Apache-2.0" ]
16
2020-12-14T21:31:25.000Z
2022-01-26T03:21:40.000Z
avatar2/targets/gdb_target.py
m3lixir-nyu/avatar2
fde07d1efa4b5ae6f3be5f19ae508ff19ed840d0
[ "Apache-2.0" ]
3
2021-07-27T19:36:05.000Z
2021-12-31T02:20:53.000Z
avatar2/targets/gdb_target.py
m3lixir-nyu/avatar2
fde07d1efa4b5ae6f3be5f19ae508ff19ed840d0
[ "Apache-2.0" ]
8
2020-12-30T13:55:20.000Z
2022-01-17T03:20:36.000Z
from avatar2.targets import Target, TargetStates from avatar2.protocols.gdb import GDBProtocol from .target import action_valid_decorator_factory, synchronize_state from ..watchmen import watch
39.75
85
0.587264
from avatar2.targets import Target, TargetStates from avatar2.protocols.gdb import GDBProtocol from .target import action_valid_decorator_factory, synchronize_state from ..watchmen import watch class GDBTarget(Target): def __init__(self, avatar, gdb_executable=None, gdb_additional_args=None, ...
3,134
459
23
0000fa8f2d70592b5ba91e1ed71c42ac79a16509
67
py
Python
starfiles/deneme.py
harunlakodla/Flutter_Python-flutter_python
9dfa020fd73bff3bcf965476060ca441349ba96b
[ "Apache-2.0" ]
10
2020-02-02T21:47:34.000Z
2022-02-05T23:55:15.000Z
starfiles/deneme.py
harunlakodla/Flutter_Python-flutter_python
9dfa020fd73bff3bcf965476060ca441349ba96b
[ "Apache-2.0" ]
1
2021-11-02T10:43:48.000Z
2021-11-02T10:43:48.000Z
starfiles/deneme.py
harunlakodla/Flutter_Python-flutter_python
9dfa020fd73bff3bcf965476060ca441349ba96b
[ "Apache-2.0" ]
null
null
null
print("merhaba") print("merhaba") print("merhaba") print("merhaba")
16.75
16
0.716418
print("merhaba") print("merhaba") print("merhaba") print("merhaba")
0
0
0
57f17179953aaaea6b6d3ab5a3fb3b7c60c6592d
5,849
py
Python
pulsar/system/MakeSystem.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
pulsar/system/MakeSystem.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
pulsar/system/MakeSystem.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
import re import math from copy import deepcopy import pulsar as psr from . import ApplyBasisSet def make_system(SomeString): """This function turns a string into a system object, which it then returns Special thanks to Lori A. Burns for the original version of this function ============================...
37.980519
156
0.569328
import re import math from copy import deepcopy import pulsar as psr from . import ApplyBasisSet def make_system(SomeString): """This function turns a string into a system object, which it then returns Special thanks to Lori A. Burns for the original version of this function ============================...
22
0
31
c0a33a51c188efb2dd00413f01239574867164e0
1,336
py
Python
individual1.py
MaksimSimanskiy/4.2
3fb83a11211383411333994dd19073e0073e9145
[ "MIT" ]
null
null
null
individual1.py
MaksimSimanskiy/4.2
3fb83a11211383411333994dd19073e0073e9145
[ "MIT" ]
null
null
null
individual1.py
MaksimSimanskiy/4.2
3fb83a11211383411333994dd19073e0073e9145
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Поле first — целое число, целая часть числа; поле second — положительное целое число, дробная часть числа. Реализовать метод multiply() — умножение на произвольное целое число типа int. Метод должен правильно работать при любых допустимых значениях first и seco...
27.833333
87
0.592814
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Поле first — целое число, целая часть числа; поле second — положительное целое число, дробная часть числа. Реализовать метод multiply() — умножение на произвольное целое число типа int. Метод должен правильно работать при любых допустимых значениях first и seco...
742
-10
199
62875e32dfa94934b88145781d02debe2392ae0e
5,345
py
Python
app.py
abhishekshree/FlaskLearnApp
eb201b3f414c482dffe860397ffb64a5e2b4b826
[ "MIT" ]
null
null
null
app.py
abhishekshree/FlaskLearnApp
eb201b3f414c482dffe860397ffb64a5e2b4b826
[ "MIT" ]
2
2020-05-09T19:37:11.000Z
2020-05-09T19:37:11.000Z
app.py
abhishekshree/FlaskLearnApp
eb201b3f414c482dffe860397ffb64a5e2b4b826
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, url_for, request, make_response from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import InputRequired , Email, Length from flask_sqlalchemy import SQLAlchemy from...
26.073171
108
0.731712
from flask import Flask, render_template, redirect, url_for, request, make_response from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import InputRequired , Email, Length from flask_sqlalchemy import SQLAlchemy from...
2,298
1,154
489
fdb576221b2d5230c3aac5e421189c05dcfd9cb2
3,484
py
Python
odoo/doc/_extensions/github_link.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/doc/_extensions/github_link.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/doc/_extensions/github_link.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
import inspect import importlib import os.path from urlparse import urlunsplit """ * adds github_link(mode) context variable: provides URL (in relevant mode) of current document on github * if sphinx.ext.linkcode is enabled, automatically generates github linkcode links (by setting config.linkcode_resolve) Settin...
33.180952
96
0.652411
import inspect import importlib import os.path from urlparse import urlunsplit """ * adds github_link(mode) context variable: provides URL (in relevant mode) of current document on github * if sphinx.ext.linkcode is enabled, automatically generates github linkcode links (by setting config.linkcode_resolve) Settin...
1,992
0
46
064db3c7022248cee48f4a39a959f0cf7a675d53
1,197
py
Python
examples/annotation_with_sed3.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
8
2016-09-26T01:35:15.000Z
2022-02-23T04:05:23.000Z
examples/annotation_with_sed3.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
4
2016-05-18T11:04:56.000Z
2018-10-24T11:03:03.000Z
examples/annotation_with_sed3.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
6
2017-03-24T20:43:21.000Z
2021-08-23T06:05:34.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- """ Module is used for visualization of segmentation stored in pkl, dcm and other files. """ from loguru import logger import io3d import sed3 import numpy as np pth = io3d.datasets.join_path("medical", "orig", "3Dircadb1.1", "PATIENT_DICOM", get_root=True) datap = io3d.read...
27.204545
102
0.695071
#! /usr/bin/python # -*- coding: utf-8 -*- """ Module is used for visualization of segmentation stored in pkl, dcm and other files. """ from loguru import logger import io3d import sed3 import numpy as np pth = io3d.datasets.join_path("medical", "orig", "3Dircadb1.1", "PATIENT_DICOM", get_root=True) datap = io3d.read...
0
0
0
e9c9f3a6a08c24056c1db55707573ce350484ce4
8,323
py
Python
tasks.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
8
2018-03-25T22:02:24.000Z
2021-04-26T22:07:02.000Z
tasks.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
null
null
null
tasks.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
1
2018-05-24T05:15:43.000Z
2018-05-24T05:15:43.000Z
from threading import Thread import gui from tools import clipboard, qrcode, generate_token import os import tempfile import uuid import time import shutil import tkinter as tk from tkinter.filedialog import asksaveasfilename from tkinter.messagebox import askyesno class Gallery(Thread): """ The Gallery clas...
34.251029
118
0.606392
from threading import Thread import gui from tools import clipboard, qrcode, generate_token import os import tempfile import uuid import time import shutil import tkinter as tk from tkinter.filedialog import asksaveasfilename from tkinter.messagebox import askyesno class Gallery(Thread): """ The Gallery clas...
0
0
0
e98e9ebf2c5f8b253553d891592684f474c1e66c
691
py
Python
nodedata/migrations/0006_peer.py
bartromgens/bitcoinnodestats
04f9f6b4e3c7d9dd236476c558357ea9353aa022
[ "MIT" ]
17
2016-05-12T20:49:10.000Z
2020-04-07T07:28:50.000Z
nodedata/migrations/0006_peer.py
bartromgens/bitcoinnodestats
04f9f6b4e3c7d9dd236476c558357ea9353aa022
[ "MIT" ]
7
2016-05-13T15:09:15.000Z
2021-06-10T19:09:06.000Z
nodedata/migrations/0006_peer.py
bartromgens/bitcoinnodestats
04f9f6b4e3c7d9dd236476c558357ea9353aa022
[ "MIT" ]
5
2016-05-13T10:11:49.000Z
2020-04-10T22:32:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-12 00:31 from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields
27.64
114
0.616498
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-12 00:31 from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('nodedata', '0005_rawnodedata_networkinfo_json'), ] operation...
0
489
23
d7ad1cdd8d8d266811acb2b8890656f37cb77f04
9,250
py
Python
utils/pghelp.py
transfaeries/forest
e92ffcebf1b3adfebb8006b215e292973b7ca39d
[ "MIT" ]
null
null
null
utils/pghelp.py
transfaeries/forest
e92ffcebf1b3adfebb8006b215e292973b7ca39d
[ "MIT" ]
1
2022-03-09T10:02:31.000Z
2022-03-09T10:02:31.000Z
utils/pghelp.py
transfaeries/forest
e92ffcebf1b3adfebb8006b215e292973b7ca39d
[ "MIT" ]
null
null
null
#!/usr/bin/python3.9 # Copyright (c) 2021 MobileCoin Inc. # Copyright (c) 2021 The Forest Team import asyncio import copy import logging import os from contextlib import asynccontextmanager from typing import Any, AsyncGenerator, Callable, Optional, Union try: import asyncpg DUMMY = False except ImportError:...
37.601626
128
0.585297
#!/usr/bin/python3.9 # Copyright (c) 2021 MobileCoin Inc. # Copyright (c) 2021 The Forest Team import asyncio import copy import logging import os from contextlib import asynccontextmanager from typing import Any, AsyncGenerator, Callable, Optional, Union try: import asyncpg DUMMY = False except ImportError:...
2,316
84
234
5b9e759af14b63b1adeea004fac45e99e0507638
6,679
py
Python
src/modules/php/visitors/resolvers.py
Mause/PHP-Parsers
9fac9827fa34a48e1d514520bb7b8be7c0fd2156
[ "MIT" ]
11
2020-06-27T12:46:32.000Z
2022-02-20T00:08:50.000Z
src/modules/php/visitors/resolvers.py
Mause/PHP-Parsers
9fac9827fa34a48e1d514520bb7b8be7c0fd2156
[ "MIT" ]
null
null
null
src/modules/php/visitors/resolvers.py
Mause/PHP-Parsers
9fac9827fa34a48e1d514520bb7b8be7c0fd2156
[ "MIT" ]
5
2020-06-28T21:42:36.000Z
2022-02-20T00:11:43.000Z
"""Visitors that make certain mutations to the AST""" import sys import os from src.modules.php import syntax_tree from src.modules.php.base import Visitor from src.compiler.php import phpast class DependencyResolver(Visitor): """Expands the tree by augmenting the ASTs for files added in it using Include...
39.288235
116
0.634077
"""Visitors that make certain mutations to the AST""" import sys import os from src.modules.php import syntax_tree from src.modules.php.base import Visitor from src.compiler.php import phpast class CircularImport(phpast.Node): fields = ["file_name"] def __init__(self, child_path, looping_tree): self....
4,888
106
337
e3187245c38ccf41c17c623c9a0298ed26314124
547
py
Python
decider.py
matez0/decide-raw
1ad4aeb80539b2713eae62466d6672dd0d7711d6
[ "MIT" ]
null
null
null
decider.py
matez0/decide-raw
1ad4aeb80539b2713eae62466d6672dd0d7711d6
[ "MIT" ]
null
null
null
decider.py
matez0/decide-raw
1ad4aeb80539b2713eae62466d6672dd0d7711d6
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright (c) 2019 Zoltán Máté # All Rights Reserved. # # Author: Zoltán Máté <mate.zoltan0@gmail.com> #
24.863636
81
0.674589
# coding: utf-8 # # Copyright (c) 2019 Zoltán Máté # All Rights Reserved. # # Author: Zoltán Máté <mate.zoltan0@gmail.com> # def score(decider, values): future_values = list(values) orig_value = future_values.pop(0) past_values = [] while future_values: past_values.append(future_values.pop(0)) ...
375
0
46
40502073ddc75e5ccf9c6199875480768d1155af
1,367
py
Python
wezer_mail/utils.py
Abdur-rahmaanJ/wezer-mail
6070ee45ae872961f10553a5946048cb74155ea3
[ "MIT" ]
null
null
null
wezer_mail/utils.py
Abdur-rahmaanJ/wezer-mail
6070ee45ae872961f10553a5946048cb74155ea3
[ "MIT" ]
null
null
null
wezer_mail/utils.py
Abdur-rahmaanJ/wezer-mail
6070ee45ae872961f10553a5946048cb74155ea3
[ "MIT" ]
null
null
null
# send mail function import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header import time from jinja2 import Environment, FileSystemLoader import configparser
26.803922
61
0.678127
# send mail function import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header import time from jinja2 import Environment, FileSystemLoader import configparser def send_mail(to_, subject_, body_): config = configparser.ConfigParser() conf...
1,062
0
73
83203dfab91326ca83bc4bf21da8b4b84b3751a4
3,007
py
Python
apps/locations/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
null
null
null
apps/locations/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
null
null
null
apps/locations/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
1
2019-11-02T19:35:54.000Z
2019-11-02T19:35:54.000Z
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from django.db import models from rapidsms.webui.managers import * class Location(models.Model): """A Location is technically a geopgraphical point (lat+long), but is often used to represent a large area such as a city or state. It is recursive v...
37.5875
143
0.645494
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from django.db import models from rapidsms.webui.managers import * class LocationType(models.Model): name = models.CharField(max_length=100) class Meta: verbose_name = "Type" def __unicode__(self): return self.name class...
152
143
107
4dee88957fb6c3f5eeefee590940ef8910725319
73
py
Python
fisherman/overlap/all.py
BorjaRequena/Quantum-Fisherman
57e38bfeb7b184bc60d200030a5a673e5f06fb62
[ "Apache-2.0" ]
6
2021-05-05T13:59:17.000Z
2021-12-11T06:06:30.000Z
fisherman/overlap/all.py
BorjaRequena/Quantum-Fisherman
57e38bfeb7b184bc60d200030a5a673e5f06fb62
[ "Apache-2.0" ]
null
null
null
fisherman/overlap/all.py
BorjaRequena/Quantum-Fisherman
57e38bfeb7b184bc60d200030a5a673e5f06fb62
[ "Apache-2.0" ]
null
null
null
from .randomized import * from .swap import * from .comp_uncomp import *
18.25
26
0.753425
from .randomized import * from .swap import * from .comp_uncomp import *
0
0
0
0eae708db50a092a1f792e3bbbd1ae39f97467ef
6,730
py
Python
kit_django/restAPICore/views.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
6
2020-06-29T20:36:15.000Z
2021-09-08T23:34:01.000Z
kit_django/restAPICore/views.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
9
2021-03-30T13:46:29.000Z
2022-03-12T00:38:27.000Z
kit_django/restAPICore/views.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
1
2020-07-20T18:40:24.000Z
2020-07-20T18:40:24.000Z
# # ---------------------------------------------------------------------------------------------------- # DESCRIPTION # ---------------------------------------------------------------------------------------------------- # # --------------------------------------------------------------------------------------------...
37.597765
120
0.502823
# # ---------------------------------------------------------------------------------------------------- # DESCRIPTION # ---------------------------------------------------------------------------------------------------- # # --------------------------------------------------------------------------------------------...
1,901
3,522
44
18670e302470b64e0aff41fcdc84db343061d262
11,285
py
Python
model-optimizer/extensions/front/tf/CTCLossReplacement.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
2
2021-02-26T15:46:19.000Z
2021-05-16T20:48:13.000Z
model-optimizer/extensions/front/tf/CTCLossReplacement.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
30
2020-11-13T11:44:07.000Z
2022-02-21T13:03:16.000Z
model-optimizer/extensions/front/tf/CTCLossReplacement.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
1
2020-12-18T15:47:45.000Z
2020-12-18T15:47:45.000Z
""" Copyright (C) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
60.347594
127
0.652193
""" Copyright (C) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
9,050
0
81
75fc5e253de92da4a5b43457184480ef836f5afe
253
py
Python
gcn/csv_output.py
PeterChen607/Spectral-based-GCN-with-Attention-mechanism
dfa5798e81410440e503a636e919fb5e5214f081
[ "MIT" ]
3
2020-08-04T10:14:36.000Z
2021-06-28T02:26:18.000Z
gcn/csv_output.py
PeterChen607/Spectral-based-GCN-with-Attention-mechanism
dfa5798e81410440e503a636e919fb5e5214f081
[ "MIT" ]
4
2020-11-13T19:00:00.000Z
2022-02-10T02:06:46.000Z
gcn/csv_output.py
PeterChen607/Spectral-based-GCN-with-Attention-mechanism
dfa5798e81410440e503a636e919fb5e5214f081
[ "MIT" ]
1
2021-06-28T02:29:57.000Z
2021-06-28T02:29:57.000Z
import csv
18.071429
54
0.581028
import csv def csv_output(path, table): f = open(path,'w',encoding='utf-8', newline='' "") # 2. 基于文件对象构建 csv写入对象 csv_writer = csv.writer(f) # 4. 写入csv文件内容 for i in table: csv_writer.writerow(i) # 5. 关闭文件 f.close()
264
0
23
6df332d10e41fb18978a39581a88073aeb9deebf
21,214
py
Python
Code/TrustRegion.py
iTsingalis/torch-trust-ncg
d45b8eb8f4b45c9bdaa1801bdc9f099f90ae598e
[ "MIT" ]
null
null
null
Code/TrustRegion.py
iTsingalis/torch-trust-ncg
d45b8eb8f4b45c9bdaa1801bdc9f099f90ae598e
[ "MIT" ]
null
null
null
Code/TrustRegion.py
iTsingalis/torch-trust-ncg
d45b8eb8f4b45c9bdaa1801bdc9f099f90ae598e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @author Vasileios Choutas # Contact: vassilis.choutas@tuebingen.mpg.de from __future__ import absolute_import from __future__ import print_function from __future__ import division from typing import NewType, List, Tuple import torch from torch import norm import torch.optim as optim impor...
38.431159
119
0.555765
# -*- coding: utf-8 -*- # @author Vasileios Choutas # Contact: vassilis.choutas@tuebingen.mpg.de from __future__ import absolute_import from __future__ import print_function from __future__ import division from typing import NewType, List, Tuple import torch from torch import norm import torch.optim as optim impor...
5,293
15,468
46
0af89f7156b96ef95ef85efe8d69e2dfa62d252c
5,356
py
Python
chinesenotes/similarity_train.py
alexamies/chinesenotes-python
778712e98a54860e9bb24a5111a9ca8a96644214
[ "Apache-2.0" ]
null
null
null
chinesenotes/similarity_train.py
alexamies/chinesenotes-python
778712e98a54860e9bb24a5111a9ca8a96644214
[ "Apache-2.0" ]
null
null
null
chinesenotes/similarity_train.py
alexamies/chinesenotes-python
778712e98a54860e9bb24a5111a9ca8a96644214
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "L...
30.605714
86
0.648432
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "L...
766
0
23
5c4ff07fa09c1f57cc06fbf9936c0f7bf55c9908
1,693
py
Python
script.py
Feezy15/subreddit_scraper
9e9ec989101f13e9474234473e62493034eb7611
[ "MIT" ]
null
null
null
script.py
Feezy15/subreddit_scraper
9e9ec989101f13e9474234473e62493034eb7611
[ "MIT" ]
null
null
null
script.py
Feezy15/subreddit_scraper
9e9ec989101f13e9474234473e62493034eb7611
[ "MIT" ]
null
null
null
""" A script that scrapes various bits of data from subreddits """ import praw import requests import os import sqlite3 SQ_LITE_FILE = "avexchange_data.db" def get_urls(subreddit): """ scrape for certain keywords on a subreddit """ print("getting urls from r/{}".format(subreddit)) reddit = praw.Reddit...
32.557692
136
0.627289
""" A script that scrapes various bits of data from subreddits """ import praw import requests import os import sqlite3 SQ_LITE_FILE = "avexchange_data.db" def init_database(): if not os.path.isfile(os.path.dirname(os.path.abspath(__file__)) + "/{}".format(SQ_LITE_FILE)): print("creating db {}-".format(SQ...
459
0
23
5aba35ab361297d91284da0b44616c3ca2742dbb
14,791
py
Python
nodemonitor/agent.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
nodemonitor/agent.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
nodemonitor/agent.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty Node Agent """ # ============================== # Node Agent # ============================== import os import sys import logging import logging.handlers import socket import select import Queue as Q import threading from datetime im...
34.639344
107
0.573862
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty Node Agent """ # ============================== # Node Agent # ============================== import os import sys import logging import logging.handlers import socket import select import Queue as Q import threading from datetime im...
7,974
4,188
338
2d94e570a5fb66ee4ea2b0b645009575fe90c529
4,419
py
Python
pyroute/compress/compress.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/compress/compress.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/compress/compress.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #---------------------------------------------------------------- # #------------------------------------------------------ # Usage: # #------------------------------------------------------ # Copyright 2007, Oliver White # # This program is free software: you can redistribute it and/or modify # it un...
31.340426
218
0.56687
#!/usr/bin/python #---------------------------------------------------------------- # #------------------------------------------------------ # Usage: # #------------------------------------------------------ # Copyright 2007, Oliver White # # This program is free software: you can redistribute it and/or modify # it un...
1,337
1,884
23
b6cfc149a70283a6388eec6ed094070716e7e105
5,357
py
Python
gooey/gui/components/options/validators.py
geosaleh/Gooey
c2aa8afc269271d55f011c6bc89828992a30b3f0
[ "MIT" ]
1
2022-02-21T05:51:21.000Z
2022-02-21T05:51:21.000Z
gooey/gui/components/options/validators.py
geosaleh/Gooey
c2aa8afc269271d55f011c6bc89828992a30b3f0
[ "MIT" ]
1
2021-12-02T07:42:03.000Z
2021-12-02T07:42:03.000Z
gooey/gui/components/options/validators.py
geosaleh/Gooey
c2aa8afc269271d55f011c6bc89828992a30b3f0
[ "MIT" ]
null
null
null
import re from functools import wraps from gooey.gui.components.filtering.prefix_filter import OperatorType class SuperBool(object): """ A boolean which keeps with it the rationale for when it is false. """ __nonzero__ = __bool__ def lift(f): """ Lifts a basic predicate to the SuperBoo...
26.519802
96
0.663244
import re from functools import wraps from gooey.gui.components.filtering.prefix_filter import OperatorType class SuperBool(object): """ A boolean which keeps with it the rationale for when it is false. """ def __init__(self, value, rationale): self.value = value self.rationale = ...
482
0
152
5807257790cef3d53abb06fe45677a87bcfe3f8b
3,812
py
Python
server/iotud/api/devices.py
hollwann/dashboard-iot-udistrital
a92c6b65fce5c343abeffcb5badf1f4bfd9ab1f2
[ "MIT" ]
2
2020-07-02T19:09:12.000Z
2020-07-05T00:33:55.000Z
server/iotud/api/devices.py
hollwann/dashboard-iot-udistrital
a92c6b65fce5c343abeffcb5badf1f4bfd9ab1f2
[ "MIT" ]
3
2020-07-05T00:55:08.000Z
2022-02-27T11:29:51.000Z
server/iotud/api/devices.py
hollwann/dashboard-iot-udistrital
a92c6b65fce5c343abeffcb5badf1f4bfd9ab1f2
[ "MIT" ]
null
null
null
import functools from datetime import datetime from flask import Blueprint, jsonify, request from iotud.tools import fetch_all, fetch_one, update, insert, get_auth_props, either_response, delete from string import ascii_lowercase import random from oslash import Right, Left from toolz import accumulate, assoc, reduce ...
35.626168
101
0.644019
import functools from datetime import datetime from flask import Blueprint, jsonify, request from iotud.tools import fetch_all, fetch_one, update, insert, get_auth_props, either_response, delete from string import ascii_lowercase import random from oslash import Right, Left from toolz import accumulate, assoc, reduce ...
2,920
0
271
80d14ac67554130253c5695660674cb336aa2294
2,598
py
Python
templates/movie_info_popup.py
rikbarker/watcher
dadacd21a5790ee609058a98a17fcc8954d24439
[ "Apache-2.0" ]
194
2016-12-23T19:11:09.000Z
2020-12-07T04:04:10.000Z
templates/movie_info_popup.py
rikbarker/watcher
dadacd21a5790ee609058a98a17fcc8954d24439
[ "Apache-2.0" ]
236
2016-11-20T07:56:15.000Z
2017-04-12T12:10:00.000Z
templates/movie_info_popup.py
rikbarker/watcher
dadacd21a5790ee609058a98a17fcc8954d24439
[ "Apache-2.0" ]
51
2016-11-20T08:05:33.000Z
2021-01-26T13:22:40.000Z
import json import core from core.movieinfo import Trailer from dominate.tags import * # pylama:ignore=W0401
37.652174
158
0.54311
import json import core from core.movieinfo import Trailer from dominate.tags import * class MovieInfoPopup(): def __init__(self): return def html(self, data_json): ''' data: str json object movie data dict ''' data = json.loads(data_json) trailer = Trailer...
192
2,271
23
8a78cc74ff0b5595f02947a1d7e6f8bbbc2fdf09
196
py
Python
scripts/item/consume_2436229.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
2
2020-04-15T03:16:07.000Z
2020-08-12T23:28:32.000Z
scripts/item/consume_2436229.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
null
null
null
scripts/item/consume_2436229.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
3
2020-08-25T06:55:25.000Z
2020-12-01T13:07:43.000Z
# Pig Bar Damage Skin success = sm.addDamageSkin(2436229) if success: sm.chat("The Pig Bar Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2436229)
32.666667
95
0.739796
# Pig Bar Damage Skin success = sm.addDamageSkin(2436229) if success: sm.chat("The Pig Bar Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2436229)
0
0
0
9776a56824d42f2bff18ed175f92278719ddf139
93
py
Python
jhu_primitives/euclidean_nomination/__init__.py
remram44/primitives-interfaces
f6d305d6f65fc8c89c14bef6f2b8b4d86d44005b
[ "Apache-2.0" ]
null
null
null
jhu_primitives/euclidean_nomination/__init__.py
remram44/primitives-interfaces
f6d305d6f65fc8c89c14bef6f2b8b4d86d44005b
[ "Apache-2.0" ]
23
2017-09-20T08:12:13.000Z
2022-03-01T01:49:11.000Z
jhu_primitives/euclidean_nomination/__init__.py
remram44/primitives-interfaces
f6d305d6f65fc8c89c14bef6f2b8b4d86d44005b
[ "Apache-2.0" ]
8
2018-05-14T18:44:38.000Z
2021-03-18T19:53:23.000Z
from __future__ import absolute_import from .euclidean_nomination import EuclideanNomination
31
53
0.903226
from __future__ import absolute_import from .euclidean_nomination import EuclideanNomination
0
0
0
67358a218c8de9c7a4a7b5c11a14dc74a49ac17a
403
py
Python
Startup.py
TimothyBergstrom/Zergy
ca9e51afccd0907dc343c36e3421211ed9861319
[ "Apache-2.0" ]
null
null
null
Startup.py
TimothyBergstrom/Zergy
ca9e51afccd0907dc343c36e3421211ed9861319
[ "Apache-2.0" ]
1
2017-11-06T21:59:41.000Z
2017-11-06T21:59:41.000Z
Startup.py
TimothyBergstrom/Zergy
ca9e51afccd0907dc343c36e3421211ed9861319
[ "Apache-2.0" ]
null
null
null
import subprocess import os try: Settings=[] f=open('data/Settings.txt','r') _lines=f.readlines() Settings.append([i.replace('\n','') for i in _lines]) Settings=Settings[0] #Because list in list f.close() except: Settings=['Manual: Fill',5,0,'No','No'] try: subprocess.Popen(['GUI.exe'...
21.210526
81
0.652605
import subprocess import os try: Settings=[] f=open('data/Settings.txt','r') _lines=f.readlines() Settings.append([i.replace('\n','') for i in _lines]) Settings=Settings[0] #Because list in list f.close() except: Settings=['Manual: Fill',5,0,'No','No'] try: subprocess.Popen(['GUI.exe'...
0
0
0
598d01312b8f1651df66dcdb2419ccaee00465e3
280
py
Python
src/stemming.py
Stoeoeoe/InnovationThesis
eaf8e419bdd8d0ee33f30a789c5ac93633ae3062
[ "MIT" ]
null
null
null
src/stemming.py
Stoeoeoe/InnovationThesis
eaf8e419bdd8d0ee33f30a789c5ac93633ae3062
[ "MIT" ]
null
null
null
src/stemming.py
Stoeoeoe/InnovationThesis
eaf8e419bdd8d0ee33f30a789c5ac93633ae3062
[ "MIT" ]
null
null
null
from nltk import stem from nltk import tokenize from nltk import tag from nltk.tag import pos_tag from nltk.tokenize import word_tokenize text1 = 'His acting was amazing.' text2 = 'He was merely acting.' print(pos_tag(word_tokenize(text1))) print(pos_tag(word_tokenize(text2)))
23.333333
39
0.792857
from nltk import stem from nltk import tokenize from nltk import tag from nltk.tag import pos_tag from nltk.tokenize import word_tokenize text1 = 'His acting was amazing.' text2 = 'He was merely acting.' print(pos_tag(word_tokenize(text1))) print(pos_tag(word_tokenize(text2)))
0
0
0
d623c86c78e6b71a533d2abdd161fcf6efba9130
935
py
Python
test/test_miner-search.py
sckott/pyminer
00f05067f536465d664999d613e4c37500653976
[ "MIT" ]
6
2016-02-02T21:29:11.000Z
2020-08-16T14:11:19.000Z
test/test_miner-search.py
sckott/pyminer
00f05067f536465d664999d613e4c37500653976
[ "MIT" ]
9
2016-11-12T16:14:13.000Z
2020-09-25T13:15:42.000Z
test/test_miner-search.py
sckott/pyminer
00f05067f536465d664999d613e4c37500653976
[ "MIT" ]
null
null
null
"""Tests for miner module - search methods""" import os import pytest import vcr from pyminer import Miner m = Miner() @vcr.use_cassette('test/vcr_cassettes/search.yaml') def test_search(): "miner.search - basic test" res = m.search(filter = {'has_full_text': True}, limit = 5) assert 'Mined' == res.__class...
31.166667
63
0.677005
"""Tests for miner module - search methods""" import os import pytest import vcr from pyminer import Miner m = Miner() @vcr.use_cassette('test/vcr_cassettes/search.yaml') def test_search(): "miner.search - basic test" res = m.search(filter = {'has_full_text': True}, limit = 5) assert 'Mined' == res.__class...
0
0
0
5fd15b5c667704a8d8a73b148dadac94ae602905
1,961
py
Python
make/photon/prepare/tests/migrations/utils_test.py
gerhardgossen/harbor
1d03b8727acb9a3935bf45cd76b61f87c68e2a08
[ "Apache-2.0" ]
1
2020-07-11T09:12:18.000Z
2020-07-11T09:12:18.000Z
make/photon/prepare/tests/migrations/utils_test.py
gerhardgossen/harbor
1d03b8727acb9a3935bf45cd76b61f87c68e2a08
[ "Apache-2.0" ]
10
2021-05-31T00:06:59.000Z
2022-02-11T12:34:16.000Z
make/photon/prepare/tests/migrations/utils_test.py
gerhardgossen/harbor
1d03b8727acb9a3935bf45cd76b61f87c68e2a08
[ "Apache-2.0" ]
1
2020-07-12T16:51:07.000Z
2020-07-12T16:51:07.000Z
import pytest import importlib from utils.migration import search @pytest.fixture @pytest.fixture @pytest.fixture
33.237288
79
0.721571
import pytest import importlib from utils.migration import search class mockModule: def __init__(self, revision, down_revision): self.revision = revision self.down_revision = down_revision def mock_import_module_loop(module_path: str): loop_modules = { 'migration.versions.1_9_0': mockModu...
1,594
-4
253
502c09b74ab49cdb0e21fe1b8efa995fdfd36c8b
2,168
py
Python
infoblox_netmri/api/remote/models/device_certificate_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_certificate_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_certificate_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DeviceCertificateRemote(RemoteModel): """ This table list out the device certificates. | ``id:`` The internal NetMRI identifier for this device certificate. | ``attribute type:`` number ...
25.809524
84
0.5369
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DeviceCertificateRemote(RemoteModel): """ This table list out the device certificates. | ``id:`` The internal NetMRI identifier for this device certificate. | ``attribute type:`` number ...
0
0
0
d530591ad3e0b6d1d80a67611a179ab599febfb7
1,830
py
Python
neural_network.py
maxlorenz/Simple_NN
2752663fd3ccacee42e339859060eed5125f61d5
[ "Apache-2.0" ]
88
2017-02-25T14:44:01.000Z
2022-01-28T23:24:04.000Z
neural_network.py
maxlorenz/Simple_NN
2752663fd3ccacee42e339859060eed5125f61d5
[ "Apache-2.0" ]
2
2017-02-25T19:36:21.000Z
2017-02-27T21:59:18.000Z
neural_network.py
maxlorenz/Simple_NN
2752663fd3ccacee42e339859060eed5125f61d5
[ "Apache-2.0" ]
10
2017-02-25T19:20:03.000Z
2018-08-21T12:05:03.000Z
from random import random, choice if __name__ == "__main__": nn = NeuralNetwork(inputs=2, hidden_neurons=4) training = [([0, 0], 0), ([0, 1], 1), ([1, 0], 1), ([1, 1], 0)] for epoch in range(100000): input, target = choice(training) nn.learn(input, target) for input, target in tra...
26.911765
69
0.571585
from random import random, choice class Neuron(object): def __init__(self, num_inputs): self.inputs = [] self.learning_rate = 0.01 self.weights = [random() for _ in range(num_inputs)] self.bias = random() @staticmethod def activation(x): """ReLU function""" ...
978
288
127
351137de7e2941c3ec14e6b66c19e390ce537c11
1,562
py
Python
coastl/stl_toolkit/stl_processing.py
prathgan/COASTL
2ee009964f8bafc2d108aba6554f230549cb09e3
[ "MIT" ]
null
null
null
coastl/stl_toolkit/stl_processing.py
prathgan/COASTL
2ee009964f8bafc2d108aba6554f230549cb09e3
[ "MIT" ]
null
null
null
coastl/stl_toolkit/stl_processing.py
prathgan/COASTL
2ee009964f8bafc2d108aba6554f230549cb09e3
[ "MIT" ]
null
null
null
import re from gurobipy import * from .stl_parsing import parse_logic from .stl_constraints import create_constraints from .utilities.simple_utilities import remove_gurobi_log, parentheses_match def solve(logic): """Finds solutions for all binary and continuous variables in logic string""" return synthesize_stl(crea...
39.05
119
0.792574
import re from gurobipy import * from .stl_parsing import parse_logic from .stl_constraints import create_constraints from .utilities.simple_utilities import remove_gurobi_log, parentheses_match def solve(logic): """Finds solutions for all binary and continuous variables in logic string""" return synthesize_stl(crea...
0
0
0
2a025598c7e823c92ad2cf67003a731e4969487c
781
py
Python
tests/unit/test__main__.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
8
2017-11-28T11:05:52.000Z
2021-11-16T13:52:45.000Z
tests/unit/test__main__.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
4
2018-12-23T14:52:11.000Z
2019-08-09T21:01:44.000Z
tests/unit/test__main__.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
2
2017-11-28T14:38:24.000Z
2017-11-29T09:03:20.000Z
from ncssl_api_client.__main__ import main_cli_wrapper from unittest import TestCase import mock
33.956522
80
0.733675
from ncssl_api_client.__main__ import main_cli_wrapper from unittest import TestCase import mock class MainTest(TestCase): @mock.patch('ncssl_api_client.__main__.main', return_value=mock.MagicMock()) def test_status_code_zero_on_success(self, result_mock): result_mock().is_successful.return_value = T...
440
220
23
1e01397b0e0b55041950595176edcb92e499b82c
169
py
Python
mtd/__init__.py
jbernhard/mtd
6326fdb44f071311ace7862371e658d609f43d08
[ "MIT" ]
4
2017-02-21T21:20:07.000Z
2020-11-03T15:54:13.000Z
mtd/__init__.py
jbernhard/mtd
6326fdb44f071311ace7862371e658d609f43d08
[ "MIT" ]
null
null
null
mtd/__init__.py
jbernhard/mtd
6326fdb44f071311ace7862371e658d609f43d08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = '0.1.dev0' from .multigp import MultiGP from .pca import PCA from .util import * from . import priors from george import kernels
16.9
28
0.710059
# -*- coding: utf-8 -*- __version__ = '0.1.dev0' from .multigp import MultiGP from .pca import PCA from .util import * from . import priors from george import kernels
0
0
0
c224b45fb5e328057b7f525d9ec74ad91d54f04d
642
py
Python
src/core/sessions/buffers/exporter/exporters/text.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
21
2015-08-02T21:26:14.000Z
2019-12-27T09:57:44.000Z
src/core/sessions/buffers/exporter/exporters/text.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
34
2015-01-12T00:38:14.000Z
2020-08-31T11:19:37.000Z
src/core/sessions/buffers/exporter/exporters/text.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
15
2015-03-24T15:42:30.000Z
2020-09-24T20:26:42.000Z
from core.sessions.buffers.exporter.exporters import BaseExporter import codecs
27.913043
81
0.699377
from core.sessions.buffers.exporter.exporters import BaseExporter import codecs class TextExporter (BaseExporter): def __init__(self, **kwargs): if 'item_template' not in kwargs or kwargs['item_template'] is None: raise TypeError("This exporter requires item_template to be str or unicode.") super(TextEx...
389
147
24
9d53527b82665492d24c2490026e630dce7fcf5e
724
py
Python
15/15_b_selection_sort.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
15/15_b_selection_sort.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
15/15_b_selection_sort.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
''' Write a program to implement various sorting techniques: [Compare with Python’s Built-In Sorting Functions also] • Insertion sort • Selection Sort • Bubble Sort • Merge Sort • Quick Sort ''' # SELECTION SORT n = int(input("Enter the number of list items: ")) arr = [] for i in range(0, n): ele = i...
25.857143
58
0.603591
''' Write a program to implement various sorting techniques: [Compare with Python’s Built-In Sorting Functions also] • Insertion sort • Selection Sort • Bubble Sort • Merge Sort • Quick Sort ''' # SELECTION SORT n = int(input("Enter the number of list items: ")) arr = [] for i in range(0, n): ele = i...
237
0
25
c8cffebb050fe5118af1f33942d9c35ce08558c9
7,210
py
Python
aiport_server/legacy/trans_chat/data_loader.py
ysb06/ai-port-backend
88672388e73a48e6237ac2e51894ec25d9e283ce
[ "MIT" ]
null
null
null
aiport_server/legacy/trans_chat/data_loader.py
ysb06/ai-port-backend
88672388e73a48e6237ac2e51894ec25d9e283ce
[ "MIT" ]
null
null
null
aiport_server/legacy/trans_chat/data_loader.py
ysb06/ai-port-backend
88672388e73a48e6237ac2e51894ec25d9e283ce
[ "MIT" ]
null
null
null
import pandas as pd import torch import copy from typing import Dict, List, Tuple from torch import LongTensor from torch.tensor import Tensor from torch.utils.data import Dataset from konlpy.tag import Kkma from nltk.tokenize import word_tokenize from tqdm.auto import tqdm
36.785714
119
0.644383
import pandas as pd import torch import copy from typing import Dict, List, Tuple from torch import LongTensor from torch.tensor import Tensor from torch.utils.data import Dataset from konlpy.tag import Kkma from nltk.tokenize import word_tokenize from tqdm.auto import tqdm class ConversationDataset(Dataset): def...
7,139
14
149
c417ac78d6a74a21d493d6480c2e10db351b3d0a
374
py
Python
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
865
2018-08-01T11:41:26.000Z
2022-03-29T08:34:29.000Z
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
533
2018-08-01T14:01:59.000Z
2022-03-30T13:11:09.000Z
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
194
2018-08-01T12:48:19.000Z
2022-03-29T10:19:57.000Z
with open("delay_vs_fanout.csv", "w") as f: print("fanout,delay", file=f) for net_name, net in ctx.nets: if net.driver.cell is None: continue if net.driver.cell.type == "DCCA": continue # ignore global clocks for user in net.users: print(f"{len(net.use...
34
84
0.590909
with open("delay_vs_fanout.csv", "w") as f: print("fanout,delay", file=f) for net_name, net in ctx.nets: if net.driver.cell is None: continue if net.driver.cell.type == "DCCA": continue # ignore global clocks for user in net.users: print(f"{len(net.use...
0
0
0
939e70e5d13b2a3fe17b2bb42d0609a0c007c0ee
9,957
py
Python
Bio/PDB/TorusDBN/_io.py
mchelem/biopython
2daa5fee06077bbada8b89fe6032c3f123318fc2
[ "PostgreSQL" ]
1
2020-06-29T17:32:16.000Z
2020-06-29T17:32:16.000Z
Bio/PDB/TorusDBN/_io.py
mchelem/biopython
2daa5fee06077bbada8b89fe6032c3f123318fc2
[ "PostgreSQL" ]
null
null
null
Bio/PDB/TorusDBN/_io.py
mchelem/biopython
2daa5fee06077bbada8b89fe6032c3f123318fc2
[ "PostgreSQL" ]
null
null
null
# Copyright (C) 2011 by Michele Silva (michele.silva@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import os import math import numpy from mocapy.framework import eMISMASK from Bio.PDB ...
33.982935
102
0.568545
# Copyright (C) 2011 by Michele Silva (michele.silva@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import os import math import numpy from mocapy.framework import eMISMASK from Bio.PDB ...
0
0
0
bd4cfb50614b26d2a45f7796cdb6de5d44ba7f1a
6,598
py
Python
pool.py
scarecrow87/nhzpool
90a5718a6a491e0432a5c60429b3b16ac8114df1
[ "MIT" ]
1
2015-02-16T11:49:16.000Z
2015-02-16T11:49:16.000Z
pool.py
scarecrow87/nhzpool
90a5718a6a491e0432a5c60429b3b16ac8114df1
[ "MIT" ]
null
null
null
pool.py
scarecrow87/nhzpool
90a5718a6a491e0432a5c60429b3b16ac8114df1
[ "MIT" ]
5
2015-02-16T12:42:45.000Z
2019-07-14T20:50:49.000Z
#!/usr/bin/env python # author: pharesim@nhzcrypto.org import json import urllib import urllib2 import sqlite3 import math import ConfigParser import time config = ConfigParser.RawConfigParser() config.read('config.ini') conn = sqlite3.connect(config.get("pool", "database")) c = conn.cursor() if __...
37.91954
191
0.615944
#!/usr/bin/env python # author: pharesim@nhzcrypto.org import json import urllib import urllib2 import sqlite3 import math import ConfigParser import time config = ConfigParser.RawConfigParser() config.read('config.ini') conn = sqlite3.connect(config.get("pool", "database")) c = conn.cursor() def main(): whil...
6,045
0
200
6027c33c333db43152b335b880f0d183ba49d46d
4,319
py
Python
parsl/tests/manual_tests/test_basic.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
2
2019-02-25T16:43:30.000Z
2019-03-04T17:25:00.000Z
parsl/tests/manual_tests/test_basic.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
null
null
null
parsl/tests/manual_tests/test_basic.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
2
2019-04-30T13:46:23.000Z
2019-06-04T16:14:46.000Z
import argparse import time import parsl # Tested. Confirmed. Local X Local X SingleNodeLauncher from parsl.tests.configs.local_ipp import config # Tested. Confirmed. ssh X Slurm X SingleNodeLauncher # from parsl.tests.configs.midway_ipp import config # Tested. Confirmed. ssh X Slurm X SingelNodeLauncher # from pars...
26.496933
77
0.664737
import argparse import time import parsl # Tested. Confirmed. Local X Local X SingleNodeLauncher from parsl.tests.configs.local_ipp import config # Tested. Confirmed. ssh X Slurm X SingleNodeLauncher # from parsl.tests.configs.midway_ipp import config # Tested. Confirmed. ssh X Slurm X SingelNodeLauncher # from pars...
1,511
0
180
2950cf0bc349ff3760e44a141ca72bdffc988490
255
py
Python
__init__.py
blackCheetah/YouTube---Checker-for-Giveaways
c20b8ad762669a38c4ccfeb91486f008b7f0833c
[ "MIT" ]
null
null
null
__init__.py
blackCheetah/YouTube---Checker-for-Giveaways
c20b8ad762669a38c4ccfeb91486f008b7f0833c
[ "MIT" ]
3
2021-02-08T20:25:28.000Z
2021-06-01T22:43:03.000Z
__init__.py
blackCheetah/YouTube---Checker-for-Giveaways
c20b8ad762669a38c4ccfeb91486f008b7f0833c
[ "MIT" ]
null
null
null
""" General details about the program """ __version__ = '0.2.0' __author__ = 'blackCheetah' __created__ = '27.09.2018' __updated__ = '07.10.2018' __description__ = 'Retrieve all subscribers who made a comment on your last 50 videos.'
28.333333
87
0.678431
""" General details about the program """ __version__ = '0.2.0' __author__ = 'blackCheetah' __created__ = '27.09.2018' __updated__ = '07.10.2018' __description__ = 'Retrieve all subscribers who made a comment on your last 50 videos.'
0
0
0
fcdcbb79481d3bb5f02262e55c738c7678897fbb
52,534
py
Python
src/operation.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
src/operation.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
src/operation.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python """ Schema Schema | Name | Type | Owner --------+-------------------+----------+--------- public | job | table | huangch public | job_definition | table | huangch public | job_definition_id | sequence | huangch public | job_id | sequence | ...
28.848984
357
0.634675
#!/usr/bin/env python """ Schema Schema | Name | Type | Owner --------+-------------------+----------+--------- public | job | table | huangch public | job_definition | table | huangch public | job_definition_id | sequence | huangch public | job_id | sequence | ...
43,529
0
1,288
e05a65651cc796d35647fa8b9683ab79e7a876fe
164
py
Python
src/data/__init__.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
src/data/__init__.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
src/data/__init__.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
from src.data.load_dictionaries import load_dictionaries, create_key_skills from src.data.load_vacancies import load_vacancies from src.data.vacancy import Vacancy
41
75
0.878049
from src.data.load_dictionaries import load_dictionaries, create_key_skills from src.data.load_vacancies import load_vacancies from src.data.vacancy import Vacancy
0
0
0
993c6b3484d477798ccc852287106e2dcf851281
775
py
Python
project/five_fold.py
jayson-garrison/ML-Naive-Bayes
8026fae6413bc4f5b42d66eff8f1296a310b467c
[ "MIT" ]
1
2022-01-18T01:58:24.000Z
2022-01-18T01:58:24.000Z
project/five_fold.py
jayson-garrison/ML-Naive-Bayes
8026fae6413bc4f5b42d66eff8f1296a310b467c
[ "MIT" ]
null
null
null
project/five_fold.py
jayson-garrison/ML-Naive-Bayes
8026fae6413bc4f5b42d66eff8f1296a310b467c
[ "MIT" ]
null
null
null
"""" Author: Jayson C. Garrison Dates: 01/19/2022 Course: CS-5333 (Machine Learning) Description: Function that partitions data according to five fold cross validation GitHub: https://github.com/jayson-garrison/ML-Naive-Bayes """ # partition a data set into a list of 5 tuples for training and testing # five fo...
28.703704
82
0.6
"""" Author: Jayson C. Garrison Dates: 01/19/2022 Course: CS-5333 (Machine Learning) Description: Function that partitions data according to five fold cross validation GitHub: https://github.com/jayson-garrison/ML-Naive-Bayes """ class FiveFold: # partition a data set into a list of 5 tuples for training and testi...
396
-6
48
57896a723fbc502aa7a96e61088aa5e895edfcd3
1,186
py
Python
src/faber/config/try_compile.py
drmoose/faber
f447d58f2b42ad496c155cc8b3491379ac97c6f8
[ "BSL-1.0" ]
14
2017-05-27T00:18:24.000Z
2021-09-11T03:51:02.000Z
src/faber/config/try_compile.py
drmoose/faber
f447d58f2b42ad496c155cc8b3491379ac97c6f8
[ "BSL-1.0" ]
26
2017-07-16T17:20:57.000Z
2021-02-08T02:49:53.000Z
src/faber/config/try_compile.py
stefanseefeld/constructor
0f369a8a9e4de305e5379d9662b2e79bffd43910
[ "BSL-1.0" ]
3
2018-05-24T13:52:40.000Z
2020-06-30T16:46:26.000Z
# # Copyright (c) 2016 Stefan Seefeld # All rights reserved. # # This file is part of Faber. It is made available under the # Boost Software License, Version 1.0. # (Consult LICENSE or http://www.boost.org/LICENSE_1_0.txt) from .check import check from ..artefact import intermediate, always from ..tools.compiler impor...
33.885714
74
0.632378
# # Copyright (c) 2016 Stefan Seefeld # All rights reserved. # # This file is part of Faber. It is made available under the # Boost Software License, Version 1.0. # (Consult LICENSE or http://www.boost.org/LICENSE_1_0.txt) from .check import check from ..artefact import intermediate, always from ..tools.compiler impor...
682
0
27
400660bfe3de66710cc942a5b36698c94dc1b198
127
py
Python
zenmailbox/apps.py
DevZenCat/django-zenmailbox
3de636d39955130e7c129eaa31261ffc49f2f3fa
[ "MIT" ]
null
null
null
zenmailbox/apps.py
DevZenCat/django-zenmailbox
3de636d39955130e7c129eaa31261ffc49f2f3fa
[ "MIT" ]
4
2021-01-30T16:25:09.000Z
2021-02-27T01:57:10.000Z
zenmailbox/apps.py
DevZenCat/django-zenmailbox
3de636d39955130e7c129eaa31261ffc49f2f3fa
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18.142857
34
0.748031
from django.apps import AppConfig class ZenmailboxConfig(AppConfig): name = 'zenmailbox' verbose_name = "Zenmailbox"
0
69
23
f18ac13ba65aed5e3dfba48ba08ef246fff78e5e
3,354
py
Python
pyscripts/analyse_swm_loc_trunc.py
luanfs/iModel
8dd39e3564b6bc01df8dfe417493d9c7b22c40a8
[ "MIT" ]
10
2015-10-09T17:44:51.000Z
2021-06-10T01:56:33.000Z
pyscripts/analyse_swm_loc_trunc.py
luanfs/iModel
8dd39e3564b6bc01df8dfe417493d9c7b22c40a8
[ "MIT" ]
2
2018-08-29T11:49:32.000Z
2021-03-18T18:07:53.000Z
pyscripts/analyse_swm_loc_trunc.py
luanfs/iModel
8dd39e3564b6bc01df8dfe417493d9c7b22c40a8
[ "MIT" ]
14
2016-03-18T19:24:56.000Z
2021-09-01T10:38:57.000Z
#! /usr/bin/env python3 #--------------------------------- # Plots errors of experiments # obtained from iModel output # Pedro Peixoto (ppeixoto@usp.br) # Novembre 2018 #---------------------------------- import sys import os import re import string import numpy as np import matplotlib #matplotlib.use('Ag...
23.131034
93
0.683363
#! /usr/bin/env python3 #--------------------------------- # Plots errors of experiments # obtained from iModel output # Pedro Peixoto (ppeixoto@usp.br) # Novembre 2018 #---------------------------------- import sys import os import re import string import numpy as np import matplotlib #matplotlib.use('Ag...
0
0
0
59559039502c8f55ac9f29f68ebb611f4d96e2cd
6,641
py
Python
h/script.py
RichardLitt/h
f98d7e19a7913c82a3d3c43c226994366ebd3009
[ "MIT" ]
null
null
null
h/script.py
RichardLitt/h
f98d7e19a7913c82a3d3c43c226994366ebd3009
[ "MIT" ]
null
null
null
h/script.py
RichardLitt/h
f98d7e19a7913c82a3d3c43c226994366ebd3009
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from os import chdir, getcwd, makedirs, mkdir, walk from os.path import abspath, exists, join from shutil import copyfile, rmtree from urlparse import urljoin, urlparse, urlunparse, uses_netloc, uses_relative from chameleon.zpt.template import PageTextTemplateFile from clik import A...
29.780269
78
0.680922
# -*- coding: utf-8 -*- import json from os import chdir, getcwd, makedirs, mkdir, walk from os.path import abspath, exists, join from shutil import copyfile, rmtree from urlparse import urljoin, urlparse, urlunparse, uses_netloc, uses_relative from chameleon.zpt.template import PageTextTemplateFile from clik import A...
2,940
0
161
059cb2b4e53b363ecd3dc02f379199332064334e
3,212
py
Python
src/bnn_priors/bnn_priors/mcmc/hmc.py
activatedgeek/uncertainty-da-bayesian-classification
a270fb095f4790dea15327145897d09d0ba9c80b
[ "Apache-2.0" ]
31
2021-02-16T09:35:03.000Z
2022-03-31T17:18:54.000Z
src/bnn_priors/bnn_priors/mcmc/hmc.py
activatedgeek/understanding-bayesian-classification
a270fb095f4790dea15327145897d09d0ba9c80b
[ "Apache-2.0" ]
1
2021-05-10T15:25:48.000Z
2021-05-10T15:25:48.000Z
src/bnn_priors/bnn_priors/mcmc/hmc.py
activatedgeek/understanding-bayesian-classification
a270fb095f4790dea15327145897d09d0ba9c80b
[ "Apache-2.0" ]
4
2021-02-21T03:38:00.000Z
2021-12-24T15:13:29.000Z
import torch import math from typing import Sequence, Optional, Callable, Tuple, Dict, Union import typing from .sgld import dot from .verlet_sgld import VerletSGLD class HMC(VerletSGLD): """HMC with Verlet integration. Really `VerletSGLD` but with momentum=1 and temperature=1, and a different M-H acceptance...
40.15
85
0.612702
import torch import math from typing import Sequence, Optional, Callable, Tuple, Dict, Union import typing from .sgld import dot from .verlet_sgld import VerletSGLD class HMC(VerletSGLD): """HMC with Verlet integration. Really `VerletSGLD` but with momentum=1 and temperature=1, and a different M-H acceptance...
2,253
0
107
4dfcd178b71eaa0a60e7f9386fde5faf6871fbbb
3,874
py
Python
diff_representation/vocab.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
8
2021-03-15T18:57:18.000Z
2021-08-23T11:28:22.000Z
diff_representation/vocab.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
null
null
null
diff_representation/vocab.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
4
2021-03-27T14:19:09.000Z
2021-09-13T12:35:31.000Z
#!/usr/bin/env python # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Usage: vocab.py [options] TRAIN_FILE VOCAB_FILE Options: -h --help Show this screen. --size=<int> vocab size [default: 10000] --freq_cutoff=<int> frequency cutoff [de...
30.503937
117
0.593443
#!/usr/bin/env python # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Usage: vocab.py [options] TRAIN_FILE VOCAB_FILE Options: -h --help Show this screen. --size=<int> vocab size [default: 10000] --freq_cutoff=<int> frequency cutoff [de...
2,480
354
99
691d093f8e188fd2228b63061c9ed8aeb574df99
1,620
py
Python
graphs/partitions_graph.py
jnfran92/adaptive-boxes
bcf03a91d48877b3a24125b74a233bda5bd8e044
[ "MIT" ]
7
2020-06-05T23:18:14.000Z
2021-12-27T01:27:06.000Z
graphs/partitions_graph.py
jnfran92/adaptive-boxes
bcf03a91d48877b3a24125b74a233bda5bd8e044
[ "MIT" ]
3
2019-09-15T15:43:29.000Z
2020-11-19T16:27:22.000Z
graphs/partitions_graph.py
jnfran92/adaptive-boxes
bcf03a91d48877b3a24125b74a233bda5bd8e044
[ "MIT" ]
1
2020-09-24T08:01:39.000Z
2020-09-24T08:01:39.000Z
import matplotlib.pyplot as plt import networkx as nx import pandas as pd from networkx.readwrite import json_graph, write_gexf from matplotlib import pylab summary_groups_data_path = '/Users/Juan/django_projects/adaptive-boxes/graphs/partitions_data/hall/summary_groups.csv' x_units_path = '/Users/Juan/django_projec...
23.478261
118
0.71358
import matplotlib.pyplot as plt import networkx as nx import pandas as pd from networkx.readwrite import json_graph, write_gexf from matplotlib import pylab summary_groups_data_path = '/Users/Juan/django_projects/adaptive-boxes/graphs/partitions_data/hall/summary_groups.csv' x_units_path = '/Users/Juan/django_projec...
0
0
0
8698e112f320339793a7016d5eccfaf6f1d310cc
6,299
py
Python
scripts/zMayaTools/bake_transform.py
fsanges/zMayaTools
795168d497459b43439e03a55233320f90d8d11c
[ "MIT" ]
1
2021-01-28T05:13:47.000Z
2021-01-28T05:13:47.000Z
scripts/zMayaTools/bake_transform.py
fsanges/zMayaTools
795168d497459b43439e03a55233320f90d8d11c
[ "MIT" ]
null
null
null
scripts/zMayaTools/bake_transform.py
fsanges/zMayaTools
795168d497459b43439e03a55233320f90d8d11c
[ "MIT" ]
null
null
null
# Bake the transform on each frame from one transform to another. # # This is similar to the graph editor's keyframe bake (without any smart key reduction), # but bakes one object to another. This is useful for baking a constraint to another # transform. # # For example, you can constrain a locator to a character's ha...
42.560811
107
0.646611
# Bake the transform on each frame from one transform to another. # # This is similar to the graph editor's keyframe bake (without any smart key reduction), # but bakes one object to another. This is useful for baking a constraint to another # transform. # # For example, you can constrain a locator to a character's ha...
5,287
0
46
78f75ad9c04b23ec42185b40ad735003f1b7b9e5
4,233
py
Python
deckbuilder/card/models.py
maxawolff/mtg-deckbuilder
4ac7d0d7a0ed015dafd5143df0021182deb7cb01
[ "MIT" ]
null
null
null
deckbuilder/card/models.py
maxawolff/mtg-deckbuilder
4ac7d0d7a0ed015dafd5143df0021182deb7cb01
[ "MIT" ]
null
null
null
deckbuilder/card/models.py
maxawolff/mtg-deckbuilder
4ac7d0d7a0ed015dafd5143df0021182deb7cb01
[ "MIT" ]
null
null
null
"""Model of a single magic card.""" from django.db import models from multiselectfield import MultiSelectField from django.utils.text import slugify class Set(models.Model): """Class for set model.""" name = models.CharField(max_length=50) set_id = models.CharField(max_length=5, null=True, blank=True) ...
41.910891
79
0.605245
"""Model of a single magic card.""" from django.db import models from multiselectfield import MultiSelectField from django.utils.text import slugify class Set(models.Model): """Class for set model.""" name = models.CharField(max_length=50) set_id = models.CharField(max_length=5, null=True, blank=True) ...
245
0
27
0aebbaf8b359a3b4a74ff1c6e8498b0e0f6277fc
1,431
py
Python
.github/workflows/ensure_clean_notebooks.py
ICESAT-2HackWeek/website2022
10229090a94edb3e5734dbc00149b0502ad5396a
[ "MIT" ]
8
2022-02-01T16:54:29.000Z
2022-03-22T18:09:31.000Z
.github/workflows/ensure_clean_notebooks.py
ICESAT-2HackWeek/website2022
10229090a94edb3e5734dbc00149b0502ad5396a
[ "MIT" ]
99
2022-01-27T22:01:05.000Z
2022-03-31T19:42:28.000Z
.github/workflows/ensure_clean_notebooks.py
ICESAT-2HackWeek/website2022
10229090a94edb3e5734dbc00149b0502ad5396a
[ "MIT" ]
25
2022-02-02T00:58:27.000Z
2022-03-24T20:59:57.000Z
import yaml import nb_clean as nbc from pathlib import Path import nbformat import sys with open('./book/_config.yml') as f: data = yaml.safe_load(f) # Sometimes we use rendered notebooks instead of executing them exclude_paths = [] for pattern in data['execute']['exclude_patterns']: exclude_paths += list(Path(...
34.902439
82
0.675751
import yaml import nb_clean as nbc from pathlib import Path import nbformat import sys with open('./book/_config.yml') as f: data = yaml.safe_load(f) # Sometimes we use rendered notebooks instead of executing them exclude_paths = [] for pattern in data['execute']['exclude_patterns']: exclude_paths += list(Path(...
0
0
0
30f3acb68606b47810d80f6613338364bf126a6e
75,314
py
Python
gerenciador_operacoes.py
David-Machado-Git/LABS---PROGRAMA-HAVAN
c084d8d1b3ba8cca726663cc1400149c3d34a64f
[ "MIT" ]
null
null
null
gerenciador_operacoes.py
David-Machado-Git/LABS---PROGRAMA-HAVAN
c084d8d1b3ba8cca726663cc1400149c3d34a64f
[ "MIT" ]
null
null
null
gerenciador_operacoes.py
David-Machado-Git/LABS---PROGRAMA-HAVAN
c084d8d1b3ba8cca726663cc1400149c3d34a64f
[ "MIT" ]
1
2021-06-24T20:39:03.000Z
2021-06-24T20:39:03.000Z
from time import sleep dados = {} ### --> DICIONÁRIO RECEBE TODOS OS DADOS COM SEUS RESPECTIVOS VALORES; ID, NOME ETC... lista_de_dados = [] lista_principal = [] copia_dados = []### --> DICIONÁRIO RECEBE TODOS OS DADOS codigo_cliente = 0 ### --> CONTADOR CONTAGEM TRANSAÇÕES moeda_origem_sigla = 'R$:' moeda_destino_sig...
50.580255
148
0.42036
from time import sleep dados = {} ### --> DICIONÁRIO RECEBE TODOS OS DADOS COM SEUS RESPECTIVOS VALORES; ID, NOME ETC... lista_de_dados = [] lista_principal = [] copia_dados = []### --> DICIONÁRIO RECEBE TODOS OS DADOS codigo_cliente = 0 ### --> CONTADOR CONTAGEM TRANSAÇÕES moeda_origem_sigla = 'R$:' moeda_destino_sig...
0
0
0
721a71db00d39666bd8dc4ed09ae4dc0ad626673
910
py
Python
Cogs/TestCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
1
2021-09-07T09:51:16.000Z
2021-09-07T09:51:16.000Z
Cogs/TestCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
null
null
null
Cogs/TestCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
3
2021-02-19T20:13:21.000Z
2022-02-04T03:56:43.000Z
from .Base import * from discord.ext import commands from discord.utils import get
30.333333
66
0.607692
from .Base import * from discord.ext import commands from discord.utils import get class TestCog(commands.Cog, BaseTools): def __init__(self, bot): self.setup() self.bot = bot self.list_links = {} self.compare = {} @commands.command() async def test(self, ctx, *, value="")...
658
147
23
c02d6565bfebaec5de189a39aa7ec6f21d1d6700
382
py
Python
sweep_test.py
winksaville/cadquery-wing1
43da6a179e1a527401a4328764f3726048d66339
[ "MIT" ]
null
null
null
sweep_test.py
winksaville/cadquery-wing1
43da6a179e1a527401a4328764f3726048d66339
[ "MIT" ]
null
null
null
sweep_test.py
winksaville/cadquery-wing1
43da6a179e1a527401a4328764f3726048d66339
[ "MIT" ]
null
null
null
a = 1 b = 5 h = b*5 d = a*5 s = ( cq.Workplane("XY") .ellipse(a,b) .sweep( cq.Workplane("XZ") # Start 0deg tangent, Tip finishes with 90deg tangent .spline([(0, i) for i in range(h)] + [(d,h)],[(0,1),(1,0)]) # Start 0deg tangent, Tip finishes with 45deg tangent #.sp...
21.222222
67
0.494764
a = 1 b = 5 h = b*5 d = a*5 s = ( cq.Workplane("XY") .ellipse(a,b) .sweep( cq.Workplane("XZ") # Start 0deg tangent, Tip finishes with 90deg tangent .spline([(0, i) for i in range(h)] + [(d,h)],[(0,1),(1,0)]) # Start 0deg tangent, Tip finishes with 45deg tangent #.sp...
0
0
0
67ca4046b26fc6f2949edcf97d480f0651eba7a6
7,442
py
Python
designateclient/functionaltests/v2/fixtures.py
mail2nsrajesh/python-designateclient
3bb401758c00a9d66383484c60933421d9a21d63
[ "Apache-2.0" ]
null
null
null
designateclient/functionaltests/v2/fixtures.py
mail2nsrajesh/python-designateclient
3bb401758c00a9d66383484c60933421d9a21d63
[ "Apache-2.0" ]
null
null
null
designateclient/functionaltests/v2/fixtures.py
mail2nsrajesh/python-designateclient
3bb401758c00a9d66383484c60933421d9a21d63
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
34.775701
79
0.658963
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
4,899
322
529
2dfdec1d2a034d95564f8f983b6af317c3bf00d9
135
py
Python
app/recipe/admin.py
fdomingues-travelperk/recipes-exercise
fbc00f98ba93043850e8c2ec0512f18bff274551
[ "MIT" ]
null
null
null
app/recipe/admin.py
fdomingues-travelperk/recipes-exercise
fbc00f98ba93043850e8c2ec0512f18bff274551
[ "MIT" ]
null
null
null
app/recipe/admin.py
fdomingues-travelperk/recipes-exercise
fbc00f98ba93043850e8c2ec0512f18bff274551
[ "MIT" ]
null
null
null
from django.contrib import admin from recipe import models admin.site.register(models.Recipe) admin.site.register(models.Ingredient)
19.285714
38
0.82963
from django.contrib import admin from recipe import models admin.site.register(models.Recipe) admin.site.register(models.Ingredient)
0
0
0
6f66a39ae443cdb3ff11e4b0bec5ccb6b7a6512e
24,373
py
Python
nipype/interfaces/semtools/filtering/featuredetection.py
demianw/nipype
52d64c30d96ecd94f1833156e28dce32c4f05ebe
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/semtools/filtering/featuredetection.py
demianw/nipype
52d64c30d96ecd94f1833156e28dce32c4f05ebe
[ "BSD-3-Clause" ]
2
2017-10-05T21:08:38.000Z
2018-10-09T23:01:23.000Z
nipype/interfaces/semtools/filtering/featuredetection.py
effigies/nipype
18fe222557cf3b9627e06b2a66fba589feaca581
[ "Apache-2.0" ]
1
2016-10-11T19:18:53.000Z
2016-10-11T19:18:53.000Z
# -*- coding: utf8 -*- """Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.""" import os from ...base import (CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, ...
37.097412
287
0.761129
# -*- coding: utf8 -*- """Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.""" import os from ...base import (CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, ...
0
11,699
828
fb13245a2c7ed2656aecee51c83e4daf02bf09af
1,699
py
Python
product_catalog/tests/test_urls.py
ssorin/django-product-catalog
98495de057a5bb6a04801dac800edc8fb3437f47
[ "BSD-3-Clause" ]
4
2018-12-02T14:51:47.000Z
2020-12-12T09:06:18.000Z
product_catalog/tests/test_urls.py
ssorin/django-product-catalog
98495de057a5bb6a04801dac800edc8fb3437f47
[ "BSD-3-Clause" ]
6
2018-12-20T08:22:25.000Z
2022-03-11T23:11:30.000Z
product_catalog/tests/test_urls.py
ssorin/django-product-catalog
98495de057a5bb6a04801dac800edc8fb3437f47
[ "BSD-3-Clause" ]
2
2017-12-06T23:56:14.000Z
2021-07-23T16:16:18.000Z
# coding=utf-8 """ Product Catalog: urls test cases """ from django.test import TestCase from django.urls import reverse from django.urls import resolve from product_catalog.models.product import Product from product_catalog.models.category import Category
35.395833
83
0.64744
# coding=utf-8 """ Product Catalog: urls test cases """ from django.test import TestCase from django.urls import reverse from django.urls import resolve from product_catalog.models.product import Product from product_catalog.models.category import Category class UrlsTestCase(TestCase): def setUp(self): ...
1,327
8
104
c0624a4c47c50d8a78a829cdb8707fb16a0bbf74
8,194
py
Python
code/msa.py
yanwang271/PKSpop
458e719a4bf1c67a9ea6a3f70b579d62e24a0191
[ "BSD-3-Clause" ]
2
2019-04-11T16:35:31.000Z
2019-04-11T16:43:44.000Z
code/msa.py
yanwang271/PKSpop
458e719a4bf1c67a9ea6a3f70b579d62e24a0191
[ "BSD-3-Clause" ]
null
null
null
code/msa.py
yanwang271/PKSpop
458e719a4bf1c67a9ea6a3f70b579d62e24a0191
[ "BSD-3-Clause" ]
3
2019-04-11T16:36:36.000Z
2020-11-20T16:10:04.000Z
#!/usr/bin/env python3 """ Cluster and align the docking domain sequences """ import os import subprocess from Bio import SeqIO from extract_seq import remove_invalid_pro def clustering(info_dict): ''' Cluster the query sequences to 3 classes ''' c_seq = info_dict['c_seq_path'] n_seq = info_dict...
33.444898
95
0.601782
#!/usr/bin/env python3 """ Cluster and align the docking domain sequences """ import os import subprocess from Bio import SeqIO from extract_seq import remove_invalid_pro def clustering(info_dict): ''' Cluster the query sequences to 3 classes ''' c_seq = info_dict['c_seq_path'] n_seq = info_dict...
0
0
0
83a66691e7934e92a54af2411e1d853cc3a1d32c
1,146
py
Python
examples/reproject.py
EdsonGermano/socrata-py-walkthrough
56901627fd3760987a8133a16710fbc5c5517aac
[ "Apache-2.0" ]
1
2017-10-31T18:37:12.000Z
2017-10-31T18:37:12.000Z
examples/reproject.py
EdsonGermano/socrata-py-walkthrough
56901627fd3760987a8133a16710fbc5c5517aac
[ "Apache-2.0" ]
null
null
null
examples/reproject.py
EdsonGermano/socrata-py-walkthrough
56901627fd3760987a8133a16710fbc5c5517aac
[ "Apache-2.0" ]
null
null
null
import sys from examples.auth import authorization from socrata import Socrata socrata = Socrata(authorization) file_path = sys.argv[1] """ This shows reprojecting from British National Grid to WGS84 We're using the proj4 def from here: http://spatialreference.org/ref/epsg/27700/ """ with open(file_path, 'rb') as ...
24.382979
138
0.558464
import sys from examples.auth import authorization from socrata import Socrata socrata = Socrata(authorization) file_path = sys.argv[1] """ This shows reprojecting from British National Grid to WGS84 We're using the proj4 def from here: http://spatialreference.org/ref/epsg/27700/ """ with open(file_path, 'rb') as ...
0
0
0
596ff1419f0846f4d08cc8c3657fe39286179bfa
7,650
py
Python
yandex/cloud/mdb/greenplum/v1/resource_preset_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
yandex/cloud/mdb/greenplum/v1/resource_preset_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
yandex/cloud/mdb/greenplum/v1/resource_preset_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/mdb/greenplum/v1/resource_preset.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
47.515528
804
0.765621
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/mdb/greenplum/v1/resource_preset.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
0
0
0
9b91366659a3c4d04636e40540c25f7eb5e166e1
380
py
Python
PythonProgram/learningList.challenge.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
1
2022-01-14T18:03:42.000Z
2022-01-14T18:03:42.000Z
PythonProgram/learningList.challenge.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
PythonProgram/learningList.challenge.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
# display only the IP addresses to the screen. iplist = [ 5060, "80", 55, "10.0.0.1", "10.20.30.1", "ssh" ] # example 1 - add up the strings print("IP addresses: " + iplist[3] + ", and " + iplist[4]) # example 2 - use the comma separator print("IP addresses:", iplist[3], ", and", iplist[4]) # example 3 - use an 'f-s...
31.666667
60
0.621053
# display only the IP addresses to the screen. iplist = [ 5060, "80", 55, "10.0.0.1", "10.20.30.1", "ssh" ] # example 1 - add up the strings print("IP addresses: " + iplist[3] + ", and " + iplist[4]) # example 2 - use the comma separator print("IP addresses:", iplist[3], ", and", iplist[4]) # example 3 - use an 'f-s...
0
0
0
62e51c96917728ce58f07d0e579853deb7b9df81
1,672
py
Python
examples/fake_blinkt.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
examples/fake_blinkt.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
examples/fake_blinkt.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
"""fake_blink terminal simulation of blinkt, to use rename to blinkt.py and place in same directory as blinkt program""" import sys import pantilthat import atexit import signal _clear_on_exit = True _true_color = True NUM_PIXELS = 8 pixels = [(0,0,0)] * NUM_PIXELS def set_clear_on_exit(value=Tru...
21.714286
120
0.597488
"""fake_blink terminal simulation of blinkt, to use rename to blinkt.py and place in same directory as blinkt program""" import sys import pantilthat import atexit import signal _clear_on_exit = True _true_color = True NUM_PIXELS = 8 pixels = [(0,0,0)] * NUM_PIXELS def _exit(): if _clear_on_exit: ...
826
0
161
3173c69743a7c472b3549e043a0891d2507a1ec6
320
py
Python
tests/test_cassette.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
tests/test_cassette.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
tests/test_cassette.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
from unittest import TestCase from requre.cassette import CassetteExecution
26.666667
47
0.6625
from unittest import TestCase from requre.cassette import CassetteExecution class Execution(TestCase): def testCreate(self): ce = CassetteExecution() ce.function = lambda: "ahoj" ce.cassette = "nothing" self.assertEqual("ahoj", ce.function()) self.assertEqual("ahoj", ce())
189
5
49
dc7855f40ff09180648f562fab98406c09b77282
180
py
Python
src/cqml/__init__.py
TheSwanFactory/cqml
0ca1ddfa23c8fa44612cf520896f2e4159ef5d49
[ "MIT" ]
null
null
null
src/cqml/__init__.py
TheSwanFactory/cqml
0ca1ddfa23c8fa44612cf520896f2e4159ef5d49
[ "MIT" ]
null
null
null
src/cqml/__init__.py
TheSwanFactory/cqml
0ca1ddfa23c8fa44612cf520896f2e4159ef5d49
[ "MIT" ]
null
null
null
# CQML # Compact Query Meta-language # https://github.com/TheSwanFactory/hclang/blob/master/hc/cqml.hc # TODO: https://github.com/LucaCanali/sparkMeasure from .wrappers import *
22.5
65
0.766667
# CQML # Compact Query Meta-language # https://github.com/TheSwanFactory/hclang/blob/master/hc/cqml.hc # TODO: https://github.com/LucaCanali/sparkMeasure from .wrappers import *
0
0
0
19281664ee89ca7e557219fcf463320f03835ff5
4,329
py
Python
src/gocept/template_rewrite/main.py
Wiseqube/gocept.template_rewrite
28f5742de9eaf6e204e7923c7f7020c36852456b
[ "MIT" ]
3
2018-08-29T12:59:16.000Z
2019-08-21T07:41:16.000Z
src/gocept/template_rewrite/main.py
Wiseqube/gocept.template_rewrite
28f5742de9eaf6e204e7923c7f7020c36852456b
[ "MIT" ]
10
2019-08-13T12:02:02.000Z
2021-01-21T13:52:48.000Z
src/gocept/template_rewrite/main.py
Wiseqube/gocept.template_rewrite
28f5742de9eaf6e204e7923c7f7020c36852456b
[ "MIT" ]
3
2018-09-18T11:15:04.000Z
2021-11-29T14:13:50.000Z
from gocept.template_rewrite.dtml import DTMLRegexRewriter from gocept.template_rewrite.lib2to3 import rewrite_using_2to3 from gocept.template_rewrite.pagetemplates import PTParseError from gocept.template_rewrite.pagetemplates import PTParserRewriter import argparse import logging import os import os.path import pathl...
34.632
79
0.607993
from gocept.template_rewrite.dtml import DTMLRegexRewriter from gocept.template_rewrite.lib2to3 import rewrite_using_2to3 from gocept.template_rewrite.pagetemplates import PTParseError from gocept.template_rewrite.pagetemplates import PTParserRewriter import argparse import logging import os import os.path import pathl...
1,276
0
135
aa6e809a57dfb74a5cc56be92f56d5c95ac81e0c
22,400
py
Python
stingray/events.py
nimeshvashistha/stingray
10530b4dbcde6c0ef8228c0e634aa202b186cf22
[ "MIT" ]
null
null
null
stingray/events.py
nimeshvashistha/stingray
10530b4dbcde6c0ef8228c0e634aa202b186cf22
[ "MIT" ]
null
null
null
stingray/events.py
nimeshvashistha/stingray
10530b4dbcde6c0ef8228c0e634aa202b186cf22
[ "MIT" ]
null
null
null
""" Definition of :class:`EventList`. :class:`EventList` is used to handle photon arrival times. """ import copy import pickle import warnings import numpy as np import numpy.random as ra from astropy.table import Table from .filters import get_deadtime_mask from .gti import append_gtis, check_separate, cross_gtis ...
33.333333
114
0.557902
""" Definition of :class:`EventList`. :class:`EventList` is used to handle photon arrival times. """ import copy import pickle import warnings import numpy as np import numpy.random as ra from astropy.table import Table from .filters import get_deadtime_mask from .gti import append_gtis, check_separate, cross_gtis ...
3,437
0
159
c9ed1a015281c5d543377975b091e92c8f907d7b
3,961
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
piehlm/CarND-Capstone
53b38f8da0d8e2fb5d154bb84f451c75f3397073
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
piehlm/CarND-Capstone
53b38f8da0d8e2fb5d154bb84f451c75f3397073
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
piehlm/CarND-Capstone
53b38f8da0d8e2fb5d154bb84f451c75f3397073
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight import cv2 import numpy as np import tensorflow as tf import datetime import rospy from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError
38.456311
93
0.635193
from styx_msgs.msg import TrafficLight import cv2 import numpy as np import tensorflow as tf import datetime import rospy from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class TLClassifier(object): def __init__(self, is_simulation): ''' ...
0
3,702
23
4e06ec75f27c21b311de337c41d0325864cd8128
4,919
py
Python
src/pythonScripts/modules/DataChecks.py
colebrookson/research-access
cd36a516d8a08fe98e726ea8d7fc7dfa5828b28f
[ "CC-BY-4.0" ]
null
null
null
src/pythonScripts/modules/DataChecks.py
colebrookson/research-access
cd36a516d8a08fe98e726ea8d7fc7dfa5828b28f
[ "CC-BY-4.0" ]
3
2021-08-10T13:44:16.000Z
2021-08-14T17:46:54.000Z
src/pythonScripts/modules/DataChecks.py
colebrookson/research-access
cd36a516d8a08fe98e726ea8d7fc7dfa5828b28f
[ "CC-BY-4.0" ]
null
null
null
import numpy as np import pandas as pd def validate_cISSN(issn:str) -> bool: """ Validates the last character (c) of the ISSN number, based on the first 7 digits returns: boolean: True if c is valid False otherwise """ assert type(issn) == str, "issn must be a string" issn_num = is...
30.937107
118
0.60988
import numpy as np import pandas as pd class DataChecksException(Exception): def __init__(self, msg, sheetID, ref, detail): self.msg = msg self.sheetID = sheetID self.ref = ref self.detail = detail def getSheetID(self): return self.sheetID def getTyp...
683
16
270
54ec696345f81105b1ebefad5e46a229d6bcb23f
7,254
py
Python
rdflib_sqlalchemy/tables.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
112
2015-02-21T15:56:34.000Z
2022-02-22T12:10:26.000Z
rdflib_sqlalchemy/tables.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
64
2015-01-22T12:40:11.000Z
2021-12-27T19:15:14.000Z
rdflib_sqlalchemy/tables.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
28
2015-06-22T08:06:58.000Z
2022-02-16T11:17:49.000Z
from sqlalchemy import Column, Table, Index, types from rdflib_sqlalchemy.types import TermType MYSQL_MAX_INDEX_LENGTH = 200 TABLE_NAME_TEMPLATES = [ "{interned_id}_asserted_statements", "{interned_id}_literal_statements", "{interned_id}_namespace_binds", "{interned_id}_quoted_statements", "{int...
33.897196
90
0.600772
from sqlalchemy import Column, Table, Index, types from rdflib_sqlalchemy.types import TermType MYSQL_MAX_INDEX_LENGTH = 200 TABLE_NAME_TEMPLATES = [ "{interned_id}_asserted_statements", "{interned_id}_literal_statements", "{interned_id}_namespace_binds", "{interned_id}_quoted_statements", "{int...
6,760
0
138
67527770fab38a278e3a6a862f1b7858af4000da
1,633
py
Python
ubersmith_client/_http_utils.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
1
2016-01-29T18:56:23.000Z
2016-01-29T18:56:23.000Z
ubersmith_client/_http_utils.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
16
2016-02-01T18:26:25.000Z
2020-04-29T17:09:24.000Z
ubersmith_client/_http_utils.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
8
2016-03-09T19:38:25.000Z
2017-02-15T21:26:56.000Z
# Copyright 2017 Internap. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
34.020833
77
0.642376
# Copyright 2017 Internap. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
988
0
69
9d9624410acf29a1d17afa7bb5a3ed7e67173e13
1,276
py
Python
open511_server/utils/optimization.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
1
2021-01-11T03:22:39.000Z
2021-01-11T03:22:39.000Z
open511_server/utils/optimization.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
2
2015-11-27T20:16:43.000Z
2015-11-27T20:27:46.000Z
open511_server/utils/optimization.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
null
null
null
from functools import partial import time _cached_objects = dict() CACHE_EXPIRY = 60 * 10 def get_cached_object(model, id): """ A very, very simple in-memory cache for ORM objects. No invalidation other than restarting this app or waiting CACHE_EXPIRY seconds. """ lookup = (model, id) cached =...
27.73913
88
0.610502
from functools import partial import time _cached_objects = dict() CACHE_EXPIRY = 60 * 10 def get_cached_object(model, id): """ A very, very simple in-memory cache for ORM objects. No invalidation other than restarting this app or waiting CACHE_EXPIRY seconds. """ lookup = (model, id) cached =...
477
0
80
8a804905c39b600ecce37c7c31b15a42d43ab1af
25,309
py
Python
repo2docker/app.py
bmcgtech/repo2docker
a2a812d5670e0677dc33cf22f305368b6279ffa8
[ "BSD-3-Clause" ]
1
2021-03-02T12:18:17.000Z
2021-03-02T12:18:17.000Z
repo2docker/app.py
bmcgtech/repo2docker
a2a812d5670e0677dc33cf22f305368b6279ffa8
[ "BSD-3-Clause" ]
null
null
null
repo2docker/app.py
bmcgtech/repo2docker
a2a812d5670e0677dc33cf22f305368b6279ffa8
[ "BSD-3-Clause" ]
1
2019-10-15T14:59:07.000Z
2019-10-15T14:59:07.000Z
"""repo2docker: convert git repositories into jupyter-suitable docker images Images produced by repo2docker can be used with Jupyter notebooks standalone or with BinderHub. Usage: python -m repo2docker https://github.com/you/your-repo """ import json import sys import logging import os import getpass import shut...
32.489089
107
0.554151
"""repo2docker: convert git repositories into jupyter-suitable docker images Images produced by repo2docker can be used with Jupyter notebooks standalone or with BinderHub. Usage: python -m repo2docker https://github.com/you/your-repo """ import json import sys import logging import os import getpass import shut...
675
0
54
0e416ddd456069d108fcc8c37156c66abbc2ccc0
2,824
py
Python
tests/integration/whole_projects/test_duplo_project.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
2
2021-04-20T22:39:03.000Z
2021-11-30T20:26:23.000Z
tests/integration/whole_projects/test_duplo_project.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
12
2021-04-23T13:09:49.000Z
2021-05-15T23:39:32.000Z
tests/integration/whole_projects/test_duplo_project.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
2
2022-01-09T12:55:42.000Z
2022-03-05T09:22:29.000Z
import os from pycograph import pycograph from pycograph.schemas.parse_result import CALLS, CONTAINS, IMPORTS from pycograph.schemas.pycograph_input import PycographLoadInput from tests.integration.whole_projects.helpers import assert_edge, assert_node
30.042553
84
0.701487
import os from pycograph import pycograph from pycograph.schemas.parse_result import CALLS, CONTAINS, IMPORTS from pycograph.schemas.pycograph_input import PycographLoadInput from tests.integration.whole_projects.helpers import assert_edge, assert_node def test_duplo_project(test_data_dir, no_graph_commit): dupl...
2,546
0
23
936e1df9e466c953b4b6a6e778cd6224ad63282a
4,790
py
Python
parser/utils/alg.py
Jacob-Zhou/spw-parser
5f746a54d9a1da0591fc34f024eac2639bc3f407
[ "MIT" ]
null
null
null
parser/utils/alg.py
Jacob-Zhou/spw-parser
5f746a54d9a1da0591fc34f024eac2639bc3f407
[ "MIT" ]
null
null
null
parser/utils/alg.py
Jacob-Zhou/spw-parser
5f746a54d9a1da0591fc34f024eac2639bc3f407
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from parser.utils.fn import stripe import torch import torch.autograd as autograd @torch.enable_grad()
35.481481
79
0.597912
# -*- coding: utf-8 -*- from parser.utils.fn import stripe import torch import torch.autograd as autograd def kmeans(x, k): x = torch.tensor(x, dtype=torch.float) # count the frequency of each datapoint d, indices, f = x.unique(return_inverse=True, return_counts=True) # calculate the sum of the valu...
4,565
0
91
d2762a23bb2cdc8d49d2ea06f39df76edbe2c4d3
3,803
py
Python
atari/eval_reward.py
yilin-wang/tril
fb3f1090d2056c063602c65d8b7d952ea5037872
[ "MIT" ]
1
2021-10-17T07:00:05.000Z
2021-10-17T07:00:05.000Z
atari/eval_reward.py
yilin-wang/tril
fb3f1090d2056c063602c65d8b7d952ea5037872
[ "MIT" ]
null
null
null
atari/eval_reward.py
yilin-wang/tril
fb3f1090d2056c063602c65d8b7d952ea5037872
[ "MIT" ]
null
null
null
import argparse import gym from gym import spaces import cv2 cv2.ocl.setUseOpenCL(False) import pygame import sys import time import matplotlib import numpy as np import pickle import random import torch import torch.nn as nn import torch.nn.functional as F from run_test import * from baselines.common.trex_utils impor...
31.429752
111
0.648961
import argparse import gym from gym import spaces import cv2 cv2.ocl.setUseOpenCL(False) import pygame import sys import time import matplotlib import numpy as np import pickle import random import torch import torch.nn as nn import torch.nn.functional as F from run_test import * from baselines.common.trex_utils impor...
734
952
69
247c64042c7a5d5b5cae2efb1bf244c7d158f68c
315
py
Python
save_tiff.py
xpspectre/cell-image
6ceb7bc362d36408fe3c634f9c7155238d92c337
[ "MIT" ]
1
2017-06-07T14:28:15.000Z
2017-06-07T14:28:15.000Z
save_tiff.py
xpspectre/cell-image
6ceb7bc362d36408fe3c634f9c7155238d92c337
[ "MIT" ]
null
null
null
save_tiff.py
xpspectre/cell-image
6ceb7bc362d36408fe3c634f9c7155238d92c337
[ "MIT" ]
null
null
null
from PIL import Image, TiffImagePlugin TiffImagePlugin.WRITE_LIBTIFF = True def save_tiff(output, img): """Save numpy array img as compressed TIFF as output file Args: output: img: Returns: """ pil_img = Image.fromarray(img) pil_img.save(output, compression='packbits')
18.529412
61
0.669841
from PIL import Image, TiffImagePlugin TiffImagePlugin.WRITE_LIBTIFF = True def save_tiff(output, img): """Save numpy array img as compressed TIFF as output file Args: output: img: Returns: """ pil_img = Image.fromarray(img) pil_img.save(output, compression='packbits')
0
0
0
22f9a5041480ef7fa689f8e7296ecbdfa9a3cc6a
1,360
py
Python
Assignment02/Part01/testfile2.py
saurabhkakade21/AIS_spring2021
784d20670794c405505b09c1feea36e0a504ae5d
[ "MIT" ]
null
null
null
Assignment02/Part01/testfile2.py
saurabhkakade21/AIS_spring2021
784d20670794c405505b09c1feea36e0a504ae5d
[ "MIT" ]
null
null
null
Assignment02/Part01/testfile2.py
saurabhkakade21/AIS_spring2021
784d20670794c405505b09c1feea36e0a504ae5d
[ "MIT" ]
null
null
null
from program2_funs import Searcher # , hSLD, SNode # (b) Show your program loading in the 30-node sample file. s = Searcher("30node.txt") # (c) Show you program setting start node=U and end node=T. s.setStartGoal('U','T') # myViz should be a DRDViz instance -> save map to file on disk. s.myViz.sav...
26.666667
83
0.627941
from program2_funs import Searcher # , hSLD, SNode # (b) Show your program loading in the 30-node sample file. s = Searcher("30node.txt") # (c) Show you program setting start node=U and end node=T. s.setStartGoal('U','T') # myViz should be a DRDViz instance -> save map to file on disk. s.myViz.sav...
0
0
0
bff1e76ad164593084fbefad95a83b162df75c01
146
py
Python
headers/__init__.py
kirsn/py-message-headers
3b79ce640823940552ed146d2171d4cd42c0796f
[ "MIT" ]
null
null
null
headers/__init__.py
kirsn/py-message-headers
3b79ce640823940552ed146d2171d4cd42c0796f
[ "MIT" ]
null
null
null
headers/__init__.py
kirsn/py-message-headers
3b79ce640823940552ed146d2171d4cd42c0796f
[ "MIT" ]
null
null
null
# Generated on 2019-02-03T13:03:06.509000 from mail import * from http import * from mime import * from netnews import * VERSION = "2019.02.03"
16.222222
41
0.726027
# Generated on 2019-02-03T13:03:06.509000 from mail import * from http import * from mime import * from netnews import * VERSION = "2019.02.03"
0
0
0
dfcae8d70a1362e79e9bb893adf6e81fc66322dd
6,471
py
Python
allocator_2/allocator/views.py
mike-fam/allocator_v2
da634e97f2c70dba89f78f884a564d473ff03648
[ "MIT" ]
null
null
null
allocator_2/allocator/views.py
mike-fam/allocator_v2
da634e97f2c70dba89f78f884a564d473ff03648
[ "MIT" ]
null
null
null
allocator_2/allocator/views.py
mike-fam/allocator_v2
da634e97f2c70dba89f78f884a564d473ff03648
[ "MIT" ]
null
null
null
import hashlib import json import multiprocessing as mp from typing import Optional import psutil from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST, require_GET from django.utils import timezone from .constants import ( ...
35.751381
76
0.616752
import hashlib import json import multiprocessing as mp from typing import Optional import psutil from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST, require_GET from django.utils import timezone from .constants import ( ...
5,722
0
67
1a1d3d9e95c93601968362551c5458c497c9c24f
111
py
Python
images/backer/src/lib/django_webpack/__init__.py
elston/djangit
1d9ec2e287447fa8926a6fc440469771120df6a1
[ "MIT" ]
null
null
null
images/backer/src/lib/django_webpack/__init__.py
elston/djangit
1d9ec2e287447fa8926a6fc440469771120df6a1
[ "MIT" ]
null
null
null
images/backer/src/lib/django_webpack/__init__.py
elston/djangit
1d9ec2e287447fa8926a6fc440469771120df6a1
[ "MIT" ]
null
null
null
__author__ = 'Den Elston' __version__ = '0.0.1' default_app_config = 'django_webpack.apps.DjangoWebpackConfig'
27.75
62
0.792793
__author__ = 'Den Elston' __version__ = '0.0.1' default_app_config = 'django_webpack.apps.DjangoWebpackConfig'
0
0
0
d1c5ce506f21389536550ff93ab7ab36b9a910d5
355
py
Python
Python/circle pattern.py
Chanchal2125/Hacktoberfest2021_PatternMaking
c962f1e93f45a97351fbffc49ed1fc526741d772
[ "MIT" ]
1
2021-10-09T11:48:21.000Z
2021-10-09T11:48:21.000Z
Python/circle pattern.py
Chanchal2125/Hacktoberfest2021_PatternMaking
c962f1e93f45a97351fbffc49ed1fc526741d772
[ "MIT" ]
null
null
null
Python/circle pattern.py
Chanchal2125/Hacktoberfest2021_PatternMaking
c962f1e93f45a97351fbffc49ed1fc526741d772
[ "MIT" ]
null
null
null
import math radius = 10 printPattern(radius)
25.357143
49
0.55493
import math def printPattern(radius): for i in range((2 * radius)+1): for j in range((2 * radius)+1): dist = math.sqrt((i - radius) * (i - radius) + (j - radius) * (j - radius)) if (dist > radius - 1 and dist < radius + 1): print("*",end="") else: print(" ",end="") print() # Driver co...
289
0
22