hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
0fcc6d24d3d335350d5fc8d0e26b2a5c90342944
2,304
py
Python
myproject/products/views.py
abhishekmorya/django-rest-assignment
069fedafa2ba92e06157441500cd3f1fecf450e9
[ "MIT" ]
null
null
null
myproject/products/views.py
abhishekmorya/django-rest-assignment
069fedafa2ba92e06157441500cd3f1fecf450e9
[ "MIT" ]
null
null
null
myproject/products/views.py
abhishekmorya/django-rest-assignment
069fedafa2ba92e06157441500cd3f1fecf450e9
[ "MIT" ]
null
null
null
from rest_framework import viewsets, filters, mixins from rest_framework.response import Response from products import models from products import serializers class CategoryApiView(viewsets.ReadOnlyModelViewSet): """API View for Category""" serializer_class = serializers.CategorySerializer queryset...
31.135135
121
0.691406
2,129
0.924045
0
0
0
0
0
0
228
0.098958
0fcd071e5471654de2c169fc870632e566ae5177
302
py
Python
R function.py
haideraheem/Simple-Python-Programs
dc0a71e88adc7323d46e75168e8fd2db97eea775
[ "CC0-1.0" ]
null
null
null
R function.py
haideraheem/Simple-Python-Programs
dc0a71e88adc7323d46e75168e8fd2db97eea775
[ "CC0-1.0" ]
null
null
null
R function.py
haideraheem/Simple-Python-Programs
dc0a71e88adc7323d46e75168e8fd2db97eea775
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 6 17:11:11 2018 @author: Haider Raheem """ a= float(input("Type a : ")) b= float(input("Type b : ")) c= float(input("Type c : ")) x= (a*b)+(b*c)+(c*a) y= (a+b+c) r= x/y print( ) print("The result of the calculation is {0:.2f}".format(r))
20.133333
59
0.539735
0
0
0
0
0
0
0
0
170
0.562914
0fce3a1010ed62a22f3091187ec07f0057d5fa5a
449
py
Python
src/selectedtests/app/controllers/health_controller.py
isabella232/selected-tests
890cd5f39f5571d50f0406b4c25a1a2eef1006a3
[ "Apache-2.0" ]
2
2020-04-13T11:26:57.000Z
2022-01-21T00:03:52.000Z
src/selectedtests/app/controllers/health_controller.py
mongodb/selected-tests
467f71f1d45b06ac3cc5db252f18658f8cd93083
[ "Apache-2.0" ]
54
2019-09-26T18:56:34.000Z
2022-03-12T01:07:00.000Z
src/selectedtests/app/controllers/health_controller.py
isabella232/selected-tests
890cd5f39f5571d50f0406b4c25a1a2eef1006a3
[ "Apache-2.0" ]
6
2019-10-01T14:24:27.000Z
2020-02-13T15:53:47.000Z
"""Controller for the health endpoints.""" from fastapi import APIRouter from pydantic import BaseModel router = APIRouter() class HealthCheckResponse(BaseModel): """Model for health check responses.""" online: bool @router.get("", response_model=HealthCheckResponse, description="Health check endpoint") d...
24.944444
88
0.74833
99
0.22049
0
0
218
0.485523
0
0
150
0.334076
0fce4b175efd342362c8eca2117758091061c40c
1,533
py
Python
Client/message/friend.py
Ricky-Hao/IMPK-Client
791150a43fff157aa439716d63d6c4fece912b85
[ "MIT" ]
null
null
null
Client/message/friend.py
Ricky-Hao/IMPK-Client
791150a43fff157aa439716d63d6c4fece912b85
[ "MIT" ]
1
2018-06-01T07:45:03.000Z
2018-06-01T07:45:03.000Z
Server/message/friend.py
Ricky-Hao/IMPK-Server
786e24269e7cc506a82ae8aa0fa0d1df8c478f51
[ "MIT" ]
null
null
null
from .base import BaseMessage class FriendMessage(BaseMessage): def __init__(self, data=None): super().__init__(data) def _init_type(self): self.type = 'FriendMessage' def _parse_dict(self, data): super()._parse_dict(data) self.friend_list = data.get('friend_list') de...
25.131148
50
0.632094
1,493
0.973907
0
0
0
0
0
0
173
0.112851
0fcf0420d2785cb7b20ebd33760e3ab694e85c59
424
py
Python
Pyon exercicios/Exercicios/066.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/066.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/066.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
'''Crie um programa que leia varios numeros inteiros o programa so vai parar qunado o usuario digitar 999 no final mostre a soma entre eles e quanto foram digitados''' soma = total = 0 while True: valor = int(input('## 999 para parar ###\n' 'Digite um valor: ')) if valor == 999: ...
30.285714
65
0.632075
0
0
0
0
0
0
0
0
270
0.635294
0fd0370ba84af5ab763ef6f4203eaefec7cafeb5
920
py
Python
bookorbooks/account/migrations/0008_auto_20210714_1507.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
1
2021-08-10T22:24:17.000Z
2021-08-10T22:24:17.000Z
bookorbooks/account/migrations/0008_auto_20210714_1507.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
null
null
null
bookorbooks/account/migrations/0008_auto_20210714_1507.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-14 15:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0007_alter_childlist_child'), ] operations = [ migrations.Alter...
35.384615
202
0.686957
765
0.827922
0
0
0
0
0
0
176
0.190476
0fd0f45ffc164fd1edab2aac24bb0c9ae2c48124
9,600
py
Python
src/subpackages/ts_process/shape.py
cfiscella/PredictionIntervals
45c66bcea5a3e022f995155e1ec39f63602ef836
[ "CC0-1.0" ]
null
null
null
src/subpackages/ts_process/shape.py
cfiscella/PredictionIntervals
45c66bcea5a3e022f995155e1ec39f63602ef836
[ "CC0-1.0" ]
null
null
null
src/subpackages/ts_process/shape.py
cfiscella/PredictionIntervals
45c66bcea5a3e022f995155e1ec39f63602ef836
[ "CC0-1.0" ]
null
null
null
import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler,StandardScaler def shape_data(df,window): ''' Returns Numpy array of dimension (len(df),window,len(df.columns)). Creates features from lags of time series to be used for modeling. Parameters: ...
33.217993
137
0.613125
8,276
0.862083
0
0
1,195
0.124479
0
0
4,069
0.423854
0fd3b9d2e66fa26e441f1b047f98378e175a4aff
231
py
Python
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
# Programa Principal def teste(): x = 8 print(f'Na função teste, n vale {n}') print(f'Na função teste x vale {x}') n = 2 print(f'No programa principal, n vale {n}') teste() print(f'No programa principal, x vale {x}')
19.25
43
0.632035
0
0
0
0
0
0
0
0
155
0.659574
0fd50bc80b73f1b79ad3d2b0a5d73fc990d6ecb3
2,813
py
Python
test/test_conf.py
nandub/Limnoria
406369d53f4374f34c7879e3fb5e700290fd655d
[ "BSD-3-Clause" ]
476
2015-01-04T17:42:59.000Z
2021-08-13T07:40:54.000Z
test/test_conf.py
nandub/Limnoria
406369d53f4374f34c7879e3fb5e700290fd655d
[ "BSD-3-Clause" ]
491
2015-01-01T04:12:23.000Z
2021-08-12T19:24:47.000Z
test/test_conf.py
nandub/Limnoria
406369d53f4374f34c7879e3fb5e700290fd655d
[ "BSD-3-Clause" ]
203
2015-01-02T18:29:43.000Z
2021-08-15T12:52:22.000Z
## # 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 of conditions, and the following disclaimer. # * Redistributions in binar...
46.883333
79
0.721649
1,163
0.413438
0
0
0
0
0
0
1,607
0.571276
0fd589de07960b791ebcad0f71b8f53fb13dc4c1
8,100
py
Python
app/model.py
tai-calg/gameserver
c768df2d4064a02f6e8d810a13bb410fe79b73ac
[ "MIT" ]
null
null
null
app/model.py
tai-calg/gameserver
c768df2d4064a02f6e8d810a13bb410fe79b73ac
[ "MIT" ]
null
null
null
app/model.py
tai-calg/gameserver
c768df2d4064a02f6e8d810a13bb410fe79b73ac
[ "MIT" ]
null
null
null
# flake8: noqa import json from unicodedata import name import uuid from enum import Enum, IntEnum from typing import Optional from unittest import result from fastapi import HTTPException from pydantic import BaseModel from sqlalchemy import text, true from sqlalchemy.exc import NoResultFound from .db import engi...
31.640625
139
0.628642
1,257
0.148898
0
0
0
0
0
0
2,564
0.303719
0fd5c7be4c5a1f2321b0b0ac62b726398b53d739
9,256
py
Python
gwlfe/StreamBank.py
rajadain/gwlf-e
ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3
[ "Apache-2.0" ]
null
null
null
gwlfe/StreamBank.py
rajadain/gwlf-e
ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3
[ "Apache-2.0" ]
null
null
null
gwlfe/StreamBank.py
rajadain/gwlf-e
ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import unicode_literals """ Imported from StreamBank.bas """ import logging from .Input.LandUse.AreaTotal import AreaTotal_f from .Input.LandUse.Ag.AGSTRM import AGSTRM_f from .Input.LandUse.Ag.TileDrain impo...
55.095238
120
0.529927
0
0
0
0
0
0
0
0
389
0.042027
0fd5e6f3f66c1554a2c4b98d1a2b4ec336d45014
9,911
py
Python
AutoGraphModel.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
AutoGraphModel.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
AutoGraphModel.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
import argparse import os import time import torch from filelock import FileLock from ModelAPPNP import main_model_appnp from ModelAPPNP2 import main_model_appnp as main_model_appnp_2 from ModelAPPNP3 import main_model_appnp as main_model_appnp_3 from ModelAPPNP4 import main_model_appnp as main_model_appnp_4 from Mod...
43.853982
78
0.469277
0
0
0
0
0
0
0
0
571
0.057014
0fd75150c1f5d87b82715934f3f7080f5c7083b4
911
py
Python
green_snake/files.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
green_snake/files.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
green_snake/files.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
import os # import sys # from shutil import copyfile # import time def getFilesFromFolder(path): files = [] # r=root, d=directories, f = files for r, d, f in os.walk("./resources/"+path): for file in f: if not file.startswith(".") and file.endswith(".msg"): # ".msg" in file: ...
26.028571
85
0.551043
0
0
0
0
0
0
0
0
251
0.275521
0fd79666aa25c652123a40af64c4ed01d1f4c30c
266
py
Python
feedzero/users/urls.py
dammitjim/badfeed
10e0059ff4af36ea2ff67e93a8e3bbb342137af9
[ "Apache-2.0" ]
null
null
null
feedzero/users/urls.py
dammitjim/badfeed
10e0059ff4af36ea2ff67e93a8e3bbb342137af9
[ "Apache-2.0" ]
17
2020-02-12T00:04:15.000Z
2021-09-08T01:03:15.000Z
feedzero/users/urls.py
dammitjim/badfeed
10e0059ff4af36ea2ff67e93a8e3bbb342137af9
[ "Apache-2.0" ]
null
null
null
from django.urls import include, path from feedzero.users.views import LogoutView app_name = "users" urlpatterns = [ path("logout/", LogoutView.as_view(), name="logout"), path("integrations/pocket/", include("feedzero.users.integrations.pocket.urls")), ]
24.181818
85
0.729323
0
0
0
0
0
0
0
0
87
0.327068
0fdab97e2573fd7c25a3583d3b5d334aba1173ee
1,067
py
Python
allies/serializers.py
PaulLerner/Allies
478a85d0b98b4865854b52585563e0e42855b101
[ "MIT" ]
null
null
null
allies/serializers.py
PaulLerner/Allies
478a85d0b98b4865854b52585563e0e42855b101
[ "MIT" ]
null
null
null
allies/serializers.py
PaulLerner/Allies
478a85d0b98b4865854b52585563e0e42855b101
[ "MIT" ]
null
null
null
import numpy as np import pickle import struct class Serializer: def serialize(self, model): """ Serialize a model dict to a string of uint8 bytes :param model: a dict with model components :return: a np.array of uint8 """ raise NotImplementedError def deseria...
27.358974
81
0.633552
1,015
0.951265
0
0
0
0
0
0
458
0.429241
0fdb5547d3cde19752322b1bda55d95a8e7a5cba
907
py
Python
examples/example_1.py
alfredocarella/code-for-the-world
00e27ad07f6a3d90b7aea860477e69b0903ebc0f
[ "MIT" ]
12
2018-09-10T10:02:20.000Z
2020-11-18T14:45:38.000Z
examples/example_1.py
GenevieveBuckley/2019-organizing-documenting-distributing
6aa28c927a8287b1643fc1ec22bee26a2458861e
[ "MIT" ]
5
2018-09-01T21:37:29.000Z
2018-09-04T10:26:40.000Z
examples/example_1.py
GenevieveBuckley/2019-organizing-documenting-distributing
6aa28c927a8287b1643fc1ec22bee26a2458861e
[ "MIT" ]
39
2018-09-04T07:12:11.000Z
2019-01-22T02:43:15.000Z
# -*- coding: utf-8 -*- """Example 1: Load and plot airfoil coordinates """ import os import matplotlib.pyplot as plt from mypack.utils.io import read_selig from mypack.utils.plotting import plot_airfoil def example_1(): """Run example 1""" # script inputs mod_path = os.path.dirname(os.path.abspath(__fi...
26.676471
78
0.662624
0
0
0
0
0
0
0
0
342
0.377067
0fdb6608181bfaf00540c064efdd68d60f72786d
805
py
Python
myenv/lib/python2.7/site-packages/tests/admin.py
dkumarlinux/saleor
e3a852fed7da38e4141b0755bd282012f508c7b9
[ "BSD-3-Clause" ]
1
2020-08-12T23:07:29.000Z
2020-08-12T23:07:29.000Z
tests/admin.py
theskumar/django-versatileimagefield
6ad1c959e9273f306ea7ee206ebd56a44f8e783d
[ "MIT" ]
2
2022-02-10T16:51:56.000Z
2022-02-10T18:23:52.000Z
myenv/lib/python2.7/site-packages/tests/admin.py
dkumarlinux/saleor
e3a852fed7da38e4141b0755bd282012f508c7b9
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.forms import ModelForm from versatileimagefield.widgets import VersatileImagePPOISelectWidget from .models import VersatileImageTestModel, VersatileImageWidgetTestModel class VersatileImageTestModelForm(ModelForm): class Meta: model = VersatileImageTestModel...
25.967742
74
0.719255
455
0.565217
0
0
0
0
0
0
85
0.10559
0fdc6d066514fd2d0d0042fd11414cdfb0f5228a
1,278
py
Python
alembic/versions/9cae282981fd_waze_object_ended_at.py
shaysw/anyway
35dec531fd4ac79c99d09e684027df017e989ddc
[ "MIT" ]
69
2015-03-30T17:09:46.000Z
2021-08-15T16:45:47.000Z
alembic/versions/9cae282981fd_waze_object_ended_at.py
shaysw/anyway
35dec531fd4ac79c99d09e684027df017e989ddc
[ "MIT" ]
1,368
2015-01-12T16:33:52.000Z
2022-03-31T21:10:18.000Z
alembic/versions/9cae282981fd_waze_object_ended_at.py
shaysw/anyway
35dec531fd4ac79c99d09e684027df017e989ddc
[ "MIT" ]
277
2015-02-16T17:52:06.000Z
2022-02-16T18:06:44.000Z
"""waze object ended at Revision ID: 9cae282981fd Revises: cac481832078 Create Date: 2020-10-20 18:34:54.574378 """ # revision identifiers, used by Alembic. revision = '9cae282981fd' down_revision = 'cac481832078' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade():...
36.514286
125
0.741002
0
0
0
0
0
0
0
0
757
0.592332
0fdc8f057905c0da9456649de2bde8f06dd894eb
1,984
py
Python
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class ObjectStatusEnum(object): """Implementation of the 'ObjectStatus' enum. Specifies the status of an object during a Restore Task. 'kFilesCloned' indicates that the cloning has completed. 'kFetchedEntityInfo' indicates that information about ...
34.807018
73
0.724294
1,926
0.970766
0
0
0
0
0
0
1,768
0.891129
0fddc62ea325581552c6947e7972d2b82e89eb9b
18,191
py
Python
apps/backend/components/collections/base.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
31
2021-07-28T13:06:11.000Z
2022-03-10T12:16:44.000Z
apps/backend/components/collections/base.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
483
2021-07-29T03:17:44.000Z
2022-03-31T13:03:04.000Z
apps/backend/components/collections/base.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
29
2021-07-28T13:06:21.000Z
2022-03-25T06:18:18.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
40.878652
119
0.678522
16,479
0.853613
0
0
6,360
0.329448
0
0
4,063
0.210464
0fdf08782d0c6126eba111656026fe30af178bba
389
py
Python
warpworks/views/index.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/views/index.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/views/index.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from pyramid.view import view_config from pyweaving.generators.twill import twill @view_config(route_name='index', renderer='index.html') def index_view(request): draft = twill(2, warp_color=(200, 0, 0), ...
32.416667
69
0.722365
0
0
0
0
194
0.498715
0
0
19
0.048843
0fdf761292ed2657c4ca262e9905100c59129c2e
3,291
py
Python
linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py
dproc/trex_odp_porting_integration
84d5f27a7eab8186b68c5a2b1409d3d0f41f859b
[ "Apache-2.0" ]
null
null
null
linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py
dproc/trex_odp_porting_integration
84d5f27a7eab8186b68c5a2b1409d3d0f41f859b
[ "Apache-2.0" ]
null
null
null
linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py
dproc/trex_odp_porting_integration
84d5f27a7eab8186b68c5a2b1409d3d0f41f859b
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import sys if sys.hexversion < 0x020400f0: from sets import Set as set from waflib import Utils,Task,Options,Logs,Errors from waflib.TaskGen import before_method,after_method,...
33.581633
102
0.726831
301
0.091462
0
0
0
0
0
0
799
0.242783
0fdf80104584efaaae23ea389313ea17858895b0
1,806
py
Python
fbpmp/utils/abstract_file_ctx.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/utils/abstract_file_ctx.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/utils/abstract_file_ctx.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import contextlib import os import pathlib from fbpcp.service.storage_s3 import S3StorageService from fbpmp.utils.buff...
34.075472
86
0.668882
0
0
0
0
0
0
0
0
300
0.166113
0fe028e53da10f567941d0206c9d2ffff90acae0
418
py
Python
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
19
2019-04-02T11:46:45.000Z
2022-03-21T03:38:56.000Z
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
12
2019-08-17T05:55:23.000Z
2022-02-10T07:37:38.000Z
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
6
2019-11-20T15:12:38.000Z
2022-03-21T03:36:44.000Z
import time from typing import Callable from functools import wraps def timeit(metric_callback: Callable, **labels): def wrapper(func): @wraps(func) def func_wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) metric_callback(time.time()...
26.125
63
0.62201
0
0
0
0
220
0.526316
0
0
0
0
0fe195d068b46848f6a4f6f2244542d3be9fe7d3
930
py
Python
tests/test_build.py
polishmatt/swp
e54a8f4ed13a48dd3a385c6d312edd6e4c86724a
[ "MIT" ]
1
2017-02-13T23:09:46.000Z
2017-02-13T23:09:46.000Z
tests/test_build.py
polishmatt/swp
e54a8f4ed13a48dd3a385c6d312edd6e4c86724a
[ "MIT" ]
16
2016-11-03T02:50:17.000Z
2017-01-24T04:35:42.000Z
tests/test_build.py
polishmatt/stawp
e54a8f4ed13a48dd3a385c6d312edd6e4c86724a
[ "MIT" ]
null
null
null
import unittest import filecmp from stawp.build import Builder class TestBuild(unittest.TestCase): def build_fixture(self, name, description): dest='/tmp/swp' source='tests/fixtures/%s/src' % name builder = Builder(dist=dest, base=source) builder.interpret() builder.render...
34.444444
129
0.658065
863
0.927957
0
0
0
0
0
0
251
0.269892
0fe287ed47660782eaba77ed18083c4847e2daf2
1,721
py
Python
ARP-SPOOF.py
DEMON1A/ARP-SP00FER
a5fac4fd1da1f095ea1d09bd0b1708edfd63391c
[ "MIT" ]
2
2019-10-22T20:49:04.000Z
2019-10-22T21:05:12.000Z
ARP-SPOOF.py
DEMON1A/ARP-SP00FER
a5fac4fd1da1f095ea1d09bd0b1708edfd63391c
[ "MIT" ]
null
null
null
ARP-SPOOF.py
DEMON1A/ARP-SP00FER
a5fac4fd1da1f095ea1d09bd0b1708edfd63391c
[ "MIT" ]
null
null
null
# Start Imports. import scapy.all as scapy import time , sys def Banner(): # One Line Banner Ban = "\t\t\t\t\t[+] << ARP-SP00F (MITM) >> [+]" print(Ban) Banner() Address = input("\nTarget IP >> ") MainIP = input("Network IP >> ") Packets = 0 def MAC_SCAN(ip): arp = scapy.ARP(pdst=ip) broadcast =...
33.745098
118
0.684486
0
0
0
0
0
0
0
0
622
0.361418
0fe648b3645c63c3137ac9f66876140376501f31
3,513
py
Python
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
5
2020-12-20T16:12:18.000Z
2022-03-29T09:56:34.000Z
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
9
2020-09-25T08:27:41.000Z
2022-01-03T08:41:48.000Z
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
2
2020-09-18T17:32:38.000Z
2020-10-13T13:34:38.000Z
from urllib.parse import urlencode from ebrains_drive.files import SeafDir, SeafFile from ebrains_drive.utils import raise_does_not_exist class Repo(object): """ A seafile library """ def __init__(self, client, **kwargs): self.client = client allowed_keys = ['encrypted', 'group_name', ...
34.441176
380
0.618275
3,371
0.959579
0
0
1,119
0.318531
0
0
1,566
0.445773
0fe7f5a0d2d6cc56f2638823285b05af4eeb1e16
765
py
Python
dice_vtk/geometries/regularPolygon.py
dicehub/dice_vtk
ab8d9f34ae359461db5687d05bf38548bbaca6ea
[ "MIT" ]
null
null
null
dice_vtk/geometries/regularPolygon.py
dicehub/dice_vtk
ab8d9f34ae359461db5687d05bf38548bbaca6ea
[ "MIT" ]
null
null
null
dice_vtk/geometries/regularPolygon.py
dicehub/dice_vtk
ab8d9f34ae359461db5687d05bf38548bbaca6ea
[ "MIT" ]
null
null
null
# External modules # ================ from vtk import vtkRegularPolygonSource # DICE modules # ============ from .simple_geometry import SimpleGeometry from .geometry_base import GeometryProperty class RegularPolygon(SimpleGeometry): def __init__(self, name='RegularPolygon', **kwargs): super().__init__(n...
24.677419
56
0.686275
565
0.738562
0
0
357
0.466667
0
0
80
0.104575
0fe8f61e2798227c0a5f37e919ed4b4d1165a3cb
3,411
py
Python
setup.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
null
null
null
setup.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
22
2020-06-22T19:27:50.000Z
2021-09-30T20:02:31.000Z
setup.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
2
2020-06-16T17:38:46.000Z
2021-08-06T09:37:22.000Z
# python setup.py build_ext --inplace import importlib import os import pathlib from setuptools import Extension, setup from setuptools.command.build_ext import build_ext as build_ext_orig # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "READM...
31.293578
98
0.635884
1,169
0.342715
0
0
0
0
0
0
1,397
0.409557
0fea9e84390ca4337814033e2de20494658f11f0
6,823
py
Python
src/commands/ctx.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
2
2021-08-17T15:04:38.000Z
2021-12-28T15:41:42.000Z
src/commands/ctx.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
7
2021-08-24T07:53:19.000Z
2022-01-26T20:45:24.000Z
src/commands/ctx.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
2
2021-07-15T16:19:44.000Z
2022-01-19T20:25:30.000Z
import os from pathlib import Path from src.git import find_existing_worktree, get_worktree_list_flat from src.tmux import get_current_panel, is_inside_tmux import subprocess import click from termcolor import colored from src.util import get_valid_filename @click.command() @click.argument( "name", type=click.S...
30.596413
102
0.628463
0
0
0
0
5,548
0.813132
0
0
2,625
0.384728
0feb0c6e6241aa5986054baa7aa3874ebe9efe97
4,313
py
Python
code/biases_generation/biases_generation.py
commonsense-exception/commonsense-exception
ab83323a2d566f49b6de7b4b06c3c338ceec895f
[ "MIT" ]
null
null
null
code/biases_generation/biases_generation.py
commonsense-exception/commonsense-exception
ab83323a2d566f49b6de7b4b06c3c338ceec895f
[ "MIT" ]
null
null
null
code/biases_generation/biases_generation.py
commonsense-exception/commonsense-exception
ab83323a2d566f49b6de7b4b06c3c338ceec895f
[ "MIT" ]
null
null
null
import pandas as pd import sys, argparse import importlib.util from tqdm import tqdm NUM_SELECTING = 10 def parse_args(): parser = argparse.ArgumentParser(description='arguments for generating biases') parser.add_argument('-top', help="Size of intersection of interest", default=10) parser.add_argument('-d...
43.565657
124
0.664735
0
0
0
0
0
0
0
0
1,648
0.382101
0feb6e540faea9556a7188bf2180fcd15abce9ef
1,279
py
Python
qf_lib/documents_utils/document_exporting/element/custom.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/documents_utils/document_exporting/element/custom.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/documents_utils/document_exporting/element/custom.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
38.757576
78
0.715403
409
0.319282
0
0
0
0
0
0
790
0.616706
0feb7089dc2957a91fab8aa02b4296dd72cb381a
214
py
Python
api/urls.py
GHImplementationTeam/referrals
fe00e97e208f0d6e451653cd1586f51b4a3e9720
[ "MIT" ]
null
null
null
api/urls.py
GHImplementationTeam/referrals
fe00e97e208f0d6e451653cd1586f51b4a3e9720
[ "MIT" ]
null
null
null
api/urls.py
GHImplementationTeam/referrals
fe00e97e208f0d6e451653cd1586f51b4a3e9720
[ "MIT" ]
null
null
null
from django.conf.urls import url import referrals urlpatterns = [ url(r'^referrals/$', referrals.ReferralsView.as_view()), url(r'^referral/(?P<referral_id>[-&\w]+)/$', referrals.ReferralView.as_view()), ]
26.75
83
0.691589
0
0
0
0
0
0
0
0
54
0.252336
0febcd6f09e5ceb6936fd4c607ad690f91da7471
194
py
Python
venv/webscrap_teste.py
pgfjunior/teste_web_scraping
fb8de63863287c9714a49849c9e2866def65f068
[ "MIT" ]
null
null
null
venv/webscrap_teste.py
pgfjunior/teste_web_scraping
fb8de63863287c9714a49849c9e2866def65f068
[ "MIT" ]
null
null
null
venv/webscrap_teste.py
pgfjunior/teste_web_scraping
fb8de63863287c9714a49849c9e2866def65f068
[ "MIT" ]
null
null
null
import urllib.request from bs4 import BeautifulSoup page = urllib.request.urlopen('https://www.dentalcremer.com.br/') soup = BeautifulSoup(page, "html.parser") print(soup.find_all('table'))
19.4
65
0.757732
0
0
0
0
0
0
0
0
54
0.278351
0fed33d3830cf5a78951341d11b17322020b73f1
18,691
py
Python
datasets/ner_dataset.py
saiajaym/MetaLearningForNER
88009aa478645685e5bacef762e896c9ca1ecad9
[ "MIT" ]
3
2021-05-12T15:16:02.000Z
2021-11-02T05:23:56.000Z
datasets/ner_dataset.py
saiajaym/MetaLearningForNER
88009aa478645685e5bacef762e896c9ca1ecad9
[ "MIT" ]
2
2021-08-07T01:59:57.000Z
2022-03-23T09:46:30.000Z
datasets/ner_dataset.py
saiajaym/MetaLearningForNER
88009aa478645685e5bacef762e896c9ca1ecad9
[ "MIT" ]
2
2020-12-27T22:31:14.000Z
2021-04-02T17:36:35.000Z
import itertools import json import os import random from collections import defaultdict, Counter from tqdm.auto import tqdm, trange from torch.nn import CrossEntropyLoss from torch.utils import data import numpy as np from datasets import utils class NERSampler: def __init__(self, dataset, labels, label_map, n...
37.307385
123
0.569311
15,934
0.852496
0
0
2,571
0.137553
0
0
4,493
0.240383
0fedad77ac88f1a6c75d6f7e75f5be3e0ab52f87
1,994
py
Python
tests/test_testoot/conftest.py
sobolevn/testoot
bd1c19da6a232b1599836275c5026661a41e3c4a
[ "MIT" ]
2
2020-04-19T13:48:32.000Z
2020-05-02T17:43:55.000Z
tests/test_testoot/conftest.py
sobolevn/testoot
bd1c19da6a232b1599836275c5026661a41e3c4a
[ "MIT" ]
14
2020-05-02T16:31:57.000Z
2020-05-10T20:07:58.000Z
tests/test_testoot/conftest.py
aptakhin/regress
83e07b2cd745f5f5dc733edbd126bedbb5b2abf3
[ "MIT" ]
1
2020-05-20T12:04:12.000Z
2020-05-20T12:04:12.000Z
from typing import Optional import pytest from testoot.base import TestootContext, Comparator, TestootSerializer, \ FileType, TestootTestResult from testoot.ext.pytest import PytestContext from testoot.testoot import Testoot from tests.conftest import AbcDiffResult @pytest.fixture(scope='module') def base_testo...
29.323529
73
0.69007
1,323
0.66349
318
0.159478
555
0.278335
0
0
28
0.014042
0fee2372d6f0f14e825a2cb46d667f12dbab810f
1,109
py
Python
peptidemapper/src/pepmapperapp/migrations/0002_mapperautocomplete.py
uvic-proteincentre/MRMAssayDB
12b19a2064fe9b8006f6457500c9cb79b1b829ed
[ "Apache-2.0" ]
null
null
null
peptidemapper/src/pepmapperapp/migrations/0002_mapperautocomplete.py
uvic-proteincentre/MRMAssayDB
12b19a2064fe9b8006f6457500c9cb79b1b829ed
[ "Apache-2.0" ]
null
null
null
peptidemapper/src/pepmapperapp/migrations/0002_mapperautocomplete.py
uvic-proteincentre/MRMAssayDB
12b19a2064fe9b8006f6457500c9cb79b1b829ed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pepmapperapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='MapperAutoComplete', ...
35.774194
114
0.574391
1,000
0.901713
0
0
0
0
0
0
171
0.154193
0fefc8f742a0c3f16da7678d4d39eaa122d3604d
669
py
Python
stream/utils.py
maddevsio/yourcast-web
c3e897f28dc16f71e4f625564270c0d3b72fa53f
[ "MIT" ]
8
2017-05-12T10:08:03.000Z
2020-12-22T00:01:39.000Z
stream/utils.py
maddevsio/yourcast-web
c3e897f28dc16f71e4f625564270c0d3b72fa53f
[ "MIT" ]
null
null
null
stream/utils.py
maddevsio/yourcast-web
c3e897f28dc16f71e4f625564270c0d3b72fa53f
[ "MIT" ]
6
2017-05-12T13:35:43.000Z
2021-08-09T13:43:31.000Z
# -*- coding: utf-8 -*- import json from random import shuffle def serialize_stream(stream): items = stream.youtube_links.split("\n") if stream.play_random: shuffle(items) return { "id": stream.pk, "name": stream.name, "slug": stream.slug, "keywords": stream.keywords...
25.730769
52
0.593423
0
0
0
0
0
0
0
0
147
0.219731
0ff35978def3b7c4ac27b01bea75d781f15a6451
1,753
py
Python
laterpay/compat.py
laterpay/laterpay-client-python
c75e13408f6900202108f52e386e1c8c719e5377
[ "MIT" ]
3
2015-09-16T13:32:41.000Z
2015-09-16T15:10:20.000Z
laterpay/compat.py
laterpay/laterpay-client-python
c75e13408f6900202108f52e386e1c8c719e5377
[ "MIT" ]
81
2015-02-05T07:05:50.000Z
2020-06-02T11:27:24.000Z
laterpay/compat.py
laterpay/laterpay-client-python
c75e13408f6900202108f52e386e1c8c719e5377
[ "MIT" ]
1
2016-12-14T12:26:38.000Z
2016-12-14T12:26:38.000Z
# -*- coding: utf-8 -*- import warnings import six def encode_if_unicode(value, encoding='utf-8'): # pragma: no cover """ Encode and return a ``value`` using specified ``encoding``. Encoding is done only if ``value`` is a ``unicode`` instance (utf-8 encoding is used as default). .. deprecated:...
29.216667
78
0.649173
0
0
0
0
0
0
0
0
1,048
0.597832
0ff3a9bcd7a1323504d7ab075a98f49049806831
832
py
Python
main.py
irahorecka/craigslist-housing-subscription
389c325dc30526eaed4c2333f5dd4d60d7939a13
[ "MIT" ]
null
null
null
main.py
irahorecka/craigslist-housing-subscription
389c325dc30526eaed4c2333f5dd4d60d7939a13
[ "MIT" ]
null
null
null
main.py
irahorecka/craigslist-housing-subscription
389c325dc30526eaed4c2333f5dd4d60d7939a13
[ "MIT" ]
null
null
null
""" Main file to find and send user Craigslist housing posts. """ import time import users import posts import mail def main(): """Main app to execute subscription based email notifications.""" users_json = users.get_users() # At start of subscription, drop all content and populate db without sending ema...
26
88
0.661058
0
0
0
0
0
0
0
0
361
0.433894
0ff3aa2c46383feaa45de6cad4e80e2f67da3cda
790
py
Python
python/1469_Find_All_Lonely_Nodes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/1469_Find_All_Lonely_Nodes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/1469_Find_All_Lonely_Nodes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def getLonelyNodes(self, root: TreeNode) -> List[int]: lonely_nodes = [] def dfs(no...
28.214286
58
0.486076
598
0.756962
0
0
0
0
0
0
186
0.235443
0ff63aac37f72e1d8009c51dfe97ba6cd5e1b4db
4,069
py
Python
models/discrete_models/compression/compress_N_fast.py
openworm/behavioral_syntax
afc7c9866c23bb5d6ff05c8cddf5abec7f17a8d4
[ "MIT" ]
3
2017-08-15T19:33:13.000Z
2021-03-06T16:37:15.000Z
models/discrete_models/compression/compress_N_fast.py
AidanRocke/behavioral_syntax_in_Python
afc7c9866c23bb5d6ff05c8cddf5abec7f17a8d4
[ "MIT" ]
31
2015-07-05T02:28:44.000Z
2016-02-17T06:47:45.000Z
models/discrete_models/compression/compress_N_fast.py
AidanRocke/behavioral_syntax_in_Python
afc7c9866c23bb5d6ff05c8cddf5abec7f17a8d4
[ "MIT" ]
1
2016-02-19T09:40:16.000Z
2016-02-19T09:40:16.000Z
# -*- coding: utf-8 -*- """ Created on Wed Sep 2 21:55:56 2015 @author: aidanrocke """ import numpy as np def compressSequenceNFast(posture_seq, newStart, nMax): """ # COMPRESSSEQUENCE Recursively finds the most compressive subsequence in # posture_seq and creates and replaces it with a new number. Thi...
42.385417
136
0.634062
0
0
0
0
0
0
0
0
2,610
0.641435
0ff6b96f6cdfa0859ccdfa2be4df46f2d40daa71
2,631
py
Python
hdmi/cores/transmitter/convert_30_to_15.py
srivatsan-ramesh/HDMI-Source-Sink-Modules
00b99db3d50f9f88f74f0d1685cddcbe35ba1933
[ "MIT" ]
10
2016-05-08T11:41:40.000Z
2021-11-16T08:28:06.000Z
hdmi/cores/transmitter/convert_30_to_15.py
srivatsan-ramesh/HDMI-Source-Sink-Modules
00b99db3d50f9f88f74f0d1685cddcbe35ba1933
[ "MIT" ]
3
2016-05-18T17:36:14.000Z
2016-06-23T17:42:37.000Z
hdmi/cores/transmitter/convert_30_to_15.py
srivatsan-ramesh/HDMI-Source-Sink-Modules
00b99db3d50f9f88f74f0d1685cddcbe35ba1933
[ "MIT" ]
2
2016-05-21T13:53:20.000Z
2016-06-21T22:05:42.000Z
from myhdl import Signal, intbv, always, always_comb, block, instances from hdmi.cores.primitives import dram16xn @block def convert_30_to_15(reset, clock, clockx2, data_in, tmds_data2, tmds_data1, tmds_data0): """ The block converts the 30-bit data into 15-bit data. Args: reset: The reset sig...
24.361111
96
0.581908
0
0
0
0
2,513
0.95515
0
0
531
0.201824
0ff6fb1c2b8d1844c202ef54247d1d380ce729a2
10,377
py
Python
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py
slab14/metron
52bd310fcce68dad15eead57f1113092a30d9791
[ "Apache-2.0" ]
1
2017-02-07T03:31:44.000Z
2017-02-07T03:31:44.000Z
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py
slab14/metron
52bd310fcce68dad15eead57f1113092a30d9791
[ "Apache-2.0" ]
2
2017-06-22T18:03:12.000Z
2017-06-25T03:51:47.000Z
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py
slab14/metron
52bd310fcce68dad15eead57f1113092a30d9791
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
40.694118
164
0.668979
9,092
0.876168
0
0
0
0
0
0
3,301
0.318107
0ff7544e0c718c0471e071d248d68513094b0c4f
1,358
py
Python
alipay/aop/api/response/AlipayPcreditHuabeiGoodsCategoryQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayPcreditHuabeiGoodsCategoryQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayPcreditHuabeiGoodsCategoryQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.GoodsCategoryResult import GoodsCategoryResult class AlipayPcreditHuabeiGoodsCategoryQueryResponse(AlipayResponse): def __init__(self): super(AlipayPcred...
31.581395
118
0.667894
1,156
0.851252
0
0
558
0.410898
0
0
84
0.061856
0ff7fbbc548ae8f478c6c4aede185d3a7e7ad3c3
4,740
py
Python
gadk/cli.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
1
2020-08-13T17:34:02.000Z
2020-08-13T17:34:02.000Z
gadk/cli.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
2
2020-05-04T14:11:02.000Z
2022-03-25T12:00:00.000Z
gadk/cli.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
1
2022-03-25T11:31:59.000Z
2022-03-25T11:31:59.000Z
import importlib import inspect from os import getcwd, makedirs from os.path import exists from typing import List, Set, Optional import click import sys from gadk import Workflow def output_to_file(workflow: Workflow): """Write the workflow to .github/workflows/{workflow.filename}.yml.""" makedirs(".githu...
32.027027
103
0.674895
0
0
0
0
1,442
0.304219
0
0
1,942
0.409705
0ff91e3fafb80c50fca16bcdb41b0cd40242dff6
1,373
py
Python
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
import re from typing import Tuple BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$") class SymbolSplitter: def __init__(self, market: str, symbol: str): self._symbol: Tuple[str, str] = self.split(market, symbol) @property def base_asset(self): return s...
30.511111
118
0.589221
1,246
0.907502
0
0
1,090
0.793882
0
0
435
0.316824
0ff9a9bae36874fc3a41a605b6109b76794154d0
991
py
Python
headerstest.py
mzeinstra/openAnalyser
859156117948eb15283c348e6f6025cae9352279
[ "MIT" ]
1
2021-06-28T09:39:43.000Z
2021-06-28T09:39:43.000Z
headerstest.py
mzeinstra/openAnalyser
859156117948eb15283c348e6f6025cae9352279
[ "MIT" ]
null
null
null
headerstest.py
mzeinstra/openAnalyser
859156117948eb15283c348e6f6025cae9352279
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from bs4 import BeautifulSoup import urllib3 from socket import timeout import tldextract import re import traceback import sys import logging import socket import threading from time import sleep from collector import Collector from checker import Checker http = urllib3.PoolManager(...
30.030303
64
0.491423
0
0
0
0
0
0
0
0
408
0.411705
0ff9f9952934c592807600d700c67ca369be77e0
2,074
py
Python
counterfit/core/attacks.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
counterfit/core/attacks.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
counterfit/core/attacks.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
import datetime import uuid import numpy as np from hyperopt import pyll from counterfit.core import enums from counterfit.core.interfaces import AbstractAttack class Attack(AbstractAttack): """Attack class inherits AbstractAttack and sets attack parameters. It also persists attack results and logs to json confi...
30.057971
142
0.60704
1,909
0.920444
0
0
0
0
0
0
398
0.1919
0ffa165f3d1ac05d9baa3f4e414d5d4b7ae714b1
4,909
py
Python
electronics/scripts/generate_svg.py
chrisdearman/splitflap
3a67ecf99119994f7e678ca0eac94586ba79326e
[ "Apache-2.0" ]
2,138
2015-10-05T18:39:40.000Z
2022-03-31T19:16:08.000Z
electronics/scripts/generate_svg.py
chrisdearman/splitflap
3a67ecf99119994f7e678ca0eac94586ba79326e
[ "Apache-2.0" ]
136
2015-11-08T02:22:51.000Z
2022-03-24T23:57:14.000Z
electronics/scripts/generate_svg.py
chrisdearman/splitflap
3a67ecf99119994f7e678ca0eac94586ba79326e
[ "Apache-2.0" ]
175
2016-08-07T21:20:41.000Z
2022-03-31T03:58:37.000Z
#!/usr/bin/env python3 # Copyright 2015-2016 Scott Bezek and the splitflap contributors # # 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/LICENS...
33.394558
103
0.608067
0
0
0
0
0
0
0
0
1,290
0.262783
0ffa8f71aabd0e5b29a56e626be5c5dbaf416686
335
py
Python
flloat/__version__.py
aadeshnpn/flloat
5a84608400d401799421f872e561689e3159a513
[ "MIT" ]
null
null
null
flloat/__version__.py
aadeshnpn/flloat
5a84608400d401799421f872e561689e3159a513
[ "MIT" ]
null
null
null
flloat/__version__.py
aadeshnpn/flloat
5a84608400d401799421f872e561689e3159a513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __title__ = "flloat" __description__ = "A Python implementation of the FLLOAT library." __url__ = "https://github.com/marcofavorito/flloat.git" __version__ = "1.0.0a0" __author__ = "Marco Favorito" __author_email__ = "marco.favorito@gmail.com" __license__ = "MIT license" __copyright__ = "2019 M...
30.454545
66
0.743284
0
0
0
0
0
0
0
0
209
0.623881
0ffb6d131a75f4d5e786c2e48eaefbaf6ae88520
326
py
Python
app/blog/blog_entries/migrations/0002_remove_article_for_adult.py
Risoko/DRF-Auth-With-Blog-Entries
ba903d1eba1d1f774bfa3782d51d292430d84dbd
[ "MIT" ]
null
null
null
app/blog/blog_entries/migrations/0002_remove_article_for_adult.py
Risoko/DRF-Auth-With-Blog-Entries
ba903d1eba1d1f774bfa3782d51d292430d84dbd
[ "MIT" ]
null
null
null
app/blog/blog_entries/migrations/0002_remove_article_for_adult.py
Risoko/DRF-Auth-With-Blog-Entries
ba903d1eba1d1f774bfa3782d51d292430d84dbd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-01-08 08:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog_entries', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='article', name='for_adult', ), ...
18.111111
47
0.588957
241
0.739264
0
0
0
0
0
0
95
0.291411
0ffb9c15a6273824c51ed946ffd5452b3519ceb0
380
py
Python
leetcode/easy/rotated-digits.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
leetcode/easy/rotated-digits.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
leetcode/easy/rotated-digits.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
class Solution: def rotatedDigits(self, N: 'int') -> 'int': result = 0 for nr in range(1, N + 1): ok = False for digit in str(nr): if digit in '347': break if digit in '6952': ok = True els...
21.111111
47
0.386842
379
0.997368
0
0
0
0
0
0
21
0.055263
0ffe19b3916428633aaa555941af73dfa1704c82
1,699
py
Python
bis/apps/incubator/models/stages.py
AgustinMachiavello/business-incubation-system
983e1308697771570891568f99d1b8ba74441d32
[ "MIT" ]
2
2021-03-03T16:16:42.000Z
2021-03-08T22:43:10.000Z
bis/apps/incubator/models/stages.py
AgustinMachiavello/business-incubation-system
983e1308697771570891568f99d1b8ba74441d32
[ "MIT" ]
null
null
null
bis/apps/incubator/models/stages.py
AgustinMachiavello/business-incubation-system
983e1308697771570891568f99d1b8ba74441d32
[ "MIT" ]
null
null
null
""" Stage model """ # Models from django.db import models from .timeStampMixin import TimeStampMixin from ..models.projects import Project # Date and time from django.utils import timezone class Stage(TimeStampMixin, models.Model): STAGE_TYPE_CHOICES = [ ('EP', 'En Postulación'), ('EV', 'Evaluac...
32.673077
100
0.648028
1,512
0.886284
0
0
238
0.139508
0
0
469
0.274912
0ffecfc820d549bb4fa3335755a6e86a03bd358c
2,584
py
Python
src/process_particle_sys.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
4
2019-09-26T21:34:32.000Z
2021-11-18T19:31:15.000Z
src/process_particle_sys.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
src/process_particle_sys.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
import sys sys.dont_write_bytecode = True from module_info import * from module_particle_systems import * from process_common import * # Lav's export_dir tweak export_dir = '%s/' % export_dir.replace('\\', '/').rstrip('/') id_pos = 0 flags_pos = 1 mesh_name_pos = 2 num_particles_pos = 3 life_pos = 4 ...
37.449275
159
0.700464
0
0
0
0
0
0
0
0
292
0.113003
0fff06c8d1de1e3a853ccb96506d8813c421c072
498
py
Python
local_configs/write_config.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
local_configs/write_config.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
local_configs/write_config.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
import os import argparse parser = argparse.ArgumentParser() parser.add_argument('config_path') parser.add_argument('sh_path',default='train_10.24.sh') args = parser.parse_args() config_path = args.config_path sh_path = args.sh_path with open(f'/home/mist/SegformerDistillation/local_configs/{sh_path}','w') as f: f...
33.2
80
0.712851
0
0
0
0
0
0
0
0
164
0.329317
ba002eceb241d614be5bd495796015ba35b2c230
4,297
py
Python
boris/reporting/reports/clients.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
1
2021-08-10T14:01:26.000Z
2021-08-10T14:01:26.000Z
boris/reporting/reports/clients.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
5
2018-04-04T14:31:34.000Z
2020-06-08T07:50:23.000Z
boris/reporting/reports/clients.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
4
2017-02-06T15:38:34.000Z
2018-03-21T09:40:12.000Z
# -*- coding: utf-8 -*- from boris import utils import datetime from django.contrib.contenttypes.models import ContentType from django.template import loader from django.template.context import RequestContext from django.utils.translation import ugettext_lazy as _ from boris.classification import DRUG_APPLICATION_TYPE...
40.158879
114
0.647428
3,506
0.811011
0
0
638
0.147583
0
0
859
0.198705
ba01fa0a52b489962a736d36092f48f17a3d2800
51
py
Python
1-Machine-Learning/0-Basic-Knowledge/Math-Knowledge/GMM.py
yzy1996/Artificial-Intelligence
30a9a2ce1602b9fa9be5981e98885c1c4244cbbd
[ "MIT" ]
7
2019-11-09T02:55:35.000Z
2021-08-16T12:43:44.000Z
4-Archived/Knowledge/GMM.py
yzy1996/Machine-Learning
67c58ee5603fe25d789b3c4b3fa3929c5ac82c1f
[ "MIT" ]
3
2020-10-13T03:12:03.000Z
2021-03-21T09:03:02.000Z
4-Archived/Knowledge/GMM.py
yzy1996/Machine-Learning
67c58ee5603fe25d789b3c4b3fa3929c5ac82c1f
[ "MIT" ]
6
2020-06-07T08:14:15.000Z
2021-08-02T09:04:31.000Z
''' 混合高斯模型 使用多个高斯模型来拟合数据分布 ''' import numpy as np
7.285714
18
0.705882
0
0
0
0
0
0
0
0
72
0.774194
ba02074bfe1f775062ea20b58c4a53ed13f99818
23,967
py
Python
app1/mercado_externo.py
Nicolasvegam/astrazeneca
9f549c170553d6ad13bc2949e147f4a2a53cb67d
[ "MIT" ]
null
null
null
app1/mercado_externo.py
Nicolasvegam/astrazeneca
9f549c170553d6ad13bc2949e147f4a2a53cb67d
[ "MIT" ]
null
null
null
app1/mercado_externo.py
Nicolasvegam/astrazeneca
9f549c170553d6ad13bc2949e147f4a2a53cb67d
[ "MIT" ]
null
null
null
import json frecuencias = [ { "tag": "company", "count": 44 }, { "tag": "team", "count": 44 }, { "tag": "experience", "count": 43 }, { "tag": "global", "count": 42 }, { "tag": "local", "count": 41 }, { "tag": "we", "count": 40 }, { "tag": "ex...
12.019559
58
0.375475
0
0
0
0
0
0
0
0
11,034
0.459961
ba03c7612f86df91d7ee18658bef4eedbec16d11
49
py
Python
servers/__init__.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
1
2021-08-08T14:40:09.000Z
2021-08-08T14:40:09.000Z
servers/__init__.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
null
null
null
servers/__init__.py
shubhamdipt/monitoring-dashboard
ae4524f1c179cf735fdc17673865bdbdb463ee3e
[ "MIT" ]
null
null
null
default_app_config = 'servers.apps.ServersConfig'
49
49
0.857143
0
0
0
0
0
0
0
0
28
0.571429
ba041d9f4395da9615d70dc1c9b697b6dd747f7f
1,903
py
Python
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#-------------------------------------------------------------------------------- # SoCaTel - Backend data storage API endpoints docker container # These tokens are needed for database access. #-------------------------------------------------------------------------------- #===========================================...
55.970588
102
0.524435
0
0
0
0
0
0
0
0
1,625
0.853915
ba042e7a2bc7c5d67d985eb95d5d7984724f276f
5,055
py
Python
vet_care/vet_care/report/vc_sales_transaction/vc_sales_transaction.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
2
2020-11-23T11:14:32.000Z
2021-02-03T06:40:33.000Z
vet_care/vet_care/report/vc_sales_transaction/vc_sales_transaction.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
null
null
null
vet_care/vet_care/report/vc_sales_transaction/vc_sales_transaction.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
7
2019-11-16T14:36:33.000Z
2021-08-25T07:54:51.000Z
# Copyright (c) 2013, 9T9IT and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import fmt_money from toolz.curried import compose, groupby, valmap, first, reduce, unique, pluck, count, partial def execute(fil...
27.324324
96
0.682295
0
0
0
0
0
0
0
0
1,995
0.394659
ba04925fb21e3e8cf52311a9c8f795fc603cbc36
1,193
py
Python
integration-test/1634-hide-early-nursing-home.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
integration-test/1634-hide-early-nursing-home.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
2
2021-03-31T20:22:37.000Z
2021-12-13T20:50:11.000Z
integration-test/1634-hide-early-nursing-home.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import FixtureTest class HideEarlyNursingHomeTest(FixtureTest): def test_nursing_home_area(self): import dsl z, x, y = (15, 5237, 12667) self.generate_fixtures( # https://www.openstreetmap.org/way/267296981 dsl.way(267296981, dsl....
31.394737
75
0.460184
1,138
0.953898
0
0
0
0
0
0
463
0.388097
ba05091c49ea6a651c08af4ab43f6b89d1619ef6
1,567
py
Python
mido_midifile.py
olemb/rawmidifile
d2f5df882257b14c924a90110d506729080e8c1e
[ "MIT" ]
null
null
null
mido_midifile.py
olemb/rawmidifile
d2f5df882257b14c924a90110d506729080e8c1e
[ "MIT" ]
null
null
null
mido_midifile.py
olemb/rawmidifile
d2f5df882257b14c924a90110d506729080e8c1e
[ "MIT" ]
null
null
null
""" MIDI file reader and writer for Mido built on top of rawmidifile. There is no official API in Mido for encoding and decoding meta messages so I've had to use some internal functions. """ from rawmidifile import read_rawmidifile, write_rawmidifile import mido from mido.midifiles.meta import (build_meta_message, ...
26.559322
72
0.662412
0
0
0
0
0
0
0
0
250
0.159541
ba050f61eda5b2d821dc6b5f12862b36a4acfe44
8,322
py
Python
src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py
Bhaskers-Blu-Org2/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
15
2019-12-14T07:54:18.000Z
2021-03-14T14:53:28.000Z
src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py
Bhaskers-Blu-Org2/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
30
2019-12-03T20:58:56.000Z
2020-04-21T23:34:39.000Z
src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py
microsoft/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
13
2020-01-23T00:18:47.000Z
2021-10-04T17:46:45.000Z
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License # ---------------------------------------------------------------------- """Contains the scalar type info objects""" import os import textwrap ...
41.819095
290
0.43403
6,311
0.758351
0
0
5,517
0.662942
0
0
2,802
0.336698
ba0556544146fb79fec4279f3882b808667993f8
4,746
py
Python
testing/solid_growthremodeling_fiberstretch.py
marchirschvogel/amb
af48b2a672cfcfb7a081020cda599fde85aa6b65
[ "BSD-4-Clause" ]
null
null
null
testing/solid_growthremodeling_fiberstretch.py
marchirschvogel/amb
af48b2a672cfcfb7a081020cda599fde85aa6b65
[ "BSD-4-Clause" ]
null
null
null
testing/solid_growthremodeling_fiberstretch.py
marchirschvogel/amb
af48b2a672cfcfb7a081020cda599fde85aa6b65
[ "BSD-4-Clause" ]
null
null
null
#!/usr/bin/env python3 ### block that grows in fiber direction triggered by fiber stretch and remodels to softer material # TODO: Somehow, this does not converge quadratically at the end (seems irrespective of remodeling, # but likely to be attributed to the growth in fiber direction) ---> check linearization terms! ...
42
146
0.439528
134
0.028234
0
0
0
0
0
0
1,517
0.319638
ba07d0c821ac43a4b143f06257b21b47e9c896a7
4,061
py
Python
src/dynamodb_encryption_sdk/materials/__init__.py
ajw-aws/aws-dynamodb-encryption-python
4374ad5d87c7ea66c249c5f458cac6ff4465d437
[ "Apache-2.0" ]
null
null
null
src/dynamodb_encryption_sdk/materials/__init__.py
ajw-aws/aws-dynamodb-encryption-python
4374ad5d87c7ea66c249c5f458cac6ff4465d437
[ "Apache-2.0" ]
1
2021-03-20T05:42:35.000Z
2021-03-20T05:42:35.000Z
src/dynamodb_encryption_sdk/materials/__init__.py
gwsu2008/aws-dynamodb-encryption-python
80465a4b62b1198d519b0ba96da1643eb8af2c9a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
33.01626
102
0.690717
2,809
0.691702
0
0
2,615
0.64393
0
0
2,848
0.701305
ba098b80df6e4bfc3afb72bb393d9f053635499b
7,441
py
Python
src/ramstk/views/gtk3/preferences/view.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
26
2019-05-15T02:03:47.000Z
2022-02-21T07:28:11.000Z
src/ramstk/views/gtk3/preferences/view.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
815
2019-05-10T12:31:52.000Z
2022-03-31T12:56:26.000Z
src/ramstk/views/gtk3/preferences/view.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
9
2019-04-20T23:06:29.000Z
2022-01-24T21:21:04.000Z
# pylint: disable=unused-import, missing-docstring # -*- coding: utf-8 -*- # # ramstk.views.gtk3.preferences.view.py is part of the RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """RAMSTK GTK3 Preferences Views.""" # Standard Libr...
33.822727
88
0.629351
6,551
0.880392
0
0
0
0
0
0
2,879
0.38691
ba0acde2a7dda4e8e83ad9fe76009f222b95e173
1,011
py
Python
binascii_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
5
2020-07-26T08:48:39.000Z
2021-09-13T19:19:37.000Z
binascii_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
null
null
null
binascii_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
1
2020-11-07T22:37:44.000Z
2020-11-07T22:37:44.000Z
""" Generate `pyi` from corresponding `rst` docs. """ import rst from rst2pyi import RST2PyI __author__ = rst.__author__ __copyright__ = rst.__copyright__ __license__ = rst.__license__ __version__ = "7.2.0" # Version set by https://github.com/hlovatt/tag2ver def binascii(shed: RST2PyI) -> None: shed.module(nam...
27.324324
82
0.593472
0
0
0
0
0
0
0
0
490
0.484669
ba0ad1cae8bb275fda3b66ce6e02ab294e66f03f
602
py
Python
examples/deco_add_param.py
scholer/clize
bc15fc510fa6fb1cc27b1d27ea1b5653e61d2fff
[ "MIT" ]
390
2015-04-05T01:16:35.000Z
2022-03-30T02:13:52.000Z
examples/deco_add_param.py
scholer/clize
bc15fc510fa6fb1cc27b1d27ea1b5653e61d2fff
[ "MIT" ]
67
2015-03-04T08:15:58.000Z
2022-03-15T00:16:51.000Z
examples/deco_add_param.py
szaydel/clize
84fef2080d7748dd36e465bc2048b48ed578d73f
[ "MIT" ]
28
2015-01-11T04:37:08.000Z
2021-07-07T08:20:20.000Z
from sigtools.wrappers import decorator from clize import run @decorator def with_uppercase(wrapped, *args, uppercase=False, **kwargs): """ Formatting options: :param uppercase: Print output in capitals """ ret = wrapped(*args, **kwargs) if uppercase: return str(ret).upper() else:...
18.242424
62
0.629568
0
0
0
0
484
0.803987
0
0
180
0.299003
ba0ad8ee524c81c0738f3b1a9b9dc55e45851dd6
257
py
Python
spikey/core/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
4
2021-02-25T20:53:41.000Z
2022-01-18T15:27:07.000Z
spikey/core/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
5
2021-03-06T05:35:10.000Z
2021-03-31T09:27:57.000Z
spikey/core/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
null
null
null
""" Core __init__. """ try: from spikey.core.callback import ExperimentCallback, RLCallback, TDCallback from spikey.core.training_loop import TrainingLoop, GenericLoop except ImportError as e: raise ImportError(f"core/__init__.py failed: {e}")
25.7
79
0.758755
0
0
0
0
0
0
0
0
53
0.206226
ba0b04b4ada95663d8638daf31f1153f553fb61f
912
py
Python
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
from ..Calibration.Calibration import Calibration from ..Model.ModelBase import ModelBase class CalibrationModel(ModelBase): """Abaqus creates a Model object named `Model-1` when a session is started. Notes ----- This object can be accessed by: .. code-block:: python mdb.models[name] ...
22.8
79
0.557018
819
0.898026
0
0
0
0
0
0
624
0.684211
ba0daa36434b219c2f65075a454c745560959d30
171
py
Python
Python-Programming(icourse163.org)/7/7-2.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
Python-Programming(icourse163.org)/7/7-2.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
Python-Programming(icourse163.org)/7/7-2.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
import math x = int(input()) sinn = math.sin(math.radians(15)) son = math.exp(x)-5*x mon = math.pow((x**2+1),0.5) lnn = math.log(3*x) print("%.10f"%(sinn+son/mon-lnn))
15.545455
33
0.608187
0
0
0
0
0
0
0
0
7
0.040936
ba0f201ff461642700e5183d5d5d537e2f37ac6f
332,638
py
Python
kvmagent/kvmagent/plugins/vm_plugin.py
zstackio/zstack-utility
919d686d46c68836cbcad51ab0b8bf53bc88abda
[ "ECL-2.0", "Apache-2.0" ]
55
2017-02-10T07:55:21.000Z
2021-09-01T00:59:36.000Z
kvmagent/kvmagent/plugins/vm_plugin.py
zstackio/zstack-utility
919d686d46c68836cbcad51ab0b8bf53bc88abda
[ "ECL-2.0", "Apache-2.0" ]
106
2017-02-13T09:58:27.000Z
2022-02-15T09:51:48.000Z
kvmagent/kvmagent/plugins/vm_plugin.py
zstackio/zstack-utility
919d686d46c68836cbcad51ab0b8bf53bc88abda
[ "ECL-2.0", "Apache-2.0" ]
68
2017-02-13T11:02:01.000Z
2021-12-16T11:02:01.000Z
''' @author: Frank ''' import contextlib import os.path import tempfile import time import datetime import traceback import xml.etree.ElementTree as etree import re import platform import netaddr import uuid import shutil import simplejson import base64 import uuid import json import socket from signal import SIGKILL i...
43.205351
382
0.575304
318,309
0.956923
0
0
181,884
0.546793
0
0
65,348
0.196454
ba0f9f2c8594abc6e459db5569577285c57e27dd
4,484
py
Python
dics_megset.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
dics_megset.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
dics_megset.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
import mne import numpy as np import pandas as pd from mne.beamformer import make_dics, apply_dics_csd from config import dics_settings, fname, args from megset.config import fname as megset_fname from megset.config import freq_range subject = args.subject print(f'Running analsis for subject {subject}') mne.set_log_...
38
120
0.573372
0
0
0
0
0
0
0
0
1,316
0.293488
ba0ff3598421ac2513f7f174a00699fe46db7b6a
23,444
py
Python
analyze_clusters.py
sopeeweje/NLP-AI-Diagnosis
a5d7a590c98aad87f87cf75a7d25f3ca4a51d4be
[ "MIT" ]
null
null
null
analyze_clusters.py
sopeeweje/NLP-AI-Diagnosis
a5d7a590c98aad87f87cf75a7d25f3ca4a51d4be
[ "MIT" ]
12
2021-09-17T23:09:02.000Z
2021-12-29T22:37:03.000Z
analyze_clusters.py
sopeeweje/NLP-AI-Diagnosis
a5d7a590c98aad87f87cf75a7d25f3ca4a51d4be
[ "MIT" ]
1
2021-09-18T19:38:58.000Z
2021-09-18T19:38:58.000Z
import csv from sklearn.cluster import MiniBatchKMeans import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import pickle import numpy as np import sklearn.metrics as metrics from yellowbrick.cluster import InterclusterDistance from scipy.optimize import curve_fit import umap.umap_ as umap from col...
39.138564
528
0.617088
0
0
0
0
0
0
0
0
6,722
0.286726
ba10c2347d43dfcd19f5c723cff12b3417b9fd2d
1,528
py
Python
seeq/addons/correlation/_utils/_permissions.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
2
2021-11-17T00:17:43.000Z
2022-01-25T21:15:04.000Z
seeq/addons/correlation/_utils/_permissions.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
5
2021-11-02T23:13:57.000Z
2022-02-14T21:30:32.000Z
seeq/addons/correlation/_utils/_permissions.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
null
null
null
from seeq.sdk.rest import ApiException from . import print_red def permissions_defaults(permissions_group: list, permissions_users: list): if permissions_group is None: permissions_group = ['Everyone'] if permissions_users is None: permissions_users = [] return permissions_group, permissi...
33.217391
93
0.689136
0
0
0
0
0
0
0
0
170
0.111257
ba13957d1dfe8a9dad60a0b98fdc76bc2c051de1
2,133
py
Python
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
from zignet import controller, db from zignet.models import * from flask import request, abort, make_response @controller.route('/login', methods = ['POST']) def login(): username = request.get('username') password = request.get('password') Rfid = request.get('Rfid') pincode = request.get('pincode') if any(usern...
22.935484
73
0.69339
0
0
0
0
2,015
0.944679
0
0
250
0.117206
ba15381f8ef090f523cd0dca0d47f9f990a3ed66
1,853
py
Python
observatory-platform/observatory/platform/utils/proc_utils.py
metasj/observatory-platform
e684f9dc55a1a0fde1b27193eda10532198c4168
[ "Apache-2.0" ]
null
null
null
observatory-platform/observatory/platform/utils/proc_utils.py
metasj/observatory-platform
e684f9dc55a1a0fde1b27193eda10532198c4168
[ "Apache-2.0" ]
null
null
null
observatory-platform/observatory/platform/utils/proc_utils.py
metasj/observatory-platform
e684f9dc55a1a0fde1b27193eda10532198c4168
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Curtin University # # 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 writi...
33.690909
107
0.671344
0
0
0
0
0
0
0
0
1,086
0.586077
ba157f63ae5acff9ccfb66ad9328574fb2aa9997
1,639
py
Python
tests/test_day12.py
dmies/adventOfCode
55761aa91f5616d556653956d95b869f8e5a7bb5
[ "Apache-2.0" ]
null
null
null
tests/test_day12.py
dmies/adventOfCode
55761aa91f5616d556653956d95b869f8e5a7bb5
[ "Apache-2.0" ]
null
null
null
tests/test_day12.py
dmies/adventOfCode
55761aa91f5616d556653956d95b869f8e5a7bb5
[ "Apache-2.0" ]
1
2020-11-25T12:17:34.000Z
2020-11-25T12:17:34.000Z
from day12 import Moon, simulate_moons, get_steps_to_find_same_state, get_total_energy def test_init_handles_string_input(): line = "<x=15, y=-2, z=-6>" expected_x = 15 expected_y = -2 expected_z = -6 result = Moon(line) assert result.x == expected_x assert result.y == expected_y ass...
24.833333
98
0.559487
0
0
0
0
0
0
0
0
373
0.227578
ba16fa59961b765da18297dbd32815b00e0a3cbc
3,628
py
Python
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
1
2018-03-28T16:35:46.000Z
2018-03-28T16:35:46.000Z
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
null
null
null
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- VERSION = r'2016/04/02' # 配置中心 URL = "http://wg.suda.edu.cn/indexn.aspx" STUDENT_ID = 'XXXXXXXXXXXXXXXXXXXX' STUDENT_PASSWORD = 'XXXXXXXXXXXXXXXXXXXX' ''' Created on 2016年4月2日 @author: XenoAmess ''' import urllib.parse import urllib.request import time def get_html(url): '''首先...
29.495935
146
0.628997
0
0
0
0
0
0
0
0
1,674
0.401054
ba170cf1e4780562bdfa615594947700438fb2a3
1,965
py
Python
app/healthcheck/monitor.py
publichealthengland/coronavirus-dashboard-easy-read
786409d79341b4ded3c0204e7b487423681e9c28
[ "MIT" ]
1
2022-02-21T14:23:08.000Z
2022-02-21T14:23:08.000Z
app/healthcheck/monitor.py
publichealthengland/coronavirus-dashboard-easy-read
786409d79341b4ded3c0204e7b487423681e9c28
[ "MIT" ]
25
2021-01-19T13:41:36.000Z
2022-03-04T09:07:50.000Z
app/healthcheck/monitor.py
publichealthengland/coronavirus-dashboard-easy-read
786409d79341b4ded3c0204e7b487423681e9c28
[ "MIT" ]
3
2021-04-14T11:30:22.000Z
2022-01-17T20:23:50.000Z
#!/usr/bin python3 """ <Description of the programme> Author: Pouria Hadjibagheri <pouria.hadjibagheri@phe.gov.uk> Created: 15 Mar 2021 License: MIT Contributors: Pouria Hadjibagheri """ # Imports # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Python:...
27.291667
90
0.60458
0
0
0
0
0
0
965
0.491094
812
0.413232
ba174b62313fc6bd666f2be4dd49654e375a89a1
8,797
py
Python
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
import gym import gym_tensegrity import numpy as np import os from time import sleep # Discrete action space functions testing def main(port_num=10042): def print_observation(obs): print("Observations {:}".format(obs)) env = gym.make('gym_tensegrity:jumper-v0') # action = randint(0,15) action =...
33.32197
152
0.545982
0
0
0
0
0
0
0
0
3,538
0.402183
ba1783f6512fef6b2a7094ff616513eb52813862
8,476
py
Python
lane_identifier.py
samguns/Project4-Advanced-Lane-Finding
65b39e434f167f5e4da4f2d71fd9b485cd895545
[ "MIT" ]
null
null
null
lane_identifier.py
samguns/Project4-Advanced-Lane-Finding
65b39e434f167f5e4da4f2d71fd9b485cd895545
[ "MIT" ]
null
null
null
lane_identifier.py
samguns/Project4-Advanced-Lane-Finding
65b39e434f167f5e4da4f2d71fd9b485cd895545
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cv2 class LaneIdentifier: def __init__(self, smooth_factor, filter): self.left_lane_inds = [] self.right_lane_inds = [] self.lane_gap = [] self.binary_warped = None self.window_height = None self.leftx_current...
44.376963
111
0.590373
8,413
0.992567
0
0
0
0
0
0
639
0.075389
ba1793e21f50164606de991114f96e7cddb49ec8
1,331
py
Python
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
import pytest from Tree import Tree class TestClass: def setup_class(self): pass def test_tree(self): tree = Tree() tree.add(3) tree.add(4) tree.add(0) tree.add(8) tree.add(2) tree.print_tree() assert True def test_compare_trees(se...
21.819672
50
0.555222
1,291
0.969947
0
0
0
0
0
0
108
0.081142
ba184328b10f564a0cd03008486c8ac39964d140
158
py
Python
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
x1 = 1 y1 = 0 x2 = 0 y2 = -2 m1 = (y2 / x1) x1 = 2 y1 = 2 x2 = 6 y2 = 10 m2 = (y2 - y1 / x2 - x1) diff = m1 - m2 print(f'Diff of 8 and 9: {diff:.2f}') # 10
11.285714
43
0.468354
0
0
0
0
0
0
0
0
34
0.21519
ba19039d6d153acd59e2ad4f03240cced0340680
4,780
py
Python
zsh/gitstatus.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
1
2021-01-15T03:41:46.000Z
2021-01-15T03:41:46.000Z
zsh/gitstatus.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
null
null
null
zsh/gitstatus.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
1
2019-05-27T11:39:08.000Z
2019-05-27T11:39:08.000Z
#! /usr/ibn/env python2 # -*- encoding=utf-8 -*- from __future__ import print_function from subprocess import Popen, PIPE import os import serverlog log = serverlog.inst() def getGitStat(d): gitstat = Popen( ['git', 'status', '--short', '--branch'], stdout=PIPE, stderr=PIPE, cwd=d) stat, err...
24.020101
72
0.5159
409
0.085084
0
0
0
0
0
0
805
0.167464
ba193713f4e6daa42b6733b362bbc46c29b53357
10,391
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/utm_utils.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/utm_utils.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/utm_utils.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
44.217021
119
0.626311
8,435
0.81176
0
0
0
0
0
0
3,983
0.383312
ba19b202492740345b68fb765ce97ad817af8b04
560
py
Python
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-01 17:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('application', '0001_initial'), ] operations = [ migrations.AlterField( model_name='client', name='link', f...
23.333333
77
0.575
469
0.8375
0
0
0
0
0
0
100
0.178571
ba1a7018c58b0366cadcc5857caa5cc11ed443e2
4,838
py
Python
disks/bootstrap/root/lib.py
pnhowe/disks
7e5170119704c5d3cdf0be9ff7dbdf7d0b052114
[ "Apache-2.0" ]
null
null
null
disks/bootstrap/root/lib.py
pnhowe/disks
7e5170119704c5d3cdf0be9ff7dbdf7d0b052114
[ "Apache-2.0" ]
null
null
null
disks/bootstrap/root/lib.py
pnhowe/disks
7e5170119704c5d3cdf0be9ff7dbdf7d0b052114
[ "Apache-2.0" ]
null
null
null
import sys import time import subprocess import re _setMessage = None class Bootstrap: def __init__( self, identifier, contractor ): self.identifier = identifier self.request = contractor.request self.request( 'call', '/api/v1/Survey/Cartographer(register)', { 'identifier': identifier } ) def look...
32.689189
191
0.606656
1,391
0.287516
0
0
0
0
0
0
1,107
0.228814
ba1c71602bcc3a8f20aebbbae94098c99780e8ff
152
py
Python
src/backup_utils/databases/__init__.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
src/backup_utils/databases/__init__.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
src/backup_utils/databases/__init__.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
from functools import partial from ..utils import load __all__ = ["databases"] databases = partial(load, pkg="backup_utils.databases", suffix="Db")
16.888889
68
0.743421
0
0
0
0
0
0
0
0
39
0.256579
ba1cf387e7aec7401bb6e9dfcd3c708295ef07ce
375
py
Python
code_examples/tensorflow/basic_nmt_example/seq2seq_edits/attention_wrapper.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/tensorflow/basic_nmt_example/seq2seq_edits/attention_wrapper.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/tensorflow/basic_nmt_example/seq2seq_edits/attention_wrapper.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. ''' Edits to seq2seq AttentionWrapper ''' import tensorflow as tf class AttentionWrapperNoAssert(tf.contrib.seq2seq.AttentionWrapper): # Stops the adding of Assert operations that "assert_equal" the wrapper batch_size and the attention_mechanisms batch_size def _batch_size_chec...
31.25
126
0.784
274
0.730667
0
0
0
0
0
0
194
0.517333
ba1d7411408e4eae7740b57ca1aac506de98b421
45,178
py
Python
deeppavlov/agents/coreference/models.py
deepmipt/kpi2017
0f6b13c6ea76e544804ce66ba372c66d5ef9ee30
[ "Apache-2.0" ]
3
2018-02-19T15:34:44.000Z
2018-06-05T10:02:00.000Z
deeppavlov/agents/coreference/models.py
deepmipt/kpi2017
0f6b13c6ea76e544804ce66ba372c66d5ef9ee30
[ "Apache-2.0" ]
null
null
null
deeppavlov/agents/coreference/models.py
deepmipt/kpi2017
0f6b13c6ea76e544804ce66ba372c66d5ef9ee30
[ "Apache-2.0" ]
1
2021-03-22T09:06:52.000Z
2021-03-22T09:06:52.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
51.750286
119
0.622028
44,256
0.979592
0
0
0
0
0
0
16,289
0.360552
ba1daa29383c186dc2ccf373341df64a1f615073
7,379
py
Python
applications/plugins/RigidScale/examples/mapping/rigidScaleToRigidMultiMapping.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/RigidScale/examples/mapping/rigidScaleToRigidMultiMapping.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/RigidScale/examples/mapping/rigidScaleToRigidMultiMapping.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
import sys,os import Sofa import Flexible.IO from Compliant import Tools as Tools # main path currentdir = os.path.dirname(os.path.realpath(__file__))+'/' __file = __file__.replace('\\', '/') # windows compatible filename source = './mesh/cube.obj' target = './mesh/cube.obj' voxel_size = 0.1 # =========...
68.324074
254
0.623933
6,270
0.849709
0
0
0
0
0
0
2,929
0.396937
ba1e60f8480ebcf3873159f3b4490651fbabea8f
1,447
py
Python
peptidereactor/iFeature/codes/TA.py
spaenigs/peptidereactor
17efcb993505934f5b9c2d63f5cc040bb244dde9
[ "MIT" ]
3
2021-02-03T12:30:37.000Z
2021-06-07T07:03:38.000Z
peptidereactor/iFeature/codes/TA.py
spaenigs/peptidereactor
17efcb993505934f5b9c2d63f5cc040bb244dde9
[ "MIT" ]
1
2021-01-04T14:52:27.000Z
2021-01-04T14:52:27.000Z
peptidereactor/iFeature/codes/TA.py
spaenigs/peptidereactor
17efcb993505934f5b9c2d63f5cc040bb244dde9
[ "MIT" ]
1
2021-06-09T16:16:16.000Z
2021-06-09T16:16:16.000Z
#!/usr/bin/env python #_*_coding:utf-8_*_ import sys, os, re pPath = os.path.split(os.path.realpath(__file__))[0] sys.path.append(pPath) import checkFasta def TA(fastas, **kw): if checkFasta.checkFasta(fastas) == False: print('Error: for "TA" encoding, the input fasta sequences should be with equal length. \n\n') ...
28.372549
103
0.645473
0
0
0
0
0
0
0
0
403
0.278507
ba1fa0ba40676d80533fb64114e6150ae8ea61f6
3,714
py
Python
services/mx/service.py
sbworth/getnoc
a9a5647df31822062db3db7afe7ae1c005d166f7
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/mx/service.py
sbworth/getnoc
a9a5647df31822062db3db7afe7ae1c005d166f7
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/mx/service.py
sbworth/getnoc
a9a5647df31822062db3db7afe7ae1c005d166f7
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
#!./bin/python # ---------------------------------------------------------------------- # mx service # ---------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Py...
39.935484
100
0.558697
2,915
0.784868
0
0
0
0
2,524
0.679591
900
0.242326
ba20ee15679f38813c36a98fec465c7fe081a8b2
4,993
py
Python
rectifier/config/config_parser.py
SectorLabs/heroku-rectifier
46094b168efe59837ea6f11386f27bf406b17bf0
[ "MIT" ]
7
2019-04-05T07:46:31.000Z
2022-01-19T20:39:19.000Z
rectifier/config/config_parser.py
SectorLabs/heroku-rectifier
46094b168efe59837ea6f11386f27bf406b17bf0
[ "MIT" ]
9
2019-05-18T08:49:37.000Z
2021-04-01T06:23:58.000Z
rectifier/config/config_parser.py
SectorLabs/heroku-rectifier
46094b168efe59837ea6f11386f27bf406b17bf0
[ "MIT" ]
null
null
null
import json from json import JSONDecodeError from typing import Dict import jsonschema import structlog import schemas from rectifier.config import Config, AppConfig, QueueConfig, CoordinatorConfig, AppMode from rectifier.storage.storage import Storage from rectifier import settings LOGGER = structlog.get_logger(__n...
37.825758
121
0.597036
4,660
0.933307
0
0
3,662
0.733427
0
0
1,056
0.211496
ba213c7916b1147b628e29019f58a21312675a83
8,433
py
Python
market.py
hype-ecosystem/predictions_bot
82925ed4faed736cf95d42751c7d02e00a9c819c
[ "MIT" ]
2
2020-01-24T11:36:24.000Z
2021-02-19T00:11:42.000Z
market.py
hype-ecosystem/predictions_bot
82925ed4faed736cf95d42751c7d02e00a9c819c
[ "MIT" ]
null
null
null
market.py
hype-ecosystem/predictions_bot
82925ed4faed736cf95d42751c7d02e00a9c819c
[ "MIT" ]
1
2020-06-09T13:24:10.000Z
2020-06-09T13:24:10.000Z
import subprocess as sp import datetime import sys import re import os import pwd import logging import logging.handlers import bitfinex_api from dbmanager import DatabaseManager from plot_provider import PlotProvider import queue class Market: def __init__(self, path, symbol, message_queue): self._messa...
43.694301
128
0.5903
7,911
0.9381
0
0
0
0
0
0
2,280
0.270366
ba21d65b7d1cc8f2d7ea73d9ecfaf83200df9067
709
py
Python
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
3
2021-09-15T04:54:08.000Z
2021-12-21T06:47:40.000Z
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
1
2021-10-15T08:55:47.000Z
2021-10-15T08:55:47.000Z
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
null
null
null
import os import launch from launch_ros.actions import Node from ament_index_python.packages import get_package_share_directory def generate_launch_description(): gl_ros2_driver_udp = Node( node_name = 'gl_ros2_driver_udp', package = 'gl_ros2_driver_udp', node_executable = 'gl_ros2_driver...
25.321429
67
0.599436
0
0
0
0
0
0
0
0
168
0.236953
ba245a0af638dbd063878dec00e0c87df1fbc19a
1,367
py
Python
Analysis Scripts/sum_individual.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
1
2019-07-07T19:54:17.000Z
2019-07-07T19:54:17.000Z
Analysis Scripts/sum_individual.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
null
null
null
Analysis Scripts/sum_individual.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
null
null
null
# HASPR - High-Altitude Solar Power Research # Script to calculate annual sums given generation profiles # Version 0.1 # Author: neyring import haspr from haspr import Result from numpy import genfromtxt from os import walk import numpy as np # PARAMETERS # # path to directory containing generation profil...
32.547619
75
0.705194
0
0
0
0
0
0
0
0
548
0.400878