hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
5d3f7ba06d8f30ec1f43524b350975670db0b280
1,597
py
Python
tests/gmprocess/waveform_processing/adjust_highpass_ridder_test.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
tests/gmprocess/waveform_processing/adjust_highpass_ridder_test.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
tests/gmprocess/waveform_processing/adjust_highpass_ridder_test.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os if __name__ == "__main__": os.environ["CALLED_FROM_PYTEST"] = "True" test_auto_fchp()
27.067797
76
0.634314
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np from gmprocess.core.streamcollection import StreamCollection from gmprocess.io.read import read_data from gmprocess.utils.test_utils import read_data_dir from gmprocess.waveform_processing.adjust_highpass_ridder import ridder_fchp from gmproces...
0
0
0
0
0
1,124
0
164
155
8314dc9023ae51350cf14c4fc6f29ae2621bb8d7
952
py
Python
supperfeed/importer.py
corydodt/SupperFeed
2980e3f6d287f56c6eade06cfe57870d9796c5ea
[ "MIT" ]
2
2015-10-28T23:53:29.000Z
2018-02-27T12:39:54.000Z
supperfeed/importer.py
corydodt/SupperFeed
2980e3f6d287f56c6eade06cfe57870d9796c5ea
[ "MIT" ]
null
null
null
supperfeed/importer.py
corydodt/SupperFeed
2980e3f6d287f56c6eade06cfe57870d9796c5ea
[ "MIT" ]
null
null
null
""" Import recipes from URLs to our database """ from txpx.process import LineGlueProtocol LineGlueProtocol.MAX_LENGTH=10000
24.410256
77
0.658613
""" Import recipes from URLs to our database """ import re import json from txpx import background, EchoProcess from txpx.process import LineGlueProtocol from supperfeed.build import Recipe LineGlueProtocol.MAX_LENGTH=10000 class ImportProcess(EchoProcess): """ Import a recipe by loading the json data dump...
0
0
0
529
0
148
0
11
136
30f5d5f62a940e9c9c56d93b2735b45ae0a23f7e
759
py
Python
src/my_project/medium_problems/from1to50/group_people_give_group_size.py
ivan1016017/LeetCodeAlgorithmProblems
f617f30201fb1cd53e32de35084fdeb88ef36023
[ "MIT" ]
null
null
null
src/my_project/medium_problems/from1to50/group_people_give_group_size.py
ivan1016017/LeetCodeAlgorithmProblems
f617f30201fb1cd53e32de35084fdeb88ef36023
[ "MIT" ]
1
2021-09-22T12:26:14.000Z
2021-09-22T12:26:14.000Z
src/my_project/medium_problems/from1to50/group_people_give_group_size.py
ivan1016017/LeetCodeAlgorithmProblems
454284b76634cc34ed41f7fa30d857403cedf1bf
[ "MIT" ]
null
null
null
solution = Solution() print(solution.groupThePeople(groupSizes = [3,3,3,3,3,1,3]))
29.192308
71
0.546772
from typing import List class Solution: def groupThePeople(self, groupSizes: List[int]) -> List[List[int]]: final_groups=[] count_dict = {} for ind, val in enumerate(groupSizes): # print(count_dict) if val in count_dict.keys(): if len(count_dict[val]...
0
0
0
626
0
0
0
2
45
dbd8f6bc8f256424cc38bdbd062b914922bea024
1,011
py
Python
tests/bidirectional_lut_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
tests/bidirectional_lut_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
tests/bidirectional_lut_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python3 import sys sys.path.append('../') import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm from netCDF4 import MFDataset import mesonh_probe as cdf """ test file for periodiccontainer and netcdfinterface types - arguments : mesonh (netcdf) files to open """ mesonhfiles =...
25.923077
66
0.732938
#! /usr/bin/python3 import sys import os sys.path.append('../') import numpy as np import matplotlib.pyplot as plt import imageio import matplotlib.cm as cm import time from netCDF4 import MFDataset import mesonh_probe as cdf """ test file for periodiccontainer and netcdfinterface types - arguments : mesonh (net...
0
0
0
0
0
0
0
-29
66
5c0bef4089d7fb266a9c29954e06a567e8ce9a6d
800
py
Python
constant/constant.py
ZxbMsl160918/covid19-vaccin
7ebf3fa1de45fdaec8108e79ff6e090400cde9eb
[ "Apache-2.0" ]
null
null
null
constant/constant.py
ZxbMsl160918/covid19-vaccin
7ebf3fa1de45fdaec8108e79ff6e090400cde9eb
[ "Apache-2.0" ]
null
null
null
constant/constant.py
ZxbMsl160918/covid19-vaccin
7ebf3fa1de45fdaec8108e79ff6e090400cde9eb
[ "Apache-2.0" ]
null
null
null
# RESPONSE_OK = 200 # URL URLS = { # "hostUrl": "https://m.r.umiaohealth.com/", # POST "vaccinationAddress": "/InstitutionMedicineStock/GetBykeyword_InstitutionMedicineStock", # "hospitalTimeRange": "/Reservation/GetByWorkDate_Rsv_TimeRange", # urlGET "secVaccination": "/Reservation...
18.181818
92
0.6075
# 请求成功 RESPONSE_OK = 200 # 请求所需的URL地址 URLS = { # 主机地址 "hostUrl": "https://m.r.umiaohealth.com/", # 获取疫苗接种列表地址;POST "vaccinationAddress": "/InstitutionMedicineStock/GetBykeyword_InstitutionMedicineStock", # 获取某个社区医院的某一天可预约的时间段 "hospitalTimeRange": "/Reservation/GetByWorkDate_Rsv_TimeRange", ...
399
0
0
0
0
0
0
0
0
5ebd8f1c512b1380b449a67ec585f3905c6bceac
9,220
py
Python
personal_context_builder/gensim_hdp.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
personal_context_builder/gensim_hdp.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
personal_context_builder/gensim_hdp.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """Scikit learn interface for :class:`~gensim.models.hdpmodel.HdpModel`. Follows scikit-learn API conventions to facilitate using gensim...
42.100457
119
0.61974
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """Scikit learn interface for :class:`~gensim.models.hdpmodel.HdpModel`. Follows scikit-learn API conventions to facilitate using gensim...
0
0
0
8,216
0
0
0
69
235
b582f1040cc1af3be284ad67fe9c371e838dde5d
2,060
py
Python
zaqar-8.0.0/zaqar/common/policies/claims.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
97
2015-01-02T09:35:23.000Z
2022-03-25T00:38:45.000Z
zaqar-8.0.0/zaqar/common/policies/claims.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
zaqar-8.0.0/zaqar/common/policies/claims.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
44
2015-01-28T03:01:28.000Z
2021-05-13T18:55:19.000Z
# 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 # distributed under t...
29.428571
76
0.591748
# 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 # distributed under t...
0
0
0
0
0
13
0
0
23
48f845ebbaca4afd27efda9fdf590cf268429691
2,139
py
Python
bot.py
boyuan12/MLH-Helper
efa98907b89bae2ef1f1c8b551075356b61ad741
[ "MIT" ]
null
null
null
bot.py
boyuan12/MLH-Helper
efa98907b89bae2ef1f1c8b551075356b61ad741
[ "MIT" ]
null
null
null
bot.py
boyuan12/MLH-Helper
efa98907b89bae2ef1f1c8b551075356b61ad741
[ "MIT" ]
null
null
null
import discord import discord.utils client = discord.Client() SECRET_KEY="secretkey" BASE_URL="http://0.0.0.0:1234" client.run("")
40.358491
198
0.625993
import discord import discord.utils from discord.ext import commands import requests import random client = discord.Client() SECRET_KEY="secretkey" BASE_URL="http://0.0.0.0:1234" @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message)...
0
1,896
0
0
0
0
0
-3
112
f968e78a0a396c803ccb0a25d591d668dacf68bf
553
py
Python
django_pathfinder_statcrunch/urls.py
porowns/django-pathfinder-statcrunch
4a31dd014b6e1c27b3e70ae88ca5762841ce72db
[ "MIT" ]
null
null
null
django_pathfinder_statcrunch/urls.py
porowns/django-pathfinder-statcrunch
4a31dd014b6e1c27b3e70ae88ca5762841ce72db
[ "MIT" ]
null
null
null
django_pathfinder_statcrunch/urls.py
porowns/django-pathfinder-statcrunch
4a31dd014b6e1c27b3e70ae88ca5762841ce72db
[ "MIT" ]
null
null
null
from django.urls import path from . import views # SSO urlpatterns = [ path('reports/', views.list_reports, name="django-pathfinder-statcrunch-list-reports"), path('reports/<int:pk>/', views.view_report, name="django-pathfinder-statcrunch-view-report"), path('reports/<int:pk>/refresh/', v...
34.5625
67
0.735986
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.conf import settings from django.contrib import admin from django.urls import path, re_path from . import views # SSO urlpatterns = [ path('reports/', views.list_reports, name="django-pathfinder-statcrunch-list-reports"), ...
0
0
0
0
0
0
0
77
66
0ed78fe0d10f673e40978db5dbae120f7d215015
222
py
Python
adventofcode/2021/1/2.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
2
2018-01-18T11:01:36.000Z
2021-12-20T18:14:48.000Z
adventofcode/2021/1/2.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
adventofcode/2021/1/2.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
import fileinput nums = list(map(int, fileinput.input())) print(sum(inc for inc in gen()))
17.076923
56
0.540541
import fileinput nums = list(map(int, fileinput.input())) def gen(): for i in range(1, len(nums) - 2): if sum(nums[i:i + 3]) > sum(nums[i - 1: i + 2]): yield 1 print(sum(inc for inc in gen()))
0
0
0
0
104
0
0
0
23
2f907545d59c9d2bffc0a13955bd9ba29dc05554
477
py
Python
openapi-server/python-flask/openapi_server/controllers/health_check_service_controller.py
michilu/proto-api
aca02aaa11064e87462ab34674c0c4974cf70372
[ "Apache-2.0" ]
null
null
null
openapi-server/python-flask/openapi_server/controllers/health_check_service_controller.py
michilu/proto-api
aca02aaa11064e87462ab34674c0c4974cf70372
[ "Apache-2.0" ]
1
2020-07-15T09:50:06.000Z
2020-07-15T09:50:06.000Z
openapi-server/python-flask/openapi_server/controllers/health_check_service_controller.py
michilu/proto-openapi
aca02aaa11064e87462ab34674c0c4974cf70372
[ "Apache-2.0" ]
null
null
null
def health_check_service_health_check(): # noqa: E501 """health_check_service_health_check # noqa: E501 :rtype: V1HealthCheckServiceHealthCheckResponse """ return 'do some magic!'
26.5
133
0.802935
import connexion import six from openapi_server.models.runtime_error import RuntimeError # noqa: E501 from openapi_server.models.v1_health_check_service_health_check_response import V1HealthCheckServiceHealthCheckResponse # noqa: E501 from openapi_server import util def health_check_service_health_check(): # noqa...
0
0
0
0
0
0
0
131
139
887fea9a7f42da7c5675403aa05cab40094c6fb6
1,067
py
Python
src/model/synapses/tensor_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
src/model/synapses/tensor_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
src/model/synapses/tensor_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
""" Created on 12:39, June. 4th, 2021 Author: fassial Filename: VoltageJump.py """ __all__ = [ "VoltageJump", ]
25.404762
79
0.582943
""" Created on 12:39, June. 4th, 2021 Author: fassial Filename: VoltageJump.py """ import brainpy as bp __all__ = [ "VoltageJump", ] class VoltageJump(bp.TwoEndConn): target_backend = "general" def __init__(self, pre, post, conn, weight = 1., delay = 0., **kwargs ): # init params ...
0
0
0
905
0
0
0
-1
45
2356a07736148deea7e9a4b60909d1ff37a28c82
845
py
Python
clahe_and_augmentation/parseConfig.py
RandomeName745/DD2424---Project-Covid-19
2e1e647e841eeb00760daecb58effeba3ca237c4
[ "MIT" ]
null
null
null
clahe_and_augmentation/parseConfig.py
RandomeName745/DD2424---Project-Covid-19
2e1e647e841eeb00760daecb58effeba3ca237c4
[ "MIT" ]
null
null
null
clahe_and_augmentation/parseConfig.py
RandomeName745/DD2424---Project-Covid-19
2e1e647e841eeb00760daecb58effeba3ca237c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 10 10:31:44 2020 @author: alex """
29.137931
85
0.654438
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 10 10:31:44 2020 @author: alex """ import argparse from clodsa.utils.conf import Conf def parseConfig(configfile): ap = argparse.ArgumentParser() ap.add_argument("-c", "--conf", required=True, help="path to configuration file") args =...
0
0
0
0
0
666
0
7
67
d6844ad5af8ac8dd3731b4be397175e5d6c05d9f
3,563
py
Python
clientui/vstrm_server.py
cbk914/BlackMamba
826d5e2994368006cad09acaaa7c6bfa047891b5
[ "MIT" ]
902
2021-02-09T09:42:57.000Z
2022-03-26T09:28:03.000Z
clientui/vstrm_server.py
cbk914/BlackMamba
826d5e2994368006cad09acaaa7c6bfa047891b5
[ "MIT" ]
11
2021-02-12T16:46:51.000Z
2021-12-20T21:12:14.000Z
clientui/vstrm_server.py
cbk914/BlackMamba
826d5e2994368006cad09acaaa7c6bfa047891b5
[ "MIT" ]
126
2021-02-09T12:16:50.000Z
2022-02-25T04:19:18.000Z
#################################################################################### # BLACKMAMBA BY: LOSEYS (https://github.com/loseys) # # QT GUI INTERFACE BY: WANDERSON M.PIMENTA (https://github.com/Wanderson-Magalhaes) # ORIGINAL QT GUI: https://github.com/Wanderson-Magalhaes/Simple_PySide_Base ####################...
27.407692
91
0.572271
#################################################################################### # BLACKMAMBA BY: LOSEYS (https://github.com/loseys) # # QT GUI INTERFACE BY: WANDERSON M.PIMENTA (https://github.com/Wanderson-Magalhaes) # ORIGINAL QT GUI: https://github.com/Wanderson-Magalhaes/Simple_PySide_Base ####################...
0
0
0
0
0
2,719
0
7
181
58f8d59cc2c4eb8e7df9a61a133e9fc628033ad5
4,775
py
Python
Unit3SC_0205/northwind.py
TemsyChen/DS-Unit-3-Sprint-2-SQL-and-Databases
cba1e0f5476f5e7a13e10ad450474a565d302b33
[ "MIT" ]
null
null
null
Unit3SC_0205/northwind.py
TemsyChen/DS-Unit-3-Sprint-2-SQL-and-Databases
cba1e0f5476f5e7a13e10ad450474a565d302b33
[ "MIT" ]
null
null
null
Unit3SC_0205/northwind.py
TemsyChen/DS-Unit-3-Sprint-2-SQL-and-Databases
cba1e0f5476f5e7a13e10ad450474a565d302b33
[ "MIT" ]
null
null
null
import sqlite3 # Connect to the sqlite3 file connection = sqlite3.connect("northwind_small.sqlite3") cursor = connection.cursor() # Queries # `expensive_items`: What are the ten most expensive items (per unit price) in the database? price_query = f""" SELECT UnitPrice, ProductName FROM product ...
45.47619
113
0.660314
import sqlite3 # Connect to the sqlite3 file connection = sqlite3.connect("northwind_small.sqlite3") cursor = connection.cursor() # Queries # `expensive_items`: What are the ten most expensive items (per unit price) in the database? price_query = f""" SELECT UnitPrice, ProductName FROM product ...
22
0
0
0
0
0
0
0
0
1c787236266f19826db1b1ea01fce5c806ce4267
8,541
py
Python
lib/model/complete_net.py
chensjtu/poxture
f6abea1216c987f0e4c628b250054d764eaecf2e
[ "Apache-2.0" ]
null
null
null
lib/model/complete_net.py
chensjtu/poxture
f6abea1216c987f0e4c628b250054d764eaecf2e
[ "Apache-2.0" ]
null
null
null
lib/model/complete_net.py
chensjtu/poxture
f6abea1216c987f0e4c628b250054d764eaecf2e
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn # from .DepthNormalizer import DepthNormalizer # from iPERCore.models.networks.criterions import VGGLoss
44.717277
164
0.619482
import torch import torch.nn as nn import torch.nn.functional as F import functools from .SurfaceClassifier import conv1_1, period_loss # from .DepthNormalizer import DepthNormalizer from ..net_util import * # from iPERCore.models.networks.criterions import VGGLoss from lib.model.Models import NestedUNet import numpy a...
0
0
0
8,146
0
0
0
44
223
91b66cd5922aac62b6769b7d844bbbf6732242a0
13,831
py
Python
ActiveCell_RealMorphology_Burst_Inh_cluster.py
EilamLeleo/burst
538dbf6845f4de5519c0392368d611d1e54608e1
[ "MIT" ]
null
null
null
ActiveCell_RealMorphology_Burst_Inh_cluster.py
EilamLeleo/burst
538dbf6845f4de5519c0392368d611d1e54608e1
[ "MIT" ]
null
null
null
ActiveCell_RealMorphology_Burst_Inh_cluster.py
EilamLeleo/burst
538dbf6845f4de5519c0392368d611d1e54608e1
[ "MIT" ]
null
null
null
#!/usr/lib/python-exec/python2.7/python import os import sys os.chdir('C:/Users/Leleo/Documents/Active Cell Real Morphology/') from neuron import h from neuron import gui #%% import numpy as np import time import math import cPickle as pickle #%% sk = False if sk==True: from sklearn import decomposition f...
41.041543
150
0.670161
#!/usr/lib/python-exec/python2.7/python import os import sys os.chdir('C:/Users/Leleo/Documents/Active Cell Real Morphology/') from neuron import h from neuron import gui #%% import numpy as np import time import math import cPickle as pickle #%% sk = False if sk==True: from sklearn import decomposition f...
0
0
0
0
0
9,194
0
0
69
ec42f79f6e9bebd0d6cc7d934779f60d52434f4f
1,263
py
Python
sharesansar/driver.py
prajwal-stha/web-scrapers
bfcc5a065e859c69f1a9a2065c9c857b22af42c0
[ "MIT" ]
null
null
null
sharesansar/driver.py
prajwal-stha/web-scrapers
bfcc5a065e859c69f1a9a2065c9c857b22af42c0
[ "MIT" ]
null
null
null
sharesansar/driver.py
prajwal-stha/web-scrapers
bfcc5a065e859c69f1a9a2065c9c857b22af42c0
[ "MIT" ]
null
null
null
from selenium import webdriver import time from datetime import date from selenium.webdriver.common.keys import Keys from scrape_table_all import scrape_table from return_dates import return_dates # Open the link PATH = "/Users/prajwalshrestha/Desktop/PythonApp/thesis/web-scrapers/sharesansar/chromedriver" browser = w...
30.071429
94
0.760095
from selenium import webdriver import time from datetime import date from selenium.webdriver.common.keys import Keys from scrape_table_all import scrape_table from return_dates import return_dates # Open the link PATH = "/Users/prajwalshrestha/Desktop/PythonApp/thesis/web-scrapers/sharesansar/chromedriver" browser = w...
0
0
0
0
0
0
0
0
0
b8886f82232200a3b8d715152e899cad7d68af4a
2,038
py
Python
ots/main/urls.py
rashikbuksh/Optimal-Transportation-System
18c6d5341c6d3ecbb1c8fcfba8e46ca2ba493882
[ "MIT" ]
3
2021-12-01T15:56:42.000Z
2021-12-23T15:49:48.000Z
ots/main/urls.py
rashikbuksh/Optimal-Transportation-System
18c6d5341c6d3ecbb1c8fcfba8e46ca2ba493882
[ "MIT" ]
null
null
null
ots/main/urls.py
rashikbuksh/Optimal-Transportation-System
18c6d5341c6d3ecbb1c8fcfba8e46ca2ba493882
[ "MIT" ]
2
2021-09-24T19:49:28.000Z
2021-12-22T10:25:38.000Z
from django.conf.urls import url from django.urls import path from . import views app_name = 'articles' urlpatterns = [ url(r'^$', views.homepage, name="list"), url(r'^about/$', views.about, name="about"), url(r'^contact/$', views.contact, name="contact"), url(r'^bolaka/$', views.bolaka, name="bolak...
44.304348
102
0.686948
from django.conf.urls import url from django.urls import path from . import views app_name = 'articles' urlpatterns = [ url(r'^$', views.homepage, name="list"), url(r'^about/$', views.about, name="about"), url(r'^contact/$', views.contact, name="contact"), url(r'^bolaka/$', views.bolaka, name="bolak...
0
0
0
0
0
0
0
0
0
b81f72c1a629494935d113e4876d1627760656f2
53
py
Python
bana/OpenMayaFX/__init__.py
christophercrouzet/bana
8087df05ba9844b4d78d3c4699948ca61cf7621d
[ "MIT" ]
24
2017-01-11T15:57:46.000Z
2020-09-23T06:18:30.000Z
bana/OpenMayaFX/__init__.py
christophercrouzet/bana
8087df05ba9844b4d78d3c4699948ca61cf7621d
[ "MIT" ]
null
null
null
bana/OpenMayaFX/__init__.py
christophercrouzet/bana
8087df05ba9844b4d78d3c4699948ca61cf7621d
[ "MIT" ]
2
2017-03-06T23:52:08.000Z
2020-09-23T06:19:03.000Z
"""Extensions for the ``maya.OpenMayaFX`` module."""
26.5
52
0.679245
"""Extensions for the ``maya.OpenMayaFX`` module."""
0
0
0
0
0
0
0
0
0
8b0fe30871875ffa461d0b5d638a14149f7fd68f
378
py
Python
apps/metadata/users/models.py
DiegoCorrea/ouvidoMusical
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
1
2021-10-06T19:35:48.000Z
2021-10-06T19:35:48.000Z
apps/metadata/users/models.py
DiegoCorrea/ouvido_musical-Back
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
null
null
null
apps/metadata/users/models.py
DiegoCorrea/ouvido_musical-Back
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
17.181818
39
0.589947
# -*- coding: utf-8 -*- from __future__ import unicode_literals import uuid from django.db import models class User(models.Model): id = models.CharField( max_length=255, unique=True, db_index=True, primary_key=True, default=uuid.uuid1().hex ) def as_json(self): ...
0
0
0
247
0
0
0
-3
69
1477ad88726678c8460cc5fe89ba40da27efa1cb
626
py
Python
ansible/collections/ansible_collections/nhsd/apigee/plugins/filter/filters.py
uk-gov-mirror/nhsdigital.api-management-utils
4ee5489f7ce7595c371e2f4e83fc0c753308905a
[ "MIT" ]
null
null
null
ansible/collections/ansible_collections/nhsd/apigee/plugins/filter/filters.py
uk-gov-mirror/nhsdigital.api-management-utils
4ee5489f7ce7595c371e2f4e83fc0c753308905a
[ "MIT" ]
20
2020-05-27T15:00:31.000Z
2021-09-13T11:38:58.000Z
ansible/collections/ansible_collections/nhsd/apigee/plugins/filter/filters.py
uk-gov-mirror/nhsdigital.api-management-utils
4ee5489f7ce7595c371e2f4e83fc0c753308905a
[ "MIT" ]
3
2021-04-11T07:31:36.000Z
2022-01-24T11:23:18.000Z
from ansible_collections.nhsd.apigee.plugins.module_utils import constants def org_from_env(environment) -> str: """Get nhsd apigee organization name from environment name.""" for org, envs in constants.APIGEE_ORG_TO_ENV.items(): if environment in envs: return org valid_envs = [] f...
28.454545
95
0.683706
from ansible_collections.nhsd.apigee.plugins.module_utils import constants def org_from_env(environment) -> str: """Get nhsd apigee organization name from environment name.""" for org, envs in constants.APIGEE_ORG_TO_ENV.items(): if environment in envs: return org valid_envs = [] f...
0
79
0
-2
0
0
0
0
50
9821d58fd217247d13910323dd73ffca785b11ca
11,055
py
Python
IPython/deathrow/astyle.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
IPython/deathrow/astyle.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
3
2015-04-01T13:14:57.000Z
2015-05-26T16:01:37.000Z
IPython/deathrow/astyle.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
""" ``astyle`` provides classes for adding style (foreground and background color; bold; blink; etc.) to terminal and curses output. """ import os try: import curses except ImportError: curses = None COLOR_BLACK = 0 COLOR_RED = 1 COLOR_GREEN = 2 COLOR_YELLOW = 3 COLOR_BLUE = 4 COLOR_MAGENTA = 5...
27.568579
92
0.569064
""" ``astyle`` provides classes for adding style (foreground and background color; bold; blink; etc.) to terminal and curses output. """ import sys, os try: import curses except ImportError: curses = None COLOR_BLACK = 0 COLOR_RED = 1 COLOR_GREEN = 2 COLOR_YELLOW = 3 COLOR_BLUE = 4 COLOR_MAGENT...
0
0
0
6,404
97
0
0
5
141
0ba81da5ce04ec487462a1396a9e594fbd6ac8ba
853
py
Python
0000_examples/gelsight/tst.py
Photon26/wrs-main_0614
c0d0e38deac9785e9c382305f65f3ac5f221787d
[ "MIT" ]
null
null
null
0000_examples/gelsight/tst.py
Photon26/wrs-main_0614
c0d0e38deac9785e9c382305f65f3ac5f221787d
[ "MIT" ]
null
null
null
0000_examples/gelsight/tst.py
Photon26/wrs-main_0614
c0d0e38deac9785e9c382305f65f3ac5f221787d
[ "MIT" ]
null
null
null
import robot_sim.robots.ur3_dual.ur3_dual as ur3d import rbt_con.force_control as ur3dx # import robot_con.ur.ur3_dual_x as ur3dx import visualization.panda.world as wd import modeling.geometric_model as gm import numpy as np ur_dual_x = ur3dx.UR3DualX(lft_robot_ip='10.2.0.50', rgt_robot_ip='10.2.0.51', pc_ip='10.2.0....
32.807692
98
0.805393
import pickle import robot_sim.robots.ur3_dual.ur3_dual as ur3d import rbt_con.force_control as ur3dx # import robot_con.ur.ur3_dual_x as ur3dx import visualization.panda.world as wd import modeling.geometric_model as gm import motion.optimization_based.incremental_nik as inik import numpy as np import modeling.collisi...
0
0
0
0
0
0
0
53
154
3fd17c06364dbbcfbf61a1c852f8a863c6286b83
4,656
py
Python
galaxy_model/spiral_arms/three_kpc.py
K-Monty/galaxy-model
9515d7c87c31e68338466d2044d8e9c679bf8648
[ "MIT" ]
null
null
null
galaxy_model/spiral_arms/three_kpc.py
K-Monty/galaxy-model
9515d7c87c31e68338466d2044d8e9c679bf8648
[ "MIT" ]
null
null
null
galaxy_model/spiral_arms/three_kpc.py
K-Monty/galaxy-model
9515d7c87c31e68338466d2044d8e9c679bf8648
[ "MIT" ]
null
null
null
""" This module use SpiralArm superclass, with some modifications, to create 3-kpc arm. """
40.486957
78
0.597938
""" This module use SpiralArm superclass, with some modifications, to create 3-kpc arm. """ from shapely.geometry.polygon import Polygon from descartes import PolygonPatch from .spiral_parameters import Three_Kpc from . import spiral_property as spiral_eq from .spiral_arm_superclass import SpiralArm class ThreeKpc...
0
0
0
4,328
0
0
0
99
135
dbeff05f1c61b09708b8a95665c71d6764ac49fd
2,045
py
Python
rbi/rbi_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
rbi/rbi_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
rbi/rbi_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
'Code for scrapping RBI Data' import logging from logging.config import fileConfig fileConfig('scrappers/logging_config.ini') logger = logging.getLogger() OUT_FOLDER = "rbi" if __name__ == '__main__': obj = RBIBudgetScraper() for year in range(2002,2015): year = str(year) url1 = "https://www.r...
44.456522
127
0.630318
'Code for scrapping RBI Data' from datetime import date from lxml import etree import logging from logging.config import fileConfig from scrappers.scrapping_utils import ScrappingUtils fileConfig('scrappers/logging_config.ini') logger = logging.getLogger() OUT_FOLDER = "rbi" class RBIBudgetScraper(ScrappingUtils): ...
0
0
0
1,292
0
0
0
36
99
30b7600879ed7470a3a4e7671d503041ddaee708
404
py
Python
0x11-python-network_1/2-post_email.py
Nahi-Terefe/alx-higher_level_programming
c67a78a6f79e853918963971f8352979e7691541
[ "MIT" ]
null
null
null
0x11-python-network_1/2-post_email.py
Nahi-Terefe/alx-higher_level_programming
c67a78a6f79e853918963971f8352979e7691541
[ "MIT" ]
null
null
null
0x11-python-network_1/2-post_email.py
Nahi-Terefe/alx-higher_level_programming
c67a78a6f79e853918963971f8352979e7691541
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ post email """ import urllib.request import urllib.parse import sys if __name__ == "__main__": value = {'email': sys.argv[2]} data = urllib.parse.urlencode(value) data = data.encode('utf-8') req = urllib.request.Request(sys.argv[1], data) with urllib.request.urlopen(req) as ...
25.25
54
0.65099
#!/usr/bin/python3 """ post email """ import urllib.request import urllib.parse import sys if __name__ == "__main__": value = {'email': sys.argv[2]} data = urllib.parse.urlencode(value) data = data.encode('utf-8') req = urllib.request.Request(sys.argv[1], data) with urllib.request.urlopen(req) as ...
0
0
0
0
0
0
0
0
0
98dd68e4820e061630336d4d9dc6896eb5df6fb1
2,534
py
Python
modules/selection.py
psp-codes/reduced-decoy-ensemble
096926d8d44a6d7bdbf9c49dd52fb83ff86e8b3f
[ "MIT" ]
2
2020-04-22T04:16:03.000Z
2020-08-19T13:50:20.000Z
modules/selection.py
psp-codes/reduced-decoy-ensemble
096926d8d44a6d7bdbf9c49dd52fb83ff86e8b3f
[ "MIT" ]
null
null
null
modules/selection.py
psp-codes/reduced-decoy-ensemble
096926d8d44a6d7bdbf9c49dd52fb83ff86e8b3f
[ "MIT" ]
1
2020-08-19T13:50:26.000Z
2020-08-19T13:50:26.000Z
# selection.py # since: 10/2018 # Developed by: Shehu Lab """Module for selecting next generation from current generation. This module provides methods to select next generation from current generation. Available Functions: - truncation: Selects next generation via elitism truncation selection. """ def truncation(...
37.820896
79
0.723757
# selection.py # since: 10/2018 # Developed by: Shehu Lab """Module for selecting next generation from current generation. This module provides methods to select next generation from current generation. Available Functions: - truncation: Selects next generation via elitism truncation selection. """ def truncation(...
0
0
0
0
0
0
0
0
0
3f46e12fb5d861255b9732050d691bdff492592b
129
py
Python
Desafios/desafio030.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
Desafios/desafio030.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
Desafios/desafio030.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
n = int(input('Digite um nmero: ')) if n % 2 == 0: print(f'O nmero {n} par.') else: print(f'O nmero {n} mpar.')
18.428571
36
0.542636
n = int(input('Digite um número: ')) if n % 2 == 0: print(f'O número {n} é par.') else: print(f'O número {n} é ímpar.')
12
0
0
0
0
0
0
0
0
be760d7ba6e881b8660d24ef1857485b859c9f5b
1,487
py
Python
sorted_insert_position.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
sorted_insert_position.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
sorted_insert_position.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
import math def find_index(sorted_list, target): """Finds the index where the target value is expected in a sorted list.""" def binary_search(low_index, hi_index): """Searches for a value in a list, throwing away half each call""" # locate the middle index mid_index = math.ceil((low_i...
34.581395
78
0.597848
import math def find_index(sorted_list, target): """Finds the index where the target value is expected in a sorted list.""" def binary_search(low_index, hi_index): """Searches for a value in a list, throwing away half each call""" # locate the middle index mid_index = math.ceil((low_i...
0
0
0
0
0
0
0
0
0
b4bd721ab4429c8eb5ef6b2554f6ed76ab1c49a3
404
py
Python
2021/Day_8/AoCSignals.py
ArrowThunder/AoC
f4649115fc83b989745c83251a85710e76eb0368
[ "MIT" ]
1
2021-12-04T12:44:51.000Z
2021-12-04T12:44:51.000Z
2021/Day_8/AoCSignals.py
ArrowThunder/AoC2021
f4649115fc83b989745c83251a85710e76eb0368
[ "MIT" ]
null
null
null
2021/Day_8/AoCSignals.py
ArrowThunder/AoC2021
f4649115fc83b989745c83251a85710e76eb0368
[ "MIT" ]
null
null
null
with open('input.txt') as file: total = 0 for line in file: inputs, outputs = parse_line(line) for code in outputs: if len(code) == 2 or len(code) == 3 or len(code) == 4 or len(code) == 7: total += 1 print(total)
28.857143
84
0.549505
def parse_line(line): line = line.split('|') inputs = line[0].split() outputs = line[1].split() return inputs, outputs with open('input.txt') as file: total = 0 for line in file: inputs, outputs = parse_line(line) for code in outputs: if len(code) == 2 or len(code) =...
0
0
0
0
0
113
0
0
22
13d4af942e0928ac2e926dad1c9830ea003345d6
1,885
py
Python
4.Graph_pangenome/1.construction_graph_genome/02_scripts/prepareAugmentFiles.py
YaoZhou89/TGG
b9b30f6a1bf365895c39cb6fa4dddf0588d3c5dd
[ "MIT" ]
7
2022-01-19T14:17:23.000Z
2022-02-08T12:17:39.000Z
4.Graph_pangenome/1.construction_graph_genome/02_scripts/prepareAugmentFiles.py
YaoZhou89/TGG
b9b30f6a1bf365895c39cb6fa4dddf0588d3c5dd
[ "MIT" ]
null
null
null
4.Graph_pangenome/1.construction_graph_genome/02_scripts/prepareAugmentFiles.py
YaoZhou89/TGG
b9b30f6a1bf365895c39cb6fa4dddf0588d3c5dd
[ "MIT" ]
null
null
null
import vcf import argparse from pyfaidx import Fasta from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import MutableSeq parser = argparse.ArgumentParser(description='Make fasta for each variant to align/augment.') parser.add_argument('-v', help='the input VCF file.', required=True) parser.add_arg...
35.566038
116
0.669496
import vcf import argparse from pyfaidx import Fasta from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import MutableSeq parser = argparse.ArgumentParser(description='Make fasta for each variant to align/augment.') parser.add_argument('-v', help='the input VCF file.', required=True) parser.add_arg...
0
0
0
0
0
0
0
0
0
878b92fc40120b934c575d753a800a9538d9a14d
22,851
py
Python
gateware/daqnet/ethernet/rmii.py
dvdfreitag/daqnet
6a84185d2cf35d99dd620d1e09b4df7fb0630784
[ "MIT" ]
null
null
null
gateware/daqnet/ethernet/rmii.py
dvdfreitag/daqnet
6a84185d2cf35d99dd620d1e09b4df7fb0630784
[ "MIT" ]
null
null
null
gateware/daqnet/ethernet/rmii.py
dvdfreitag/daqnet
6a84185d2cf35d99dd620d1e09b4df7fb0630784
[ "MIT" ]
null
null
null
""" Ethernet RMII Interface Copyright 2018-2019 Adam Greig Released under the MIT license; see LICENSE for details. """
30.921516
78
0.495427
""" Ethernet RMII Interface Copyright 2018-2019 Adam Greig Released under the MIT license; see LICENSE for details. """ from nmigen import Elaboratable, Module, Signal, Cat from .crc import CRC32 from .mac_address_match import MACAddressMatch class RMIIRx(Elaboratable): """ RMII receive module Receives...
0
0
0
13,801
8,613
0
0
57
251
d60d3beec1a8bf5f5b1156875db9e3b65d35b8d6
536
py
Python
cogs/roll.py
morozoffnor/govnoed_grisha_rewritten
6a34336cede03a081954479f998d5a8162e1a31d
[ "Apache-2.0" ]
null
null
null
cogs/roll.py
morozoffnor/govnoed_grisha_rewritten
6a34336cede03a081954479f998d5a8162e1a31d
[ "Apache-2.0" ]
null
null
null
cogs/roll.py
morozoffnor/govnoed_grisha_rewritten
6a34336cede03a081954479f998d5a8162e1a31d
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1, '../functions')
23.304348
73
0.697761
import discord from discord.ext import commands import random import sys sys.path.insert(1, '../functions') from functions.cmd_print import cmd_print class Roll(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def roll(self, ctx, *, number=100): g...
0
215
0
93
0
30
0
16
134
e3ae88a557bc39da15fb4fb98b0be693a0a7911c
377
py
Python
scripts/aggregation_test_script.py
michaelfaerber/Agnos
b4b6ff9cdca9090fb426f1fc2cead8e5ef4ad9bf
[ "MIT" ]
null
null
null
scripts/aggregation_test_script.py
michaelfaerber/Agnos
b4b6ff9cdca9090fb426f1fc2cead8e5ef4ad9bf
[ "MIT" ]
3
2021-12-10T01:22:05.000Z
2021-12-14T21:33:16.000Z
scripts/aggregation_test_script.py
michaelfaerber/Agnos
b4b6ff9cdca9090fb426f1fc2cead8e5ef4ad9bf
[ "MIT" ]
null
null
null
sentences = [['a', 'b', 'c'], ['a', 'd','e']] default_val = '' entity_embeddings_dict = {} entity_embeddings_dict = {sentence[0]: doThis(sentence) + entity_embeddings_dict.get(sentence[0], default_val) \ for sentence in sentences } print(entity_embeddings_dict)
25.133333
112
0.681698
sentences = [['a', 'b', 'c'], ['a', 'd','e']] def doThis(sentence): ret = None for x in sentence: if ret is None: ret = x else: ret += x return ret default_val = '' entity_embeddings_dict = {} entity_embeddings_dict = {sentence[0]: doThis(sentence) + entity_embeddings_dict.get(sentence[0], default_val) \ ...
0
0
0
0
0
93
0
0
22
bd662dc3d2fdbefbc6e614c5d255badccde8b474
5,481
py
Python
scripts/mod_grav/plot_limits.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
null
null
null
scripts/mod_grav/plot_limits.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
null
null
null
scripts/mod_grav/plot_limits.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
1
2019-11-27T19:10:25.000Z
2019-11-27T19:10:25.000Z
import numpy as np import matplotlib.pyplot as plt import grav_util_3 as gu import bead_util as bu import warnings warnings.filterwarnings("ignore") theory_data_dir = '/data/grav_sim_data/2um_spacing_data/' data_dirs = [#'/data/20180625/bead1/grav_data/shield/X50-75um_Z15-25um_17Hz', \ #'/data/2018...
31.142045
94
0.560482
import dill as pickle import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import grav_util_3 as gu import bead_util as bu import configuration as config import warnings warnings.filterwarnings("ignore") theory_data_dir = '/data/grav_sim_data/2um_spacing_data/' data_dirs =...
0
0
0
0
0
0
0
27
67
6a7f23c80626351657198207fd0b08ed99b96da9
1,095
py
Python
Intro to us.py
DarshPro/Minecraft-in-python
3a52a60e9a36107252aafc971b3a32fc84b135df
[ "MIT" ]
1
2021-03-04T15:42:36.000Z
2021-03-04T15:42:36.000Z
Intro to us.py
DarshPro/Minecraft-in-python
3a52a60e9a36107252aafc971b3a32fc84b135df
[ "MIT" ]
null
null
null
Intro to us.py
DarshPro/Minecraft-in-python
3a52a60e9a36107252aafc971b3a32fc84b135df
[ "MIT" ]
null
null
null
# Test Cube # Test button # update is run every frame # basic window app = Ursina() # basic cube cube = Entity(model='quad', color=color.orange, scale = (2,5), position = (5,1)) # quad with texture #sans_image = load_texture('Sans.png') #sans = Entity(model = 'quad', texture = sans_image) #sans = Entity(model =...
20.277778
80
0.660274
from ursina import * # Test Cube class Test_cube(Entity): def __init__(self): super().__init__( parent = scene, model = 'cube', texture = 'white_cube', rotation = Vec3(45,45,45)) # Test button class Test_button(Button): def __init__(self,scale = 0.1): super().__init__( parent = scene, model = ...
0
0
0
441
0
52
0
-1
88
dc32ad09fb9c4eae33279bcdb6ba48542e65e16b
20,087
py
Python
Python/utils/rvs/expressions.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
1
2022-03-22T20:13:02.000Z
2022-03-22T20:13:02.000Z
Python/utils/rvs/expressions.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
Python/utils/rvs/expressions.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
def parse_value(value): ''' Attempts to interpret <value> as a number. ''' if isinstance(value, str): try: value = int(value) except ValueError: value = float(value) return value
29.980597
129
0.697366
import numpy as np from copy import copy, deepcopy from utils.rvs.utils import COMPARATOR_NEGATIONS def get_constant_name(counter={'c':0}): name = 'c%d' % counter['c'] counter['c'] += 1 return name def get_variable_name(counter={'v':0}): name = 'v%d' % counter['v'] counter['v'] += 1 return name def get_express...
0
11,095
0
7,220
0
805
0
34
712
aa30c170932818c11a70361a198633d3d3e3f96b
1,659
py
Python
docs/conf.py
Qiskit/qiskit-aqt-provider
276b10bde45027e0d33c80a6942887f7de0204da
[ "Apache-2.0" ]
5
2019-10-21T02:57:22.000Z
2020-04-09T00:03:42.000Z
docs/conf.py
Qiskit/qiskit-aqt-provider
276b10bde45027e0d33c80a6942887f7de0204da
[ "Apache-2.0" ]
8
2019-09-25T19:48:34.000Z
2020-02-27T16:30:41.000Z
docs/conf.py
Qiskit/qiskit-aqt-provider
276b10bde45027e0d33c80a6942887f7de0204da
[ "Apache-2.0" ]
10
2019-09-25T18:47:44.000Z
2020-06-05T17:45:35.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
24.397059
89
0.724533
# This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
0
0
0
0
0
0
0
0
0
4af823cb5f863d54376d0a7984be2ad7dd1c341a
448
py
Python
backend/api/ImageSearch/migrations/0009_imagemetadata_image_fpath.py
eth-library-lab/open-image-search
7be76cd4b7730dd76623e15f034f1c337ab99f84
[ "MIT" ]
5
2021-06-14T10:49:52.000Z
2022-02-16T15:56:49.000Z
backend/api/ImageSearch/migrations/0009_imagemetadata_image_fpath.py
eth-library-lab/open-image-search
7be76cd4b7730dd76623e15f034f1c337ab99f84
[ "MIT" ]
11
2021-06-11T16:12:49.000Z
2021-12-03T16:41:13.000Z
backend/api/ImageSearch/migrations/0009_imagemetadata_image_fpath.py
eth-library-lab/open-image-search
7be76cd4b7730dd76623e15f034f1c337ab99f84
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-09-20 13:36
23.578947
98
0.629464
# Generated by Django 3.1.2 on 2021-09-20 13:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ImageSearch', '0008_auto_20210916_0909'), ] operations = [ migrations.AddField( model_name='imagemetadata', name='im...
0
0
0
334
0
0
0
19
46
244d8e1d804d4ab001743ae24cbdc613ee9ca42f
9,566
py
Python
test_interest.py
castacks/interestingness
b614818ab11dcc15c5fe6b55fe993882add3e8e6
[ "BSD-3-Clause" ]
1
2021-07-20T14:58:36.000Z
2021-07-20T14:58:36.000Z
test_interest.py
castacks/interestingness
b614818ab11dcc15c5fe6b55fe993882add3e8e6
[ "BSD-3-Clause" ]
null
null
null
test_interest.py
castacks/interestingness
b614818ab11dcc15c5fe6b55fe993882add3e8e6
[ "BSD-3-Clause" ]
1
2021-04-17T08:25:05.000Z
2021-04-17T08:25:05.000Z
#!/usr/bin/env python3 # Copyright <2019> <Chen Wang [https://chenwang.site], Carnegie Mellon University> # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyr...
44.493023
137
0.681685
#!/usr/bin/env python3 # Copyright <2019> <Chen Wang [https://chenwang.site], Carnegie Mellon University> # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyr...
0
0
0
933
0
2,747
0
222
380
9a70fd2b8f51d98c7016e821a8b8f28b97a4e005
108,582
py
Python
src/eclipse_jdt/final_results/preliminary_experiment/plot_results.py
Ericsson/oss-automatic-bug-assignment
f4965babd0491118713d7b19bd7ddd30fa39254f
[ "MIT" ]
3
2018-09-25T02:29:54.000Z
2020-02-12T12:35:55.000Z
src/eclipse_jdt/final_results/preliminary_experiment/plot_results.py
dbreddyAI/oss-automatic-bug-assignment
f4965babd0491118713d7b19bd7ddd30fa39254f
[ "MIT" ]
null
null
null
src/eclipse_jdt/final_results/preliminary_experiment/plot_results.py
dbreddyAI/oss-automatic-bug-assignment
f4965babd0491118713d7b19bd7ddd30fa39254f
[ "MIT" ]
3
2017-10-26T13:50:21.000Z
2019-12-17T03:40:11.000Z
import matplotlib.pyplot as plt def plot_learning_curve(title, computed_score, train_sizes, \ train_scores_mean, train_scores_std, test_scores_mean, \ test_scores_std): """Generate a plot of the test and training learning curves. Parameters ---------- title: string Contains the title ...
236.562092
26,139
0.795611
from numpy import array import os import inspect import matplotlib.pyplot as plt def plot_learning_curve(title, computed_score, train_sizes, \ train_scores_mean, train_scores_std, test_scores_mean, \ test_scores_std): """Generate a plot of the test and training learning curves. Parameters -------...
0
0
0
0
0
105,829
0
-17
89
cf398266bba39f44a35399478e373fb7c8895c96
735
py
Python
pycopyql/cli.py
elazar/pycopyql
4c8384b847fcd9ef2811c12375fc5e9e63094b3e
[ "MIT" ]
1
2018-08-02T18:42:34.000Z
2018-08-02T18:42:34.000Z
pycopyql/cli.py
elazar/pycopyql
4c8384b847fcd9ef2811c12375fc5e9e63094b3e
[ "MIT" ]
null
null
null
pycopyql/cli.py
elazar/pycopyql
4c8384b847fcd9ef2811c12375fc5e9e63094b3e
[ "MIT" ]
null
null
null
from .args import get_args from .config import get_config, get_connection_config, get_engine, get_meta from .query import query from .export import get_exporter def main(): """ Provides a CLI entrypoint to access a database and export a subset of its data in a specified format. """ args = get_args...
31.956522
77
0.726531
from .args import get_args from .config import get_config, get_connection_config, get_engine, get_meta from .query import query from .export import get_exporter def main(): """ Provides a CLI entrypoint to access a database and export a subset of its data in a specified format. """ args = get_args...
0
0
0
0
0
0
0
0
0
aeb45e871f3a30dab24f8b244ee9dacf414f769a
258
py
Python
cride/circles/urls.py
daecazu/platziride
79782770d05e71823c7eb27fec76a3870c737689
[ "MIT" ]
null
null
null
cride/circles/urls.py
daecazu/platziride
79782770d05e71823c7eb27fec76a3870c737689
[ "MIT" ]
2
2020-03-03T20:29:18.000Z
2020-03-03T20:29:19.000Z
cride/circles/urls.py
daecazu/platziride
79782770d05e71823c7eb27fec76a3870c737689
[ "MIT" ]
null
null
null
"""Circles URLs""" # Django from django.urls import path # Views from cride.circles.views import list_circles from cride.circles.views import create_circle urlpatterns = [ path ('circles/', list_circles), path ('circles/create/', create_circle), ]
19.846154
45
0.732558
"""Circles URLs""" # Django from django.urls import path # Views from cride.circles.views import list_circles from cride.circles.views import create_circle urlpatterns = [ path ('circles/', list_circles), path ('circles/create/', create_circle), ]
0
0
0
0
0
0
0
0
0
4cbc553ee05900bc18bb23ac67ed68a847770fd8
150
py
Python
billing/__init__.py
xprilion/django-customer-billing
82f8147d74ff62e84d9e57465b4d521434c48e49
[ "MIT" ]
null
null
null
billing/__init__.py
xprilion/django-customer-billing
82f8147d74ff62e84d9e57465b4d521434c48e49
[ "MIT" ]
null
null
null
billing/__init__.py
xprilion/django-customer-billing
82f8147d74ff62e84d9e57465b4d521434c48e49
[ "MIT" ]
1
2020-06-25T22:55:48.000Z
2020-06-25T22:55:48.000Z
__version__ = '1.5.4' __copyright__ = 'Copyright (c) 2018, Skioo SA' __licence__ = 'MIT' __URL__ = 'https://github.com/skioo/django-customer-billing'
30
60
0.726667
__version__ = '1.5.4' __copyright__ = 'Copyright (c) 2018, Skioo SA' __licence__ = 'MIT' __URL__ = 'https://github.com/skioo/django-customer-billing'
0
0
0
0
0
0
0
0
0
2a6cfbfefd1436bb7d9f94ae6539e54bf036f4d7
48,716
py
Python
ShotgunORM/SgFields.py
jonykalavera/python-shotgunorm
3b0a2b433030815631588ff709c8ffd3e9660476
[ "BSD-3-Clause" ]
null
null
null
ShotgunORM/SgFields.py
jonykalavera/python-shotgunorm
3b0a2b433030815631588ff709c8ffd3e9660476
[ "BSD-3-Clause" ]
null
null
null
ShotgunORM/SgFields.py
jonykalavera/python-shotgunorm
3b0a2b433030815631588ff709c8ffd3e9660476
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2013, Nathan Dunsworth - NFXPlugins # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list...
24.956967
132
0.59812
# Copyright (c) 2013, Nathan Dunsworth - NFXPlugins # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list...
0
0
0
44,478
0
0
0
-56
568
b5961ce174a5e07a6544a64153caec0e5af3facd
3,763
py
Python
src/day16.py
blu3r4y/AdventOfCode2018
5ef6ee251f9184e0f66657d0eb8b5b129a6f93e5
[ "MIT" ]
2
2019-01-02T22:57:13.000Z
2019-05-07T23:13:25.000Z
src/day16.py
blu3r4y/AdventOfCode2018
5ef6ee251f9184e0f66657d0eb8b5b129a6f93e5
[ "MIT" ]
null
null
null
src/day16.py
blu3r4y/AdventOfCode2018
5ef6ee251f9184e0f66657d0eb8b5b129a6f93e5
[ "MIT" ]
1
2021-12-06T12:38:26.000Z
2021-12-06T12:38:26.000Z
# Advent of Code 2018, Day 16 # (c) blu3r4y from collections import namedtuple OPERATIONS = ['addr', 'addi', 'mulr', 'muli', 'banr', 'bani', 'borr', 'bori', 'setr', 'seti', 'gtir', 'gtri', 'gtrr', 'eqir', 'eqri', 'eqrr'] Observation = namedtuple("Observation", ["instruction", "before", "after"]) ...
28.08209
79
0.549296
# Advent of Code 2018, Day 16 # (c) blu3r4y from collections import namedtuple from parse import parse OPERATIONS = ['addr', 'addi', 'mulr', 'muli', 'banr', 'bani', 'borr', 'bori', 'setr', 'seti', 'gtir', 'gtri', 'gtrr', 'eqir', 'eqri', 'eqrr'] Observation = namedtuple("Observation", ["instruction", "...
0
0
0
0
0
3,161
0
2
115
d31ca228a7c49cb870496d2465087e6fff372030
2,685
py
Python
programming_languages_classification/test.py
contimatteo/Programming-Languages-Classification
34ccf1bd403f55226ed5131d57265df45d314b6f
[ "MIT" ]
1
2022-03-18T12:54:52.000Z
2022-03-18T12:54:52.000Z
programming_languages_classification/test.py
contimatteo/Programming-Languages-Classification
34ccf1bd403f55226ed5131d57265df45d314b6f
[ "MIT" ]
5
2021-11-10T19:58:25.000Z
2022-03-19T18:17:41.000Z
programming_languages_classification/test.py
contimatteo/programming-language-classifier
60847ab91cff4dc20ded1a024d272c75956194a0
[ "MIT" ]
null
null
null
from keras.models import load_model import os import json from utils import FileManager ## global dictionary global model dictionaryUrl = os.path.join(FileManager.getRootUrl(), 'tmp/wordindex.json') dictionary = json.loads(FileManager.readFile(dictionaryUrl)) modelUrl = os.path.join(FileManager.getRootUrl(), 'tmp/...
29.833333
106
0.633147
from keras.models import load_model import keras.preprocessing.text as kpt from keras.preprocessing.sequence import pad_sequences import sys import os import json import numpy as np from utils import ConfigurationManager, FileManager ## global dictionary global model dictionaryUrl = os.path.join(FileManager.getRoot...
0
0
0
0
0
2,077
0
58
134
2e93f597b4ad68b69e4599e8fc30321be3c05d7a
31,071
py
Python
src/Animate/Scripts.py
henkjannl/py-animate
dbc93c8a264ef008954901ea76286331ad1737ee
[ "MIT" ]
null
null
null
src/Animate/Scripts.py
henkjannl/py-animate
dbc93c8a264ef008954901ea76286331ad1737ee
[ "MIT" ]
null
null
null
src/Animate/Scripts.py
henkjannl/py-animate
dbc93c8a264ef008954901ea76286331ad1737ee
[ "MIT" ]
null
null
null
#import time import logging LOG_FILENAME = '__logfile.txt' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
41.931174
186
0.491101
import pandas as pd from PIL import Image # www.pythonware.com/library/pil/handbook from PIL import ImageFont, ImageDraw, ImageEnhance from PIL import ImageFilter import os #import time import logging from Animate.Items import * from Animate.Properties import * from Animate.Constants import * LOG_FILENAME = '__log...
0
0
0
29,838
0
747
0
48
313
da91ac6418297ed4e02987a76d7e459a1c8dc944
2,510
py
Python
DatasetHandler/FileHelperFunc.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
DatasetHandler/FileHelperFunc.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
DatasetHandler/FileHelperFunc.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
import os def get_project_folder(): ''' Gives us the path to MGR-Project-Code from a list of allowed folders. :return: ''' PATH_ALTERNATIVES = ['/home/ekmek/Project II/MGR-Project-Code/', '/storage/brno2/home/previtus/MGR-Project-Code/', '/home/ekmek/Vitek/MGR-Project-Code/'] ABS_PATH_TO_PRJ = ...
30.240964
157
0.661753
import os def get_project_folder(): ''' Gives us the path to MGR-Project-Code from a list of allowed folders. :return: ''' PATH_ALTERNATIVES = ['/home/ekmek/Project II/MGR-Project-Code/', '/storage/brno2/home/previtus/MGR-Project-Code/', '/home/ekmek/Vitek/MGR-Project-Code/'] ABS_PATH_TO_PRJ = ...
0
0
0
0
0
0
0
0
0
ca53a879e6d706ed4d4875884504a13f91f27b99
1,575
py
Python
trajectory_executor/Parameters.py
WPI-MMR/trajectory_generator
61a3c61d37e674cfa81ec4e67fd56bb825e56ab8
[ "MIT" ]
null
null
null
trajectory_executor/Parameters.py
WPI-MMR/trajectory_generator
61a3c61d37e674cfa81ec4e67fd56bb825e56ab8
[ "MIT" ]
null
null
null
trajectory_executor/Parameters.py
WPI-MMR/trajectory_generator
61a3c61d37e674cfa81ec4e67fd56bb825e56ab8
[ "MIT" ]
null
null
null
# from sympy import * # Robot Chassis Parameters l = 370 #hip to hip length of the robot b = 210.1 #hip to hip breadth of the robot h = 44 #height of the robot ## Leg Type 1: Rear ''' Variable name convention as follows: The first number represents the length and the second number repre...
28.125
116
0.690794
# from sympy import * # Robot Chassis Parameters l = 370 #hip to hip length of the robot b = 210.1 #hip to hip breadth of the robot h = 44 #height of the robot ## Leg Type 1: Rear ''' Variable name convention as follows: The first number represents the length and the second number repre...
0
0
0
0
0
0
0
0
0
41e9c7b6bd0603988abf0a0263e4f16fab3ff22b
716
py
Python
plbmng/lib/ssh_map.py
xxMAKMAKxx/plbmng
64bbe70424801092c7429d5e73ecaf5466b6c437
[ "MIT" ]
null
null
null
plbmng/lib/ssh_map.py
xxMAKMAKxx/plbmng
64bbe70424801092c7429d5e73ecaf5466b6c437
[ "MIT" ]
null
null
null
plbmng/lib/ssh_map.py
xxMAKMAKxx/plbmng
64bbe70424801092c7429d5e73ecaf5466b6c437
[ "MIT" ]
null
null
null
import folium import csv def main(): """ Creates a map of nodes with available SSH connection.\n :return: map_ssh.html file """ map_ssh = folium.Map(location=[45.523, -122.675], zoom_start=2) with open('lib/base_data.txt') as tsv: for row in csv.reader(tsv, de...
23.866667
65
0.523743
import folium import csv from folium.plugins import MarkerCluster def main(): """ Creates a map of nodes with available SSH connection.\n :return: map_ssh.html file """ map_ssh = folium.Map(location=[45.523, -122.675], zoom_start=2) with open('lib/base_data.txt') as t...
0
0
0
0
0
0
0
19
22
2bb73ddf9d4ab92638002a38558adbe2794f6be1
146
py
Python
day08/part2.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
day08/part2.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
day08/part2.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ans = 0 with open("input.txt") as f: for line in f: ans += 2 + line.count("\\") + line.count("\"") print(ans)
18.25
54
0.541096
#!/usr/bin/env python3 ans = 0 with open("input.txt") as f: for line in f: ans += 2 + line.count("\\") + line.count("\"") print(ans)
0
0
0
0
0
0
0
0
0
b39083aacc0b8fea019f95a80c7e48ff65c4cb4a
818
py
Python
opttrack/lib/ui/obs_menu.py
aisthesis/opttrack
17e0c7740ea43e0f07166e30d689b106d0319d0b
[ "MIT" ]
null
null
null
opttrack/lib/ui/obs_menu.py
aisthesis/opttrack
17e0c7740ea43e0f07166e30d689b106d0319d0b
[ "MIT" ]
2
2016-03-30T02:50:31.000Z
2016-03-30T16:18:23.000Z
opttrack/lib/ui/obs_menu.py
aisthesis/opttrack
17e0c7740ea43e0f07166e30d689b106d0319d0b
[ "MIT" ]
null
null
null
""" Copyright (c) 2015 Marshall Farrier license http://opensource.org/licenses/MIT lib/ui/edit_menu.py Content for interactive editor """
24.787879
67
0.665037
""" Copyright (c) 2015 Marshall Farrier license http://opensource.org/licenses/MIT lib/ui/edit_menu.py Content for interactive editor """ from functools import partial from .obs_handlers import ObsHandlers from .menu import Menu from .spread_selector import SpreadSelector class ObsMenu(Menu): def __init__(sel...
0
78
0
440
0
0
0
47
113
c2dee6d1aa40a7f38a96156bda231d31db4d330b
1,307
py
Python
nsr/utils/majority_vote.py
GaoSida/Neural-SampleRank
8b4a7a40cc34bff608f19d3f7eb64bda76669c5b
[ "MIT" ]
2
2020-11-17T18:41:05.000Z
2021-08-12T14:40:56.000Z
nsr/utils/majority_vote.py
GaoSida/Neural-SampleRank
8b4a7a40cc34bff608f19d3f7eb64bda76669c5b
[ "MIT" ]
null
null
null
nsr/utils/majority_vote.py
GaoSida/Neural-SampleRank
8b4a7a40cc34bff608f19d3f7eb64bda76669c5b
[ "MIT" ]
null
null
null
"""A helper for running inference callable multiple times, and ensemble the predictions with a simple majority vote. """ from typing import Callable def majority_vote_ensemble(eval_func: Callable, num_runs: int): """ Args: eval_func: call without argument to get a prediction or a list of ...
33.512821
76
0.638868
"""A helper for running inference callable multiple times, and ensemble the predictions with a simple majority vote. """ from typing import Callable from collections import Counter def majority_vote_ensemble(eval_func: Callable, num_runs: int): """ Args: eval_func: call without argument to get a pred...
0
0
0
0
0
225
0
10
53
5ded5a7640fb3ff4dbd2ec961b2d0176566b38b3
12,872
py
Python
postgres-appliance/major_upgrade/pg_upgrade.py
OlleLarsson/spilo
a347a9453a2deef33d968261096c1a328d9a2d87
[ "Apache-2.0" ]
null
null
null
postgres-appliance/major_upgrade/pg_upgrade.py
OlleLarsson/spilo
a347a9453a2deef33d968261096c1a328d9a2d87
[ "Apache-2.0" ]
null
null
null
postgres-appliance/major_upgrade/pg_upgrade.py
OlleLarsson/spilo
a347a9453a2deef33d968261096c1a328d9a2d87
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__)
43.931741
118
0.64582
import logging import os import shutil import subprocess import psutil from patroni.postgresql import Postgresql logger = logging.getLogger(__name__) class _PostgresqlUpgrade(Postgresql): _INCOMPATIBLE_EXTENSIONS = ('amcheck_next',) def adjust_shared_preload_libraries(self, version): from spilo_co...
0
355
0
11,937
0
380
0
-12
157
efecd1c0949806cb18bbe2451a6a6c7bb21dc209
46
py
Python
code/lib/tosca/__init__.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/lib/tosca/__init__.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/lib/tosca/__init__.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
__all__ = ["tosca_parser", "tosca_rdcl_graph"]
46
46
0.76087
__all__ = ["tosca_parser", "tosca_rdcl_graph"]
0
0
0
0
0
0
0
0
0
68097eba15392e818a32df460c2104fd3ca64819
4,729
py
Python
examples/resources/aws/subnet.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
examples/resources/aws/subnet.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
examples/resources/aws/subnet.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
from typing import Optional import statey as st SubnetConfigType = st.Struct[ "vpc_id" : st.String, "cidr_block" : st.String, # Optional args "ipv6_cidr_block" : ~st.String, "map_public_ip_on_launch" : st.Boolean(default=False), "assign_ipv6_address_on_creation" : st.Boolean(default=False), ...
31.317881
85
0.60055
import asyncio import contextlib from typing import Dict, Any, Optional import aioboto3 import botocore import statey as st SubnetConfigType = st.Struct[ "vpc_id" : st.String, "cidr_block" : st.String, # Optional args "ipv6_cidr_block" : ~st.String, "map_public_ip_on_launch" : st.Boolean(default...
0
1,201
2,102
289
0
0
0
-12
112
194ab0dc74cd18f13ee2868097d1372c6db981b3
7,181
py
Python
archive/_s3.py
zpz/upathlib
5bf7013be244c5f1b276e0b0ac1b9d7637666ceb
[ "MIT" ]
null
null
null
archive/_s3.py
zpz/upathlib
5bf7013be244c5f1b276e0b0ac1b9d7637666ceb
[ "MIT" ]
19
2021-07-08T06:42:31.000Z
2021-10-15T09:07:17.000Z
archive/_s3.py
zpz/upathlib
5bf7013be244c5f1b276e0b0ac1b9d7637666ceb
[ "MIT" ]
null
null
null
import logging # This module requires a directory `.aws/` containing credentials in the home directory, # or environment variables `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`. logger = logging.getLogger(__name__)
32.640909
98
0.569002
import logging from pathlib import Path import time import boto3 # This module requires a directory `.aws/` containing credentials in the home directory, # or environment variables `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`. logger = logging.getLogger(__name__) def _get_client(): return boto3.session.Se...
0
41
0
5,902
0
798
0
-16
228
75f81d84c2a063746a49d48076491405182c7fc8
10,799
py
Python
storitch/handlers/store.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
storitch/handlers/store.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
1
2022-03-03T00:35:08.000Z
2022-03-03T00:35:08.000Z
storitch/handlers/store.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
import os from wand import image def thumbnail(path: str) -> bool: ''' Specify the path and add a "@" followed by the arguments. This allows us to easily get the original file, make the changes, save the file with the full path, so the server never has to do the operation again, as long as the ar...
32.429429
96
0.567738
from typing import Union, Dict, List, Any, Tuple, Optional import json, tempfile, os, logging, re, shutil, mimetypes, good from tornado import httpclient, web, queues from storitch import utils, config from storitch.decorators import run_on_executor from wand import image, exceptions class Base_handler(web.RequestHand...
0
2,866
1,489
1,572
0
1,877
0
164
357
b0fbc439e2b9764f97c049f14ced20df3b6321a9
7,052
py
Python
ddf_library/functions/graph_lib/page_rank.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
3
2017-08-22T11:32:02.000Z
2021-08-09T09:35:51.000Z
ddf_library/functions/graph_lib/page_rank.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
ddf_library/functions/graph_lib/page_rank.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Lucas Miguel S Ponce" __email__ = "lucasmsp@gmail.com" from ddf_library.utils import generate_info, create_stage_files, save_stage_file from pycompss.api.api import compss_wait_on import numpy as np __all__ = ['PageRank'] # TODO: this algorithm can be opt...
29.630252
78
0.620108
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Lucas Miguel S Ponce" __email__ = "lucasmsp@gmail.com" from ddf_library.bases.metadata import Status, OPTGroup from ddf_library.bases.context_base import ContextBase from ddf_library.ddf import DDF from ddf_library.bases.ddf_model import ModelDDF from ddf_l...
3
2,368
0
3,314
0
0
0
225
339
faeba7f3ca3382662de94211ec44a097d3c7ac9f
1,390
py
Python
UART_py/tela_serial.py
Rodrigo98Matos/Interface-Grafca-Serial
b996655e7376229856116ec3d150f3210a82cb4d
[ "MIT" ]
null
null
null
UART_py/tela_serial.py
Rodrigo98Matos/Interface-Grafca-Serial
b996655e7376229856116ec3d150f3210a82cb4d
[ "MIT" ]
null
null
null
UART_py/tela_serial.py
Rodrigo98Matos/Interface-Grafca-Serial
b996655e7376229856116ec3d150f3210a82cb4d
[ "MIT" ]
null
null
null
from uart_serial import uart arduino = uart()
37.567568
117
0.538129
import PySimpleGUI as sg from uart_serial import uart arduino = uart() class tela: def __init__(self, portas): #Layout sg.theme('Black') layout = [ [sg.Text('Porta:',size=(7,0)),sg.Combo(values=(portas),key='porta')], [sg.Text('Baudrate:',size=(7,0)),sg.Combo(values...
6
0
0
1,291
0
0
0
3
45
a747752e784483f13e0672fa7ef44261d743dd9f
403
py
Python
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-27 20:28
21.210526
49
0.615385
# Generated by Django 2.2.6 on 2019-11-27 20:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('babybuddy', '0016_auto_20191127_1424'), ] operations = [ migrations.AddField( model_name='promocode', name='max_usag...
0
0
0
289
0
0
0
19
46
838a777e045278ea92893c031457352439926ec4
1,897
py
Python
transact/models.py
BrilliantGrant/Transaction-application
988fdbd6ed8a1fea9ca8366eeb2b30275b727836
[ "MIT", "Unlicense" ]
null
null
null
transact/models.py
BrilliantGrant/Transaction-application
988fdbd6ed8a1fea9ca8366eeb2b30275b727836
[ "MIT", "Unlicense" ]
null
null
null
transact/models.py
BrilliantGrant/Transaction-application
988fdbd6ed8a1fea9ca8366eeb2b30275b727836
[ "MIT", "Unlicense" ]
null
null
null
# Create your models here.
25.293333
72
0.710596
from django.contrib.auth.models import User from tinymce.models import HTMLField from django.db import models # Create your models here. class Pic(models.Model): pic = models.ImageField(upload_to = "pics/",null = True) user = models.ForeignKey(User,null=True) pic_name = models.CharField(max_length = 30,nul...
0
323
0
1,390
0
0
0
44
111
4a30bc154d6f294fba0d9fd2e54096f76bfb7a5f
553
py
Python
migrations/versions/6564c80d1598_.py
realtimclemans/SafetyHealthDotCloud
c7eca52f3e6519de34b05ba573a5778423c2dae2
[ "MIT" ]
null
null
null
migrations/versions/6564c80d1598_.py
realtimclemans/SafetyHealthDotCloud
c7eca52f3e6519de34b05ba573a5778423c2dae2
[ "MIT" ]
1
2021-02-15T15:58:54.000Z
2021-02-15T15:58:54.000Z
migrations/versions/6564c80d1598_.py
realtimclemans/SafetyHealthDotCloud
c7eca52f3e6519de34b05ba573a5778423c2dae2
[ "MIT" ]
null
null
null
"""empty message Revision ID: 6564c80d1598 Revises: c3c2dc9000d3 Create Date: 2021-06-19 17:03:45.811885 """ # revision identifiers, used by Alembic. revision = '6564c80d1598' down_revision = 'c3c2dc9000d3' branch_labels = None depends_on = None
19.068966
65
0.687161
"""empty message Revision ID: 6564c80d1598 Revises: c3c2dc9000d3 Create Date: 2021-06-19 17:03:45.811885 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6564c80d1598' down_revision = 'c3c2dc9000d3' branch_labels = None depends_on = None def upgrade(): # ...
0
0
0
0
0
208
0
3
90
5eb6460889a29c993a99192a3b46f1a9dae54de9
1,181
py
Python
setup.py
tizz98/xl
4534a1792f878964fedd87432c438ab6364ece49
[ "MIT" ]
1
2018-03-30T17:36:41.000Z
2018-03-30T17:36:41.000Z
setup.py
tizz98/xl
4534a1792f878964fedd87432c438ab6364ece49
[ "MIT" ]
null
null
null
setup.py
tizz98/xl
4534a1792f878964fedd87432c438ab6364ece49
[ "MIT" ]
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): with open('README.md') as f: long_description = f.read() from xl import ...
27.465116
69
0.647756
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): with open('README.md') as f: long_description = f.read() from xl import ...
0
0
0
0
0
0
0
0
0
91c554ac6c77dd73935b5f3788cc38b6a16bd729
420
py
Python
GroupCondition.py
simplymanas/python-learning
75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0
[ "Apache-2.0" ]
4
2020-08-18T05:29:38.000Z
2021-03-13T19:01:10.000Z
GroupCondition.py
simplymanas/python-learning
75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0
[ "Apache-2.0" ]
null
null
null
GroupCondition.py
simplymanas/python-learning
75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0
[ "Apache-2.0" ]
1
2020-08-29T12:57:17.000Z
2020-08-29T12:57:17.000Z
# all, any for group condition check # Manas Dash # 22th July 2020 # think of any (or) and all (and) as series of logical or and and operators healthy_percentage = 100 have_money = 0 no_of_friends = 5 mental_happiness = [ healthy_percentage > 50, have_money > 0, no_of_friends >= 1 ] if all(mental_happiness): p...
17.5
75
0.738095
# all, any for group condition check # Manas Dash # 22th July 2020 # think of any (or) and all (and) as series of logical or and and operators healthy_percentage = 100 have_money = 0 no_of_friends = 5 mental_happiness = [ healthy_percentage > 50, have_money > 0, no_of_friends >= 1 ] if all(mental_happiness): p...
0
0
0
0
0
0
0
0
0
41559822f3cd5754bbcded35318328ac3c23e9ab
12,012
py
Python
zx64c/ast.py
khrynczenko/zx64c
5a95bef1dff281266ea3f0d0bfd63d27ab5e9965
[ "Apache-2.0" ]
null
null
null
zx64c/ast.py
khrynczenko/zx64c
5a95bef1dff281266ea3f0d0bfd63d27ab5e9965
[ "Apache-2.0" ]
null
null
null
zx64c/ast.py
khrynczenko/zx64c
5a95bef1dff281266ea3f0d0bfd63d27ab5e9965
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import TypeVar T = TypeVar("T")
24.217742
88
0.635614
from __future__ import annotations import abc from typing import List, Text, TypeVar, Generic from abc import ABC from functools import singledispatchmethod from dataclasses import dataclass from zx64c.types import Type, Callable T = TypeVar("T") class AstVisitor(ABC, Generic[T]): @abc.abstractmethod def ...
0
4,957
0
5,386
0
0
0
58
1,490
12d6ccc9bc22866f30ca1c766583f034776a1025
4,946
py
Python
src/lib/recorder.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
src/lib/recorder.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
src/lib/recorder.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
import logging LOGGER = logging.getLogger(__name__)
35.84058
88
0.641326
import datetime import logging import os from threading import Thread import cv2 from lib.cleanup import SegmentCleanup from lib.helpers import draw_objects from lib.mqtt.camera import MQTTCamera from lib.segments import Segments LOGGER = logging.getLogger(__name__) class FFMPEGRecorder: def __init__(self, con...
0
0
0
4,652
0
0
0
39
201
6ad5c56d611d041bd4e20428bfb9dda30e760ae2
810
py
Python
src/USEFUL/basic_examples/example_setdefault.py
binxiangni/Python-and-Algorithms-and-Data-Structures
d2c082d261a68b06f533703867ae8a90ac7f4df1
[ "MIT" ]
5
2017-08-03T06:33:49.000Z
2021-08-06T13:20:57.000Z
src/USEFUL/basic_examples/example_setdefault.py
ritahu/Python-and-Algorithms-and-Data-Structures
d2c082d261a68b06f533703867ae8a90ac7f4df1
[ "MIT" ]
null
null
null
src/USEFUL/basic_examples/example_setdefault.py
ritahu/Python-and-Algorithms-and-Data-Structures
d2c082d261a68b06f533703867ae8a90ac7f4df1
[ "MIT" ]
6
2017-04-27T13:30:49.000Z
2020-11-01T20:28:55.000Z
#!/usr/bin/env python __author__ = "bt3" if __name__ == '__main__': test_setdef()
20.769231
51
0.549383
#!/usr/bin/env python __author__ = "bt3" def usual_dict(dict_data): newdata = {} for k, v in dict_data: if k in newdata: newdata[k].append(v) else: newdata[k] = [v] return newdata def setdefault_dict(dict_data): newdata = {} for k, v in dict_data: ...
0
0
0
0
0
648
0
0
69
aa3156cdaa41c2efd05f58391fef51ddc65a1c89
423
py
Python
examples/PyObjC/pbplugin/PyTestPlugin.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
81
2015-11-29T12:17:39.000Z
2021-08-02T07:06:51.000Z
examples/PyObjC/pbplugin/PyTestPlugin.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
11
2016-10-23T16:34:10.000Z
2022-01-30T05:45:54.000Z
examples/PyObjC/pbplugin/PyTestPlugin.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
21
2016-01-25T18:46:31.000Z
2021-01-08T17:38:03.000Z
import objc import sys print "PyTestPlugin", __name__ print u"[inside] currentBundle %r" % (objc.currentBundle(),)
23.5
60
0.664303
from Foundation import * import objc import sys class PyTestPlugin(NSObject): def init(self): self = super(PyTestPlugin, self).init() print 'class load!!' print "Hello from py2app" print "frozen", repr(getattr(sys, "frozen", None)) return self class PyTestPlugin2(NSObject):...
0
0
0
236
0
0
0
3
68
4daa46c2152e35f2d6fed9c1e7f117f7a7694955
439
py
Python
tests/grammar/grammars/simple.py
AlexandreH/securify2
2d2ba0e1c20cdda550120ecdc1a7164db9b90e3c
[ "Apache-2.0" ]
258
2020-01-23T16:58:38.000Z
2022-03-31T17:29:25.000Z
tests/grammar/grammars/simple.py
sirhashalot/securify2
6852707449577add14bafce8e304946b3490a977
[ "Apache-2.0" ]
34
2020-01-30T06:11:58.000Z
2022-02-27T07:53:17.000Z
tests/grammar/grammars/simple.py
sirhashalot/securify2
6852707449577add14bafce8e304946b3490a977
[ "Apache-2.0" ]
66
2020-01-28T09:23:05.000Z
2022-03-22T09:01:43.000Z
from __future__ import annotations
12.911765
60
0.738041
from __future__ import annotations from typing import Sequence, Union, Optional from securify.grammar import abstract_production, production @abstract_production class Base: pass @abstract_production class AOrC(Base): pass @production class A(AOrC, Base): optional: Optional[Base] @production class B...
0
154
0
0
0
0
0
62
184
ab7e4c8ae6107856ac778d397edffb130f2bed1a
2,490
py
Python
includes/vars.py
jerseyshawn/cf-vcap-vars
26effac112b500271e2f5ed298f0e6ab50bd7c4e
[ "MIT" ]
null
null
null
includes/vars.py
jerseyshawn/cf-vcap-vars
26effac112b500271e2f5ed298f0e6ab50bd7c4e
[ "MIT" ]
null
null
null
includes/vars.py
jerseyshawn/cf-vcap-vars
26effac112b500271e2f5ed298f0e6ab50bd7c4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3
35.571429
83
0.485944
#!/usr/bin/env python3 from os import environ from json import dumps class CloudFoundry: def __init__(self, **kwargs): self.__CF_VARIABLES__ = {'CF_INSTANCE_ADDR': '', 'CF_INSTANCE_GUID': '', 'CF_INSTANCE_INDEX': '', 'CF_INST...
0
0
0
2,394
0
0
0
2
68
f6bbb564e37b6b680c5c92655011416fe930bcbf
2,043
py
Python
vega/__init__.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/__init__.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/__init__.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
28.375
96
0.714146
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
0
0
0
0
0
0
0
4
22
a3fd214bd3ac94e9556d5163c8b69ad52bfd9956
13,033
py
Python
colour/models/tests/test_cie_lab.py
MaxSchambach/colour
3f3685d616fda4be58cec20bc1e16194805d7e2d
[ "BSD-3-Clause" ]
null
null
null
colour/models/tests/test_cie_lab.py
MaxSchambach/colour
3f3685d616fda4be58cec20bc1e16194805d7e2d
[ "BSD-3-Clause" ]
null
null
null
colour/models/tests/test_cie_lab.py
MaxSchambach/colour
3f3685d616fda4be58cec20bc1e16194805d7e2d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour.models.cie_lab` module. """ from __future__ import division, unicode_literals import unittest __author__ = 'Colour Developers' __copyright__ = 'Copyright (C) 2013-2019 - Colour Developers' __license__ = 'New BSD License - https://opensource.org/licenses/...
34.028721
79
0.58559
# -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour.models.cie_lab` module. """ from __future__ import division, unicode_literals import numpy as np import unittest from itertools import permutations from colour.models import XYZ_to_Lab, Lab_to_XYZ, Lab_to_LCHab, LCHab_to_Lab from colour.utilities import...
0
1,482
0
10,662
0
0
0
112
182
84c76c41a480dae4b33646b4f0e6c9ccbdced4c9
17,510
py
Python
letype_extractor.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
letype_extractor.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
letype_extractor.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
import sys, pathlib import pickle from datetime import datetime CONTEXT_WINDOW = 2 DEV = ['ws212', 'ecpa'] TEST = ['cb', 'ecpr', 'jhk', 'jhu', 'tgk', 'tgu', 'psk', 'psu', #'rondane', 'vm32', 'ws213', 'ws214', 'petet', 'wsj23'] IGNORE = ['ntucle', 'omw', 'wlb03', 'wnb03'] NONTRAIN = DEV + TEST + IGNORE ...
46.693333
116
0.525871
from delphin import tdl, itsdb from delphin.tokens import YYTokenLattice import glob, sys, pathlib import json, pickle import numpy as np from collections import OrderedDict import pos_map from datetime import datetime CONTEXT_WINDOW = 2 DEV = ['ws212', 'ecpa'] TEST = ['cb', 'ecpr', 'jhk', 'jhu', 'tgk', 'tgu', 'psk',...
0
0
0
16,271
0
0
0
45
133
e415bab977b01817df0d4c4b2e45aacf11aa8fbf
2,294
py
Python
homeassistant/components/environment_canada/camera.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/environment_canada/camera.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/environment_canada/camera.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for the Environment Canada radar imagery.""" from __future__ import annotations import voluptuous as vol SERVICE_SET_RADAR_TYPE = "set_radar_type" SET_RADAR_TYPE_SCHEMA = { vol.Required("radar_type"): vol.In(["Auto", "Rain", "Snow"]), }
33.246377
79
0.722319
"""Support for the Environment Canada radar imagery.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.camera import Camera from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import ( ...
0
0
671
939
0
0
0
248
180
dfd8028393ae8ae7d4bfcfe8f9c74276b8f956f7
308
py
Python
v1/chapter6/4-readingCsvDict.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
v1/chapter6/4-readingCsvDict.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
v1/chapter6/4-readingCsvDict.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
from urllib.request import urlopen from io import StringIO import csv data = urlopen("http://pythonscraping.com/files/MontyPythonAlbums.csv").read().decode('ascii', 'ignore') dataFile = StringIO(data) dictReader = csv.DictReader(dataFile) print(dictReader.fieldnames) for row in dictReader: print(row)
25.666667
104
0.775974
from urllib.request import urlopen from io import StringIO import csv data = urlopen("http://pythonscraping.com/files/MontyPythonAlbums.csv").read().decode('ascii', 'ignore') dataFile = StringIO(data) dictReader = csv.DictReader(dataFile) print(dictReader.fieldnames) for row in dictReader: print(row)
0
0
0
0
0
0
0
0
0
02ae809d3645a6053bab6f39633b7e2d90bf2e2e
741
py
Python
hash-array-string/1.8-zero-matrix/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
hash-array-string/1.8-zero-matrix/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
hash-array-string/1.8-zero-matrix/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
# Write an algorithm such that if an element in MxN matrix is 0, it's entire row and column are set to 0. matrix = [[1,1,1,1],[1,1,1,1],[1,1,0,1],[1,1,1,1],[1,1,1,0]] matrixZero(matrix) print('\n'.join(['\t'.join([str(cell) for cell in row]) for row in matrix]))
26.464286
105
0.562753
# Write an algorithm such that if an element in MxN matrix is 0, it's entire row and column are set to 0. def rowZero(matrix, row): for i in range(len(matrix[row])): matrix[row][i] = 0 def columnZero(matrix, column): for i in range(len(matrix)): matrix[i][column] = 0 def matrixZero(matrix): ...
0
0
0
0
0
393
0
0
68
d805c677ed9537d580479c240741257bc4c84e5c
4,725
py
Python
src/Class/shadowedrice.py
Jonathan-Browning/Shadowed-Rician-Fading-Python
c1faa061c4d2a253bd1fe7098edc0e21740cb3ea
[ "MIT" ]
2
2021-02-23T15:49:47.000Z
2021-04-24T01:32:42.000Z
src/Class/shadowedrice.py
Jonathan-Browning/Shadowed-Rician-Fading-Python
c1faa061c4d2a253bd1fe7098edc0e21740cb3ea
[ "MIT" ]
null
null
null
src/Class/shadowedrice.py
Jonathan-Browning/Shadowed-Rician-Fading-Python
c1faa061c4d2a253bd1fe7098edc0e21740cb3ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 4 18:55:46 2020 @author: Jonathan Browning """
36.346154
151
0.572275
# -*- coding: utf-8 -*- """ Created on Wed Nov 4 18:55:46 2020 @author: Jonathan Browning """ import numpy as np from scipy.stats import gaussian_kde as kdf from scipy import special as sp class ShadowedRice: numSamples = 2*(10**6) # the number of samples used in the simulation r = np.linspace(0, 6, 6000) ...
0
0
0
4,503
0
0
0
29
90
c00b03a6c58efa0a53f7586ea8d163bb92f588f1
1,063
py
Python
src/ggrc_workflows/migrations/versions/20170925135632_3ebe14ae9547_set_empty_next_cycle_start_date.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_workflows/migrations/versions/20170925135632_3ebe14ae9547_set_empty_next_cycle_start_date.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_workflows/migrations/versions/20170925135632_3ebe14ae9547_set_empty_next_cycle_start_date.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Set empty next_cycle_start_date Create Date: 2017-09-25 13:56:32.087965 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name from alembic i...
29.527778
79
0.664158
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Set empty next_cycle_start_date Create Date: 2017-09-25 13:56:32.087965 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name from alembic i...
0
0
0
0
0
0
0
0
0
a9dd6bbf97a596cde44dca1d194056908053fcb0
29,435
py
Python
test/test_madx.py
odidev/cpymad
7b58d013a669d0973c233743e05fa205257233dd
[ "ECL-2.0", "Apache-2.0" ]
22
2015-05-27T13:45:55.000Z
2022-03-03T15:43:47.000Z
test/test_madx.py
odidev/cpymad
7b58d013a669d0973c233743e05fa205257233dd
[ "ECL-2.0", "Apache-2.0" ]
102
2015-01-23T18:21:29.000Z
2022-02-28T17:07:26.000Z
test/test_madx.py
odidev/cpymad
7b58d013a669d0973c233743e05fa205257233dd
[ "ECL-2.0", "Apache-2.0" ]
18
2015-01-24T12:43:57.000Z
2021-11-23T08:29:57.000Z
""" Tests for the :class:`cpymad.madx.Madx` API. """ import os from pytest import raises from cpymad.madx import Madx SEQU = """ ! constants QP_K1 = 2; ! elements qp: quadrupole, k1:=QP_K1, l=1; sb: sbend, l=2, angle=3.14/4; dr: drift, l=1; ! sequences s1: sequence, l=8, refer=center; dr, at=0.5; ! dr[1] ~ betx_...
29.114738
77
0.592526
""" Tests for the :class:`cpymad.madx.Madx` API. """ import os import sys import numpy as np from numpy.testing import assert_allclose, assert_equal from pytest import approx, fixture, mark, raises import cpymad from cpymad.madx import Madx, Sequence, metadata @fixture def mad(): with Madx(prompt='X:> ') as ma...
0
1,239
0
0
0
23,589
0
55
1,170
beca016de282d8ad828e46810f9fa27aac015a7f
4,852
py
Python
geneticpython/engines/single_objective/single_objective_engine.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
geneticpython/engines/single_objective/single_objective_engine.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
geneticpython/engines/single_objective/single_objective_engine.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
""" File: single_objective_engine.py Author: ngocjr7 Email: ngocjr7@gmail.com Github: https://github.com/ngocjr7 Description: """ from __future__ import absolute_import
38.816
83
0.557708
""" File: single_objective_engine.py Author: ngocjr7 Email: ngocjr7@gmail.com Github: https://github.com/ngocjr7 Description: """ from __future__ import absolute_import from typing import List, Union, Callable from functools import wraps from collections import OrderedDict from ..geneticengine import GeneticEngine ...
0
1,507
0
2,750
0
0
0
178
245
6c1a2218b3975b6c65e1c36ce24d867d86a06bee
517
py
Python
timing.py
darkless456/Python
1ba37d028e4a818ccfffc18682c1bac15554e3ac
[ "MIT" ]
null
null
null
timing.py
darkless456/Python
1ba37d028e4a818ccfffc18682c1bac15554e3ac
[ "MIT" ]
null
null
null
timing.py
darkless456/Python
1ba37d028e4a818ccfffc18682c1bac15554e3ac
[ "MIT" ]
null
null
null
# timing.py import datetime today = datetime.date.today() yesterday = today - datetime.timedelta(days = 1) tomorrow = today + datetime.timedelta(days = 1) print(yesterday, today, tomorrow) # ------------------------- ''' last_friday = datetime.date.today() oneday = datetime.timedelta(days = 1) while last_friday....
19.884615
48
0.659574
# timing.py import datetime, calendar today = datetime.date.today() yesterday = today - datetime.timedelta(days = 1) tomorrow = today + datetime.timedelta(days = 1) print(yesterday, today, tomorrow) # ------------------------- ''' last_friday = datetime.date.today() oneday = datetime.timedelta(days = 1) while la...
0
0
0
0
0
0
0
10
0
1676722d3f346db563fa9c4d25ad5528e4cd54fa
25,385
py
Python
manticore/core/smtlib/visitors.py
Srinivas11789/manticore
af3c6aada811833864efaccef7477f14e9b5e0dd
[ "Apache-2.0" ]
null
null
null
manticore/core/smtlib/visitors.py
Srinivas11789/manticore
af3c6aada811833864efaccef7477f14e9b5e0dd
[ "Apache-2.0" ]
null
null
null
manticore/core/smtlib/visitors.py
Srinivas11789/manticore
af3c6aada811833864efaccef7477f14e9b5e0dd
[ "Apache-2.0" ]
null
null
null
from manticore.utils.helpers import CacheDict import logging logger = logging.getLogger(__name__) constant_folder_simplifier_cache = CacheDict(max_size=150000, flush_perc=25) arithmetic_simplifier_cache = CacheDict(max_size=150000, flush_perc=25)
34.869505
167
0.593146
from manticore.utils.helpers import CacheDict from .expression import * from functools import lru_cache import logging import operator logger = logging.getLogger(__name__) class Visitor(object): ''' Class/Type Visitor Inherit your class visitor from this one and get called on a different visiting f...
0
1,842
0
21,533
0
1,253
0
8
480
34a65f614b2aed9614eeb0a853f10c891d51443b
280
py
Python
account/urls.py
Wizock/CRUD-master
07fbf3c64610a8725724fc934e66c6be35690cc9
[ "CC0-1.0" ]
1
2022-03-13T09:50:04.000Z
2022-03-13T09:50:04.000Z
account/urls.py
Wizock/TodoButBetter
07fbf3c64610a8725724fc934e66c6be35690cc9
[ "CC0-1.0" ]
null
null
null
account/urls.py
Wizock/TodoButBetter
07fbf3c64610a8725724fc934e66c6be35690cc9
[ "CC0-1.0" ]
null
null
null
from django.urls import path urlpatterns = [ path(r'user/<str:usr>/', accountView), path('register_/', register_), ]
23.333333
61
0.739286
from django import urls from django.conf.urls import include, url from django.contrib.auth.forms import AdminPasswordChangeForm from django.urls import path from .views import * urlpatterns = [ path(r'user/<str:usr>/', accountView), path('register_/', register_), ]
0
0
0
0
0
0
0
61
88
eb106290ccfcc64601c7996ff5449b815f8ad55c
1,020
py
Python
pyaibot.py
linsicheng20060818/PythonExercises
dff362b066de54186d8e2a71f0fb6b8fcb1c8f2a
[ "MIT" ]
2
2019-01-05T13:34:08.000Z
2019-01-06T05:33:17.000Z
pyaibot.py
linsicheng20060818/PythonExercises
dff362b066de54186d8e2a71f0fb6b8fcb1c8f2a
[ "MIT" ]
null
null
null
pyaibot.py
linsicheng20060818/PythonExercises
dff362b066de54186d8e2a71f0fb6b8fcb1c8f2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """try: import jieba except: print("please install jieba first.") input("press any key to continue") quit()"""
25.5
73
0.435294
# -*- coding: utf-8 -*- """try: import jieba except: print("please install jieba first.") input("press any key to continue") quit()""" def chchat(a): import jieba v=False #if a=="quit" or a=="exit" or a=="退出" or a=="再见": # import os # exit()#Error list1=jieba.lcut(a)#jieba分...
78
0
0
0
0
822
0
0
22
040bfae6c7070cefcd380adace083b08384a141a
391
py
Python
map_annotate_app/admin.py
tushar-agarwal/WikiNearby
0cc10bdeb1cb0728a6405808cc25f2d9e65dcb95
[ "MIT" ]
2
2018-03-20T21:30:35.000Z
2019-03-19T04:58:42.000Z
map_annotate_app/admin.py
tushar-agarwal/map_annotate
0cc10bdeb1cb0728a6405808cc25f2d9e65dcb95
[ "MIT" ]
2
2016-08-21T13:21:51.000Z
2016-09-07T10:01:24.000Z
map_annotate_app/admin.py
tushar-agarwal/WikiNearby
0cc10bdeb1cb0728a6405808cc25f2d9e65dcb95
[ "MIT" ]
2
2016-10-06T13:47:24.000Z
2017-02-13T23:10:12.000Z
""" This is the C{admin.py} file for C{map_annotate_app}. For more details, see the documentation for C{map_annotate_app}. """ from django.contrib import admin from .models import Crime from .models import CrimeType from .models import Location from .models import Sansad admin.site.register(Location) admin.site.regi...
23
64
0.792839
""" This is the C{admin.py} file for C{map_annotate_app}. For more details, see the documentation for C{map_annotate_app}. """ from django.contrib import admin from .models import Crime from .models import CrimeType from .models import Location from .models import Sansad admin.site.register(Location) admin.site.regi...
0
0
0
0
0
0
0
0
0
81256977bc9b0ff7623132bef93f3ba3fe7872ae
4,444
py
Python
parsers.py
ekiwi/parsers
1837fe8c76b813da7befeee99668ab59b51aaefa
[ "BSD-2-Clause" ]
null
null
null
parsers.py
ekiwi/parsers
1837fe8c76b813da7befeee99668ab59b51aaefa
[ "BSD-2-Clause" ]
null
null
null
parsers.py
ekiwi/parsers
1837fe8c76b813da7befeee99668ab59b51aaefa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018, University of California, Berkeley # author: Kevin Laeufer <laeufer@cs.berkeley.edu> if __name__ == "__main__": g = Grammar() S, B, D, E, F = non_term = g.non_terminal('S', 'B', 'D', 'E', 'F') u, v, w, x, y, z = term = g.terminal('u', 'v', 'w',...
22.789744
81
0.633213
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018, University of California, Berkeley # author: Kevin Laeufer <laeufer@cs.berkeley.edu> from collections import defaultdict class Symbol: def __init__(self, name, bold=False): self.name = name self._bold = bold def __str__(self): if self._bold: ...
2
0
0
3,631
0
0
0
14
161
e6d68e135afb09552ac2f3d818b48fe79807d853
1,387
py
Python
Server.py
louis103/Python-Chat-Application
5212360194236daf5888d296fd71ed92303d7f94
[ "MIT" ]
1
2021-11-22T20:04:16.000Z
2021-11-22T20:04:16.000Z
Server.py
louis103/Python-Chat-Application
5212360194236daf5888d296fd71ed92303d7f94
[ "MIT" ]
null
null
null
Server.py
louis103/Python-Chat-Application
5212360194236daf5888d296fd71ed92303d7f94
[ "MIT" ]
null
null
null
import socket HOST = "127.0.0.1" PORT = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((HOST, PORT)) server.listen() clients = [] nicknames = [] # broadcast func # handle func # receive func print("******Server is running******") receive()
23.508475
72
0.581831
import socket, threading HOST = "127.0.0.1" PORT = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((HOST, PORT)) server.listen() clients = [] nicknames = [] # broadcast func def broadcast(message): for client in clients: client.send(message) # handle fun...
0
0
0
0
0
999
0
11
69
d2d464639fd7c2110b4c254cb34f59661eddfc5e
18,069
py
Python
pypsi/core.py
Rudedog9d/pypsi
38dda442b21b8deb569d61076ab0a19c0e78edc8
[ "0BSD" ]
null
null
null
pypsi/core.py
Rudedog9d/pypsi
38dda442b21b8deb569d61076ab0a19c0e78edc8
[ "0BSD" ]
null
null
null
pypsi/core.py
Rudedog9d/pypsi
38dda442b21b8deb569d61076ab0a19c0e78edc8
[ "0BSD" ]
null
null
null
# # Copyright (c) 2015, Adam Meily <meily.adam@gmail.com> # Pypsi - https://github.com/ameily/pypsi # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # ...
38.363057
96
0.625989
# # Copyright (c) 2015, Adam Meily <meily.adam@gmail.com> # Pypsi - https://github.com/ameily/pypsi # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # ...
0
0
0
14,110
0
0
0
5
115
5050f96a5b09f087a43bfbf366927f7c8ded0262
687
py
Python
2020/6/main.py
klrkdekira/adventofcode
8384d919093712c95b707b8e3f293dbfba22be74
[ "BSD-2-Clause" ]
1
2020-12-01T08:41:55.000Z
2020-12-01T08:41:55.000Z
2020/6/main.py
klrkdekira/adventofcode
8384d919093712c95b707b8e3f293dbfba22be74
[ "BSD-2-Clause" ]
null
null
null
2020/6/main.py
klrkdekira/adventofcode
8384d919093712c95b707b8e3f293dbfba22be74
[ "BSD-2-Clause" ]
null
null
null
QUESTIONS = ['a', 'b', 'c', 'x', 'y', 'z'] if __name__ == '__main__': with open('input') as file: groups = [] group = [] for row in file: row = row.strip() if not row: groups.append(group) group = [] continue ...
24.535714
66
0.519651
QUESTIONS = ['a', 'b', 'c', 'x', 'y', 'z'] def anyone(group): answers = [] for person in group: answers.extend(person) return len(set(answers)) def everyone(group): answers = set.intersection(*(set(person) for person in group)) return len(answers) if __name__ == '__main__': with open(...
0
0
0
0
0
189
0
0
46
62d60dcf7dc46a76d9c2e17fa4e8e062fa646f12
9,440
py
Python
frille-lang/lib/python3.6/site-packages/pathy/gcs.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
null
null
null
frille-lang/lib/python3.6/site-packages/pathy/gcs.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
null
null
null
frille-lang/lib/python3.6/site-packages/pathy/gcs.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
null
null
null
from typing import Any try: from google.api_core import exceptions as gcs_errors # type:ignore from google.auth.exceptions import DefaultCredentialsError # type:ignore from google.cloud.storage import Blob as GCSNativeBlob # type:ignore from google.cloud.storage import Bucket as GCSNativeBucket # t...
34.327273
86
0.584322
from dataclasses import dataclass from typing import Any, Dict, Generator, List, Optional from .base import ( Blob, Bucket, BucketClient, BucketEntry, ClientError, PathyScanDir, PurePathy, ) try: from google.api_core import exceptions as gcs_errors # type:ignore from google.auth.e...
0
1,938
0
6,396
0
0
0
152
160
3deebfeffce2abe1ba44b1052c91bfb62a647fb4
1,750
py
Python
project/both.py
mahmoudabuelnaga/baby-names-scraping
44ded037a4c24306123c4da749e32575eee4afc6
[ "MIT" ]
null
null
null
project/both.py
mahmoudabuelnaga/baby-names-scraping
44ded037a4c24306123c4da749e32575eee4afc6
[ "MIT" ]
null
null
null
project/both.py
mahmoudabuelnaga/baby-names-scraping
44ded037a4c24306123c4da749e32575eee4afc6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import csv import requests links = [] items = [] for i in range(1,38): endpoint = f"https://baby.webteb.com/baby-names/%D8%A7%D8%B3%D9%85%D8%A7%D8%A1-%D8%A7%D9%88%D9%84%D8%A7%D8%AF-%D9%88%D8%A8%D9%86%D8%A7%D8%AA?pageindex={i}" get_response = requests.get(...
29.166667
159
0.630857
# -*- coding: utf-8 -*- from time import sleep from bs4 import BeautifulSoup import csv import requests links = [] items = [] for i in range(1,38): endpoint = f"https://baby.webteb.com/baby-names/%D8%A7%D8%B3%D9%85%D8%A7%D8%A1-%D8%A7%D9%88%D9%84%D8%A7%D8%AF-%D9%88%D8%A8%D9%86%D8%A7%D8%AA?pageindex={i}" get_r...
0
0
0
0
0
0
0
1
22
bb2ad701ba189d46d6b8954c67ceae977de8da75
4,318
py
Python
sde/solvers.py
d-l-fernandes/ito_general
8a9889fa13e5893e923c8d32fd1c94d22aec84d9
[ "MIT" ]
null
null
null
sde/solvers.py
d-l-fernandes/ito_general
8a9889fa13e5893e923c8d32fd1c94d22aec84d9
[ "MIT" ]
null
null
null
sde/solvers.py
d-l-fernandes/ito_general
8a9889fa13e5893e923c8d32fd1c94d22aec84d9
[ "MIT" ]
null
null
null
import jax.numpy as jnp from absl import flags Array = jnp.ndarray flags.DEFINE_enum("solver", "strong_3_halfs", ["euler_maruyama", "strong_3_halfs"], "Solver to use.") FLAGS = flags.FLAGS solvers_dict = { "euler_maruyama": EulerMaruyamaSolver, "strong_3_halfs": Strong3HalfsSolver }
40.35514
117
0.619268
from typing import Tuple import haiku as hk import jax.numpy as jnp import numpyro from absl import flags from numpyro.distributions.continuous import MultivariateNormal from sde import drifts, diffusions Array = jnp.ndarray flags.DEFINE_enum("solver", "strong_3_halfs", ["euler_maruyama", "strong_3_halfs"], "Solver...
0
0
0
3,790
0
0
0
48
181
79cfe256477332ba59823cac9001633a38f29bc4
5,767
py
Python
pysnmp/JUNIPER-SONET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/JUNIPER-SONET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/JUNIPER-SONET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module JUNIPER-SONET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-SONET-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:50:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
128.155556
904
0.752211
# # PySNMP MIB module JUNIPER-SONET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-SONET-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:50:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
0
0
0
954
0
0
0
0
22
74a36f9de503409718965b9b6bc829fa35d95202
190
py
Python
dev.py
LCBRU/batch_demographics
e516e958091fd74dad00b1705431ac030e3c4503
[ "MIT" ]
null
null
null
dev.py
LCBRU/batch_demographics
e516e958091fd74dad00b1705431ac030e3c4503
[ "MIT" ]
null
null
null
dev.py
LCBRU/batch_demographics
e516e958091fd74dad00b1705431ac030e3c4503
[ "MIT" ]
null
null
null
#!/usr/bin/env python from batch_demographics import create_app from config import DevConfig app = create_app(DevConfig()) if __name__ == "__main__": app.run(host="0.0.0.0", port=8000)
23.75
41
0.736842
#!/usr/bin/env python from batch_demographics import create_app from config import DevConfig app = create_app(DevConfig()) if __name__ == "__main__": app.run(host="0.0.0.0", port=8000)
0
0
0
0
0
0
0
0
0
dc71d49cfcda3d4e87c6a2b9fa01e89c155ee69a
151
py
Python
widgetProject/widgetApp/admin.py
cs-fullstack-2019-spring/django-fields-widgets-cw-rsalcido
4b19595867ee38396d0a80bfa0adcd0cb9811d23
[ "Apache-2.0" ]
null
null
null
widgetProject/widgetApp/admin.py
cs-fullstack-2019-spring/django-fields-widgets-cw-rsalcido
4b19595867ee38396d0a80bfa0adcd0cb9811d23
[ "Apache-2.0" ]
null
null
null
widgetProject/widgetApp/admin.py
cs-fullstack-2019-spring/django-fields-widgets-cw-rsalcido
4b19595867ee38396d0a80bfa0adcd0cb9811d23
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import supeHero # Register your models here. admin.site.register(supeHero) # Register your models here.
21.571429
32
0.801325
from django.contrib import admin from .models import supeHero # Register your models here. admin.site.register(supeHero) # Register your models here.
0
0
0
0
0
0
0
0
0
0430b1b3554d1367b14b734250b34ede8b260068
337
py
Python
main.py
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
null
null
null
main.py
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
null
null
null
main.py
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
null
null
null
from easygui.boxes.choice_box import choicebox from phase1 import phase1 from phase2 import phase2 __author__ = 'po0ya' choices = [ 'Phase1', 'Phase2' ] choice = choicebox(msg='Please select project phase:', choices=choices) if choice == choices[0]: phase1() else: phase2()
17.736842
71
0.724036
from easygui.boxes.choice_box import choicebox from easygui.boxes.text_box import textbox from phase1 import phase1 from phase2 import phase2 __author__ = 'po0ya' choices = [ 'Phase1', 'Phase2' ] choice = choicebox(msg='Please select project phase:', choices=choices) if choice == choices[0]: phase1() el...
0
0
0
0
0
0
0
21
22
4471ff0d57c1cc3ec8a60aec1f93edea9763dd0c
2,984
py
Python
saws/data_util.py
Pangeam/saws
5aba511e72bf5feb35eb44be82fbdf805dfe3553
[ "Apache-2.0" ]
5,358
2015-09-18T19:16:11.000Z
2022-03-31T20:40:51.000Z
saws/data_util.py
Pangeam/saws
5aba511e72bf5feb35eb44be82fbdf805dfe3553
[ "Apache-2.0" ]
112
2015-09-10T10:53:57.000Z
2022-03-03T09:32:29.000Z
saws/data_util.py
Pangeam/saws
5aba511e72bf5feb35eb44be82fbdf805dfe3553
[ "Apache-2.0" ]
333
2015-09-18T19:16:13.000Z
2022-03-06T17:27:54.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Donne Martin. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "lice...
35.52381
77
0.610925
# -*- coding: utf-8 -*- # Copyright 2015 Donne Martin. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "lice...
0
0
0
2,200
0
0
0
2
71