hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0c3a3303f0c2028817456a2bcf4c72af0fc39e
95
py
Python
bastion/compute/common/image.py
laureanok/bas7ion
4cab1f5830e88beb208c4dfd564bf03eab1c2e8f
[ "Apache-2.0" ]
null
null
null
bastion/compute/common/image.py
laureanok/bas7ion
4cab1f5830e88beb208c4dfd564bf03eab1c2e8f
[ "Apache-2.0" ]
null
null
null
bastion/compute/common/image.py
laureanok/bas7ion
4cab1f5830e88beb208c4dfd564bf03eab1c2e8f
[ "Apache-2.0" ]
null
null
null
class Image: def __init__(self, id, name): self.id = id self.name = name
13.571429
33
0.536842
4a0c3a7852e600b000419012aa868d710103996f
8,868
py
Python
Lib/dumbdbm.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
195
2016-01-14T16:03:02.000Z
2021-12-29T09:15:02.000Z
Lib/dumbdbm.py
odsod/cpython-internals-course
55fffca28e83ac0f30029c60113a3110451dfa08
[ "PSF-2.0" ]
75
2016-01-14T16:03:02.000Z
2020-04-29T22:51:53.000Z
Lib/dumbdbm.py
odsod/cpython-internals-course
55fffca28e83ac0f30029c60113a3110451dfa08
[ "PSF-2.0" ]
24
2016-02-29T11:45:47.000Z
2021-12-24T08:41:37.000Z
"""A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), while spam.dat contains the data (a binary file). XXX TO DO: - seems to contain a bug when updating... - reclaim free space (currently, space once o...
35.902834
78
0.610059
4a0c3b93bd1fc6f4b36b8e2f0bd8876b73c88316
8,918
py
Python
diversity_analysis_tool/graph_construction.py
BenevolentAI/benevolentai-dat
a68c2a438bb5b9651e4e0cb72cdbe02738cc88a9
[ "MIT" ]
6
2020-09-23T08:06:44.000Z
2022-01-25T16:13:04.000Z
diversity_analysis_tool/graph_construction.py
BenevolentAI/benevolentai-dat
a68c2a438bb5b9651e4e0cb72cdbe02738cc88a9
[ "MIT" ]
2
2021-03-03T15:29:41.000Z
2021-07-16T12:11:24.000Z
diversity_analysis_tool/graph_construction.py
BenevolentAI/benevolentai-dat
a68c2a438bb5b9651e4e0cb72cdbe02738cc88a9
[ "MIT" ]
1
2021-03-25T07:32:41.000Z
2021-03-25T07:32:41.000Z
import os import logging import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) class GraphUtility: # ============= # Graph Methods # ============= def __init__(self, df, output_direct...
37.313808
123
0.595986
4a0c3bde8bff4fd364732088cc8d3df97b4000ae
1,099
py
Python
Main.py
RackManyLoafs/pygame-wordsearch
7bfb26e73e55c1db8773501aae11c894d6a65b13
[ "MIT" ]
null
null
null
Main.py
RackManyLoafs/pygame-wordsearch
7bfb26e73e55c1db8773501aae11c894d6a65b13
[ "MIT" ]
null
null
null
Main.py
RackManyLoafs/pygame-wordsearch
7bfb26e73e55c1db8773501aae11c894d6a65b13
[ "MIT" ]
null
null
null
# File name: Main.py # Programmer: Sebastien Marleau # Description: imports puzzle data and starts the game # Date: April 9th, 2019 import pygame pygame.init() from Game import * class PuzzleData: def __init__(self, title, rowCount, columnCount, letters, words): self.title = title self.rowCount...
23.891304
124
0.6697
4a0c3be65585257c1d05aa38f08fe45561c91174
3,208
py
Python
python/play/random_forest_on_token_features.py
antlr/groom
909c04b386c6d384344cd0d060dd1e3b4bde77a2
[ "BSD-2-Clause" ]
408
2016-04-21T09:40:08.000Z
2022-03-22T02:05:29.000Z
python/play/random_forest_on_token_features.py
antlr/groom
909c04b386c6d384344cd0d060dd1e3b4bde77a2
[ "BSD-2-Clause" ]
25
2016-01-24T17:28:49.000Z
2021-05-05T19:17:55.000Z
python/play/random_forest_on_token_features.py
antlr/groom
909c04b386c6d384344cd0d060dd1e3b4bde77a2
[ "BSD-2-Clause" ]
78
2016-02-14T07:22:21.000Z
2022-02-10T08:23:12.000Z
from sklearn.ensemble import RandomForestClassifier from sklearn.preprocessing import OneHotEncoder import numpy as np import matplotlib.pyplot as plt import sys def print_importance(forest): importances = forest.feature_importances_ indices = np.argsort(importances)[::-1] # Compute stddev of forest's feat...
34.12766
103
0.692643
4a0c3d3cf4cc5cbc747dbdc37d4ce8e8f777e27c
2,866
py
Python
data/yaws 1st ed--extracted/combine_the_data.py
doomphoenix-qxz/LavoisierCore.jl
46679c43d1da730b9e435c725791cc226c329854
[ "MIT" ]
8
2019-07-25T21:33:14.000Z
2021-08-19T12:11:07.000Z
data/yaws 1st ed--extracted/combine_the_data.py
doomphoenix-qxz/LavoisierCore.jl
46679c43d1da730b9e435c725791cc226c329854
[ "MIT" ]
8
2019-04-15T17:42:21.000Z
2019-11-16T00:45:55.000Z
data/yaws 1st ed--extracted/combine_the_data.py
doomphoenix-qxz/LavoisierCore.jl
46679c43d1da730b9e435c725791cc226c329854
[ "MIT" ]
4
2019-04-17T19:57:12.000Z
2021-05-11T01:13:31.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 5 13:53:29 2019 @author: richar56 """ import csv import numpy as np import pandas as pd import os from os import listdir from os.path import isfile, join import re pattern = re.compile(r'\s+') mypath = os.path.dirname(os.path.realpath("__file__")) ...
27.825243
68
0.508723
4a0c3d7497ec12f9df34e996bbd7ac43bf2ed899
271
py
Python
cogs/test.py
VieAnonime/Verge-Discord
86aa524c3a1dec67151beacb0578b9e416bb5840
[ "MIT" ]
8
2017-07-30T11:31:28.000Z
2021-04-09T19:44:21.000Z
cogs/test.py
VieAnonime/Verge-Discord
86aa524c3a1dec67151beacb0578b9e416bb5840
[ "MIT" ]
null
null
null
cogs/test.py
VieAnonime/Verge-Discord
86aa524c3a1dec67151beacb0578b9e416bb5840
[ "MIT" ]
42
2017-09-11T14:53:37.000Z
2022-03-22T07:38:18.000Z
import discord from discord.ext import commands class Test: def __init__(self, bot): self.bot = bot @commands.command(pass_context=True) async def test(self, ctx): await self.bot.say("!balance") def setup(bot): bot.add_cog(Test(bot))
16.9375
40
0.656827
4a0c401b2a326e05b4bc5e087cdaa9a18cb91046
2,271
py
Python
tests/providers/amazon/aws/sensors/test_glue.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
tests/providers/amazon/aws/sensors/test_glue.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
tests/providers/amazon/aws/sensors/test_glue.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# 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"); you may not u...
36.047619
70
0.707177
4a0c4189ae28dd4741590c5148d4186324d99124
3,507
py
Python
scripts/ingest_metadata.py
neurodata/boss-export
16e9d2b0319876e36e53d3a01622e83e75fc48f1
[ "Apache-2.0" ]
null
null
null
scripts/ingest_metadata.py
neurodata/boss-export
16e9d2b0319876e36e53d3a01622e83e75fc48f1
[ "Apache-2.0" ]
null
null
null
scripts/ingest_metadata.py
neurodata/boss-export
16e9d2b0319876e36e53d3a01622e83e75fc48f1
[ "Apache-2.0" ]
null
null
null
#%% import configparser import json import boto3 import pandas as pd from botocore import exceptions from boss_export.libs import ngprecomputed #%% session = boto3.Session(profile_name="ben-boss-dev") s3 = session.client("s3") BUCKET_NAME = "open-neurodata" PUBLIC_METADATA = "scripts/all_datasets_ids.csv" config = ...
26.770992
142
0.615056
4a0c42bca628585a48d181dac41722015f0c47f6
475
py
Python
manage.py
Jay-68/personal-blog
003d09a712d311b3c2afdcd92df8e07a6ff440ed
[ "MIT" ]
null
null
null
manage.py
Jay-68/personal-blog
003d09a712d311b3c2afdcd92df8e07a6ff440ed
[ "MIT" ]
2
2021-06-08T20:32:27.000Z
2022-03-12T00:03:50.000Z
manage.py
Jay-68/personal-blog
003d09a712d311b3c2afdcd92df8e07a6ff440ed
[ "MIT" ]
null
null
null
from flaskblog import create_app, db from flask_script import Manager, Server from flaskblog.models import User, Post from flask_migrate import Migrate, MigrateCommand app = create_app('production') manager = Manager(app) migrate = Migrate(app, db) manager.add_command('server', Server) manager.add_command('db', Migra...
22.619048
53
0.764211
4a0c439946e00c10230ac03fe5a798507b254984
5,912
py
Python
test/unit/provisioner/lint/test_ansible_lint.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
test/unit/provisioner/lint/test_ansible_lint.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
test/unit/provisioner/lint/test_ansible_lint.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
30.317949
87
0.69046
4a0c4690f59117c4fdd7280240490f93b96e44a2
48
py
Python
org/sfu/billing/utils/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
1
2020-08-15T08:34:36.000Z
2020-08-15T08:34:36.000Z
org/sfu/billing/utils/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
org/sfu/billing/utils/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
__all__= ['propertiesreader','configurations']
16
46
0.770833
4a0c47de21757cdf3bb86ca957ad2b1d6717ea5c
3,707
bzl
Python
python/tensorstore/pybind11_cc_test.bzl
google/tensorstore
8df16a67553debaec098698ceaa5404eaf79634a
[ "BSD-2-Clause" ]
106
2020-04-02T20:00:18.000Z
2022-03-23T20:27:31.000Z
python/tensorstore/pybind11_cc_test.bzl
0xgpapad/tensorstore
dfc2972e54588a7b745afea8b9322b57b26b657a
[ "BSD-2-Clause" ]
28
2020-04-12T02:04:47.000Z
2022-03-23T20:27:03.000Z
python/tensorstore/pybind11_cc_test.bzl
0xgpapad/tensorstore
dfc2972e54588a7b745afea8b9322b57b26b657a
[ "BSD-2-Clause" ]
18
2020-04-08T06:41:30.000Z
2022-02-18T03:05:49.000Z
# Copyright 2021 The TensorStore Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.415254
80
0.659563
4a0c47e55a1b56986e60b5b38ef5e0f0898e7ec7
19,954
py
Python
petl/util/base.py
arturponinski/petl
9215549d9351139b13c5b275515d0cc752ee72b8
[ "MIT" ]
null
null
null
petl/util/base.py
arturponinski/petl
9215549d9351139b13c5b275515d0cc752ee72b8
[ "MIT" ]
null
null
null
petl/util/base.py
arturponinski/petl
9215549d9351139b13c5b275515d0cc752ee72b8
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, division import re from itertools import islice, chain, cycle, product,\ permutations, combinations, takewhile, dropwhile, \ starmap, groupby, tee import operator from collections import Counter, namedtuple, OrderedDict from itertools import compress, co...
25.880674
80
0.545054
4a0c49257e8820a7afb4888ca5b939055a1e87db
866
py
Python
votesim/utilities/__init__.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
8
2019-10-21T23:24:51.000Z
2021-09-14T03:04:59.000Z
votesim/utilities/__init__.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
2
2021-02-09T23:52:47.000Z
2021-02-10T04:08:35.000Z
votesim/utilities/__init__.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
1
2019-10-21T23:32:18.000Z
2019-10-21T23:32:18.000Z
# -*- coding: utf-8 -*- """ Miscellaneous utility functions such as file writers, decorators, etc. """ # from . import decorators # from . import misc # from . import write # from . import recorder # from .decorators import lazy_property, lazy_property2, clean_lazy_properties # from .misc import ( # ...
22.789474
78
0.630485
4a0c495d5160a68736f174b1f10e29525a976236
1,878
py
Python
tempest/services/queuing/json/queuing_client.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/services/queuing/json/queuing_client.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/services/queuing/json/queuing_client.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
31.830508
69
0.669862
4a0c49eb67a420a2a9210888b35ca1b73397c897
215
py
Python
src/__init__.py
isabelcachola/PreSumm
878daed85c0f817d32bcd97a0fdb265674afe8c3
[ "MIT" ]
null
null
null
src/__init__.py
isabelcachola/PreSumm
878daed85c0f817d32bcd97a0fdb265674afe8c3
[ "MIT" ]
null
null
null
src/__init__.py
isabelcachola/PreSumm
878daed85c0f817d32bcd97a0fdb265674afe8c3
[ "MIT" ]
null
null
null
import sys,os sys.path.append(os.path.abspath(os.path.dirname(os.path.dirname(__file__)))) from src import models from src import others from src import distributed from src import preprocess from src import train
26.875
77
0.809302
4a0c4ac690170bb3f35d4be8b844c90370524757
1,727
py
Python
ask_a_mentor/migrations/0001_initial.py
Four-fun/stu-do-list
8902e7456cb5d0031d5c2799fb750557436953ad
[ "Unlicense" ]
null
null
null
ask_a_mentor/migrations/0001_initial.py
Four-fun/stu-do-list
8902e7456cb5d0031d5c2799fb750557436953ad
[ "Unlicense" ]
null
null
null
ask_a_mentor/migrations/0001_initial.py
Four-fun/stu-do-list
8902e7456cb5d0031d5c2799fb750557436953ad
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-05 15:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
44.282051
286
0.63231
4a0c4b84a5c681a8ca954ae752f9568f016849e7
6,623
py
Python
env/lib/python3.7/site-packages/docusign_admin/models/certificate_response.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/docusign_admin/models/certificate_response.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/docusign_admin/models/certificate_response.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign Admin API An API for an organization administrator to manage organizations, accounts and users # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa...
26.922764
125
0.580402
4a0c4b95a5acf31b4de01ea705df32a30cdba655
537
py
Python
setup.py
aheck/testbench
d8dba885817a9053e9fbd37a517751f0fe30dd93
[ "MIT" ]
7
2019-04-29T12:38:50.000Z
2019-05-16T14:18:55.000Z
setup.py
aheck/testbench
d8dba885817a9053e9fbd37a517751f0fe30dd93
[ "MIT" ]
null
null
null
setup.py
aheck/testbench
d8dba885817a9053e9fbd37a517751f0fe30dd93
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='testbench', version='0.1.2', description='Integration Testing with Python and VirtualBox ', url='https://github.com/aheck/testbench', author='Andreas Heck', author_email='aheck@gmx.de', license='MIT', packages=['testbench'], insta...
29.833333
68
0.605214
4a0c4bfa9d234174397b8cf171a7e157e5c54d8d
857
py
Python
demo/Model/hudong_class.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
demo/Model/hudong_class.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
demo/Model/hudong_class.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
# coding: utf-8 class HudongItem: title = None detail = None image = None openTypeList = None baseInfoKeyList = None baseInfoValueList = None label = None # label值从文件中读取 # 初始化,将字典answer赋值给类成员 def __init__(self,answer): self.title = answer['title'] self.detail = answer['detail'] self.image = answer['im...
24.485714
49
0.663944
4a0c4c7c01420ee71449acf356f1b6512b219ff7
1,139
py
Python
tests/test_personal_information.py
andrewgy8/ident
9ac4ee3080600147e3bc8a996425e354000da4c0
[ "Apache-2.0" ]
null
null
null
tests/test_personal_information.py
andrewgy8/ident
9ac4ee3080600147e3bc8a996425e354000da4c0
[ "Apache-2.0" ]
null
null
null
tests/test_personal_information.py
andrewgy8/ident
9ac4ee3080600147e3bc8a996425e354000da4c0
[ "Apache-2.0" ]
null
null
null
from src.blockchain import SecretInformation import unittest import jwt class TestPersonalInformation(unittest.TestCase): info = dict(name='Andrew', surname='Graham', email='andrew@gmail.com', phone_number='123-456-7890') secret_key = 'happy.lucky' def setU...
27.780488
58
0.588235
4a0c4d8fcfed106d133cc591b132850230fb0f52
166
py
Python
d3ct/plugins/out_yaml.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
d3ct/plugins/out_yaml.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
d3ct/plugins/out_yaml.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
import yaml from d3ct.plugins.base import PluginBase class Generator(PluginBase): @staticmethod def output(py_obj): print(yaml.dump(py_obj.data))
15.090909
40
0.716867
4a0c4d9a4de56e12bcb41da18d0eaa294dc1c6b3
676
py
Python
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.3 2020/11/09 09:29:12 adam Exp $ Find libsqlite3. --- setup.py.orig 2018-08-16 18:40:47.000000000 +0000 +++ setup.py @@ -73,8 +73,9 @@ def _have_sqlite_extension_support(): success = False try: compiler.link_shared_object( - compiler.compile([src_file], output...
37.555556
115
0.64645
4a0c4eafd91802fc3e18abd64a28dc7da181b89e
2,888
py
Python
tests/unit_tests/test_near_field_cuda.py
KMCzajkowski/smuthi
a86e1c894ac2067a05c123b8e9a621597c198caa
[ "MIT" ]
3
2020-02-29T14:54:45.000Z
2022-03-18T11:51:11.000Z
tests/unit_tests/test_near_field_cuda.py
KMCzajkowski/smuthi
a86e1c894ac2067a05c123b8e9a621597c198caa
[ "MIT" ]
null
null
null
tests/unit_tests/test_near_field_cuda.py
KMCzajkowski/smuthi
a86e1c894ac2067a05c123b8e9a621597c198caa
[ "MIT" ]
3
2021-05-15T06:54:48.000Z
2021-12-27T11:30:14.000Z
import smuthi.initial_field as init import smuthi.particles as part import smuthi.coordinates as coord import smuthi.simulation as simul import smuthi.layers as lay import smuthi.scattered_field as sf import smuthi.cuda_sources as cu import numpy as np ld = 550 rD = [100, -100, 100] D = [1e7, 2e7, 3e7] waypoints = [0,...
41.855072
121
0.754155
4a0c4f392a2f5bc7380eb63690e641187ecc8cf2
1,393
py
Python
nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileGeometry.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2019-03-25T14:11:18.000Z
2019-03-25T14:11:18.000Z
nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileGeometry.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2017-01-05T01:24:33.000Z
2017-01-05T01:24:33.000Z
nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileGeometry.py
wtriplett/nipype
388f140fceaf55438a987e9cdfa2a8e995428afd
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..developer import JistLaminarProfileGeometry def test_JistLaminarProfileGeometry_inputs(): input_map = dict( args=dict(argstr="%s",), environ=dict(nohash=True, usedefault=True,), inProfile=dict(argstr="--inProfile %s", extensions=...
40.970588
69
0.664752
4a0c4f3efc9a7fdb4b43b70a61a7040e1b0e8517
19,928
py
Python
DL/text.py
sanchjain/Cicada-3301-Hackathon
40b332bde397894dda710b9443fa3fbbccfb128d
[ "MIT" ]
1
2021-05-29T11:42:18.000Z
2021-05-29T11:42:18.000Z
DL/text.py
sanchjain/Cicada-3301-Hackathon
40b332bde397894dda710b9443fa3fbbccfb128d
[ "MIT" ]
null
null
null
DL/text.py
sanchjain/Cicada-3301-Hackathon
40b332bde397894dda710b9443fa3fbbccfb128d
[ "MIT" ]
3
2021-05-28T15:28:21.000Z
2021-05-28T15:39:27.000Z
from sentence_transformers import SentenceTransformer from transformers import logging from sklearn.metrics.pairwise import cosine_similarity import numpy as np logging.set_verbosity_error() class TextFilter: def __init__(self, threshold=0.45): self.model = SentenceTransformer('bert-base-nli-mean-tokens')...
433.217391
2,527
0.764301
4a0c50595270adca2d82942e2a2192add377b708
3,152
py
Python
pyvault/crypto/encryption_utils.py
MattCCS/PyVault
c0e87a1bf731e0c7c800a599b0b33885e484b92b
[ "MIT" ]
null
null
null
pyvault/crypto/encryption_utils.py
MattCCS/PyVault
c0e87a1bf731e0c7c800a599b0b33885e484b92b
[ "MIT" ]
null
null
null
pyvault/crypto/encryption_utils.py
MattCCS/PyVault
c0e87a1bf731e0c7c800a599b0b33885e484b92b
[ "MIT" ]
null
null
null
""" This file contains a simple API for encrypting and decrypting data with symmetric encryption, as well as for generating AES keys and initialization vectors. Author: Matthew Cotton """ # standard import json # custom from pyvault.crypto import crypto_settings from pyvault.crypto import errors from pyvault.crypto...
28.142857
106
0.716053
4a0c5095e8cd219b444c3ac2c626bf38b733db23
27,658
py
Python
labscript_devices/AndorSolis/andor_sdk/andor_utils.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
2
2020-02-02T10:27:56.000Z
2020-05-05T12:36:39.000Z
labscript_devices/AndorSolis/andor_sdk/andor_utils.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
43
2020-05-12T20:34:36.000Z
2022-03-29T21:47:29.000Z
labscript_devices/AndorSolis/andor_sdk/andor_utils.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
23
2020-05-31T03:15:59.000Z
2022-02-25T14:36:45.000Z
import numpy as np import time from .andor_solis import * from .andor_capabilities import * from zprocess import rich_print s, ms, us, ns = 1.0, 1e-3, 1e-6, 1e-9 class AndorCam(object): default_acquisition_attrs = { 'acquisition': 'single', 'emccd': False, 'emccd_gain': 50, ...
38.574616
115
0.596934
4a0c50a47aaca582243e6cd75df9cba4c00c4478
2,972
py
Python
plugins/custom_thumbnail.py
AJTITAN23/AJURL
33143368ecf39500af2484d9bd654b65bfc114cd
[ "MIT" ]
1
2021-06-13T02:25:16.000Z
2021-06-13T02:25:16.000Z
plugins/custom_thumbnail.py
AJTITAN23/AJURL
33143368ecf39500af2484d9bd654b65bfc114cd
[ "MIT" ]
null
null
null
plugins/custom_thumbnail.py
AJTITAN23/AJURL
33143368ecf39500af2484d9bd654b65bfc114cd
[ "MIT" ]
null
null
null
import os if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: from config import Config from pyrogram import Client, filters from translation import Translation import database.database as sql from database.database import * @Client.on_message(filters.private & filters.ph...
33.022222
126
0.64031
4a0c50e3502d046a6c085614745de79c6b9ab202
113,883
py
Python
hops/featurestore_impl/core.py
davitbzh/hops-util-py
f4c150d71e690b608c1cae10542a3f6bbb13f1ac
[ "Apache-2.0" ]
1
2020-07-28T11:20:21.000Z
2020-07-28T11:20:21.000Z
hops/featurestore_impl/core.py
davitbzh/hops-util-py
f4c150d71e690b608c1cae10542a3f6bbb13f1ac
[ "Apache-2.0" ]
null
null
null
hops/featurestore_impl/core.py
davitbzh/hops-util-py
f4c150d71e690b608c1cae10542a3f6bbb13f1ac
[ "Apache-2.0" ]
null
null
null
""" Featurestore Core Implementation Module hierarchy of featurestore implementation: - featurestore | --- core | ----dao ----exceptions ----query_planner ----rest ----util ----featureframes ----visua...
56.517618
144
0.683719
4a0c543eb940e76b0405a88a855aff248d415827
13,406
py
Python
cryptoapis/model/inline_response40331.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/inline_response40331.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/inline_response40331.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
47.038596
484
0.598016
4a0c5514c9d7d0496d68ce7f6b0d6132974e6ad3
16,469
py
Python
eZmaxApi/model/ezsigndocument_request.py
eZmaxinc/eZmax-SDK-python
5b4d54b69db68aab8ee814a1e26460a0af03784e
[ "MIT" ]
null
null
null
eZmaxApi/model/ezsigndocument_request.py
eZmaxinc/eZmax-SDK-python
5b4d54b69db68aab8ee814a1e26460a0af03784e
[ "MIT" ]
null
null
null
eZmaxApi/model/ezsigndocument_request.py
eZmaxinc/eZmax-SDK-python
5b4d54b69db68aab8ee814a1e26460a0af03784e
[ "MIT" ]
null
null
null
""" eZmax API Definition This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.3 Contact: support-api@ezmax.ca Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
50.830247
220
0.616674
4a0c55d4bfb0f7bc2037c6071944b5e5f84dc85e
3,940
py
Python
python_koans/python3/koans/about_iteration.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
python_koans/python3/koans/about_iteration.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
python_koans/python3/koans/about_iteration.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutIteration(Koan): def test_iterators_are_a_type(self): it = iter(range(1,6)) fib = 0 for num in it: fib += num self.assertEqual(15 , fib) def test_iterating_with_next(self): ...
28.550725
81
0.535025
4a0c560280165b751cabb04de5c60a539863e800
285,836
py
Python
databricks/koalas/frame.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
1
2019-12-06T05:01:34.000Z
2019-12-06T05:01:34.000Z
databricks/koalas/frame.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
null
null
null
databricks/koalas/frame.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.097469
100
0.518644
4a0c565d78be0bf08c5f8a3ef971148ba4149931
1,510
py
Python
pytorch_lightning/trainer/connectors/model_connector.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-02-26T09:15:38.000Z
2021-02-26T09:15:38.000Z
pytorch_lightning/trainer/connectors/model_connector.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-03-01T17:32:12.000Z
2021-03-01T17:32:12.000Z
pytorch_lightning/trainer/connectors/model_connector.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2020-10-18T10:32:31.000Z
2020-10-18T10:32:31.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.75
116
0.727815
4a0c56c936c713b3d213687027fecddd3818ef21
36,597
py
Python
api/tacticalrmm/agents/tests.py
InsaneTechnologies/tacticalrmm
67e7156c4bbbbb4c82e00d94b6aa2cd3b1cf2f2b
[ "MIT" ]
2
2021-04-29T13:34:07.000Z
2021-04-29T13:34:11.000Z
api/tacticalrmm/agents/tests.py
InsaneTechnologies/tacticalrmm
67e7156c4bbbbb4c82e00d94b6aa2cd3b1cf2f2b
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/tests.py
InsaneTechnologies/tacticalrmm
67e7156c4bbbbb4c82e00d94b6aa2cd3b1cf2f2b
[ "MIT" ]
null
null
null
import json import os from itertools import cycle from unittest.mock import patch from django.conf import settings from model_bakery import baker from packaging import version as pyver from logs.models import PendingAction from tacticalrmm.test import TacticalTestCase from winupdate.models import WinUpdatePolicy from...
34.854286
156
0.575047
4a0c57b5df7b948d5ca19641bad038331fa728d7
399
py
Python
setup.py
CoAxLab/glia_playing_atari
e0b69e69af2c4dd655cc4c39c03c20e216949616
[ "MIT" ]
2
2019-11-13T14:41:46.000Z
2022-02-25T18:53:34.000Z
setup.py
CoAxLab/glia_playing_atari
e0b69e69af2c4dd655cc4c39c03c20e216949616
[ "MIT" ]
null
null
null
setup.py
CoAxLab/glia_playing_atari
e0b69e69af2c4dd655cc4c39c03c20e216949616
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='glia', version='0.0.1', description="Glia computers!", url='', author='Erik J. Peterson', author_email='erik.exists@gmail.com', license='MIT', packages=['glia'], scripts=[ 'glia/exp/glia_digits.py', 'glia/exp/glia_xor.py', 'g...
23.470588
61
0.611529
4a0c5862fc15f62500118575ba4cfa6a6b8e2b85
13,447
py
Python
tests/conftest.py
zhonger/aiida-core
403f7e7d896f8408d0cacee9fe41c030a1072eaf
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
tests/conftest.py
zhonger/aiida-core
403f7e7d896f8408d0cacee9fe41c030a1072eaf
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/conftest.py
zhonger/aiida-core
403f7e7d896f8408d0cacee9fe41c030a1072eaf
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.640327
120
0.69086
4a0c5a1f9afdded366847cf8fa76fc4040d112a2
11,830
py
Python
src/sage/combinat/baxter_permutations.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/baxter_permutations.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/baxter_permutations.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
""" Baxter permutations """ from sage.structure.unique_representation import UniqueRepresentation from sage.structure.parent import Parent from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets from sage.combinat.permutation import Permutation, Permutations from sage.rings.integer_ring impor...
33.512748
124
0.552578
4a0c5ad8f5d940e85ecb45146ec6a49d921a180b
2,565
py
Python
skodaconnect/utilities.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
30
2020-11-29T05:27:54.000Z
2022-02-01T19:50:32.000Z
skodaconnect/utilities.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
43
2020-11-21T16:51:06.000Z
2022-01-12T12:55:37.000Z
skodaconnect/utilities.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
22
2020-11-20T13:25:40.000Z
2022-02-01T19:51:37.000Z
from datetime import date, datetime from base64 import b64encode from string import ascii_letters as letters, digits from sys import argv from os import environ as env from os.path import join, dirname, expanduser from itertools import product import json import logging import re _LOGGER = logging.getLogger(__name__) ...
21.923077
82
0.548928
4a0c5b521f0bd4b3874769a2bd450ce612bd8611
1,011
py
Python
setup.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
3
2018-11-29T01:46:55.000Z
2019-10-23T02:37:17.000Z
setup.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
2
2020-02-07T12:08:03.000Z
2021-08-03T18:56:37.000Z
setup.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
3
2019-07-20T23:41:32.000Z
2021-12-01T21:26:55.000Z
#!/usr/bin/env python3 from setuptools import setup setup( name='django_todopago', description='Library to integrate TodoPago into Django apps', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://github.com/WhyNotHugo/django-todopago', license='ISC', packages=['dja...
28.885714
65
0.609298
4a0c5bd2295e8d813d0bc9bba858c5e478931fba
4,539
py
Python
utils.py
applicaai/nlpday-workshop-2019
ce2d193082afbd87b704f3188eb537121d229566
[ "MIT" ]
3
2019-05-31T14:34:32.000Z
2021-01-26T15:57:11.000Z
utils.py
applicaai/nlpday-workshop-2019
ce2d193082afbd87b704f3188eb537121d229566
[ "MIT" ]
1
2020-11-18T21:53:27.000Z
2020-11-18T21:53:27.000Z
utils.py
applicaai/nlpday-workshop-2019
ce2d193082afbd87b704f3188eb537121d229566
[ "MIT" ]
null
null
null
# lots of import for checking the environment import numpy as np import scipy import sklearn import modAL import tqdm import lime import random # actual imports import matplotlib.pyplot as plt import warnings from sklearn.datasets import fetch_20newsgroups from typing import Tuple, List, Any, Union, Callable from flai...
34.648855
118
0.67592
4a0c5c17ddcdfce14caf9e6e3143d74f4d8d57eb
2,178
py
Python
nilmtk/stats/tests/test_totalenergy.py
chandru99/nilmtk
236b16906ec1f6e6ba973e30af11affe5f7e2c9a
[ "Apache-2.0" ]
646
2015-01-17T20:21:58.000Z
2022-03-30T09:17:07.000Z
nilmtk/stats/tests/test_totalenergy.py
chandru99/nilmtk
236b16906ec1f6e6ba973e30af11affe5f7e2c9a
[ "Apache-2.0" ]
643
2015-01-01T18:30:19.000Z
2022-03-23T08:34:29.000Z
nilmtk/stats/tests/test_totalenergy.py
chandru99/nilmtk
236b16906ec1f6e6ba973e30af11affe5f7e2c9a
[ "Apache-2.0" ]
484
2015-01-03T06:37:19.000Z
2022-03-22T15:20:03.000Z
import unittest from ..totalenergy import TotalEnergy, _energy_for_power_series from ...preprocessing import Clip from ... import TimeFrame, ElecMeter, HDFDataStore from ...elecmeter import ElecMeterID from ...consts import JOULES_PER_KWH from ...tests.testingtools import data_dir from os.path import join import numpy ...
35.704918
99
0.68641
4a0c5c406c143604bcd0a10b1df3f910edf97c4c
3,029
py
Python
clips/common.py
Telefonica/clipspy
87d1d63604a209e2271efd3d3b8df0943836a504
[ "BSD-3-Clause" ]
null
null
null
clips/common.py
Telefonica/clipspy
87d1d63604a209e2271efd3d3b8df0943836a504
[ "BSD-3-Clause" ]
null
null
null
clips/common.py
Telefonica/clipspy
87d1d63604a209e2271efd3d3b8df0943836a504
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2016-2019, Matteo Cafasso # All rights reserved. # 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 copyright notice, # this list of conditions and ...
28.308411
80
0.7207
4a0c5d154881988ef67394721f89ea38e50615de
3,471
py
Python
docs/make_docs_test_files.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
null
null
null
docs/make_docs_test_files.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
null
null
null
docs/make_docs_test_files.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
null
null
null
import os import sys from glob import glob from pathlib import Path base_dir = Path(__file__).parent os.makedirs(base_dir / '_generated_tests', exist_ok=True) sys.path.insert(0, base_dir.parent) os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' from django import setup setup() from iommi.docs import generat...
30.716814
124
0.536445
4a0c5e4285ca3c9aca9fe7bc143d368f599c8e02
1,342
py
Python
sec/violent/codes/nmapportscan.py
imsilence/notes
2e00f65f0d61fd077c589e0e9962b062bf591efc
[ "Apache-2.0" ]
null
null
null
sec/violent/codes/nmapportscan.py
imsilence/notes
2e00f65f0d61fd077c589e0e9962b062bf591efc
[ "Apache-2.0" ]
null
null
null
sec/violent/codes/nmapportscan.py
imsilence/notes
2e00f65f0d61fd077c589e0e9962b062bf591efc
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 import logging import argparse import colorama import nmap import socket logger = logging.getLogger(__name__) def port_scan(host, ports): try: _ip = socket.gethostbyname(host) except BaseException as e: logger.error('%s[-] error get host ip addr:%s', colorama.Fore...
35.315789
111
0.577496
4a0c5e49f002676a9b94721d77b0c15a534c8d55
1,172
py
Python
QRSMS/initial/migrations/0049_auto_20200530_1304.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
4
2020-06-16T09:42:20.000Z
2021-11-24T08:18:16.000Z
QRSMS/initial/migrations/0049_auto_20200530_1304.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2021-04-08T21:57:34.000Z
2022-02-27T06:41:15.000Z
QRSMS/initial/migrations/0049_auto_20200530_1304.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2020-11-29T09:45:44.000Z
2022-03-30T15:27:33.000Z
# Generated by Django 2.2 on 2020-05-30 08:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('initial', '0048_auto_20200527_1706'), ] operations = [ migrations.AddField( model_name='sectionmarks', name='marks_mea...
30.051282
72
0.585324
4a0c5f0dc1899ec462680251781cf0785349ace5
27,506
py
Python
coloredlogs/tests.py
hugovk/python-coloredlogs
b63fce3fbf112c568ef89e1670d511a98f64df80
[ "MIT" ]
null
null
null
coloredlogs/tests.py
hugovk/python-coloredlogs
b63fce3fbf112c568ef89e1670d511a98f64df80
[ "MIT" ]
null
null
null
coloredlogs/tests.py
hugovk/python-coloredlogs
b63fce3fbf112c568ef89e1670d511a98f64df80
[ "MIT" ]
null
null
null
# Automated tests for the `coloredlogs' package. # # Author: Peter Odding <peter@peterodding.com> # Last Change: February 14, 2020 # URL: https://coloredlogs.readthedocs.io """Automated tests for the `coloredlogs` package.""" # Standard library modules. import contextlib import imp import logging import logging.handl...
45.919866
118
0.653058
4a0c5f87edd01ade467c7f9e275ffd6861ee4041
852
py
Python
emoji_functions.py
TimGoebel/yolox_deepsort
284f5d493866d8c636b4ec7994bf5834fab0c219
[ "Apache-2.0" ]
null
null
null
emoji_functions.py
TimGoebel/yolox_deepsort
284f5d493866d8c636b4ec7994bf5834fab0c219
[ "Apache-2.0" ]
null
null
null
emoji_functions.py
TimGoebel/yolox_deepsort
284f5d493866d8c636b4ec7994bf5834fab0c219
[ "Apache-2.0" ]
null
null
null
def vid_to_frames(path): frames = [] cap = cv2.VideoCapture(path) ret = True while ret: ret, img = cap.read() # read one frame from the 'capture' object; img is (H, W, C) if ret: frames.append(img) return frames # Overlaying Image and Emoji def add_image(img, src2, x, ...
23.027027
90
0.557512
4a0c61825ea7e5cae3dbfc3d31c3cefede3c7ce5
43,689
py
Python
sss/negotiator.py
OA-DeepGreen/Simple-Sword-Server
fbce8d24e7c7b56a0140fd5cbabce2b58c830ee2
[ "BSD-3-Clause" ]
null
null
null
sss/negotiator.py
OA-DeepGreen/Simple-Sword-Server
fbce8d24e7c7b56a0140fd5cbabce2b58c830ee2
[ "BSD-3-Clause" ]
null
null
null
sss/negotiator.py
OA-DeepGreen/Simple-Sword-Server
fbce8d24e7c7b56a0140fd5cbabce2b58c830ee2
[ "BSD-3-Clause" ]
1
2020-03-05T15:39:40.000Z
2020-03-05T15:39:40.000Z
""" Negotiator ========== Negotiator offers a framework for making content negotiation decisions based on the HTTP accept headers. NOTE it currently only formally supports Accept and Accept-Language, but it is a short haul to support for Accept-Charset and Accept-Encoding (TODO) """ import logging log = logging.g...
45.55683
190
0.618829
4a0c61b189b602c3af1cdc5a56928e1f1125da65
335
py
Python
config.py
arthurBondarenko/flask_intro
8b308945c855fbe746df558db36c4b48e3f0fbff
[ "MIT" ]
null
null
null
config.py
arthurBondarenko/flask_intro
8b308945c855fbe746df558db36c4b48e3f0fbff
[ "MIT" ]
null
null
null
config.py
arthurBondarenko/flask_intro
8b308945c855fbe746df558db36c4b48e3f0fbff
[ "MIT" ]
null
null
null
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') MAIL_SERVER = 'smtp.googlemail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = os.environ.get('EMAIL_USER') MAIL_PASSWORD = os.environ.ge...
30.454545
72
0.701493
4a0c61e41a0a066a244eac377988c65b148e717f
8,466
py
Python
scraper/page_getters.py
Edward-TL/vsbuy_backend
e6b3e71d6c0e6b253707489d70d951400acac451
[ "MIT" ]
null
null
null
scraper/page_getters.py
Edward-TL/vsbuy_backend
e6b3e71d6c0e6b253707489d70d951400acac451
[ "MIT" ]
1
2020-10-05T01:27:02.000Z
2020-10-05T01:27:02.000Z
scraper/page_getters.py
Edward-TL/vsbuy_backend
e6b3e71d6c0e6b253707489d70d951400acac451
[ "MIT" ]
1
2020-10-05T01:21:59.000Z
2020-10-05T01:21:59.000Z
from scrape_funcs import search_boxes from data import Page import re def get_names(boxes_array, Page, position=None): names = [None]*len(boxes_array) name = Page.names_get # If you know want to know some info of an specific product by its position on the page. # Like you know the position of...
38.135135
117
0.515828
4a0c624b3c0ea2053448e91a270165c78179fc55
9,592
py
Python
engine.py
dvd42/detr
08b9854d527441164e8ce083f024e86e5bccb008
[ "Apache-2.0" ]
null
null
null
engine.py
dvd42/detr
08b9854d527441164e8ce083f024e86e5bccb008
[ "Apache-2.0" ]
null
null
null
engine.py
dvd42/detr
08b9854d527441164e8ce083f024e86e5bccb008
[ "Apache-2.0" ]
2
2020-10-20T08:04:44.000Z
2021-01-10T09:56:24.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Train and eval functions used in main.py """ import math import random import os import sys from typing import Iterable import wandb import torch import util.misc as utils from util.io import create_wandb_img from datasets.coco_eval import Coc...
42.255507
133
0.635113
4a0c6398b24a0691cc03d510952090b45b49adee
5,299
py
Python
tests/integ/sagemaker/lineage/test_artifact.py
longyuzhao/sagemaker-python-sdk
5c6c8e9a8a414627caa7e1d3d80d44cdc2a1c01f
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/integ/sagemaker/lineage/test_artifact.py
longyuzhao/sagemaker-python-sdk
5c6c8e9a8a414627caa7e1d3d80d44cdc2a1c01f
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/integ/sagemaker/lineage/test_artifact.py
longyuzhao/sagemaker-python-sdk
5c6c8e9a8a414627caa7e1d3d80d44cdc2a1c01f
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright 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 accompan...
33.751592
92
0.701076
4a0c641012e864dc72e1e4517bf34d7a7da4d926
6,630
py
Python
sounds.py
AllanRamsay/ACCENTS
4cc2e2fac83c317188b4d6950b449110318f27ac
[ "MIT" ]
null
null
null
sounds.py
AllanRamsay/ACCENTS
4cc2e2fac83c317188b4d6950b449110318f27ac
[ "MIT" ]
null
null
null
sounds.py
AllanRamsay/ACCENTS
4cc2e2fac83c317188b4d6950b449110318f27ac
[ "MIT" ]
null
null
null
from useful import * import wave import struct from numpy.fft import rfft, irfft try: import pylab except: print "You won't be able to plot graphs, but the other stuff will work" import numpy as pylab import math from play import play """ Represent the content of a .wav file as an object: the frames is a...
27.857143
150
0.526998
4a0c6436e70b7770638a14abf99df332271f6243
240
py
Python
raft/messages/append_entries.py
baonguyen2604/raft-consensus
83dae8f8919384f6645a7041ea3c5b1239db1a14
[ "MIT" ]
1
2020-11-01T17:07:08.000Z
2020-11-01T17:07:08.000Z
raft/messages/append_entries.py
baonguyen2604/raft-consensus
83dae8f8919384f6645a7041ea3c5b1239db1a14
[ "MIT" ]
null
null
null
raft/messages/append_entries.py
baonguyen2604/raft-consensus
83dae8f8919384f6645a7041ea3c5b1239db1a14
[ "MIT" ]
1
2021-04-26T13:32:44.000Z
2021-04-26T13:32:44.000Z
from .base_message import BaseMessage class AppendEntriesMessage(BaseMessage): _type = BaseMessage.AppendEntries def __init__(self, sender, receiver, term, data): BaseMessage.__init__(self, sender, receiver, term, data)
24
64
0.75
4a0c64859aecb03900c161f7f11c37eff961b721
3,511
py
Python
Xana/Xdrop/DropletizeData.py
reiserm/Xana
056f2bf2da67ba0dade49bb4b56ea2afd42b36bd
[ "MIT" ]
1
2021-01-25T08:57:57.000Z
2021-01-25T08:57:57.000Z
Xana/Xdrop/DropletizeData.py
reiserm/Xana
056f2bf2da67ba0dade49bb4b56ea2afd42b36bd
[ "MIT" ]
21
2020-03-23T12:50:32.000Z
2021-05-07T07:54:38.000Z
Xana/Xdrop/DropletizeData.py
reiserm/Xana
056f2bf2da67ba0dade49bb4b56ea2afd42b36bd
[ "MIT" ]
2
2020-03-22T10:31:09.000Z
2020-07-01T14:00:28.000Z
import numpy as np import numpy.ma as ma from Xdrop.dropletizem import dropimgood_sel import time import pickle import re from matplotlib import pyplot as plt def dropletizedata(data, pars, mask=None, dark=None, savdir="./", savname=None): # print(dropimgood_sel.__doc__) dim = data.shape mshape = dim[-2:]...
28.544715
80
0.494161
4a0c64d48423cf48d0f9743ec2acc6dc5130fd2e
1,310
py
Python
accounts/models.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
accounts/models.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
accounts/models.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.urls import reverse from .managers import AccountManager # Custom user created. class Account(AbstractBaseUser): #Custom user class inheriting AbstractBaseUser class username = models.CharField(max_length=255, uni...
36.388889
83
0.710687
4a0c67f862d613b79479ab7316c9b0a9b1a4797d
15,266
py
Python
tests/contrib/cassandra/test.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/cassandra/test.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/cassandra/test.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
# stdlib import contextlib import logging import unittest from threading import Event # 3p from cassandra.cluster import Cluster, ResultSet from cassandra.query import BatchStatement, SimpleStatement # project from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.cassandra.patch import patch, u...
34.61678
121
0.646731
4a0c67fd52ed9b4c684d17edb56c84ac68b5a4dd
4,346
py
Python
finetune/qa/squad_official_eval_v1.py
Wangkaixinlove/sentiment
a1bd7f099c4885d4e65435e403ff5932ebfab73a
[ "Apache-2.0" ]
null
null
null
finetune/qa/squad_official_eval_v1.py
Wangkaixinlove/sentiment
a1bd7f099c4885d4e65435e403ff5932ebfab73a
[ "Apache-2.0" ]
null
null
null
finetune/qa/squad_official_eval_v1.py
Wangkaixinlove/sentiment
a1bd7f099c4885d4e65435e403ff5932ebfab73a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.220472
74
0.71537
4a0c6899dc8fdb39f85553a611748b327454c992
914
py
Python
0013. Roman to Integer/Roman_to_Integer_sol.py
amitdev101/leetcode
cd03a088a3f6dd989be91e37420acfd7b29fce6e
[ "MIT" ]
1
2021-04-23T13:55:38.000Z
2021-04-23T13:55:38.000Z
0013. Roman to Integer/Roman_to_Integer_sol.py
amitdev101/leetcode
cd03a088a3f6dd989be91e37420acfd7b29fce6e
[ "MIT" ]
null
null
null
0013. Roman to Integer/Roman_to_Integer_sol.py
amitdev101/leetcode
cd03a088a3f6dd989be91e37420acfd7b29fce6e
[ "MIT" ]
null
null
null
class Solution: def romanToInt(self, s: str) -> int: mydict = { "I":1, "IV":4, "V":5, "IX":9, "X":10, "XL":40, "L":50, "XC":90, "C":100, "CD":400, "D":500, "CM":900...
23.435897
40
0.252735
4a0c6996630832c7adef6d87e8fd9b0e09f6c822
185
py
Python
examples/harris.py
sayefsakin/phylanx_halide
760305e0b2c3ed0fdbf81416d000ebca4b034585
[ "BSL-1.0" ]
null
null
null
examples/harris.py
sayefsakin/phylanx_halide
760305e0b2c3ed0fdbf81416d000ebca4b034585
[ "BSL-1.0" ]
2
2021-08-28T21:38:44.000Z
2022-03-25T12:41:58.000Z
examples/harris.py
sayefsakin/phylanx_halide
760305e0b2c3ed0fdbf81416d000ebca4b034585
[ "BSL-1.0" ]
2
2021-08-28T20:48:41.000Z
2022-03-25T12:01:47.000Z
from phylanx import Phylanx import cv2 import numpy @Phylanx def add(img): return harris(img) img = cv2.imread("rgba.png") data = numpy.asarray(img) print(data.shape) add(data)
12.333333
28
0.724324
4a0c6a5d9c5e6fae2876dad38c1cb981f2fa5940
2,227
py
Python
ax/plot/marginal_effects.py
mwijaya3/Ax
ab64ec71067eb1f7c4f6a5d017761121a93e71f3
[ "MIT" ]
null
null
null
ax/plot/marginal_effects.py
mwijaya3/Ax
ab64ec71067eb1f7c4f6a5d017761121a93e71f3
[ "MIT" ]
null
null
null
ax/plot/marginal_effects.py
mwijaya3/Ax
ab64ec71067eb1f7c4f6a5d017761121a93e71f3
[ "MIT" ]
1
2019-07-02T08:54:44.000Z
2019-07-02T08:54:44.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from typing import Any, List import pandas as pd import plotly.graph_objs as go from ax.modelbridge.base import ModelBridge from ax.plot.base import DECIMALS, AxPlotConfig, AxPlotTypes from ax.plot.helper import get_plot_da...
32.75
80
0.638976
4a0c6ad2f31830c6d6fbb022054333b82af3110a
23,314
py
Python
mim/Fragment.py
nbraunsc/MIM
587ae79b0ec76c20af6235a68c85ed15f2cc7155
[ "BSD-3-Clause" ]
null
null
null
mim/Fragment.py
nbraunsc/MIM
587ae79b0ec76c20af6235a68c85ed15f2cc7155
[ "BSD-3-Clause" ]
null
null
null
mim/Fragment.py
nbraunsc/MIM
587ae79b0ec76c20af6235a68c85ed15f2cc7155
[ "BSD-3-Clause" ]
null
null
null
import string import time import numpy as np #from .Pyscf import * #from ase import Atoms #from ase.calculators.vasp import Vasp #from ase.vibrations import Infrared from numpy import linalg as LA from mendeleev import element #import mim #from mim import runpie, Molecule, fragmentation, Fragment, Pyscf class Frag...
41.483986
152
0.558849
4a0c6aee5e511b9324c646f82fbdfb9d541519b3
9,025
py
Python
api/rossmann/Rossmann.py
moraes-ederson/DataScienceEmProducao
de01ab47564c09900ac5580f867073ffd280e663
[ "MIT" ]
null
null
null
api/rossmann/Rossmann.py
moraes-ederson/DataScienceEmProducao
de01ab47564c09900ac5580f867073ffd280e663
[ "MIT" ]
null
null
null
api/rossmann/Rossmann.py
moraes-ederson/DataScienceEmProducao
de01ab47564c09900ac5580f867073ffd280e663
[ "MIT" ]
null
null
null
import pickle import inflection import pandas as pd import numpy as np import math import datetime class Rossmann(object): def __init__(self): self.home_path = '/media/ederson/Arquivos/MeusArquivos-Ederson/Cursos/Comunidade_DS/DataScienceEmProducao/' self.competition_distance_scaler = pickle.load...
46.282051
153
0.543934
4a0c6c0d609a0134177376603320605f1c5c3934
13,813
py
Python
src/model_training_ctimp.py
jhchung/summary-gwas-imputation
f860475fdd714de90fa66a1c6e5e2ff59d631d97
[ "MIT" ]
1
2021-09-24T11:27:56.000Z
2021-09-24T11:27:56.000Z
src/model_training_ctimp.py
RajLabMSSM/summary-gwas-imputation
f860475fdd714de90fa66a1c6e5e2ff59d631d97
[ "MIT" ]
null
null
null
src/model_training_ctimp.py
RajLabMSSM/summary-gwas-imputation
f860475fdd714de90fa66a1c6e5e2ff59d631d97
[ "MIT" ]
null
null
null
__author__ = "alvaro barbeira" import subprocess import re import os import logging import gzip import numpy import pandas import collections import shutil import traceback import pyarrow.parquet as pq from genomic_tools_lib import Utilities, Logging from genomic_tools_lib.data_management import TextFileTools from g...
48.637324
209
0.671252
4a0c6c58619fc5e3fb3f88e91b12cf0b9524c43b
27,279
py
Python
xarray/tests/test_sparse.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_sparse.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_sparse.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
import pickle from textwrap import dedent import numpy as np import pandas as pd import pytest import xarray as xr import xarray.ufuncs as xu from xarray import DataArray, Variable from xarray.core.npcompat import IS_NEP18_ACTIVE from xarray.core.pycompat import sparse_array_type from . import assert_equal, assert_i...
32.017606
88
0.521463
4a0c6c5d29c9152d6748d728d706ae5b56ad241d
2,431
py
Python
deployment/modules/solr.py
fizista/Mturk-Tracker
9016528a36054112d2dbc63035eff5d4cd82001f
[ "MIT" ]
null
null
null
deployment/modules/solr.py
fizista/Mturk-Tracker
9016528a36054112d2dbc63035eff5d4cd82001f
[ "MIT" ]
null
null
null
deployment/modules/solr.py
fizista/Mturk-Tracker
9016528a36054112d2dbc63035eff5d4cd82001f
[ "MIT" ]
null
null
null
from os.path import join as pjoin, isdir from fabric.api import sudo, settings, env from fabric.colors import yellow from modules.utils import (PROPER_SUDO_PREFIX as SUDO_PREFIX, show, cset, cget, local_files_dir, upload_templated_folder_with_perms, upload_template_with_perms, create_target_directories) def p...
40.516667
79
0.678733
4a0c6e6ec8500279fdc9f8254cf1f6f16533b56d
2,482
py
Python
parallel-nn/src_mnist/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
2
2021-07-30T10:04:18.000Z
2022-01-30T18:29:30.000Z
parallel-nn/src_mnist/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
1
2021-10-17T20:08:41.000Z
2021-10-17T20:08:41.000Z
parallel-nn/src_mnist/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
2
2021-07-30T10:04:20.000Z
2021-09-01T00:07:14.000Z
''' How to Train Neural Networks in Parallel (From Scratch) === Author: Nicholas Geneva (MIT Liscense) url: https://nicholasgeneva.com/blog/ github: https://github.com/NickGeneva/blog-code === ''' import argparse import numpy as np import torch import random from pathlib import Path class Parser(argparse.ArgumentParse...
43.54386
139
0.651491
4a0c6f072f133290d9877a706ab3a723765e085e
7,625
py
Python
fpdb/common/table.py
xvzezi/filedb-python
513de426976e2782aa9aced1a2bf522db7aae51d
[ "MIT" ]
null
null
null
fpdb/common/table.py
xvzezi/filedb-python
513de426976e2782aa9aced1a2bf522db7aae51d
[ "MIT" ]
null
null
null
fpdb/common/table.py
xvzezi/filedb-python
513de426976e2782aa9aced1a2bf522db7aae51d
[ "MIT" ]
null
null
null
# coding=utf-8 ########################### # file: table.py # date: 2021-7-16 # author: Sturmfy # desc: wrapper of the FileJson # version: # 2021-7-16 init design ########################### from .cache import JsonFile class FilterType: EQUAL = 0 LESS = 1 LESSEQ = 2 GRTR = 3 GRTREQ...
25.332226
59
0.465705
4a0c6f9021fe3b2c1d136c69246e23788d2e861f
672
py
Python
commands/cat.py
DiscordHackers/BetterBot
5b21c9b1280d205fa0b81c99f87626c1c8a24b81
[ "Apache-2.0" ]
null
null
null
commands/cat.py
DiscordHackers/BetterBot
5b21c9b1280d205fa0b81c99f87626c1c8a24b81
[ "Apache-2.0" ]
null
null
null
commands/cat.py
DiscordHackers/BetterBot
5b21c9b1280d205fa0b81c99f87626c1c8a24b81
[ "Apache-2.0" ]
null
null
null
import disnake as discord import requests import json from disnake.ext import commands from api.check import utils, block from api.server import base, main class Cat(commands.Cog): def __init__(self, client): self.client = client @commands.command() @block.block() async def cat(self, ctx): ...
24.888889
94
0.678571
4a0c6fd4d22f33ca615df603929c5052243b64e0
4,487
py
Python
aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_format.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
247
2019-07-02T21:10:21.000Z
2022-03-30T13:55:33.000Z
aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_format.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
1,462
2019-07-02T20:57:30.000Z
2022-03-31T23:13:35.000Z
aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_format.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
377
2019-06-20T21:01:31.000Z
2022-03-30T08:27:53.000Z
"""Issue-credential protocol message attachment format.""" from collections import namedtuple from enum import Enum from typing import Mapping, Sequence, Type, TYPE_CHECKING, Union from uuid import uuid4 from marshmallow import EXCLUDE, fields from .....utils.classloader import DeferLoad from .....messaging.decorato...
30.944828
83
0.609316
4a0c701441ca6e50a7ae882104073d87ec1cc055
6,985
py
Python
config/settings/production.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
1
2021-01-04T04:30:24.000Z
2021-01-04T04:30:24.000Z
config/settings/production.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
6
2019-12-21T03:19:17.000Z
2020-01-07T07:28:04.000Z
config/settings/production.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
null
null
null
import logging import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.celery import CeleryIntegration from .base import * # noqa from .base import env # GENERAL # -----------------------------------...
39.022346
100
0.600286
4a0c70bee63196c309eb7cf813a9159fdb1b6acf
14,893
py
Python
app/grandchallenge/archives/views.py
gcjordi/grand-challenge.org
b00e16feb9090d7d938f9934c59cc9c3ade01490
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/archives/views.py
gcjordi/grand-challenge.org
b00e16feb9090d7d938f9934c59cc9c3ade01490
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/archives/views.py
gcjordi/grand-challenge.org
b00e16feb9090d7d938f9934c59cc9c3ade01490
[ "Apache-2.0" ]
null
null
null
from dal import autocomplete from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.mixins import ( PermissionRequiredMixin, UserPassesTestMixin, ) from django.contrib.messages.views import SuccessMessageMixin from django.core.exceptions import ( NON_FIELD_E...
31.027083
100
0.680118
4a0c725ba03af6b477054e5536c1de88c8da6f3a
3,628
py
Python
groupdocs_conversion_cloud/models/j2c_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
5
2019-11-21T04:58:45.000Z
2021-02-05T05:22:37.000Z
groupdocs_conversion_cloud/models/j2c_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
null
null
null
groupdocs_conversion_cloud/models/j2c_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="J2cConvertOptions.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy...
34.884615
85
0.598677
4a0c7461b5e0403201c4f5168b296c5ee78ff659
7,752
py
Python
trade.py
zysilence/gym-anytrading
e534c442474a9384219c051567c560ba359be6ba
[ "MIT" ]
null
null
null
trade.py
zysilence/gym-anytrading
e534c442474a9384219c051567c560ba359be6ba
[ "MIT" ]
null
null
null
trade.py
zysilence/gym-anytrading
e534c442474a9384219c051567c560ba359be6ba
[ "MIT" ]
null
null
null
""" Main file with entry point. Author: sfan """ import time import gym import gym_anytrading from gym_anytrading.envs import TradingEnv, ForexEnv, StocksEnv, MyStockCnnEnv, MyStockCwtEnv from gym_anytrading.datasets import FOREX_EURUSD_1H_ASK, STOCKS_GOOGL from gym_anytrading.datasets import XAUUSD_1H, XAUUSD_4H, XA...
41.015873
123
0.676213
4a0c7482ea68ad1c82d9744fdb0439fca9994a53
5,331
py
Python
app/admin/views.py
razage/TTracker3
6098c809b01b5fcb3dd3828228fbaa3d7a160360
[ "MIT" ]
null
null
null
app/admin/views.py
razage/TTracker3
6098c809b01b5fcb3dd3828228fbaa3d7a160360
[ "MIT" ]
1
2015-01-27T13:58:58.000Z
2015-01-27T13:58:58.000Z
app/admin/views.py
razage/TTracker3
6098c809b01b5fcb3dd3828228fbaa3d7a160360
[ "MIT" ]
null
null
null
from os.path import join from flask import Blueprint, flash, Markup, redirect, render_template, request, session, url_for from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.exc import NoResultFound from werkzeug.security import generate_password_hash from .decorators import admin_required from .forms impor...
42.309524
114
0.61602
4a0c754cede72da08409ba90033bd6f5b4e0a6e5
1,343
py
Python
olds/mc_train_opts.py
xdr940/DeepSfMLearner
591efe6b2ab74b0c72215fe69d2c38d624547fa3
[ "MIT" ]
null
null
null
olds/mc_train_opts.py
xdr940/DeepSfMLearner
591efe6b2ab74b0c72215fe69d2c38d624547fa3
[ "MIT" ]
null
null
null
olds/mc_train_opts.py
xdr940/DeepSfMLearner
591efe6b2ab74b0c72215fe69d2c38d624547fa3
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import os import argparse from path import Path file_dir = os.path.dirname(__file__) # the directory that run_infer_opts.py resides in class mc_train_opts: def __init__(self): self.parser = argparse.ArgumentParser(description="Monodepthv2...
36.297297
100
0.584512
4a0c756647441d4266c21b5e71d32ca65301a996
793
py
Python
algorithms/python/SmallestSubsequenceOfDistinctCharacters/SmallestSubsequenceOfDistinctCharacters.py
artekr/LeetCode
a072b57423e4ba74cf205eb7a1cf59afde0dcd4f
[ "MIT" ]
null
null
null
algorithms/python/SmallestSubsequenceOfDistinctCharacters/SmallestSubsequenceOfDistinctCharacters.py
artekr/LeetCode
a072b57423e4ba74cf205eb7a1cf59afde0dcd4f
[ "MIT" ]
null
null
null
algorithms/python/SmallestSubsequenceOfDistinctCharacters/SmallestSubsequenceOfDistinctCharacters.py
artekr/LeetCode
a072b57423e4ba74cf205eb7a1cf59afde0dcd4f
[ "MIT" ]
2
2020-08-07T17:27:18.000Z
2022-01-25T20:18:06.000Z
########## # !!! What does `lexicographically smallest subsequence` mean?? ######### class Solution: def smallestSubsequence(self, text: str) -> str: if not text: return "" charSet = {} for c in text: if c not in charSet: charSet[c] = c resul...
29.37037
63
0.590164
4a0c765c65ffab3d28e7703c3cbfebdead621b59
3,879
py
Python
common/generator.py
baimengwei/Traffic-Flow-Test-Platform
71f68a797cd94a71f895ab2f5225c4ef529f35a5
[ "MIT" ]
2
2021-11-18T07:56:22.000Z
2021-11-18T07:56:56.000Z
common/generator.py
baimengwei/Traffic-Flow-Test-Platform
71f68a797cd94a71f895ab2f5225c4ef529f35a5
[ "MIT" ]
null
null
null
common/generator.py
baimengwei/Traffic-Flow-Test-Platform
71f68a797cd94a71f895ab2f5225c4ef529f35a5
[ "MIT" ]
null
null
null
from configs.config_phaser import * from misc.utils import write_summary, downsample class Generator: def __init__(self, conf_path, round_number, is_test=False): self.conf_exp, self.conf_agent, self.conf_traffic = \ conf_path.load_conf_file() self.conf_path = conf_path self.ro...
42.163043
79
0.620521
4a0c769e9328fd53fab5bbf133ab667eef8e15dd
41,897
py
Python
rift/packet_common.py
kennethhuang123/rift-python
f4c208fe39cb14535573708637fa2345c919666b
[ "Apache-2.0" ]
43
2018-07-19T17:41:35.000Z
2022-03-16T04:04:09.000Z
rift/packet_common.py
kennethhuang123/rift-python
f4c208fe39cb14535573708637fa2345c919666b
[ "Apache-2.0" ]
96
2018-07-19T11:06:08.000Z
2021-07-27T10:52:09.000Z
rift/packet_common.py
kennethhuang123/rift-python
f4c208fe39cb14535573708637fa2345c919666b
[ "Apache-2.0" ]
29
2018-07-24T22:01:20.000Z
2022-02-13T21:28:18.000Z
# pylint:disable=too-many-lines import copy import ipaddress import struct import sortedcontainers import thrift.protocol.TBinaryProtocol import thrift.transport.TTransport import common.ttypes import constants import encoding.ttypes import encoding.constants import key import utils RIFT_MAGIC = 0xA1F7 class Packe...
41.400198
100
0.692102
4a0c770f0b4fe43f6e40bc5c56070a6012259462
2,890
py
Python
benchmark/illgal_recognizer/mosaic/main.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
24
2021-12-02T01:00:54.000Z
2022-03-27T00:50:28.000Z
benchmark/illgal_recognizer/mosaic/main.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
null
null
null
benchmark/illgal_recognizer/mosaic/main.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
3
2021-12-02T01:00:47.000Z
2022-03-04T07:33:09.000Z
import cv2 as cv2 import couchdb import os,json # couchdb_address = 'http://openwhisk:openwhisk@10.2.64.8:5984/' # db = couchdb.Server(couchdb_address) # def active_storage(avtive_type, user_object,document_id,filename,file_path=None,content_type=None, save_path=None): # if avtive_type == 'PUT': # content...
43.134328
128
0.674048
4a0c77913f79c14a4eccf1be739e670424d0ad05
16,878
py
Python
Framework/LanguageSupport/thrift/gen-py/MMIStandard/services/MBlendingService.py
FG-92/MOSIM_Core
abc32fd0d2213859b11b6d41193d5d7f760e4104
[ "MIT" ]
19
2020-11-30T09:29:11.000Z
2021-12-10T06:10:11.000Z
Framework/LanguageSupport/thrift/gen-py/MMIStandard/services/MBlendingService.py
FG-92/MOSIM_Core
abc32fd0d2213859b11b6d41193d5d7f760e4104
[ "MIT" ]
null
null
null
Framework/LanguageSupport/thrift/gen-py/MMIStandard/services/MBlendingService.py
FG-92/MOSIM_Core
abc32fd0d2213859b11b6d41193d5d7f760e4104
[ "MIT" ]
6
2021-01-20T01:46:37.000Z
2021-09-28T10:22:14.000Z
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
34.374745
134
0.604692
4a0c78176da7bcfe8bbacefa5edb7c9732203574
1,764
py
Python
var/spack/repos/builtin/packages/librsvg/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-02-08T15:05:27.000Z
2021-02-08T15:05:27.000Z
var/spack/repos/builtin/packages/librsvg/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/librsvg/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2022-01-18T23:39:24.000Z
2022-01-18T23:39:24.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Librsvg(AutotoolsPackage): """Library to render SVG files using Cairo""" homepage = "...
37.531915
97
0.722222
4a0c7919af7ab78a1b246cedc9267eaf932869a5
5,314
py
Python
lib/googlecloudsdk/compute/lib/utils.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/compute/lib/utils.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/compute/lib/utils.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. All Rights Reserved. """Utility functions that don't belong in the other utility modules.""" import cStringIO import re import urlparse from googlecloudapis.compute.v1 import compute_v1_client from googlecloudsdk.calliope import exceptions as calliope_exceptions from googlecloudsdk.compu...
31.630952
77
0.708882
4a0c79aff2bca394568b5e4212872173d8f2380b
6,198
py
Python
home.admin/config.scripts/lnd.initwallet.py
softyengineer/raspiblitz
04b054e55c21194e27946670b0a5e4896f6805ba
[ "MIT" ]
1
2020-01-13T12:36:43.000Z
2020-01-13T12:36:43.000Z
home.admin/config.scripts/lnd.initwallet.py
softyengineer/raspiblitz
04b054e55c21194e27946670b0a5e4896f6805ba
[ "MIT" ]
null
null
null
home.admin/config.scripts/lnd.initwallet.py
softyengineer/raspiblitz
04b054e55c21194e27946670b0a5e4896f6805ba
[ "MIT" ]
null
null
null
#!/usr/bin/python import codecs, os, sys, base64 # display config script info if len(sys.argv) <= 1 or sys.argv[1] == "-h" or sys.argv[1] == "help": print("# ! always activate virtual env first: source /home/admin/python-env-lnd/bin/activate") print("# ! and run with with: python /home/admin/config.scripts/lnd...
30.382353
119
0.604227
4a0c7bd05897fb638d21fb9cd673fefa3521fc6f
2,351
py
Python
examples/example1/backend_b.py
FragmentedPacket/diffsync
e9bc79cce83277bd3a097b337568705b916b3590
[ "Apache-2.0" ]
null
null
null
examples/example1/backend_b.py
FragmentedPacket/diffsync
e9bc79cce83277bd3a097b337568705b916b3590
[ "Apache-2.0" ]
null
null
null
examples/example1/backend_b.py
FragmentedPacket/diffsync
e9bc79cce83277bd3a097b337568705b916b3590
[ "Apache-2.0" ]
null
null
null
"""Example of a DiffSync adapter implementation. Copyright (c) 2020 Network To Code, LLC <info@networktocode.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
36.734375
104
0.629094
4a0c7c2877ede72a2ebc85f61c3fc2cec52f7861
2,053
py
Python
doajtest/unit/test_datasets.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
doajtest/unit/test_datasets.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
doajtest/unit/test_datasets.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
from portality import datasets from doajtest.helpers import DoajTestCase class TestDatasets(DoajTestCase): def setUp(self): pass def tearDown(self): pass def test_01_countries(self): """ Use country information from our datasets """ assert datasets.get_country_code('unite...
43.680851
147
0.684851
4a0c7ca88a3ad8fc33884cdecfdf1f259194675f
2,963
py
Python
src/sims4communitylib/enums/lot_traits_enum.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
src/sims4communitylib/enums/lot_traits_enum.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
src/sims4communitylib/enums/lot_traits_enum.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from sims4communitylib.enums.enumtypes.common_int import Co...
44.223881
125
0.757678
4a0c7ccc83ff7001df2c492e6f683f90cf178eda
2,633
py
Python
userena/contrib/umessages/templatetags/umessages_tags.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
86
2018-03-09T22:24:39.000Z
2021-12-12T22:30:33.000Z
userena/contrib/umessages/templatetags/umessages_tags.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
113
2018-02-25T12:24:13.000Z
2022-02-22T17:59:51.000Z
userena/contrib/umessages/templatetags/umessages_tags.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
19
2018-08-16T18:13:48.000Z
2021-12-11T18:14:30.000Z
from django import template from userena.contrib.umessages.models import MessageRecipient import re register = template.Library() class MessageCount(template.Node): def __init__(self, um_from_user, var_name, um_to_user=None): self.user = template.Variable(um_from_user) self.var_name = var_name ...
27.715789
85
0.639195
4a0c7d613121af834b27442414f939c7fda9287a
836
py
Python
python/oneflow/compatible/single_client/sysconfig.py
zzk0/oneflow
ab15f5986ee0081da5493ee63d3f2acf063ae229
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/sysconfig.py
zzk0/oneflow
ab15f5986ee0081da5493ee63d3f2acf063ae229
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/sysconfig.py
zzk0/oneflow
ab15f5986ee0081da5493ee63d3f2acf063ae229
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
30.962963
72
0.770335
4a0c7db9e942f0558c28cb5689f35f6fc2d5eafd
1,120
py
Python
tests/unit/sagemaker/huggingface/huggingface_utils.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1
2021-08-31T09:39:37.000Z
2021-08-31T09:39:37.000Z
tests/unit/sagemaker/huggingface/huggingface_utils.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
null
null
null
tests/unit/sagemaker/huggingface/huggingface_utils.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
null
null
null
# Copyright 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 accompan...
30.27027
72
0.724107
4a0c7ecef89cee1d225f05c70831ce1b53228bdd
17,738
py
Python
fastflix/widgets/panels/cover_panel.py
AwesomeGitHubRepos/FastFlix
60adf2b68a13907ac17013cb621867b2b302c101
[ "MIT" ]
1
2021-06-14T04:35:50.000Z
2021-06-14T04:35:50.000Z
fastflix/widgets/panels/cover_panel.py
AwesomeGitHubRepos/FastFlix
60adf2b68a13907ac17013cb621867b2b302c101
[ "MIT" ]
1
2020-12-24T13:08:56.000Z
2020-12-24T13:08:56.000Z
fastflix/widgets/panels/cover_panel.py
leonardyan/FastFlix
01f19c2de74945a4c60db61711aea9d3fe01b0cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import re from pathlib import Path from typing import List, Tuple, Union from box import Box from qtpy import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.encode import AttachmentTrack from fastflix.models.fastflix_app impo...
44.345
119
0.648777
4a0c7f3680cb371f8eacd8456368aa2b4e1a47b8
10,095
py
Python
bitbots_navigation/bitbots_visual_compass/src/visual_compass_setup.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
5
2019-10-30T06:32:37.000Z
2022-03-11T08:48:43.000Z
bitbots_navigation/bitbots_visual_compass/src/visual_compass_setup.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
83
2019-03-07T16:34:47.000Z
2022-03-23T17:02:06.000Z
bitbots_navigation/bitbots_visual_compass/src/visual_compass_setup.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
4
2019-07-28T11:24:02.000Z
2021-09-10T16:20:20.000Z
#! /usr/bin/env python3 from os import path import socket import rospy import rospkg import math import cv2 import pickle from cv_bridge import CvBridge from sensor_msgs.msg import Image from std_msgs.msg import Header from dynamic_reconfigure.server import Server from bitbots_visual_compass.cfg import VisualCompassCon...
38.530534
170
0.604458
4a0c7fc2c4aa65904ad21fbd25c46989b1d9cb7e
2,217
py
Python
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0024.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0024.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0024.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
33.089552
84
0.682454
4a0c7fed6964fe2bc22e3498da8aba59b223a69e
3,119
py
Python
meiduo_mall/meiduo_mall/apps/users/models.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/models.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/models.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData from django.conf import settings from meiduo_mall.utils.models import BaseModel # Create your models here. class User(AbstractUser): """用户模型类""" mob...
38.9875
117
0.649247
4a0c7ffe5a4596f8bb204f44a22706238ef4127a
557
py
Python
curso em video - Phython/desafios/desafio 37.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
curso em video - Phython/desafios/desafio 37.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
curso em video - Phython/desafios/desafio 37.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
num = int(input('Digite um número inteiro: ')) opcao = int(input('Escolha a seguinte opção:\n [ 1 ] Converter para Binário\n [ 2 ] Converter para Octal\n ' '[ 3 ] Converter para hexadecimal\n' 'Sua opção: ')) if opcao == 1: print(f'O número {num} convertido em Binário é {bin(num...
46.416667
108
0.601436
4a0c805a0c4c771ee1ef983636a9cf80bb58f2d1
4,312
py
Python
zun/common/policy.py
cooldharma06/zun_glance_tag
555399275afdff748888036a2fca47bbf347956b
[ "Apache-2.0" ]
null
null
null
zun/common/policy.py
cooldharma06/zun_glance_tag
555399275afdff748888036a2fca47bbf347956b
[ "Apache-2.0" ]
null
null
null
zun/common/policy.py
cooldharma06/zun_glance_tag
555399275afdff748888036a2fca47bbf347956b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
41.461538
79
0.61039
4a0c808a40118ed6422978baa7ab2e0a21e60134
432
py
Python
djinn/math/Vector.py
djeof-1/Djinn-IV
2b191b68109f46a9fc264b6a823f70beb58ddffd
[ "MIT" ]
3
2015-12-26T11:48:34.000Z
2016-01-13T14:24:27.000Z
build/lib/djinn/math/Vector.py
l0ftyWhizZ/DJINN-IV
2b191b68109f46a9fc264b6a823f70beb58ddffd
[ "MIT" ]
1
2015-12-28T14:15:26.000Z
2015-12-28T14:15:26.000Z
djinn/math/Vector.py
djeof-1/Djinn-IV
2b191b68109f46a9fc264b6a823f70beb58ddffd
[ "MIT" ]
2
2016-01-05T10:18:13.000Z
2016-01-16T09:45:28.000Z
import pygame from pygame.locals import * import math class Vector: def __init__(self,x,y,z): self._x = x self._y = y self._z = z def addVector(self,x,y,z): self._x += x self._y += y self._z += z def scalarProduct(self,vector): self._x *= vector._x...
18
38
0.523148