repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
naveenv20/myseleniumpythonlearn | 4,226,247,834,618 | b32ec313f43ad7071085691021ac0f1691563e5b | 70d9f2ec1f44b124962fa1895532084238c63a2a | /ControlFlow/forloop.py | 8158c49eb495ddc2497c5bbcd839452b334f46cd | [] | no_license | https://github.com/naveenv20/myseleniumpythonlearn | eee6f1eefdcab96de95060ab13888f5435eb1cbc | e30203e975263be07f3f2a4207c55e680cce9040 | refs/heads/master | 2020-12-27T00:43:42.004206 | 2020-02-03T20:50:14 | 2020-02-03T20:50:14 | 237,708,854 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
For Loop
and looping through strings,list,tuple,dictionary
"""
my_string="abcdefghijklmno"
for c in my_string:
if(c=="g"):
print('G')
else:
print(c, end=" ") ## am not aksing to print in new line ..so using end am saying print with " "
cars=['bmw','honda','benz']
for car in cars:
pri... | UTF-8 | Python | false | false | 783 | py | 22 | forloop.py | 20 | 0.605364 | 0.555556 | 0 | 37 | 20.081081 | 119 |
simon-ritchie/apyscript | 6,717,328,892,939 | e5ceeced97a4351d5f0f501c346e8cd02b8ed4fa | 175bf8bae6f380e2134fe7332d5ee4cfca756c0a | /tests/_time/test_month_end_mixin.py | 65bc39a04f79290e64439e6d6acad8a0be22b401 | [
"MIT",
"CC-BY-4.0"
] | permissive | https://github.com/simon-ritchie/apyscript | 7fb8a4b7bf75a5189127b59b78f55e4185918c54 | 6e3f2881f40deeb5409e93cf0a8971819845e689 | refs/heads/main | 2023-03-19T12:38:17.113129 | 2023-03-18T02:35:36 | 2023-03-18T02:35:36 | 334,394,290 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import apysc as ap
from apysc._expression import expression_data_util
from apysc._testing.testing_helper import apply_test_settings
from apysc._time.month_end_mixin import MonthEndMixin
class TestMonthEndMixin:
@apply_test_settings()
def test_set_month_end(self) -> None:
expression_data_util.... | UTF-8 | Python | false | false | 941 | py | 1,701 | test_month_end_mixin.py | 889 | 0.621679 | 0.608927 | 0 | 25 | 35.64 | 86 |
markanethio/gretel-python-client | 18,459,769,448,599 | 82b6b2f28abdc3b278fc321537214f598a741883 | 6ca10769948e2eb678f24f37500e5df5aa27b02a | /tests/src/gretel_client/unit/transformers/transformers/test_bucket.py | 7785c76a00790f5f3459d8d8aca96c4d7b4bcd83 | [
"Python-2.0",
"Apache-2.0"
] | permissive | https://github.com/markanethio/gretel-python-client | cc04a61ee04b674be4293baa89589b95c3c86843 | f910a64550fd6fba75f6d347f2a1251694dbde80 | refs/heads/master | 2023-06-25T01:36:54.985590 | 2021-06-17T16:13:06 | 2021-06-17T16:13:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from gretel_client.transformers.base import factory
from gretel_client.transformers import DataTransformPipeline, DataPath
from gretel_client.transformers.transformers.bucket import (
BucketConfig,
bucket_creation_params_to_list,
get_bucket_labels_from_creation_params,
Bucket,
BucketCreationParams,
... | UTF-8 | Python | false | false | 5,642 | py | 131 | test_bucket.py | 90 | 0.57072 | 0.534562 | 0 | 184 | 29.663043 | 87 |
wkostuch/comp-phys-niceties | 2,662,879,754,934 | f48e07cfa1ba15ada80898e965338a3fb33e7b7b | e5875a54ebbbc795b19803a8c09fa4e9838431ca | /runge_kutta_4_example.py | 4e9dd58ff3197e9173cfe06ff314aacb86266e09 | [] | no_license | https://github.com/wkostuch/comp-phys-niceties | 89fb2bfffb1a611d08a2fa6af5cda0bfeba9a895 | ed5ff0c7e03668041eacf13008bee66796e428d0 | refs/heads/master | 2023-01-24T15:58:02.553065 | 2020-11-21T19:47:02 | 2020-11-21T19:47:02 | 295,499,521 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Runge-Kutta 4 example
import numpy as np
import matplotlib.pyplot as plt
'''
Application of the RK4 algorithm
Want to solve dx/dt = 1 - t*sin(x) with initial condition x = 0 at t = 0
Up to t = 10
'''
def der(x: float, t: float) -> float:
"""Derivative function from above."""
return 1 - t * np.sin(x)
# In... | UTF-8 | Python | false | false | 729 | py | 34 | runge_kutta_4_example.py | 31 | 0.57476 | 0.524005 | 0 | 36 | 19.25 | 72 |
renmengye/tfplus | 4,140,348,521,819 | a059e16a8fe459f7595fcf8a9cc9f3a132f0299a | cf4c919ff3d1f7f9f5390497f0346f0bc859b1a5 | /tfplus/__init__.py | 83b6247d84475ff88d694e2188bcb1891a7d85df | [
"MIT"
] | permissive | https://github.com/renmengye/tfplus | 692d0b74e2b25fc352d9c3597a3d5dcb09e86ba8 | 9b1f71d33f24af510c701c7d6f6bb816720ed701 | refs/heads/master | 2020-04-05T02:15:39.628949 | 2016-11-21T19:30:25 | 2016-11-21T19:30:25 | 62,580,849 | 2 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | from expr import experiment, runner
import data
import nn
from utils import cmd_args
from utils.cmd_args import init
| UTF-8 | Python | false | false | 117 | py | 58 | __init__.py | 57 | 0.820513 | 0.820513 | 0 | 5 | 22.4 | 35 |
avitalRubin/python-class | 11,416,023,087,543 | c005d4b7916f3a6b9e446b656fa73dc9401e4fdd | 8103968238017b637117712816d6fe9c87c289b1 | /sequence_operators.py | 401a2c91961ffd05ec99ad1f6e7bb9a07ce24ee9 | [] | no_license | https://github.com/avitalRubin/python-class | 8481a1a098cd9d5f5671e3aa2b25c990d137a9e9 | 96001a558a9ac2b13d6d5a16f3130c2b6322196c | refs/heads/master | 2020-12-12T11:01:29.739388 | 2020-01-15T19:50:47 | 2020-01-15T19:50:47 | 234,112,520 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | str1="he's"
str2="probably"
str3="pining"
print(str1+" "+ str2+" "+str3);
print (str1*5);
age=24
print("my age is {0} years old".format(age));
m1="spam"+"eggs"+"beans";
m2="""spam
eggs
beans"""
print(m1)
print(m2)
days="Mon, Tue, Wed, Thu, Fri, Sat, Sun"
print(days[::5])
data="1:A, 2:B, 3:C, 4:D, 5:E, 6:F, 7:G, 8:F"
pr... | UTF-8 | Python | false | false | 390 | py | 9 | sequence_operators.py | 8 | 0.6 | 0.517949 | 0 | 20 | 18.55 | 45 |
DLwbm123/generalized-variational-continual-learning | 5,686,536,700,018 | 1272ab879c27b4766f03c2fd75ea9fbbc06b4c8d | 9534d5f23354d7670d61d5beb0c352986df2c785 | /src/best_hyperparams.py | 17307a064d8dcb91f774b8dffd4fe217e6410baa | [] | no_license | https://github.com/DLwbm123/generalized-variational-continual-learning | e3d0ae48a3f02028b3b1d7375a547fb733f1bef8 | 659b88161db0b1d884a7ebcdf477dbef3ad95add | refs/heads/master | 2023-04-16T07:13:05.120551 | 2021-05-03T18:40:10 | 2021-05-03T18:40:10 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def get_best_params(approach, experiment):
#the best hyperparams for all the experiments
param = None
epochs = 200
lr = 0.05
if experiment == 'mixture':
if approach in ['ewc', 'ewc-film']:
param = 5
if approach == 'hat':
param = '0.75,400'
if approach ... | UTF-8 | Python | false | false | 3,816 | py | 22 | best_hyperparams.py | 19 | 0.415094 | 0.359539 | 0 | 144 | 25.5 | 49 |
MisLink/Little-Projects | 6,081,673,724,653 | ccf76a9923530e56fbde4778a26bdaa0e08e29ef | fd4bb91ef4eed298f952ff9a80f519dbeddc5702 | /Text/ex8_realtime_quotes/forms.py | a77329992bec62de648f027d8e21aeadb5968b52 | [] | no_license | https://github.com/MisLink/Little-Projects | 1ed2210077a6848f6f5c90b26eb44f4d09f5936b | 013d76c23002ee9719f532c0dc703255cfd734ea | refs/heads/master | 2016-08-12T16:53:32.456855 | 2016-05-13T07:44:02 | 2016-05-13T07:44:02 | 54,758,919 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask.ext.wtf import Form
from wtforms import StringField, SelectField, SubmitField, IntegerField
class InputForm(Form):
type = SelectField('股票类型', choices=[('sh', '上证指数'), ('sz', '深证成指')])
id = StringField('股票代码')
refresh = IntegerField('刷新时间')
submit = SubmitField('提交')
| UTF-8 | Python | false | false | 340 | py | 10 | forms.py | 8 | 0.682432 | 0.682432 | 0 | 9 | 31.888889 | 72 |
30s/gwwx | 2,980,707,308,829 | 3ae83c44646b8fddbf8a083c36fdc334a417ce78 | 3deac733ed5a405be6b3d0e574659355aacce518 | /gwwx/views.py | c9f5f57ce1211fee21df491e6513105b17566bec | [] | no_license | https://github.com/30s/gwwx | e6189174182a1bd871fec363a1f47ef4da157bcd | 055585422412d5989f582f3ba433b962e1206ad9 | refs/heads/master | 2021-01-18T08:02:08.938276 | 2014-12-18T16:06:45 | 2014-12-18T16:06:45 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf import settings
from django.http import HttpResponse
from django.views.generic import View
from wechatpy.utils import check_signature
from wechatpy.exceptions import InvalidSignatureException
class Wechat(View):
def dispatch(self, *args, **kwargs):
signature = self.request.GET.get('signa... | UTF-8 | Python | false | false | 791 | py | 4 | views.py | 2 | 0.680152 | 0.676359 | 0 | 24 | 31.958333 | 72 |
raulds77/inference_project | 3,917,010,214,457 | c4cf18e6fcfa1934a34b593bea68174e3b224669 | 90ed9a87d46177db51f64b35bcd3d7912501ebb8 | /vbmfa/fa.py | 78229bc1f111e4d2c7d6cae1ccbfb11fc9413ca6 | [] | no_license | https://github.com/raulds77/inference_project | 5ac2a9accb87c81eb42af13e334ce6de670f1687 | 501d55bda477b2e8235e0182bdaeddf8d4ac0fad | refs/heads/master | 2021-08-30T13:07:53.192468 | 2017-12-18T04:02:14 | 2017-12-18T04:02:14 | 112,255,591 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Variational Bayesian Factor Analyser.
Implementation of a single factor analyser.
Model parameters are inferred by variational Bayes.
"""
import numpy as np
from scipy.special import digamma
class VbFa(object):
"""Variational Bayesian Factor Analyser
Takes a :math:`p \\times n` data matrix :math:`y` wi... | UTF-8 | Python | false | false | 16,131 | py | 8 | fa.py | 2 | 0.516893 | 0.514165 | 0 | 584 | 26.621575 | 120 |
snowch/movie-recommender-demo | 94,489,281,831 | 4af7095f46f9e8fc06507c6a4bae4d0353d052b1 | cdeaf628ab6d7ba44620a52a8917170034874204 | /web_app/app/main/forms.py | bb58b4e0a3b5a70b53e8845d6bbe1f2019c57f60 | [
"Apache-2.0",
"CC-BY-SA-3.0"
] | permissive | https://github.com/snowch/movie-recommender-demo | 4a3520b3c707a872d93bc2f887b89d128ab74284 | 8d945ae526ec9e6cf4d5db147eb8fed70a779187 | refs/heads/master | 2023-04-28T00:12:35.565741 | 2022-06-22T23:10:46 | 2022-06-22T23:10:46 | 78,864,895 | 92 | 55 | Apache-2.0 | false | 2023-04-17T20:14:18 | 2017-01-13T16:26:11 | 2023-04-06T19:54:18 | 2023-04-17T20:14:17 | 29,918 | 70 | 44 | 4 | Jupyter Notebook | false | false | from flask.ext.wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Required
class SearchForm(Form):
search_string = StringField('Enter search string')
submit = SubmitField('Submit')
| UTF-8 | Python | false | false | 232 | py | 53 | forms.py | 17 | 0.780172 | 0.780172 | 0 | 7 | 32 | 54 |
jacobdadams/arcpy_scripts | 6,588,479,843,799 | e835649372c033a7476c14efb3a27519af083e38 | 45acdaaf208952c759902e3178138cbd1171194a | /public_notice.py | 2470131d242e39ca1e0a45c6a8260b83b094187a | [
"MIT"
] | permissive | https://github.com/jacobdadams/arcpy_scripts | cb179e85d2cbc9eea548d320f34b9f0f2f86be54 | 309cc6f6c9679a9060b17d961b8c83bbd142e6a5 | refs/heads/master | 2020-04-01T22:05:24.917234 | 2018-09-11T23:09:53 | 2018-09-11T23:09:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #*****************************************************************************
#
# Project: Major Land Use Project Feature Creation GP Script Tool
# Purpose: Interface for planning staff to create major land use project
# features and automatically generate aerial map, vicinity map, and
# mai... | UTF-8 | Python | false | false | 15,797 | py | 10 | public_notice.py | 8 | 0.647022 | 0.638539 | 0 | 356 | 43.373596 | 189 |
momongaclub/crowdsourcing_site | 8,761,733,324,724 | 6ee951afedd41c82986bb3bd0bbf19c6c716374b | 9a8dbf8069a86218307451990187a80aad3bafce | /flask/database/samples/check_table.py | 516066f3222e4a38e5cdec28471f3ea6361c6e6a | [] | no_license | https://github.com/momongaclub/crowdsourcing_site | 41c0bd67ed07f566d58d1887966f12bbe2562260 | 458b90cc1a98ab2a50ae71012d1fa7f3d6e9100d | refs/heads/master | 2022-12-29T19:51:19.708078 | 2020-10-14T04:44:05 | 2020-10-14T04:44:05 | 300,500,975 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
dbname = './RAP_CORPUS.db'
conn = sqlite3.connect(dbname)
cur = conn.cursor()
# terminalで実行したSQL文と同じようにexecute()に書く
select_sql = 'SELECT * FROM corpus'
for row in cur.execute(select_sql):
print(row)
# 中身を全て取得するfetchall()を使って、printする。
cur.close()
conn.close()
| UTF-8 | Python | false | false | 345 | py | 18 | check_table.py | 11 | 0.729537 | 0.72242 | 0 | 14 | 19.071429 | 37 |
plone/plone.protect | 16,329,465,673,180 | 3ae1d7a1ddec9167168f247e511ba6df7ecd1ab8 | 80aca887f7cf2e7e44779b3162250e7c34622198 | /plone/protect/tests/testPostOnly.py | 7654fb1509f71921c968f6669d7758325a2bd8f4 | [] | no_license | https://github.com/plone/plone.protect | 923bce28dd10d5dc1a0ff4b4188d5f139151c26e | c0f18c099895143620a5e19a27a797b4097f329b | refs/heads/master | 2023-08-03T09:43:36.198938 | 2023-07-04T06:06:33 | 2023-07-04T06:06:33 | 2,432,541 | 6 | 7 | null | false | 2023-07-04T06:06:35 | 2011-09-21T20:17:50 | 2023-04-09T16:25:05 | 2023-07-04T06:06:34 | 364 | 7 | 8 | 12 | Python | false | false | from plone.protect.postonly import check
from unittest import makeSuite
from unittest import TestCase
from unittest import TestSuite
from zExceptions import Forbidden
from ZPublisher.HTTPRequest import HTTPRequest
class PostOnlyTests(TestCase):
def makeRequest(self, method):
return HTTPRequest(
... | UTF-8 | Python | false | false | 806 | py | 24 | testPostOnly.py | 18 | 0.702233 | 0.699752 | 0 | 30 | 25.866667 | 83 |
Junnian/patend | 15,315,853,394,279 | a639d3cc7edb738156a681ad7e80ac05e5f4cded | e93e9ff56ab53365bf6300e69eb04cde3198ddae | /getpatent/getpatent/spiders/patent.py | a2c981ef73a67f9b0c0f9c38367f0eca7476fc66 | [] | no_license | https://github.com/Junnian/patend | d8d1d9ef038e64ac7d57d9757f6e61b667747c9f | 41da8d15428af23c59db63c161bf780dbda61958 | refs/heads/master | 2021-08-31T16:31:50.257941 | 2017-12-22T02:58:53 | 2017-12-22T02:58:53 | 112,728,176 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from getpatent.items import GetpatentItem
from scrapy.http import Request
from scrapy.selector import Selector
import time
from random import random
from getpatent.settings import FIELD,key1s,key2s
from getpatent.spiders.parse_info impo... | UTF-8 | Python | false | false | 9,286 | py | 7 | patent.py | 6 | 0.520205 | 0.506164 | 0 | 220 | 38.822727 | 97 |
XGBTrain5/01.other | 5,849,745,487,530 | d278a481af12a5d4ffcbdb2c9e3a1edc34132ecd | c4776d74c289e971b5424bcb7fc1d13aecd29f1b | /20-10-21/oop_with_python-master/10-super/40-super-1.py | 4eeea91bb8c6e469317ad831d8c4ae97fcc8675e | [
"MIT"
] | permissive | https://github.com/XGBTrain5/01.other | 147d7cdb332b5ffde1f6b067e44737cc75e905ca | 5a9170108e1546549ed5c31935c351d8726fac81 | refs/heads/master | 2023-08-27T23:07:37.474892 | 2021-11-08T13:55:46 | 2021-11-08T13:55:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# 40-super-1.py
# This is an example on how super() works
# in Inheritance.
# For more step-by-step details, refer :
# https://arvimal.wordpress.com/2016/07/01/inheritance-and-super-object-oriented-programming/
class MyClass(object):
def func(self):
print("I'm being called from th... | UTF-8 | Python | false | false | 626 | py | 49 | 40-super-1.py | 41 | 0.669329 | 0.648562 | 0 | 26 | 23.076923 | 93 |
Aasfga/matroids-library | 7,541,962,578,378 | fcd3dbd226e9e86bf184bdf64842df488cc9a6f9 | 5a7e80463921cab5bb87c3002ae6f97cd8711f51 | /tests/test_uniform_matroid.py | d28e40fbc230ffcbda6bc1188603c65490571185 | [
"MIT"
] | permissive | https://github.com/Aasfga/matroids-library | 2dcbddde3028c692ff500ca652dcba81e90d3bee | 468f6fdc4b0c0e93346dba7365fae0fc6993f9cf | refs/heads/master | 2020-07-02T21:25:38.257540 | 2019-09-07T18:37:13 | 2019-09-07T18:37:13 | 201,670,089 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from unittest import TestCase
from uniform_matroid import UniformMatroid
from itertools import combinations
from numpy import array_equal
class TestUniformMatroid(TestCase):
def setUp(self) -> None:
self.size = 10
self.universe = set(range(self.size))
self.rank = 5
... | UTF-8 | Python | false | false | 2,118 | py | 21 | test_uniform_matroid.py | 19 | 0.654863 | 0.651558 | 0 | 54 | 38.222222 | 105 |
wiltonvgc/projeto2 | 10,307,921,511,795 | cdd2991d8f74958712769377446f87dd3e1f8caa | 78d08e4608062b15abdb6f2682f88336e4eb6373 | /lab2/lab2.py | 287c0a8a722d9217530f551c220314621bdc2b6e | [] | no_license | https://github.com/wiltonvgc/projeto2 | 5292c5622cd226b0bbf5c66586b141b1fc22b599 | d1cfbd28e39144aa20bfd7b1e93d58a5be066ad5 | refs/heads/master | 2021-01-19T13:47:03.315667 | 2017-02-21T01:48:54 | 2017-02-21T01:48:54 | 82,418,820 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.log import lg, info, setLogLevel
from mininet.util import dumpNodeConnections, quietRun, moveIntf
from mininet.cli import CLI
from mininet.node import Switch, OVSKernelSwitch
from subprocess import Popen, PIPE, check_outp... | UTF-8 | Python | false | false | 3,275 | py | 4 | lab2.py | 3 | 0.66229 | 0.589008 | 0 | 114 | 27.72807 | 161 |
bird-house/pyramid-phoenix | 4,166,118,313,192 | 4aee12ba4d3d3c653b2bbc2505538508264674ce | 05973b7cf07eb03099e516f21f06a6e295086862 | /phoenix/services/views/actions.py | e19208a54286e58b04c467472e82f2aaefb339f5 | [
"Apache-2.0"
] | permissive | https://github.com/bird-house/pyramid-phoenix | 302a0a4339dfea0318cf4b2545f4005b940155b0 | 36737f95f0991661856f182ba35b850829ca401c | refs/heads/master | 2023-09-01T14:00:20.087987 | 2023-05-11T16:56:14 | 2023-05-11T16:56:14 | 23,655,239 | 7 | 18 | Apache-2.0 | false | 2023-05-04T12:20:44 | 2014-09-04T08:52:32 | 2022-06-13T10:27:35 | 2023-05-04T12:20:43 | 23,501 | 7 | 10 | 49 | JavaScript | false | false | from pyramid.view import view_config, view_defaults
from pyramid.httpexceptions import HTTPFound
import logging
LOGGER = logging.getLogger("PHOENIX")
@view_defaults(permission='submit')
class ServiceActions(object):
"""Actions related to service registration."""
def __init__(self, context, request):
... | UTF-8 | Python | false | false | 1,537 | py | 160 | actions.py | 76 | 0.664932 | 0.664932 | 0 | 45 | 33.155556 | 76 |
codimite/gostep | 2,688,649,530,659 | 0a68d8bbd9cde60af9d836c966fb6de42ad87504 | b6da76f403fd987954c2c55b1e709b229137adb4 | /gostep/consts.py | 31985df232f49ed33184fabe6c7c28158bcf8df2 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | https://github.com/codimite/gostep | 9fe278a45e8c9886adcdbaf03aa90ee61686083c | 8200eb6887f00761e9d37f62e4c31ea9c548d22e | refs/heads/master | 2022-11-29T15:34:36.354806 | 2020-08-10T16:52:06 | 2020-08-10T16:52:06 | 267,124,960 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | GOSTEP_VERSION = 'v0.1.0beta'
GCLOUD_STORAGE_CLASS = 'STANDARD'
FUNCTIONS_API = 'cloudfunctions'
FUNCTIONS_API_VERSION = 'v1'
SERVICE_ENTRY_POINT = 'main'
ENVIRONMENTS = [
'python',
'nodejs',
'java/plain',
'java/spring'
]
TEMPLATE_REPO = 'https://github.com/codimite/gostep-templates/trunk'
BASE_CONFIG... | UTF-8 | Python | false | false | 7,309 | py | 10 | consts.py | 10 | 0.485018 | 0.484471 | 0 | 255 | 27.662745 | 110 |
Shiny-Su/Imperative-Programming | 7,172,595,386,207 | 1d4b967791cb86b9a36ac78d6b1e46cef1c662a3 | fe8a08634393d9db6874e073a016b7e3e0d76977 | /example/17.maze.py | 5773d74ece36a5dc49fc965eb7b2ddf58b299ae9 | [] | no_license | https://github.com/Shiny-Su/Imperative-Programming | 8a1ac0e8960e3d555d98b37eaeff69b582c927af | d5944a70b2506152c8b8047b6e2bf1587a4ac7fc | refs/heads/master | 2020-04-23T23:16:08.256961 | 2019-04-23T10:07:06 | 2019-04-23T10:07:06 | 171,530,395 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # filename = "c :\\ users \\ morse \\ documents \\ imp \\ maze .py"
# exec ( compile ( open ( filename , "rb "). read () , filename , ’exec ’))
maze = """
#################
# # #
# ##### # ##### #
# # # # # #
### # # ##### # #
# # # #
##### ####### # #
# S# # # # #
# ### # ## # ## #
# # ## #
##############... | UTF-8 | Python | false | false | 2,062 | py | 104 | 17.maze.py | 57 | 0.425024 | 0.396787 | 0 | 62 | 31.129032 | 87 |
postfactum/djangoapp | 5,248,450,075,903 | e689b017e3fc43758125957327447a560a43d65d | 6e4258e8e780f39a800ffdcc0b92189a3f0b15bd | /blog/views.py | 5fffd2928e5ebcaddc0d069ad39d8dbf70f2a9f1 | [] | no_license | https://github.com/postfactum/djangoapp | 80ec7e7eddad589d12b14eaed691313a81e3182f | 9d04414b9f64adc4626fa040b05d360d16ec63c7 | refs/heads/master | 2021-01-19T04:02:15.995642 | 2017-04-05T19:16:35 | 2017-04-05T19:16:35 | 87,083,027 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.http import HttpResponse
from django.shortcuts import render, render_to_response
from .models import Post
# Create your views here.
def post_list(request):
post_list = Post.objects.all()
search = request.GET.get('search')
if search:
post_list = post_list.filter(text__icontains=searc... | UTF-8 | Python | false | false | 702 | py | 4 | views.py | 1 | 0.679487 | 0.679487 | 0 | 31 | 21.645161 | 96 |
Frozen-Soul/Buyer-s-playground | 1,322,849,930,094 | 0cd65182efea20a9a3f0c7c4d39763209ab6a10c | 3d628bf49a53a64375a3efb4675babf86b6ca73c | /venv/lib/python3.6/site-packages/statsmodels/sandbox/archive/linalg_decomp_1.py | 7852bf83971f0c17db64129dc87a66cc41ca13fe | [] | no_license | https://github.com/Frozen-Soul/Buyer-s-playground | ce2928db6cf285ab03fc20455cccf9dd5055abdb | 63b45fa8ff4bce58c45efa5f4b9e12decba43299 | refs/heads/master | 2020-04-26T00:20:15.067506 | 2019-07-20T05:03:36 | 2019-07-20T05:03:36 | 173,174,272 | 4 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:287357d1310e902e7f7b5eb0ebc8434357a31a4d797b358aeef8a40f44b8834e
size 9056
| UTF-8 | Python | false | false | 129 | py | 2,705 | linalg_decomp_1.py | 2,201 | 0.883721 | 0.496124 | 0 | 3 | 42 | 75 |
malibustacy/tstoolbox | 15,925,738,769,174 | fc37bc3786985b5b9a1eb589aab8ac2e187c17b6 | d531fd5aa07e23997c2a7da27c8e88ffef3f204e | /tstoolbox/fill_functions.py | 54160fa7019983654d48f8d59b9827006b7c57ea | [
"BSD-3-Clause"
] | permissive | https://github.com/malibustacy/tstoolbox | 59dbb5ad097cb5241deacdf75a5c6b46f83ff154 | 51ffa55a7c7130a6ce98bbb5d5c937ecc66480d0 | refs/heads/master | 2021-04-15T18:37:31.622113 | 2018-03-16T01:55:28 | 2018-03-16T01:55:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/sjr/beodata/local/python_linux/bin/python
"""A collection of filling routines."""
from __future__ import print_function
from __future__ import absolute_import
from builtins import zip
from builtins import range
import pandas as pd
import mando
from mando.rst_text_formatter import RSTHelpFormatter
from . import ts... | UTF-8 | Python | false | false | 7,749 | py | 17 | fill_functions.py | 17 | 0.50884 | 0.503162 | 0 | 202 | 37.356436 | 79 |
GWFrank/ItC-Reversi-Agent | 14,620,068,703,352 | 2b07208579666686779b0878506b54d5ffbb3fbf | a39bd72350f6f81f92a508f588cf5eee96198a32 | /test_agents_multi_rounds.py | a453a47031e09e651b4be25b06dbb5b86c489b30 | [] | no_license | https://github.com/GWFrank/ItC-Reversi-Agent | 80aebfa764c944d6f1a291ff45ba6a56dca26d5b | 26c4fb1892f2e21f37844f5a87bd76a948d0157e | refs/heads/main | 2023-03-09T07:01:36.376641 | 2021-02-22T10:22:25 | 2021-02-22T10:22:25 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import time
import pickle
from agent.GWFrank_func.match_agents import matchup, matchup_mp, playgame
from agent.GWFrank_func.test_agent_class import RandomTestAgent, MinimaxCountTestAgent, PaperTestAgent
from agent.GWFrank_func.test_agent_class import MinimaxTestAgent, LittleRandomTestAgent, MinimaxModTestAg... | UTF-8 | Python | false | false | 1,911 | py | 20 | test_agents_multi_rounds.py | 16 | 0.700157 | 0.688121 | 0 | 62 | 29.83871 | 108 |
jahedev/euler | 1,382,979,494,177 | b3c46d21440f33e776f6d67ba2deda821c637c62 | eb23644a86a4ffa1fb2dcd612816e98709105045 | /prime_xp.py | 5fd78998fdb2f14183f2866898805122f76687dd | [] | no_license | https://github.com/jahedev/euler | d45837774d394bd06c94e77e0e64c47d6592b504 | 27904498a8ccd787628644c9df8e5c31ff834751 | refs/heads/master | 2022-02-26T03:27:54.241516 | 2019-09-14T07:00:13 | 2019-09-14T07:00:13 | 206,631,571 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
def pbar(string, curr, cap):
print('\r %s %.2f%s \r' % (string,(curr/cap)*100,'%'), end='\r')
# Print iterations progress
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█'):
"""
Call in a loop to create terminal progress bar
@params:
... | UTF-8 | Python | false | false | 3,622 | py | 21 | prime_xp.py | 21 | 0.610221 | 0.593923 | 0 | 106 | 33.160377 | 106 |
NateWeiler/Resources | 12,412,455,527,748 | e773796f4f551458f380919a5903c6b4d879da8f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/pyinstaller/tests/functional/specs/several-scripts/main-script2.py | caceedb4bd77a8a0607b023f202fc8b07c45bc04 | [] | no_license | https://github.com/NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | false | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | 2021-12-09T12:39:04 | 2022-09-08T15:20:18 | 2,434,051 | 1 | 0 | 32 | null | false | false | version https://git-lfs.github.com/spec/v1
oid sha256:5bd2da445c4e3bc03b6f8d204e9f17d88d7cbf37b6297cb63f6ef53f8d60878f
size 95
| UTF-8 | Python | false | false | 127 | py | 36,207 | main-script2.py | 16,386 | 0.88189 | 0.543307 | 0 | 3 | 41.333333 | 75 |
marvpaul/ContentManagementTasks | 4,569,845,209,627 | fbb10d8c5d3f33ff73484c3ae93239ad53353708 | f24edead7aac1c8826effb704d1f5272eaca2a01 | /Notebook1/Euler22.py | a0be44786425a250a0afb36278a1f3deb674decb | [] | no_license | https://github.com/marvpaul/ContentManagementTasks | dfa0093ca065aba84d1aff5789dbe373023e8324 | a2ce626d7361095c3b556a8b8e392dc800c437d6 | refs/heads/master | 2021-09-03T17:46:43.028761 | 2018-01-10T20:52:59 | 2018-01-10T20:52:59 | 107,541,830 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def getScore(name, position):
"this function calculates the score for a name depending on chars and the position in a name list"
score = 0
for char in list(name):
score += ord(char) - ord('A') + 1
return score
def readAndProcessNamelist(path):
"This function reads and process a given name l... | UTF-8 | Python | false | false | 758 | py | 41 | Euler22.py | 28 | 0.664908 | 0.651715 | 0 | 27 | 27.111111 | 102 |
perrozzi/cmg-cmssw | 12,893,491,830,885 | e88c6860b8155af3e80a524e7e5ea8392e49de64 | 5330918e825f8d373d3907962ba28215182389c3 | /FastSimulation/Tracking/python/IterativeFifthTrackFilter_cff.py | b679063f4de3503f957dbfae4d35565454f79f50 | [] | no_license | https://github.com/perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | true | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | 2016-11-03T08:01:49 | 2017-05-11T22:43:16 | 959,175 | 0 | 0 | 1 | C++ | null | null | import FWCore.ParameterSet.Config as cms
import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
fifthStep = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone(
src = 'iterativeFifthTrackMerging',
##keepAllTracks = True,
copyExtras = True,
copyTrajectories = True,
chi2n_par = 0.25,
res_par... | UTF-8 | Python | false | false | 737 | py | 2,731 | IterativeFifthTrackFilter_cff.py | 2,216 | 0.7327 | 0.679783 | 0 | 27 | 26.222222 | 88 |
openstack/horizon | 1,236,950,631,674 | e1a327a6b91fa4f69fa4d2cc0a6f499731577cf3 | 69d8d91954f6623f3674d52d734d589f72383628 | /openstack_dashboard/dashboards/project/api_access/forms.py | 9caf3d974887e0112cb70028fe7588381480643e | [
"Apache-2.0"
] | permissive | https://github.com/openstack/horizon | d031cebe126c06ad9717bbc52790b3d890e8661e | 7896fd8c77a6766a1156a520946efaf792b76ca5 | refs/heads/master | 2023-09-04T06:57:58.069907 | 2023-09-01T20:17:10 | 2023-09-01T20:17:10 | 2,665,166 | 1,060 | 1,175 | Apache-2.0 | false | 2023-08-07T02:33:44 | 2011-10-28T13:12:05 | 2023-07-28T08:39:05 | 2023-08-06T07:39:56 | 354,181 | 1,303 | 1,250 | 0 | Python | false | false | # Copyright 2016 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | UTF-8 | Python | false | false | 2,435 | py | 2,064 | forms.py | 1,011 | 0.608624 | 0.598768 | 0 | 68 | 34.808824 | 78 |
AIPHES/emnlp19-moverscore | 2,259,152,839,797 | c3e36c54ef57e2107006dceb7bea5b1346b32393 | 3c000b258cf5c3b98818a6b7ff3d76a096da34fe | /webservice/server/server/summ_eval/server/zmq_decor.py | d41a3049fd3ea6f019b9cea5b6a0d9d2a694cf7e | [
"MIT"
] | permissive | https://github.com/AIPHES/emnlp19-moverscore | d01c0559f0ec1164c338721ba86135d8ff7d51ed | 0459a3b3b3bd73baa0cc515a355228ee5a2887e0 | refs/heads/master | 2023-01-22T22:20:48.918011 | 2023-01-18T22:20:17 | 2023-01-18T22:20:17 | 204,743,853 | 184 | 38 | MIT | false | 2023-01-18T22:20:19 | 2019-08-27T16:25:15 | 2023-01-18T12:36:02 | 2023-01-18T22:20:17 | 7,376 | 164 | 23 | 11 | Python | false | false | from contextlib import ExitStack
from zmq.decorators import _Decorator
__all__ = ['multi_socket']
from functools import wraps
import zmq
class _MyDecorator(_Decorator):
def __call__(self, *dec_args, **dec_kwargs):
kw_name, dec_args, dec_kwargs = self.process_decorator_args(*dec_args, **dec_kwargs)
... | UTF-8 | Python | false | false | 1,929 | py | 26 | zmq_decor.py | 20 | 0.580093 | 0.579575 | 0 | 61 | 30.622951 | 101 |
vishnuvardhanmanne/CS5590-Python-DL | 7,997,229,114,468 | 7dccb14d68d48c9428cd4ce0349ada33ab2d40da | 7cf9d541fad5b1cf34e7f81be4be2cec21161844 | /ICP-2/3rd_solutions.py | d7a4c652ebb7671e4a2e229dff686bdc67058cde | [] | no_license | https://github.com/vishnuvardhanmanne/CS5590-Python-DL | 76de0e5a82a2b694d0cdfeaf7d38eb8baa2078b7 | 824d4e99fa7adf96ef5fb0591554ba9da1bbc3ac | refs/heads/master | 2020-12-31T10:49:05.740448 | 2020-05-13T19:14:12 | 2020-05-13T19:14:12 | 239,008,393 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import *
def word_count(file_name):
with open(file_name) as f:
return Counter(f.read().split())
print("The number of words in the given file is:",word_count("text.txt")) | UTF-8 | Python | false | false | 198 | py | 36 | 3rd_solutions.py | 17 | 0.686869 | 0.686869 | 0 | 5 | 38.8 | 73 |
jvinetz/super-octo-dollop | 3,539,053,089,392 | 326ff96f3bebd9190dfc6e42a7295fdece4a5633 | 9b9853b0d725c45dc1ead9cc6014c4d99e083a4c | /main_driver.py | 76e380f567e101a0e61a3711286071d4ecb3b456 | [] | no_license | https://github.com/jvinetz/super-octo-dollop | 052995b817538a17b0818aeb0520e36601729676 | ed4fb2aadbb2f1d198ea08ad40fbe208c6a01746 | refs/heads/master | 2020-09-10T07:42:19.593623 | 2019-12-23T10:49:02 | 2019-12-23T10:49:02 | 221,688,163 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import re
import sys
import pandas as pd
from geopy.geocoders import Nominatim
from DB import DB
from log import Logger
from driver_class import Driver
from scraper_class import Scraper
from db_con import host, user, passwd, use_pure, database, buffered
URL = "https://www.waytostay.com/en"
CSV = r'c... | UTF-8 | Python | false | false | 5,632 | py | 19 | main_driver.py | 16 | 0.608989 | 0.600462 | 0 | 159 | 34.402516 | 113 |
fishesandchip/scrabble-application | 14,680,198,225,168 | 1d554e8126742200b5e0f1e6b92c74fa2df5b8a0 | 4fc8266f55e6d88dfd1c260851a1e0c83046b5b3 | /Main.py | adf45a32be38c4b76de67cfa1c5b4d1eecbee673 | [] | no_license | https://github.com/fishesandchip/scrabble-application | d008622277bb1f11a3bef70dd767daa75f093ab3 | 971a8243b69f0ba89f57d46375fa534598b3a07b | refs/heads/master | 2021-01-17T14:40:31.851724 | 2016-07-30T17:14:07 | 2016-07-30T17:14:07 | 55,259,930 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui
from GUI import Main
# ----------------------------#
# Main scrabble loop #
# ----------------------------#
def main():
app = QtGui.QApplication(sys.argv)
main = Main()
main.show()
sys.exit(app.exec_())
if __nam... | UTF-8 | Python | false | false | 354 | py | 2 | Main.py | 2 | 0.457627 | 0.451977 | 0 | 21 | 15.666667 | 38 |
brightrif/learningDJ | 7,739,531,095,859 | e24754d713e359f18e3d6d0e19ce60afc421a2c9 | cfb3921a4f289b8c8454ee2b7d345b5a077b9453 | /event/migrations/0002_auto_20201115_1414.py | 2229cc2a26282af0f04b58576b2eb9850648fff4 | [] | no_license | https://github.com/brightrif/learningDJ | 31aa849933e675b354d63a5c86b37e37ff9cd9ca | f7a95d251bf6ca05caebfb9b8e96a1ddebe2259f | refs/heads/master | 2023-01-18T21:31:46.724244 | 2020-11-18T12:19:19 | 2020-11-18T12:19:19 | 312,971,512 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.1.2 on 2020-11-15 11:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | UTF-8 | Python | false | false | 2,276 | py | 18 | 0002_auto_20201115_1414.py | 14 | 0.579525 | 0.568102 | 0 | 62 | 34.709677 | 150 |
jnguyen4103/pcpp-assistant | 8,950,711,854,940 | a6c518e51b0b13d8400a4bc8e7d70ef1eeab224f | a9302cf336814e558063b31753863926549c4ac8 | /backend/data/csv_sort.py | c3ba6d30fe19f70021fdc3a2642208c6eda45382 | [] | no_license | https://github.com/jnguyen4103/pcpp-assistant | 50328fabaaf8af170421abc02a5ab329c01223b4 | c716171625fe4de025709aa51fb9a0f0e3c7d41f | refs/heads/develop | 2023-04-09T19:59:35.803897 | 2021-04-22T18:40:36 | 2021-04-22T18:40:36 | 331,139,045 | 1 | 0 | null | false | 2021-04-22T08:23:48 | 2021-01-19T23:38:51 | 2021-04-20T22:37:37 | 2021-04-22T08:23:47 | 22,782 | 1 | 0 | 8 | Python | false | false | import csv
import sys
import operator
reader = csv.reader(open("case.csv"), delimiter=",")
sortedlist = sorted(reader, key=operator.itemgetter(0), reverse=False)
with open('sorted-case.csv', 'w') as f:
names = ['columnName_1', 'columnName_2', 'columnName_3', 'columnName_4', 'columnName_5', 'columnName_6',
... | UTF-8 | Python | false | false | 508 | py | 66 | csv_sort.py | 45 | 0.667323 | 0.635827 | 0 | 13 | 38.076923 | 111 |
755/nwwhois | 18,004,502,919,093 | 447300309fc6d07a74b56d92caf05eeea1d6efdb | c73ddb75c19da4ab5b76a2d45b80d998588f7776 | /whois/__init__.py | ecd2a7f79c42dc7a5fea42ccb239a97cf64a92b5 | [] | no_license | https://github.com/755/nwwhois | d0c996ba7804beaa844f07c59e1b6aaf290b87ea | f91ddcc10aa1b9113386fdd69188a69ab28badc0 | refs/heads/master | 2016-09-06T12:41:17.174152 | 2014-06-16T14:51:02 | 2014-06-16T14:51:02 | 20,839,278 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'nazarov'
| UTF-8 | Python | false | false | 23 | py | 4 | __init__.py | 4 | 0.565217 | 0.565217 | 0 | 1 | 22 | 22 |
eriknw/cygraphblas | 19,542,101,222,609 | 81dd8324145e900009575e92e92405de84b276fe | 9927a8826eb8f0bbe0b46b3d148282d7f2b9e4ed | /cygraphblas/lib/constants/desc_field/ss.py | d534f771b77e9a4341a21ee582e6c7658fb612c8 | [
"Apache-2.0"
] | permissive | https://github.com/eriknw/cygraphblas | 2db07e4a3bc490ad4c78e78069c12f64d4c63888 | 81ae37591ec38aa698d5f37716464a6c366076f9 | refs/heads/master | 2023-04-07T02:00:59.999578 | 2020-09-03T21:28:30 | 2020-09-03T21:28:30 | 292,686,757 | 0 | 0 | Apache-2.0 | true | 2020-09-03T21:47:52 | 2020-09-03T21:47:51 | 2020-09-03T21:47:24 | 2020-09-03T21:38:38 | 0 | 0 | 0 | 0 | null | false | false | from cygraphblas_ss.lib.constants.desc_field import *
| UTF-8 | Python | false | false | 54 | py | 80 | ss.py | 27 | 0.814815 | 0.814815 | 0 | 1 | 53 | 53 |
kdaivam/PythonPrep | 17,901,423,702,823 | 1c83ce78f9e7cfd1db5af23120e8e57302fe7cdf | 82be17841875e686c2ce25faefa41c8a603ac12e | /Leetcode/pairWithEqualSums.py | a760c6edaac79c7d69e40423ac968a03ca531d10 | [] | no_license | https://github.com/kdaivam/PythonPrep | 338022ce8847b2ab221b4ec7bf134a9c962cb3e2 | 1e4d654ee9b44ed63a287d67a802a04dca4f2d42 | refs/heads/master | 2020-03-08T17:01:28.437958 | 2019-06-10T05:46:27 | 2019-06-10T05:46:27 | 128,257,475 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def pairWithEqualSums(a):
tmp = {}
for i in range(len(a)):
for j in range(i+1, len(a)):
k = a[i]+a[j]
if k in tmp:
tmp[k].append((a[i],a[j]))
else:
tmp[k] = [(a[i],a[j])]
result = []
for k, v in tmp.items():
i... | UTF-8 | Python | false | false | 438 | py | 142 | pairWithEqualSums.py | 142 | 0.408676 | 0.388128 | 0 | 17 | 23.882353 | 42 |
botanicalpilot/bootcamp | 3,418,793,973,495 | 7c03f3742fb13f381f2e0e1bf429002da684e167 | c98b719d95f3e3cd33e9c4b705a03232d3185733 | /practice3_8.py | 805f44bac6f062f1bfa8e30cfe4748d99becc4d3 | [
"MIT"
] | permissive | https://github.com/botanicalpilot/bootcamp | 42b24d120c82034b35ae92e1484420c8e5898376 | caf580e38d4284f679274f6996fa3ec1cf64e38d | refs/heads/master | 2020-08-04T19:14:20.012066 | 2019-11-16T04:23:37 | 2019-11-16T04:23:37 | 212,249,505 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def combine(listA, listB):
#create a list with nothing in it. Multiply it by the total len of the lists taken by the function
combined = [None]*(len(listA) + len(listB))
#assign every other item in combined list to listA items starting at 0
combined[::2] = listA
#assign every other item in combined ... | UTF-8 | Python | false | false | 455 | py | 61 | practice3_8.py | 55 | 0.659341 | 0.641758 | 0 | 10 | 44.1 | 102 |
tt-n-walters/saturday-python | 7,206,955,127,180 | a35ea42a392886f719af60110bbe8373c4411ff7 | 5504f5488f9b2a07c600b556f6a14cb6f08c9b12 | /dictionary.py | a617bb3d44603e18e7e1dd0ba66159ec0753f0f3 | [] | no_license | https://github.com/tt-n-walters/saturday-python | 4087028e24ff1c3e80b705b5a49c381f02bc1d84 | 2ad53feb45b5a0e21b927bce25d52c8d2c679793 | refs/heads/master | 2020-12-26T21:46:18.240026 | 2020-04-18T17:40:23 | 2020-04-18T17:40:23 | 237,655,096 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
words = {
"hi": 1001,
"goodbye": 1002,
"idiot": 9999
}
words_to_check = ["hi", "goodbye", "hello", "idiot", "moron"]
for word in words_to_check:
if words.get(word):
print(f"Yes they have used the word '{word}'")
else:
print(f"No, they haven't used the word '{word}'")
| UTF-8 | Python | false | false | 308 | py | 34 | dictionary.py | 32 | 0.555195 | 0.516234 | 0 | 14 | 20.928571 | 61 |
josteinstraume/python-for-everybody | 8,091,718,431,493 | 6dfc2cdfe57a35884ad0261e38f2277aa3e270c0 | 50feab01b5ad6aa5868f62a2405acfad15b185c6 | /peer_grade.py | 42ce901ce03e773e973ccb3cb1320eccc92b6533 | [] | no_license | https://github.com/josteinstraume/python-for-everybody | f4766d5d689bf032d2f0aa89c9ece7b98d43c4bf | b07333bd4ad7d986065112ba67575e7d3a5abae7 | refs/heads/master | 2021-01-11T15:17:49.213413 | 2017-01-29T00:32:14 | 2017-01-29T00:32:14 | 80,320,275 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print "'ELLO POPPET" | UTF-8 | Python | false | false | 20 | py | 13 | peer_grade.py | 12 | 0.75 | 0.75 | 0 | 1 | 20 | 20 |
cdncdn90/brana | 12,678,743,478,400 | 3102128180f6b8b7b07b4fc1b1b359de7e9b72cc | e45fc27e1e49454f98629ca7dd135459ec27b2f0 | /brana/view.py | 6c31e3cae1d32c86b504b1dbf069ad98ad26ba58 | [] | no_license | https://github.com/cdncdn90/brana | c90bd43676344575d162aebb435a01bade16d971 | 1823b60b85ff610a3da504243498e7181fd6c3cf | refs/heads/master | 2020-05-24T07:23:43.788998 | 2019-05-20T03:34:18 | 2019-05-20T03:34:18 | 187,158,847 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.http import HttpResponse
def hello(request):
return HttpResponse("Hello world ! ")
def balabala(req):
return HttpResponse("balabala")
| UTF-8 | Python | false | false | 158 | py | 1 | view.py | 1 | 0.727848 | 0.727848 | 0 | 9 | 16.555556 | 41 |
yuanpengX/learngit | 9,560,597,239,137 | e86088f5b522cf60095c316adc591942a4bdc37d | 9702d504cc099e4c22f49e0f60febd375469e4df | /python_log/day_08.py | 923240a2a94b9f6fabae261e4150b22222cf858a | [] | no_license | https://github.com/yuanpengX/learngit | 998e6683bf9d269e94132c88b4d93551247162bd | fa72bf07a4e9d487bbf65b8c4460c4574a2ea005 | refs/heads/master | 2016-09-05T23:30:30.965141 | 2015-05-20T04:22:51 | 2015-05-20T04:22:51 | 29,565,429 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
def sef(pattern,alter,filename1,filename2):
print pattern
try:
fp1 = open(filename1,'r');
fp2 = open(filename2,'w');
str1 = fp1.read();
while (str1!=''):
print str1
if (cmp(str1,pattern)==0):
fp2.write(alter);
else:
fp2.write(str1);
str1 = fp1.read();
except:
print 'something... | UTF-8 | Python | false | false | 374 | py | 50 | day_08.py | 32 | 0.620321 | 0.569519 | 0 | 18 | 19.722222 | 43 |
dacianmujdar/parking-django | 18,648,748,005,239 | 445e767a545cbf43afbeba6cf1c9158328ffd9b2 | ff8881bcce3e4eb54b9294ec97789a3baf336ecf | /parking_project/parking_space/serializers.py | 3f39f2bc142a4b3731ae9f6b97052a0c98d9eb0a | [] | no_license | https://github.com/dacianmujdar/parking-django | a659f47761573b0eb0ca5e655a815794d398872a | b8e8741df734815ae854bc5706a75eba2b8f5e10 | refs/heads/master | 2021-09-17T19:53:46.115448 | 2018-07-04T19:03:54 | 2018-07-04T19:03:54 | 116,795,124 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import serializers
from parking_project.account.serializers import AccountSerializer
from parking_project.parking_space.models import ParkingSpace
class ParkingSpaceSerializer(serializers.ModelSerializer):
allocated_to = AccountSerializer(read_only=True)
class Meta:
model = Parki... | UTF-8 | Python | false | false | 442 | py | 45 | serializers.py | 40 | 0.757919 | 0.757919 | 0 | 12 | 35.833333 | 113 |
akenoq/homework-4 | 7,413,113,574,435 | e305788c02afd28dfdb0551d60ef1ea6117d3602 | 092a4ebf83943f2278fd2c4f447a8acac0960d2d | /tests/TestsMethods/CreateAlbumTestsMethods.py | 9fc36b0290f3c3625a0b238fe317eb7e98ded78d | [] | no_license | https://github.com/akenoq/homework-4 | 3be9270a54aad2b5d1df45da106600f04e49afe6 | d54239092cf4540a6d63ed3615c3c4c3dbde6dd9 | refs/heads/master | 2020-03-19T15:06:16.270474 | 2018-05-25T16:15:24 | 2018-05-25T16:15:24 | 131,852,660 | 0 | 0 | null | true | 2018-05-02T13:13:47 | 2018-05-02T13:13:47 | 2016-04-03T19:03:52 | 2017-12-30T00:22:33 | 0 | 0 | 0 | 0 | null | false | null | from tests.pages.primaryPhotoSection.AlbumPage import AlbumPage
from tests.pages.primaryPhotoSection.EditAlbumPage import EditAlbumPage
from tests.pages.primaryPhotoSection.PhotoSectionPage import PhotoSectionPage
class CreateAlbumTestsMethods:
def __init__(self, driver):
self.driver = driver
def cr... | UTF-8 | Python | false | false | 1,607 | py | 59 | CreateAlbumTestsMethods.py | 58 | 0.713752 | 0.713752 | 0 | 43 | 36.372093 | 77 |
tsutterley/gravity-toolkit | 18,176,301,617,695 | 9fe1e9b82a19791f9e72f20cb256c63e4b7f7485 | b11a35db38e93bf55456b21e96342870beec5d1f | /scripts/esa_costg_swarm_sync.py | 2f9a696e82ec26cb9824ce88696c22fa8df71d8d | [
"CC-BY-4.0",
"MIT"
] | permissive | https://github.com/tsutterley/gravity-toolkit | f4ca6924b7037b0eb5b89c88b2f9efc9281420db | a673c2ba64c1b5d6fa69639b1d0f094d3999bc06 | refs/heads/main | 2023-08-22T14:26:00.137997 | 2023-08-16T19:49:45 | 2023-08-16T19:49:45 | 107,323,776 | 7 | 6 | MIT | false | 2023-09-07T18:09:44 | 2017-10-17T21:04:31 | 2023-07-29T03:00:07 | 2023-09-07T18:09:43 | 3,875 | 22 | 16 | 7 | Python | false | false | #!/usr/bin/env python
u"""
esa_costg_swarm_sync.py
Written by Tyler Sutterley (05/2023)
Syncs Swarm gravity field products from the ESA Swarm Science Server
https://earth.esa.int/eogateway/missions/swarm/data
https://www.esa.int/Applications/Observing_the_Earth/Swarm
CALLING SEQUENCE:
python esa_costg_swar... | UTF-8 | Python | false | false | 11,353 | py | 181 | esa_costg_swarm_sync.py | 82 | 0.656478 | 0.646789 | 0 | 271 | 40.892989 | 78 |
Sruthisarav/My-computer-science-journey | 9,698,036,191,937 | fdaeedb21977212231b7cf4420a4a13f9d9d7e3c | 6d6a935c8281984fc26201a3d505151382cd36a9 | /Introduction to Computer Science and Programming Using Python/Problem Set 4/Problem-4.py | 20c267e6ee7ecf6715f5971cc5ed71caf51d0e15 | [
"Giftware"
] | permissive | https://github.com/Sruthisarav/My-computer-science-journey | 56a7663ebc9c45c029c68da943969cdcbc2a88ac | 1af1d33ea7f49c92e9b5b82c9c92b7076a93825a | refs/heads/master | 2020-04-14T16:45:04.805208 | 2020-01-15T02:45:07 | 2020-01-15T02:45:07 | 163,960,263 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def calculateHandlen(hand):
"""
Returns the length (number of letters) in the current hand.
hand: dictionary (string-> int)
returns: integer
"""
number=0
for l in hand:
number+=hand[l]
return number
| UTF-8 | Python | false | false | 242 | py | 157 | Problem-4.py | 21 | 0.607438 | 0.603306 | 0 | 11 | 21 | 63 |
seba90/pracmln | 2,705,829,420,156 | cecb3bd5ea051f87aa717c8075fa87ab4926c796 | bd5f00fb60ebd3d95a03bb05dad0c05e0cc5e009 | /python3/rosmln/scripts/mln_client.py | b21abfbbb51400c1ab43e25cea9237d7103f734b | [
"BSD-2-Clause"
] | permissive | https://github.com/seba90/pracmln | c3cd11999d6752e28959fb5ebd3bd7d4614d48c2 | 2af9e11d72f077834cf130343a2506344480fb07 | refs/heads/master | 2020-07-29T11:04:16.199057 | 2019-10-05T18:19:50 | 2019-10-05T18:19:50 | 209,773,157 | 0 | 0 | BSD-2-Clause | true | 2019-09-20T11:18:03 | 2019-09-20T11:18:03 | 2019-09-16T18:21:57 | 2019-05-17T11:59:14 | 4,433 | 0 | 0 | 0 | null | false | false | #!/usr/bin/env python
import sys
import rospy
from pracmln.utils import locs
from rosmln.srv import *
from rosmln.msg import *
def mln_interface_client(query, config=None):
rospy.wait_for_service('mln_interface')
try:
mln_interface = rospy.ServiceProxy('mln_interface', MLNInterface)
resp1 = m... | UTF-8 | Python | false | false | 1,345 | py | 91 | mln_client.py | 63 | 0.679554 | 0.678067 | 0 | 42 | 30.97619 | 110 |
pramodjha/snippet-app | 19,387,482,407,378 | ca6d41abce87e0381f96222724ff9b5fece1166a | b0f2ab27db5df6cca736897dc83e70541674dbe9 | /env/Scripts/mysite/myapp/urls.py | c7259f93f4f7d0d770b59d8f660cf73936eb2296 | [] | no_license | https://github.com/pramodjha/snippet-app | ebd681e88e40fcaf06a097792ca8d07a446e08df | f8a42dab24a42af1bc3a4ab9c233c80b31f9ed48 | refs/heads/master | 2022-12-05T21:01:58.791082 | 2019-04-29T08:51:27 | 2019-04-29T08:51:27 | 181,320,386 | 0 | 1 | null | false | 2022-11-18T21:12:58 | 2019-04-14T14:23:13 | 2019-04-29T08:52:02 | 2019-04-29T08:52:00 | 35,913 | 0 | 1 | 1 | null | false | false | from django.conf.urls import include,url
from . import views
urlpatterns = [
url(r'^signin/', views.signin, name='signin'),
url(r'^signup/', views.signup, name='signup'),
url(r'^signout/', views.signout, name='signout'),
url(r'^home/', views.home, name='home'),
url(r'^about/', views.about, name='about'),
url(r'^... | UTF-8 | Python | true | false | 2,529 | py | 40 | urls.py | 19 | 0.659945 | 0.654409 | 0 | 38 | 65.552632 | 116 |
Visual-mov/Tex-lang | 2,929,167,717,563 | ce518b71f9998cd29c42d9816eb1153d2d36b27c | 854b056cb9ad1f04576ad6a729ea5e4a6dc10a30 | /src/parse/tokenizer.py | 9d3269df11e1d8fdf642daaee8e91bc6bf09beb4 | [
"MIT"
] | permissive | https://github.com/Visual-mov/Tex-lang | 4cec90f94287f7ebb6449a372069192722010916 | a7df37239f83cd253d6be24d10bcb8f195d1e698 | refs/heads/master | 2020-09-23T16:06:18.582127 | 2020-07-23T00:58:53 | 2020-07-23T00:58:53 | 225,537,315 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
from exceptions import LexerException
# Token types
EOF = "EOF"
L_OP = "LOGICAL_OPERATOR"
L_PAREN = "LEFT_PARENTHESIS"
R_PAREN = "RIGHT_PARENTHESIS"
L_BRACKET = "LEFT_BRACKET"
R_BRACKET = "RIGHT_BRACKET"
B_BLCK = "BEGIN_BLOCK"
OP = "OPERATOR"
ASSIGN = "ASSIGNMENT"
NUM = "NUMBER"
STR = "STRING"
ID = "IDENTIFI... | UTF-8 | Python | false | false | 4,458 | py | 9 | tokenizer.py | 6 | 0.518843 | 0.515253 | 0 | 135 | 32.02963 | 109 |
analogpixel/roverGame | 11,476,152,618,667 | 2da504ff9cfd450c839a45e74da7f2ee8e3c811d | 323a6820446f65d8b989109896dd164f178b9ca4 | /spriteFunctions.py | 4369b88c71639b9ee796ffca3c142b626feac242 | [] | no_license | https://github.com/analogpixel/roverGame | a36d7cb9b3be4369b90a25be1b42e7a7485d3c47 | 9d5a6888c3da1bfec6fdc03e52071ebb153f37f9 | refs/heads/master | 2021-03-12T19:18:22.622176 | 2015-04-28T01:58:41 | 2015-04-28T01:58:41 | 28,829,147 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Function to handle sprites
"""
import os.path
import pygame
from localutil import *
import math
import time
def createSprite(name, system):
#def createSprite(name, pos=(0,0)):
"""
Create a sprite object
"""
system["sprite_" + name] = {
"name": name,
"r": 90,
"rdest": 90,
"state": "stopped",... | UTF-8 | Python | false | false | 4,120 | py | 9 | spriteFunctions.py | 6 | 0.594175 | 0.568932 | 0 | 125 | 31.96 | 115 |
ghostcfl/tb_order_project | 12,455,405,187,177 | ebce1046d85bdd596c8877c9dd3fb1209dd85754 | 34bffeeafe6ff19f9e5b1438208b0c3777c4eee5 | /tools/request_headers.py | 4126edb70eb37468812d099e636ad915bcb60ccb | [] | no_license | https://github.com/ghostcfl/tb_order_project | 623f9488e6e8c082ee6a94f641a46c874b8ee3ec | 7e4e1b9db037d3057ba1c5303cc4fa20631d3a4e | refs/heads/master | 2021-05-24T07:43:13.155124 | 2020-05-22T03:52:57 | 2020-05-22T03:52:57 | 253,455,913 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 获得随机的user_agent的请求头
import requests
import shelve
import re
import random
import os
from pyquery import PyQuery
def get_user_agent():
with shelve.open(os.path.dirname(__file__) + "/user_agent/data") as db:
user_agents = db['user_agent']
return random.choice(user_agents)
def get_request_headers():
... | UTF-8 | Python | false | false | 1,993 | py | 29 | request_headers.py | 27 | 0.603832 | 0.574832 | 0 | 59 | 31.728814 | 115 |
JulyKikuAkita/PythonPrac | 15,788,299,788,559 | d3a872750b3dd61ad12bb9f3ec1d1838856af649 | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/0Note_MergeTwoArraysRandomly.py | 90de315783f7507d811db3168253f97199bf911d | [
"Apache-2.0"
] | permissive | https://github.com/JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | false | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | 2019-01-15T23:42:09 | 2019-02-07T06:15:30 | 2,925 | 0 | 1 | 0 | Python | false | null | '''
# https://leetcode.com/forums/viewtopic.php?f=4&t=146&mc_cid=83951cfa08&mc_eid=cad0363a72
Given array a, and b.
Merge them into one array c, keep the order of elements in each array.
There are many possible results for c.
Your solution should randomly generate one of them with same probability.
For example, a = [1... | UTF-8 | Python | false | false | 2,024 | py | 956 | 0Note_MergeTwoArraysRandomly.py | 955 | 0.594862 | 0.549407 | 0 | 59 | 33.322034 | 123 |
skorpk/LoadAccounts | 13,151,189,899,095 | 0953583e64ff2e06ae033f5e8db727e2d3010008 | 39b1186364c2fded9168e15ca3c52e1fcadbcf70 | /SQLProjects/xmlFileToSendToFFMOS.py | 8d419d562558e97276eddd3aae9a9ea01b447af9 | [] | no_license | https://github.com/skorpk/LoadAccounts | c53ac99922e9c0ba6873059ab24df0313e2ffeb0 | 1d473ecbc3d37b790b298442585dcfe1c1d2583c | refs/heads/master | 2021-07-21T15:10:32.600894 | 2017-11-01T13:41:31 | 2017-11-01T13:41:31 | 109,136,186 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on 21 марта 2016 г.
1.Get data from SQL Server.
2.Create xml file like TKR3416*
3.The data will be sended into FFOMS.
@author: SKrainov
'''
sqlConnStr = ('DRIVER={SQL Server};Server=srv-cnt-db2;Database=AccountOMS;'+
'Trusted_Connection=YES')
import pyodbc #to connect to SQL Serve... | UTF-8 | Python | false | false | 2,473 | py | 2 | xmlFileToSendToFFMOS.py | 2 | 0.665012 | 0.648883 | 0 | 64 | 35.640625 | 163 |
brownplt/insta-model | 15,762,530,003,749 | c7e2528b798b951ea7d58367c8a0eb84f839135a | eb87c8b1ce8591d207643d3924b7939228f1a4fe | /conformance_suite/CheckedDict_lookup_dom_dyn_good.py | 3b512651543dfe0ca10274207ca3d62dbf237a5b | [] | no_license | https://github.com/brownplt/insta-model | 06543b43dde89913c219d476ced0f51a439add7b | 85e2c794ec4b1befa19ecb85f2c8d2509ec8cf42 | refs/heads/main | 2023-08-30T19:06:58.083150 | 2023-05-03T18:53:58 | 2023-05-10T22:29:18 | 387,500,638 | 5 | 0 | null | false | 2022-04-23T23:06:52 | 2021-07-19T14:53:09 | 2022-04-04T00:24:45 | 2022-04-23T23:06:52 | 1,594 | 1 | 0 | 0 | Racket | false | false | # CheckedDict_lookup_dom_dyn_good.py
# This should pass.
# This should terminate.
from __static__ import CheckedDict
def asDyn(x):
return x
x: CheckedDict[str, int] = CheckedDict[str, int]({"foo": 2})
asDyn(x)["foo"] | UTF-8 | Python | false | false | 223 | py | 378 | CheckedDict_lookup_dom_dyn_good.py | 338 | 0.686099 | 0.681614 | 0 | 11 | 19.363636 | 60 |
gitfish256/autoloadtest | 6,141,803,268,876 | e8445f9002b33249f5c572e32ec6930197f3f265 | 15d0d1347626efcc6041a5963d39d86e3c194ef2 | /perf_parser/sadf_parser.py | 14bf43154a6dcb979360dbd34e14a2e8ebdf9334 | [
"MIT"
] | permissive | https://github.com/gitfish256/autoloadtest | a9747057e82847b4921a9a67e120ccb7c2da691d | 270d0b952200c597d0ef5a953a6088b6c529cb71 | refs/heads/master | 2021-06-17T14:56:28.543624 | 2017-06-08T05:32:30 | 2017-06-08T05:32:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas
import sys
import re
import subprocess
project_path = sys.path[0] + "\\.."
sys.path.append(project_path)
import data_processor.summary_controller as sc
import os
import fnmatch
class sadf_parser(object):
"""description of class"""
#timestamp_name = "T_Time"
timestamp_name = "T_Time"
h... | UTF-8 | Python | false | false | 13,555 | py | 30 | sadf_parser.py | 26 | 0.622206 | 0.612984 | 0 | 324 | 40.830247 | 196 |
volphie/DeepLearning | 17,128,329,593,232 | bfd7da50789f29df4ca29a39b2282f2fa2fef62b | 32b531bb963cf00425b173011282dc5b7308fcdd | /recognize_digit_MNIST.py | a7cf8597f75d873158d257988095f54ed0ff332d | [] | no_license | https://github.com/volphie/DeepLearning | 18831d3c91478557d166187c7599806bd4a4b81b | fc9e808445e7f8bd5a45ec6527f1395669586daf | refs/heads/master | 2020-03-23T06:56:20.894272 | 2018-07-17T07:05:48 | 2018-07-17T07:05:48 | 141,238,306 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import print_function
# MNIST 데이터를 사용할 때 항상 사용되는 문장
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True) # 현재 directory 기준으로
import tensorflow as tf
import time
t1 = time.time()
# Neural Network Core Model... Start here
num_steps = ... | UTF-8 | Python | false | false | 2,896 | py | 11 | recognize_digit_MNIST.py | 11 | 0.634642 | 0.601332 | 0 | 82 | 33.756098 | 143 |
gregadoff/rosalind | 5,299,989,656,859 | 4fbd0d88a75eaa1dce1e42ac25ee316c45ebf6c9 | a06c6c27ec89fc4ad9e77b063e2764a035861a4a | /rosalind/solutions/aspc.py | ef0cfa5d78562dd9685bbf5b3f35394559b139e5 | [
"MIT"
] | permissive | https://github.com/gregadoff/rosalind | ea89a66037a4481af9c2ebf44aceabdb7e2b12df | 620d97036e6899a2c4a68cfb411bc000895da2c4 | refs/heads/master | 2020-03-17T02:36:16.390900 | 2018-05-23T01:41:48 | 2018-05-23T01:41:48 | 133,196,916 | 0 | 0 | MIT | false | 2019-10-21T16:05:46 | 2018-05-13T01:41:13 | 2018-05-23T01:42:18 | 2019-10-21T16:05:45 | 731 | 0 | 0 | 1 | Python | false | false | from decimal import Decimal, getcontext
from functools import reduce
from operator import add, mul
from rosalind.core.rosalindsolution import RosalindSolution
from rosalind.solutions import problem_order
class RosalindImplementation(RosalindSolution):
def __init__(self):
super().__init__()
self.p... | UTF-8 | Python | false | false | 1,173 | py | 209 | aspc.py | 61 | 0.599318 | 0.584825 | 0 | 35 | 32.514286 | 77 |
gnorgol/Python_Exercice | 11,467,562,713,085 | 6b73135ee035e6c40a41ce59c3686c9784c138c7 | 3dffcaf0a99c08b3bc6dc273c32e3510497473ba | /Exercice 29.py | 9471f7a9d284801571709caa04e6750c6b3998cc | [] | no_license | https://github.com/gnorgol/Python_Exercice | 400674f2947467f2edbb86794e50c653bdb8c69d | 73494395dd5110d9f8c1cfdc59df45ab0fb9e0fb | refs/heads/main | 2023-01-14T09:31:31.411617 | 2020-11-16T15:17:07 | 2020-11-16T15:17:07 | 311,283,645 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | s = input("Saisir une phrase: ")
s = s.split()
resultat = []
for each in s :
if each not in resultat:
resultat.append(each)
resultat = " ".join(resultat)
print(resultat)
| UTF-8 | Python | false | false | 190 | py | 54 | Exercice 29.py | 54 | 0.610526 | 0.610526 | 0 | 8 | 21.75 | 32 |
subahdeva/IS362_Week7 | 1,005,022,391,206 | db9c539e145ce2438b38dfedaa0248dc34e1aa9c | 69855780e7b885b97acd95b3be7bfadcae03d062 | /IS362_Week7.py | a84a83e4630bdfb9283729080e88b43cd49436e0 | [] | no_license | https://github.com/subahdeva/IS362_Week7 | 865ae3cf1970b5c2f1b49c0d5fc660907b53b081 | 91b2ac6421e547e96145141fb9aad006b2b2ce31 | refs/heads/main | 2023-04-24T00:36:52.086241 | 2021-05-18T03:35:44 | 2021-05-18T03:35:44 | 368,388,382 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[352]:
import numpy as np
import pandas as pd
import re
df = pd.read_csv('popular_movies.csv', na_filter= False, skipinitialspace=True)
# Convert values into int
df['The Dig'] = pd.to_numeric(df['The Dig'])
df['Nomadland'] = pd.to_numeric(df['Nomadland'])
df['Minari'] = ... | UTF-8 | Python | false | false | 2,222 | py | 3 | IS362_Week7.py | 1 | 0.686319 | 0.660216 | 0 | 70 | 30.685714 | 121 |
increscent/tmp | 5,763,846,119,875 | 06988e2dda2d15c2c83b53c18990e7c184082e03 | 38cdd2ca9e4996dbd8dff4c9df7d80f4966611e0 | /calc.py | 279ead1236b43b8e039da016550b2a5c1f93af6e | [] | no_license | https://github.com/increscent/tmp | 80f0fe61c076e598885d0d496a0c9b61e12d46b8 | 9f81fa966a9ccc28c1ed9b417850490e2c21a4c6 | refs/heads/master | 2020-05-05T01:08:29.139358 | 2019-06-11T02:34:09 | 2019-06-11T02:34:09 | 179,593,914 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import sys
argv = sys.argv
q = np.array([17,16])
p1 = np.array([int(argv[1]), int(argv[2])])
p2 = np.array([int(argv[3]), int(argv[4])])
print(q, p1, p2)
print(np.dot(q-p1, p2-p1))
| UTF-8 | Python | false | false | 203 | py | 30 | calc.py | 6 | 0.610837 | 0.536946 | 0 | 11 | 17.454545 | 43 |
ababjac/rare-codon-clustering | 16,552,803,986,037 | 894f88ed9636c431ca52609507dc822faeb0657a | 0539b8e54cc9aaafd9251aaf6950a5dec7dd7b74 | /Code/Scripts/calc_avg_clusters.py | fbfa89448f56f57db13ebf82ce55f939535af457 | [] | no_license | https://github.com/ababjac/rare-codon-clustering | c27fa4f6a106004e603b2552e4f080402c82eba3 | b1acf762d9ab701294b8123c0717a2fc8fc4c55a | refs/heads/main | 2023-07-11T14:36:09.689646 | 2021-08-09T17:58:22 | 2021-08-09T17:58:22 | 389,656,045 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import sys
import pandas as pd
def calc_avg_per_cluster(lines, df, colname):
d = {}
total_avg = sum(df['MM_avg']) / len(df)
for line in lines:
if line.__contains__('Cluster'):
text = line.split(' ')
key = text[0]+text[1]
continue
list = line... | UTF-8 | Python | false | false | 1,955 | py | 416 | calc_avg_clusters.py | 19 | 0.514066 | 0.505882 | 0 | 73 | 25.780822 | 104 |
ITBlackwood/BaronAI | 7,851,200,224,571 | 8094f0138763e9b99eb85a2e3820bcfd625a8195 | 1b624c94150602e3165c39c55e6ebd0ef6e918f0 | /MoMMI/modules.py | 0104f86de83595be0c7137b94491e5360bf4fede | [
"MIT"
] | permissive | https://github.com/ITBlackwood/BaronAI | 037e81882ee41b38d93212f7c9429647e7ea3fdd | 88519db71bf7c84fbaa418af46682fff2276d6ef | refs/heads/master | 2020-06-13T11:03:43.887834 | 2016-08-09T07:37:22 | 2016-08-09T07:37:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .client import client
from .config import config
import asyncio
import logging
import os
import os.path
import importlib
logger = logging.getLogger(__name__)
modules = []
async def load_modules():
count = 0
directory = config.get("moduledir", os.path.join("MoMMI", "Modules"))
for file in os.listdir(... | UTF-8 | Python | false | false | 2,107 | py | 13 | modules.py | 11 | 0.535358 | 0.529663 | 0 | 74 | 27.418919 | 89 |
davidgabriel94/my-first-blog | 19,129,784,336,910 | e50b3934dd41f6edb0fb9e7618482ff4c7f614ab | 413fdf9151fccda6ef260015f19fc858c70d69ee | /agenda/apps/alumnos/urls.py | 82a769a17c635cd3104417cdde3e05abd74f9f60 | [] | no_license | https://github.com/davidgabriel94/my-first-blog | aaada7f112347c98301e37dc7319043d165c3994 | 7fc12561497513adcb97f3b202632a941c4940d0 | refs/heads/master | 2021-05-15T09:22:30.319333 | 2017-10-23T20:55:43 | 2017-10-23T20:55:43 | 107,487,363 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url,include
from apps.alumnos.views import alumno_list
urlpatterns = [
url(r'^$',alumno_list),
]
| UTF-8 | Python | false | false | 131 | py | 8 | urls.py | 8 | 0.725191 | 0.725191 | 0 | 6 | 20.833333 | 42 |
openstack/neutron-fwaas | 7,146,825,607,359 | e7d4f36851e8d80b7249006ea05d89657be03159 | 45fc764c090296de7f19358a025231c54d4d3eff | /neutron_fwaas/tests/unit/privileged/test_utils.py | 4b3a4dad42e377ce9dcd9e8e801d4c4278fd07ca | [
"Apache-2.0"
] | permissive | https://github.com/openstack/neutron-fwaas | 71e580dc7cfebee7fa1806b2f53f33a3c1726e21 | 193d1e27661438e11a44b379367d56affba79b21 | refs/heads/master | 2023-09-01T05:01:29.629535 | 2023-06-27T03:14:25 | 2023-06-27T03:15:24 | 27,489,947 | 78 | 49 | Apache-2.0 | false | 2022-03-15T02:26:21 | 2014-12-03T14:07:11 | 2022-03-01T11:33:52 | 2022-03-14T07:07:03 | 95,817 | 59 | 43 | 0 | Python | false | false | # Copyright (c) 2017 Thales Services SAS
# 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 r... | UTF-8 | Python | false | false | 2,943 | py | 121 | test_utils.py | 73 | 0.663609 | 0.658512 | 0 | 80 | 35.7875 | 79 |
lmaag182/cortical_one | 704,374,679,126 | 13865620ab932220469f82cdd79fdf5cafa387c0 | 4031073d89e3fb690223259c79b71f59a3d2fb65 | /nupic/abstract_sensor.py | e0e0c31dbe7cffdded42de82381b5d9ee0b29108 | [] | no_license | https://github.com/lmaag182/cortical_one | 0484b81f576b0ffd11871239e6b40776a519e29b | 95167afec176c90abf8a35f220eac5cec6e1c500 | refs/heads/master | 2021-01-10T08:14:51.253956 | 2016-03-23T20:15:47 | 2016-03-23T20:15:47 | 49,380,888 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sensor import Sensor
import json
from nupic.frameworks.opf.modelfactory import ModelFactory
from tools import getModelParamsFromFileNG
import os
import time
import psutil
import copy
from abstract_sensor_listener import AbstractSensorListener
from swarm_config import SwarmConfig
import stomp
import threading
clas... | UTF-8 | Python | false | false | 5,050 | py | 19 | abstract_sensor.py | 16 | 0.599604 | 0.597822 | 0 | 115 | 42.895652 | 177 |
Wanger-SJTU/leetcode-solutions | 14,345,190,790,884 | 22dff8d8472692e7e2947bdf275d7a0590bc49a9 | 68d9fffda9c1ee0f4819371067adfd4985332319 | /python/47.全排列-ii.py | c70d40f117627538fc5865fd215e1998e73c64af | [
"MIT"
] | permissive | https://github.com/Wanger-SJTU/leetcode-solutions | ade9486cef05ede6fa44cbbb5d726037518fac15 | eb7f2fb142b8a30d987c5ac8002a96ead0aa56f4 | refs/heads/master | 2023-04-11T19:56:13.561234 | 2021-05-10T12:00:28 | 2021-05-10T12:00:28 | 129,606,869 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | #
# @lc app=leetcode.cn id=47 lang=python3
#
# [47] 全排列 II
#
from typing import List
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def helper(nums, path, res):
if not nums:
res.append(path)
for i, num in enumerate(nums):
... | UTF-8 | Python | false | false | 631 | py | 364 | 47.全排列-ii.py | 325 | 0.4912 | 0.4736 | 0 | 26 | 23.038462 | 64 |
tf-venegas10/difficultyPrediction | 10,282,151,740,676 | 730c5e437b6ec07c3fc9f35401c2deff06ea8dc5 | 34e1b76ba9a864bd8150af697cdc08e9348ad921 | /MLModel/FeatureHeuristics.py | 7b999f53e52d4c87cc8f3c5a40bb1c9a28806358 | [] | no_license | https://github.com/tf-venegas10/difficultyPrediction | 92e97d50bf8a5219d57c829cc66a4569241d8964 | e9d0bd44dce7bf107014e2a182327a7afa432bee | refs/heads/master | 2020-03-08T06:46:42.672529 | 2018-12-06T21:28:38 | 2018-12-06T21:28:38 | 127,979,418 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import copy
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.neural_network import MLPClassifier
from GetDataSet import getDataSubSet
from Validation import manual_cross_validation
feature_lower_bound = 0
feature_upper_bound = 100
feature_amount... | UTF-8 | Python | false | false | 3,388 | py | 154 | FeatureHeuristics.py | 114 | 0.634002 | 0.622786 | 0 | 96 | 34.291667 | 133 |
yougov/tortilla | 7,327,214,211,321 | 8cad212e1c6115313faefb97cc343e90b64a7525 | 9319c5649d6908953eeea2e7f63f9ba3a90878f3 | /tests/test_wrappers.py | 4ed6acd70dbe10adb6ba39bf5a6c9f5dc0311616 | [
"MIT"
] | permissive | https://github.com/yougov/tortilla | e598420fa75ec27d3ed2681bf53776e0c7351334 | eccc8a268307e9bea98f12f958f48bb03ff115b7 | refs/heads/master | 2023-06-21T05:51:15.346324 | 2019-02-22T12:31:20 | 2019-02-22T12:31:20 | 178,088,051 | 0 | 1 | null | true | 2019-03-27T23:08:51 | 2019-03-27T23:08:50 | 2019-03-23T11:38:40 | 2019-02-22T12:31:25 | 150 | 0 | 0 | 0 | null | false | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import pytest
from requests.exceptions import HTTPError
from tortilla.utils import Bunch, bunchify, run_from_ipython
def time_function(fn, *args, **kwargs):
t1 = time.time()
fn(*args, **kwargs)
t2 = time.time()
return t2 ... | UTF-8 | Python | false | false | 3,272 | py | 15 | test_wrappers.py | 10 | 0.670545 | 0.657685 | 0 | 108 | 29.240741 | 78 |
Arrow023/nuvi | 7,481,833,039,389 | 83536fd5f449829c3d9579a21378bab38835945c | d8ee292721ea9f6d0123c7da12830f98ac713d03 | /nuvi.py | 12bea40f07b39123163fcf904d7dc5c2cd7da1d9 | [] | no_license | https://github.com/Arrow023/nuvi | 8064c260a1c621b8f874c747c1cc726419727401 | 73fa3b68878c33a3709605125ddafddd860bb801 | refs/heads/master | 2021-03-29T01:09:35.250828 | 2020-03-17T08:01:07 | 2020-03-17T08:01:07 | 247,911,498 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import speech_recognition as sr
import pyttsx3
import time
from flask import Flask, render_template,send_file
import random
engine=pyttsx3.init()
voices=engine.getProperty('voices')
engine.setProperty('rate',170)
#print(voices[1].id)
engine.setProperty('voice',voices[1].id)
values={'name':'','age':'','temp':'','descrip... | UTF-8 | Python | false | false | 2,516 | py | 11 | nuvi.py | 7 | 0.604531 | 0.59221 | 0 | 74 | 32.391892 | 163 |
xiaonuoAndy/maya_lancher | 9,216,999,822,863 | 8aae3ebd4d605e7dbd4ff6ba2d2d89985950c777 | f1959aa9f1e51b7b0956ac7405df58c0044693bd | /callback/__init__.py | b1b897e0e9a5730d12bdd22a2ea610a897a3ab83 | [] | no_license | https://github.com/xiaonuoAndy/maya_lancher | fbdddc320804a4a5094503293a3d363a546c8abe | 1145f798d79163bcad29fe5f9c74e19b64b3d408 | refs/heads/master | 2022-02-04T12:58:33.297992 | 2019-07-27T05:47:35 | 2019-07-27T05:47:35 | 194,384,641 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = 'yangzhuo'
import pymel.core as pm
from auto_dayu_menu import auto_dayu_menu
pm.scriptJob(event=('SceneOpened', auto_dayu_menu))
| UTF-8 | Python | false | false | 194 | py | 9 | __init__.py | 8 | 0.685567 | 0.680412 | 0 | 10 | 18.4 | 51 |
MWalega/LSTM_covid19 | 16,088,947,536,981 | 876dc6b55146d67f5f356cd3ea4d018eb1705ac0 | 1b28889033c17451d6a9fc15695ecd94f842b523 | /covid19Predictor.py | 2d70a8d7075c6a2662645a143b01fb6b0564be9e | [] | no_license | https://github.com/MWalega/LSTM_covid19 | 6f1376b561b3545cb4650706eb234133665b3ed8 | 195ac48e6269b112377fe977b8e3472813511533 | refs/heads/master | 2023-03-09T19:56:11.190201 | 2021-02-27T05:38:37 | 2021-02-27T05:38:37 | 342,026,875 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch
from torch import nn
class covid19Predictor(nn.Module):
def __init__(self, n_features, n_hidden, seq_length, n_layers=2):
super(covid19Predictor, self).__init__()
self.n_hidden = n_hidden
self.seq_length = seq_length
self.n_layers = n_layers
self.lstm = nn.L... | UTF-8 | Python | false | false | 1,064 | py | 2 | covid19Predictor.py | 2 | 0.566729 | 0.557331 | 0 | 41 | 24.97561 | 77 |
edwardsrob222/7-1-1-django-ice-cream-shop | 19,104,014,541,213 | b75bc823b74824846223338f6a04854861259160 | 0f632bd0e83d20ca4afbe2c35ed921bc0dafd59f | /ice_cream/models.py | 60bc228fb1a56c59a549a29586af40b43c076556 | [] | no_license | https://github.com/edwardsrob222/7-1-1-django-ice-cream-shop | b87235dbd7408d235acf7a4261194fe30f3e1620 | 0af22191504b664fd8a93d98b6f73b53c91abec0 | refs/heads/master | 2023-05-03T06:14:58.931344 | 2019-12-05T19:37:07 | 2019-12-05T19:37:07 | 213,447,384 | 0 | 0 | null | false | 2023-04-21T20:39:07 | 2019-10-07T17:38:54 | 2019-12-05T19:37:11 | 2023-04-21T20:39:07 | 27 | 0 | 0 | 2 | Python | false | false | from django.db import models
# Create your models here.
from django.db import models
import datetime
class IceCream(models.Model):
DAILY = 'Daily'
WEEKLY = 'Weekly'
SEASONAL = 'Seasonal'
VANILLA = 'Vanilla'
CHOCOLATE = 'Chocolate'
BASE_CHOICES = [
(VANILLA, 'Vanilla'),
(CH... | UTF-8 | Python | false | false | 959 | py | 9 | models.py | 5 | 0.643379 | 0.632951 | 0 | 40 | 22.975 | 80 |
julieweeds/Compositionality | 16,956,530,902,032 | 4c926cee3e60e21e19e795f203cff028ffb9def1 | 63c756e81b9a248dea50c60a273c5c83121f7113 | /compositionality/comparison.py | 48945a5c5d948531bd57924f621c0239e79233f4 | [] | no_license | https://github.com/julieweeds/Compositionality | 01bec8d3dc4a4f769a90ddc4477873c884c2cdf3 | c6e97ec26e872f25259950704292979062fead42 | refs/heads/master | 2021-01-10T09:29:11.671915 | 2016-03-22T10:15:46 | 2016-03-22T10:15:46 | 43,299,991 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'juliewe'
#compare observed and composed vectors, correlate with compositionality judgements
import compounds,sys, ConfigParser,ast, nouncompounds, numpy as np, composition,math
from simEngine import SimEngine
def getValue(text):
# extract 0.25 from offsetting:0.25
fields=text.split(":")
retu... | UTF-8 | Python | false | false | 11,015 | py | 15 | comparison.py | 7 | 0.592737 | 0.586473 | 0 | 279 | 38.483871 | 185 |
pjalagna/Aryc2019 | 19,370,302,543,251 | 76f7eb363608a8526cb5f9316c245160d53cd5f8 | 6e0001fb880d83d1d3e305e42acba93b85631838 | /Device/EdeviceDev/eDevice/eDeviceDemo/FQA/FQA.py | f9d283c670eee4e03ddefcb588a9ce051183df1f | [] | no_license | https://github.com/pjalagna/Aryc2019 | 97b6de8248006bf19af527e4c1e35763b1277aaa | ece8ccf18305e6c65a59bee650b47b8730904bd0 | refs/heads/master | 2021-06-21T23:14:55.527195 | 2021-03-18T08:02:31 | 2021-03-18T08:02:31 | 205,817,944 | 0 | 1 | null | false | 2020-10-16T00:13:31 | 2019-09-02T09:03:22 | 2020-09-16T07:21:33 | 2020-09-16T07:21:24 | 138,445 | 0 | 0 | 1 | Python | false | false | def FQagent(loc,serviceBox):
"""
pja 11-9-13 tested
pja - 11-5-13
File Queue Agent off of loc \n
serviceBox is a pointer to the service.main
"""
import os
import time
sleepLong = 10 # test = 10 real = 500
sleepShort = 2 #
c = 1
while (c==1):
... | UTF-8 | Python | false | false | 1,090 | py | 428 | FQA.py | 201 | 0.453211 | 0.431193 | 0 | 38 | 27.684211 | 64 |
jufei/BtsShell | 19,078,244,763,504 | aa75b38c8731ad807ff05faddb2c888de14b9c45 | a3375aeabc2782d92dc2c3208e5badb00daa3703 | /BtsShell/application_lib/poweron.py | 43eb97a6d58c223cf206d5ee77c76d05eba44525 | [] | no_license | https://github.com/jufei/BtsShell | f256ff573cbbb7a834ae608eb991eb337503f159 | 75487a40ac2cc5f24f70d011ad6cd3924908f783 | refs/heads/master | 2021-01-10T09:25:02.656231 | 2016-03-29T05:42:04 | 2016-03-29T05:42:04 | 54,948,974 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
import serial
import os
import sys
import types
import struct
import socket
import logging
import binascii
import string
import random
DEBUG_LEVEL_NONE = 0
POWER_ON_PORT_1 = "01050000FF008C3A"
POWER_OFF_PORT_1 = "010500000000CDCA"
CHECK_PORT_1 = "010200000001B9CA"
POWER_ON_PORT_2 ... | UTF-8 | Python | false | false | 20,000 | py | 382 | poweron.py | 169 | 0.5472 | 0.513 | 0 | 568 | 33.211268 | 147 |
the-carpnter/codewars-level-7-kata | 14,894,946,630,706 | 955e246d813bfe3046a300135a6e3c90d51ddc01 | 03e042e457d1d3475e6883c152ac80a8ef30942c | /find_the_slope.py | fb3ea93885f668be1d94e62e2f54e0efb3d611c3 | [] | no_license | https://github.com/the-carpnter/codewars-level-7-kata | ea36a1a2a42c56abc1fb034c16d2caf94d363060 | 4d8279334040d79604d8e8e97601af0077093c6c | refs/heads/main | 2023-03-10T08:39:36.643182 | 2021-02-20T14:48:27 | 2021-02-20T14:48:27 | 313,869,108 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def getSlope(p1, p2):
x1, y1 = p1
x2, y2 = p2
return (y2 - y1) / (x2 - x1) if x2 - x1 else None
| UTF-8 | Python | false | false | 108 | py | 327 | find_the_slope.py | 326 | 0.509259 | 0.37963 | 0 | 4 | 26 | 53 |
Kai-Qian/webapps | 18,966,575,597,559 | 88ebd0e5bf10ac97e970efa56522ba8594d9b28a | 0dc230b31ab4dd87875eec6ec082d5d49fba15d2 | /hairReserve/s3.py | 685483affb34db49822c98e1779a8871a69d5ea5 | [
"MIT"
] | permissive | https://github.com/Kai-Qian/webapps | f660b3aacfc856fe4dd7582486d242b032af1e64 | 079bd25541644f7d9250b1b942010d0950fe725f | refs/heads/master | 2016-09-14T00:13:43.505707 | 2016-04-20T07:46:56 | 2016-04-20T07:46:56 | 56,666,637 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import ConfigParser
import boto
import io
import os
from boto.s3.key import Key
config = ConfigParser.ConfigParser()
config.read("config.ini")
AWS_ACCESS_KEY = config.get('S3', 'AccessKey')
AWS_SECRET_ACCESS_KEY = config.get('S3', 'SecretKey')
S3_BUCKET = config.get('S3', 'Bucket')
S3_ITEM_PREFIX = config.get('S3', '... | UTF-8 | Python | false | false | 1,309 | py | 42 | s3.py | 19 | 0.679908 | 0.663102 | 0 | 45 | 28.088889 | 73 |
EZanghi/Design_Patterns | 12,979,391,183,808 | 254df5a14b423e5dd95e85e644c48dc76a14f3e2 | 7b07bd4c094536023b30c662a154012926cac5dc | /Decorator/calculador_de_impostos.py | 2a85fc80d844f29ec853088879d8ec14fed1ca78 | [] | no_license | https://github.com/EZanghi/Design_Patterns | aad4c035cc8d86eb650d5b15f6ffb56b9c4af4d6 | 6b582f98d510ea160834ff21a5d067f93085b382 | refs/heads/master | 2022-12-09T20:10:47.121958 | 2020-08-27T23:45:52 | 2020-08-27T23:45:52 | 284,824,370 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from impostos import ISS, ICMS, PIS, COFINS
class Calculador_de_Impostos(object):
def realiza_calculo(self, orcamento, imposto):
imposto_calculado = imposto.calcula(orcamento)
print(imposto_calculado)
if __name__ == '__main__':
from orcamento import Orcamento, Item
calculador = Calcul... | UTF-8 | Python | false | false | 939 | py | 3 | calculador_de_impostos.py | 2 | 0.681576 | 0.669862 | 0 | 34 | 26.647059 | 56 |
liuyifly06/bubblecount | 1,322,849,968,311 | c0799a9b88d605e9960aa3d6804a7fff304ca64c | a73d935c819353ae57e2396bbec09b22e8e246f2 | /bubblecount/__init__.py | f93f9ddeeda2cadfa0d1c6457f400a9ae7552151 | [] | no_license | https://github.com/liuyifly06/bubblecount | 5473208121ad0b1a11b72cb2137cbab07f72e2e5 | 823dd9d26ec5046784e98a7d7de4679422db3dbf | refs/heads/master | 2020-04-10T15:37:10.773605 | 2016-05-14T18:47:12 | 2016-05-14T18:47:12 | 51,945,699 | 1 | 0 | null | false | 2016-05-19T15:54:48 | 2016-02-17T18:36:00 | 2016-05-05T18:07:40 | 2016-05-19T15:53:45 | 367,930 | 0 | 1 | 3 | Python | null | null | from preprocess import *
from curvature import *
from benchmark import *
| UTF-8 | Python | false | false | 73 | py | 57 | __init__.py | 31 | 0.794521 | 0.794521 | 0 | 3 | 23.333333 | 24 |
AMcManigal/openapi-core | 8,358,006,368,996 | 7f29859831e173b7df973c4e379233494a2d167d | 842cf533f5eb69bc25ca0e6787b20748d642af4c | /openapi_core/responses.py | 5fbaff208554bb27d0cd51ff47c3344ff5d7f478 | [
"BSD-3-Clause"
] | permissive | https://github.com/AMcManigal/openapi-core | 4a31d9547980d3d5ac9f8267fc0a5ae7249f8744 | 84d36e33c5d55f7466f1a49bf0c5ff8c3d133572 | refs/heads/master | 2020-03-08T10:14:06.192628 | 2018-04-09T14:30:41 | 2018-04-09T14:30:41 | 128,067,360 | 0 | 0 | null | true | 2018-04-04T13:38:58 | 2018-04-04T13:38:58 | 2018-04-04T10:54:05 | 2018-04-04T10:54:15 | 98 | 0 | 0 | 0 | null | false | null | """OpenAPI core responses module"""
from functools import lru_cache
from six import iteritems
from openapi_core.exceptions import InvalidContentType
from openapi_core.media_types import MediaTypeGenerator
from openapi_core.parameters import ParametersGenerator
class Response(object):
def __init__(
... | UTF-8 | Python | false | false | 2,055 | py | 17 | responses.py | 16 | 0.646229 | 0.645742 | 0 | 63 | 31.619048 | 76 |
EireneX/EireneX.github.io | 10,926,396,836,568 | fb66f80a3420dd4348261dcf9851a4fff35c4d2f | 1c10cd5c3bfa463e5a0b745b9d96ee137b9b2ad6 | /freeze.py | 000ebebc652f2c888321136e91b51f9eedcf677d | [
"WTFPL"
] | permissive | https://github.com/EireneX/EireneX.github.io | 9a143f4367a887f22d2c0150639d7e66ba1e9d70 | f76a3316a1c2036638e1fa080d80bd2c994b645b | refs/heads/master | 2021-01-11T14:17:16.190647 | 2017-03-17T08:45:22 | 2017-03-17T08:45:22 | 81,306,540 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
sys.path.insert(0, 'project')
from project import main
if __name__ == '__main__':
main.freezer.freeze()
| UTF-8 | Python | false | false | 121 | py | 1 | freeze.py | 1 | 0.644628 | 0.636364 | 0 | 7 | 16.285714 | 29 |
4dw1tz/Hangman-Game | 9,569,187,153,477 | ab24b070f65b7526dcc7cb849d91561a3d287fcc | 1bad4cec52e5625f0f903a5d610955548c4b493d | /Hangman Game.py | ac9a7f8a32edf40c280928ec34860224424d0a05 | [] | no_license | https://github.com/4dw1tz/Hangman-Game | 55a8e1a08b3e9b9cfbebba847b8b5caaf1c5082c | f3447e5e207a6275e5489e92794e0226b99231c4 | refs/heads/main | 2023-06-01T03:31:54.177195 | 2021-06-24T13:36:05 | 2021-06-24T13:36:05 | 379,931,884 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Hangman Game
from tkinter import *
import random
from turtle import *
speed(11)
def Draw(Lives):
global Word
penup()
width(10)
if Lives==10:
setpos(0,-150)
pendown()
forward(150)
elif Lives==9:
setpos(150,-150)
left(90)
pendown()
... | UTF-8 | Python | false | false | 3,463 | py | 2 | Hangman Game.py | 1 | 0.494369 | 0.448166 | 0 | 147 | 21.557823 | 82 |
yuseungwoo/baekjoon | 15,599,321,226,628 | b5e656248463f17d5cad5b746c9c6c3f7154d0ca | 8a102033a266d39128e4b64aa0780cf67055e196 | /2743.py | c899386d39a237c825ca8a772a33b80fc1d21d4f | [] | no_license | https://github.com/yuseungwoo/baekjoon | 4dec0798b8689b9378121b9d178713c9cf14a53f | 099031e2c4401e27edcdc05bd6c9e6a558b09bb9 | refs/heads/master | 2020-09-03T15:25:40.764723 | 2018-10-08T02:35:27 | 2018-10-08T02:35:27 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding: utf-8
print(len(input()))
| UTF-8 | Python | false | false | 38 | py | 460 | 2743.py | 459 | 0.605263 | 0.578947 | 0 | 3 | 11.333333 | 19 |
MrVoid918/GAN | 10,058,813,433,165 | c813fab2c9a689a0b98d9750eca93fb55796be95 | 179cf3133d0710a4fa660c030e7dcf20c8bdd408 | /GAN/utils.py | 14a1294e9613a3eb8e1776c4b18da72e2c5ab654 | [
"MIT"
] | permissive | https://github.com/MrVoid918/GAN | c638a3000a3812880c913261745b2143d793db7e | e36bba650ebe4e36a877d6b0358f8be4184920cd | refs/heads/master | 2023-01-01T03:26:28.016799 | 2020-09-23T10:24:36 | 2020-09-23T10:24:36 | 297,932,326 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch
import os
def reparamaterize(mu : torch.Tensor, logvar: torch.Tensor) -> torch.Tensor:
std = torch.exp(0.5 * var)
eps = torch.randn_like(std)
return eps * std + mu
def save_state(save_dir : str, epoch : int, G, D):
G_path = os.path.join(save_dir, "{}_G.pth".format(epoch))
D_... | UTF-8 | Python | false | false | 451 | py | 9 | utils.py | 9 | 0.62306 | 0.618625 | 0 | 13 | 32.846154 | 76 |
A-Georgiou/Flag-Detector | 11,862,699,707,089 | 88430619b166ba8cb5a5c9154869c4e74eb117e3 | 9ba3259efefd8984fbb7d37fa008322b6299be68 | /flagDetector.py | eec597fc872b698fea8b5e7857436bead3af18d9 | [] | no_license | https://github.com/A-Georgiou/Flag-Detector | b9ea6881529f9ddd29fb0ff430f6d73cc102b637 | 5a5d2c12ccb6c6569d3f09fc8038e2708f81d557 | refs/heads/master | 2023-03-05T10:03:41.232660 | 2021-02-18T22:01:07 | 2021-02-18T22:01:07 | 340,182,391 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
import pyautogui
import cv2
import os
from skimage.metrics import structural_similarity as compare_ssim
import numpy as np
"""
Flag Detector - Click and Drag
"""
class Application():
def __init__(self, master):
self.master = master
self.rect = None
self.x = self.y = 0
... | UTF-8 | Python | false | false | 6,349 | py | 2 | flagDetector.py | 1 | 0.61112 | 0.597259 | 0 | 153 | 40.470588 | 152 |
michaelliqx/AlphaGoZero | 8,615,704,406,650 | 80c686827769f583a020e3f9a68f9c41637f85bb | a42a49ffe7437f7afef72a0f52d88d5df7697380 | /Agent.py | c318821696710253c08df753b469b1db0ffe1278 | [] | no_license | https://github.com/michaelliqx/AlphaGoZero | f5ad4752af9137791f05a0af8112a9725bd94bff | c9b087e25980f9673ead8702a3084d584cd403af | refs/heads/master | 2020-05-26T20:17:11.273972 | 2019-05-24T06:00:10 | 2019-05-24T06:00:10 | 188,360,384 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import random
import MTTS as mc
import time
from game import GameState
import tensorflow as tf
import keras
import config
class User:
def __init__(self,name,state_size,action_size):
self.name = name
self.state_size = state_size
self.action_size = action_size
def a... | UTF-8 | Python | false | false | 777 | py | 7 | Agent.py | 5 | 0.610039 | 0.608752 | 0 | 37 | 19.648649 | 57 |
etalab-ia/ami-ia-ineris | 3,891,240,417,513 | 725d1b00c603214353594c067b61c3f5a12eb06a | baae0eb93b7a08aece569c44f65ae340f12352f6 | /heka/frontend/src/Besoin3ech/layout.py | cf1f49336c94fd3a1b96ff55e4321ed4ee42305e | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-2-Clause"
] | permissive | https://github.com/etalab-ia/ami-ia-ineris | 935e908e39a657eade17320cf959d1fe6abaae0e | 94454cbd02434ce0f62a24e47f6ac7a6cdba049a | refs/heads/master | 2023-01-19T00:19:28.425042 | 2023-01-18T17:09:16 | 2023-01-18T17:09:16 | 239,794,042 | 0 | 0 | NOASSERTION | false | 2023-01-18T17:12:38 | 2020-02-11T15:19:49 | 2023-01-18T17:09:47 | 2023-01-18T17:12:37 | 60,468 | 0 | 0 | 17 | Jupyter Notebook | false | false | import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import custom_components as cc
from Besoin3ech.helpers import *
import dash_table
from datetime import datetime as dt
from datetime import date
layout = html.Div(
[
html.H1('Echanti... | UTF-8 | Python | false | false | 5,101 | py | 102 | layout.py | 46 | 0.365011 | 0.352445 | 0 | 142 | 34.873239 | 146 |
jakerdou/My-Finance-App | 1,864,015,826,947 | 091e484ccc3de22f88dfb5d3fb1f11000eddd67d | 438bcc145dd8b68eee1525759696c48adb19ba24 | /main.py | 2be6763f5a793a7dc54618dd5ccd234f4c3eadbe | [] | no_license | https://github.com/jakerdou/My-Finance-App | 63c58a1b8783a31c69c519c50294256fa387276b | f4125ec15668cecfddfabf43c6e93f09cf1b1277 | refs/heads/master | 2020-12-14T16:36:59.208968 | 2020-01-19T20:44:31 | 2020-01-19T20:44:31 | 234,809,616 | 1 | 0 | null | false | 2020-01-19T20:44:37 | 2020-01-18T23:02:39 | 2020-01-18T23:11:32 | 2020-01-19T20:44:32 | 3 | 0 | 0 | 0 | Python | false | false | import datetime
import AppUser as au
import PaymentMethod as pm
import Transaction as trans
import TransCategory as transCat
#*************************FIXME: get rid of FIXMEs in all files**************************************
userList = []
selection = ""
currUser = 0 #FIXME: need to get this to actually ke... | UTF-8 | Python | false | false | 9,360 | py | 6 | main.py | 5 | 0.539316 | 0.53515 | 0 | 219 | 40.739726 | 118 |
DiptoChakrabarty/Net_Sec | 14,422,500,186,329 | d1c2f0926f20fab1dbe148ca378db44d35268529 | 3e92b0676c96745e76318701ab5a60515c50dc46 | /ftpcrack.py | d9689270646fca114f3c8db572e86fc3a013b4db | [
"MIT"
] | permissive | https://github.com/DiptoChakrabarty/Net_Sec | fb323dd01f73d4559c41554491211faf4a0f01ed | dc01627724f55e225367ab0d232b227989e78e92 | refs/heads/master | 2021-01-01T00:51:32.352413 | 2020-02-17T21:19:25 | 2020-02-17T21:19:25 | 239,105,070 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
import re
import sys
import itertools
#Connect to ftp server
def connection(ip,user,passwd):
#sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock= socket.socket()
print("Connecting to ip " + ip +"with user " + user + " password " +passwd)
sock.connect((ip,21))
print("... | UTF-8 | Python | false | false | 1,017 | py | 2 | ftpcrack.py | 2 | 0.643068 | 0.620452 | 0 | 58 | 16.551724 | 80 |
farhananwari07/flask-image-processing | 8,443,905,752,240 | aaf5216738f677e21d3d927ee80c4b4ca50f9b92 | 3ea104409b5ab5f1d1928af7d31b4a58b11d220a | /venv/Lib/site-packages/networkx/readwrite/tests/test_text.py | 5f82c7b2126918dbc13232acf252566144d3d23d | [
"Apache-2.0"
] | permissive | https://github.com/farhananwari07/flask-image-processing | 0103ab0600995a760e27ffc644ffb313de4eaade | a4a4ad717ffd074afbe31cbf8803060764034375 | refs/heads/main | 2023-09-02T01:21:27.328049 | 2021-11-10T07:58:17 | 2021-11-10T07:58:17 | 425,517,466 | 0 | 0 | Apache-2.0 | true | 2021-11-07T13:55:56 | 2021-11-07T13:55:56 | 2021-11-03T07:30:26 | 2021-11-03T07:30:23 | 135,012 | 0 | 0 | 0 | null | false | false | import pytest
import networkx as nx
from textwrap import dedent
def test_directed_tree_str():
# Create a directed forest with labels
graph = nx.balanced_tree(r=2, h=2, create_using=nx.DiGraph)
for node in graph.nodes:
graph.nodes[node]["label"] = "node_" + chr(ord("a") + node)
node_target = d... | UTF-8 | Python | false | false | 7,931 | py | 67 | test_text.py | 65 | 0.405203 | 0.372826 | 0 | 315 | 21.453968 | 77 |
Torment123/iVMCL-Release | 6,107,443,545,714 | fa0f30ede9b57a4630559ee8e6848bf457dbb7a9 | dedb790038c0b52193e23916f7d363275eeb14db | /mmdetection/tools_ivmcl/publish_model.py | d36ce5e136394e1d7d058b7a4dd82ce3c82195a8 | [
"Apache-2.0"
] | permissive | https://github.com/Torment123/iVMCL-Release | 034f6093a5e9ba003121ed58d99e693e917f11da | 5ffdd70183bc909ed98df2c6ab33478003bafa8e | refs/heads/main | 2022-12-24T23:57:28.256164 | 2020-10-08T22:39:57 | 2020-10-08T22:39:57 | 329,058,761 | 1 | 0 | null | true | 2021-01-12T17:17:20 | 2021-01-12T17:17:20 | 2020-10-08T22:43:10 | 2020-10-08T22:43:07 | 11,718 | 0 | 0 | 0 | null | false | false | import argparse
import subprocess
import torch
def parse_args():
parser = argparse.ArgumentParser(
description='Process a checkpoint to be published')
parser.add_argument('in_file', help='input checkpoint filename')
parser.add_argument('out_file', help='output checkpoint filename')
args = par... | UTF-8 | Python | false | false | 1,443 | py | 53 | publish_model.py | 43 | 0.606376 | 0.602911 | 0 | 48 | 29.0625 | 70 |
rojas70/parse_rcbht_data | 2,422,361,605,754 | fafed668f5f50e45bb82f37f5bb07b0ef9844658 | 840c5cbd16fcc620a92c03dcb76aab4160ec0ad4 | /my_code/generate_trainning_data_for_success_and_failure.py | f2e1eee200e4e14f2533187bf24f5d394e40250f | [
"BSD-3-Clause"
] | permissive | https://github.com/rojas70/parse_rcbht_data | 3c91586d921270686d7b81175d79b8ec5c8b1990 | 8113e120e5953febbcabb99ab168a7d6f2147737 | refs/heads/master | 2020-05-22T02:49:52.293995 | 2017-05-03T07:53:35 | 2017-05-03T07:53:35 | 65,885,341 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import shutil
from copy import deepcopy
import util.output_features as output_features
import data_parser.data_folder_parser as data_folder_parser
import feature_extractor.data_feature_extractor as data_feature_extractor
import traceback,sys#,code
# Globals
global DB_PRINT
DB... | UTF-8 | Python | false | false | 6,521 | py | 504 | generate_trainning_data_for_success_and_failure.py | 16 | 0.622604 | 0.621837 | 0 | 184 | 34.440217 | 176 |
lanl/bueno | 14,456,859,945,016 | d0e62de9e134f07f53f33c83f6801ec3dcad5fab | 20c78276520a556752c89ec5d06b875afcc3d0c4 | /bueno/core/bueno.py | 27684c89a83149f6e22ebe200ad62f45b4b062b2 | [
"BSD-3-Clause"
] | permissive | https://github.com/lanl/bueno | 45bc3366da2dc9f1d37591e6f1901c95e1b9c014 | 41907fa2bdd7e747713321010ad62ddedf449748 | refs/heads/master | 2023-06-08T21:45:38.269378 | 2023-05-25T22:05:00 | 2023-05-25T22:05:18 | 190,777,300 | 9 | 11 | BSD-3-Clause | false | 2022-06-28T01:40:33 | 2019-06-07T16:39:06 | 2021-12-21T04:38:19 | 2022-06-28T01:40:32 | 9,747 | 6 | 3 | 0 | Python | false | false | #
# Copyright (c) 2019-2022 Triad National Security, LLC
# All rights reserved.
#
# This file is part of the bueno project. See the LICENSE file at the
# top-level directory of this distribution for more information.
#
'''
The good stuff typically called by __main__.
'''
import argparse
import... | UTF-8 | Python | false | false | 2,942 | py | 89 | bueno.py | 53 | 0.584296 | 0.580218 | 0 | 106 | 26.754717 | 79 |
karthikpappu/pyc_source | 9,113,920,607,420 | bace68226de851f0042838081280005b0a2ad6ed | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pycfiles/xsrfprobe-2.3.1-py3.6/discovered.cpython-36.py | 7cf8b94f0a6b3757a26b676179fd050eca7733d5 | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04)
# [GCC 8.4.0]
# Embedded file name: build/bdist.linux-x86_64/egg/xsrfprobe/files/discovered.py
# Compiled at: 2020-01-29 10:31:04
# Size of source mod 2**32: 886 bytes
VULN_LIST = []
STRENGTH_LIST =... | UTF-8 | Python | false | false | 413 | py | 114,545 | discovered.cpython-36.py | 111,506 | 0.680387 | 0.554479 | 0 | 14 | 28.571429 | 80 |
renzoxpixely/PortafolioDjango | 5,755,256,220,869 | 14bdae73a4fb09f615fd57ace2192259324928d7 | f2618a094e14297c67504c1a1ba7f6a520b33132 | /lib/python3.7/tokenize.py | f5286a93e5ac7a216c9c45f3611d6e585a97ef14 | [] | no_license | https://github.com/renzoxpixely/PortafolioDjango | 225ebb1b572470d6f9cadb8ecd555c9b453512ee | 488d3f026a1efa80c9bd965ed52d82f443a428fc | refs/heads/master | 2022-12-16T19:26:09.765250 | 2019-01-07T01:34:53 | 2019-01-07T01:34:53 | 162,932,313 | 0 | 0 | null | false | 2022-12-08T01:20:34 | 2018-12-24T00:00:16 | 2019-01-07T01:34:55 | 2022-12-08T01:20:34 | 10,349 | 0 | 0 | 7 | Python | false | false | /home/user/miniconda3/lib/python3.7/tokenize.py | UTF-8 | Python | false | false | 47 | py | 48 | tokenize.py | 42 | 0.829787 | 0.765957 | 0 | 1 | 47 | 47 |
bernadinm/sha512-crypt-validate | 14,817,637,216,861 | 40b7227455be12123b64b423c1b81f5eb5a3ce86 | 1d215d5726ef158acea0f75813ed79d52d96402c | /script.py | b149fff2ffc57055be23e370c1cf1823eb99abbc | [
"Apache-2.0"
] | permissive | https://github.com/bernadinm/sha512-crypt-validate | 3661c99b33623c1179dd5413ad4435f4aed2085b | c17c4facb152b9a7aebeee916ebedf7a993d87b5 | refs/heads/master | 2020-05-16T12:59:04.533022 | 2019-05-22T17:22:40 | 2019-05-22T17:22:40 | 183,061,333 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from passlib.hash import sha512_crypt
import sys
print (sha512_crypt.verify(sys.argv[1], sys.argv[2]))
| UTF-8 | Python | false | false | 104 | py | 2 | script.py | 1 | 0.759615 | 0.682692 | 0 | 4 | 25 | 53 |
KnowledgeLinks/rdfframework | 8,693,013,821,284 | 632068b34a475528f8e669105d1dbe3ac3d39fda | 7b6235e09a4a5674aa34326e252741a16bbd1bd5 | /rdfframework/configuration/__init__.py | 765596356121ff1de59e4dd8c73b5b4fe19d1b1d | [
"MIT"
] | permissive | https://github.com/KnowledgeLinks/rdfframework | 68a752b3a3f6a9fdbe73281c7094fe929dfa481d | c6b6408b6e90dd166b4981aeaf3a768e46c22ce0 | refs/heads/master | 2020-03-26T11:44:29.229491 | 2019-09-18T07:01:17 | 2019-09-18T07:01:17 | 54,396,138 | 11 | 0 | MIT | false | 2019-09-18T07:01:18 | 2016-03-21T14:34:49 | 2019-02-19T01:34:29 | 2019-09-18T07:01:18 | 68,696 | 4 | 0 | 12 | Python | false | false | """
Configuration Manager
=====================
The configuartion manager is a global manager for the package
:copyright: Copyright (c) 2016 by Michael Stabile and Jeremy Nelson.
:license: To be determined, see LICENSE.txt for details.
"""
from .rdfwconfig import RdfConfigManager
__author__ = "Mike Stabile, Jeremy ... | UTF-8 | Python | false | false | 328 | py | 153 | __init__.py | 93 | 0.716463 | 0.704268 | 0 | 13 | 24.230769 | 68 |
Azure/azure-sdk-for-python | 12,034,498,399,631 | 2ea415609b57d6e5033257ca7c00937d3267a72e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-storage-queue/samples/queue_samples_authentication.py | 76cc089c1e20c66111239cfda9d091f6b72e4041 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | https://github.com/Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | false | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | 2023-09-14T16:31:22 | 2023-09-14T21:48:48 | 614,565 | 3,815 | 2,501 | 1,027 | Python | false | false | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | UTF-8 | Python | false | false | 4,902 | py | 7,477 | queue_samples_authentication.py | 5,645 | 0.703386 | 0.70155 | 0 | 113 | 42.380531 | 105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.