blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee3747640d2d81beb67e38eb7bf9195041503fd6 | 51bdac517ec342a7a38a67e2b3c521f8bd53c5f2 | /numba/tests/pointers/test_null.py | fa46e26b67aa41253b5f4b2b6e874e710d7a3aaf | [
"BSD-2-Clause"
] | permissive | cu6yu4/numba | 66bc7ee751fdfaabab92b6f571dbff00cb4d7652 | f64aced5a7c94a434fd2d8c678d93ff8ac3ae1fb | refs/heads/master | 2020-12-25T13:45:44.629782 | 2013-01-25T20:28:12 | 2013-01-25T20:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import ctypes
import numba
from numba import *
#intp = ctypes.POINTER(ctypes.c_int)
#voidp = ctypes.c_void_p
intp = int_.pointer()
voidp = void.pointer()
@autojit
def test_compare_null():
"""
>>> test_compare_null()
True
"""
return intp(Py_uintptr_t(0)) == NULL
@autojit
def test_compare_null_att... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
a43822a9657a1661bdf8eec5626ddb1f8fb0ae2c | 5a2fdbcfe7f9218e332ff506608cde78043256ff | /nova/db/sqlalchemy/migrate_repo/versions/279_fix_unique_constraint_for_compute_node.py | 820fa3f696047c0989ac87fc9dbea37b9d0db2ec | [
"Apache-2.0"
] | permissive | starlingx-staging/stx-nova | 6d4aad0899bad527d8765f6cc07971e40581e4d3 | 23e7930b35f8a0d61ee6c5798bbef1a281bfc070 | refs/heads/master | 2022-07-27T18:12:57.404225 | 2019-08-06T11:23:04 | 2019-08-06T11:23:04 | 134,120,491 | 7 | 19 | Apache-2.0 | 2022-07-06T19:52:40 | 2018-05-20T04:46:47 | Python | UTF-8 | Python | false | false | 1,274 | py | # Copyright (c) Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"hejie.xu@intel.com"
] | hejie.xu@intel.com |
5953d5e80fc94ed4ad2ce7b9db46fa744fce156b | 06d583192baa32a5b1e4c99296482d37962a2a23 | /TSL2561.example.py | 0f0fe1d74d03415ef98b102548c3f32371e3491a | [] | no_license | janheise/TSL2561 | d2b7d70a7f7fd8996509369dca4e421cdb2c2c31 | 3fbed5d910bf5b11aba8603475b07f79007169b4 | refs/heads/master | 2016-09-05T16:06:27.185370 | 2013-02-01T14:55:48 | 2013-02-01T14:55:48 | 7,959,402 | 42 | 5 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python3
from TSL2561 import *
tsl = TSL2561()
if tsl.foundSensor():
print("Found sensor...")
tsl.setGain(tsl.GAIN_16X);
tsl.setTiming(tsl.INTEGRATIONTIME_13MS)
x = tsl.getFullLuminosity()
print("Full luminosity value: %d" % x)
print("Full luminosity value: %#08x... | [
"jan@janheise.de"
] | jan@janheise.de |
0accec4ed702daf5f14fea3c2b52ce1ee500ff57 | 8f1738c453a38b4fb2cb75a471d7938f3ea6d49d | /167.py | e1a5e047e25c2bdc83845d4ab52ea543edd1f47e | [
"MIT"
] | permissive | geethakamath18/Leetcode | 5f7492ad5909f84f1ee8f13b6484baa2af235ecc | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | refs/heads/master | 2023-05-13T09:52:13.577146 | 2021-06-11T23:20:34 | 2021-06-11T23:20:34 | 291,392,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #LeetCode problem 167: Two Sum II - Input array is sorted
class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
d={}
for i in range(len(numbers)):
d[numbers[i]]=i
for j in range(len(numbers)):
if((target-numbers[j])) in d and d[target-numbers... | [
"37272001+geethakamath18@users.noreply.github.com"
] | 37272001+geethakamath18@users.noreply.github.com |
02acda62b0acb6f8e73d02a5004433c4db8c0653 | 44fe52c822f73fdd8a66f4090bbe4b630024ae3c | /FlaskTraining/113SQLAlchemy/app.py | ce6664dfea88dd9644b27404d694223c23e3c528 | [] | no_license | rohitvishal7/flask | 69edfd076bd17e3e421ab65c6e622af335e4d97e | ca64d5c47c0ff669185ec347955baca578c8bb9c | refs/heads/master | 2021-01-11T01:54:36.423409 | 2016-09-30T09:26:37 | 2016-09-30T09:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | from flask import Flask, request, flash, url_for, redirect, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///students.sqlite3'
app.config['SECRET_KEY'] = "random string"
db = SQLAlchemy(app)
class students(db.Model):
id =... | [
"noreply@github.com"
] | noreply@github.com |
8087a586a08d86c2630e2cd577c77d550102a37d | 3090c81bc67cb5e42a4bef0b460577c2695b3877 | /fizzbuzz3/fizzbuzz_module.py | 7512f2cc73eab5913191eaa8e66368479d91632e | [] | no_license | CodecoolBP20161/python-pair-programming-exercises-2nd-tw-adam_david | 44f8b6146670fc2a455e29f6a8d354e62665cad4 | f1be4b46849ab22f07d81038f90e8dfec697e555 | refs/heads/master | 2016-09-13T22:49:49.731694 | 2016-05-26T07:37:22 | 2016-05-26T07:37:22 | 59,470,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def fizzbuzz(number):
result = number
if number % 3 == 0:
result = str(result).replace(str(number), "") + "Fizz"
if number % 5 == 0:
result = str(result).replace(str(number), "") + "Buzz"
return result
def main():
for i in range(1, 101):
print(fizzbuzz(i))
if __name__ == '... | [
"feherkeee@gmail.com"
] | feherkeee@gmail.com |
21498c9b54373452b5aa80042dafbd03aaedf1f0 | 1682819d41445adf38f39591cc57b9af9b1e0dcf | /layer.py | bbf33d03495edc36b8a4e670132b4b2694cba649 | [] | no_license | favalon/ZoomMovies | 268a5490ddcc40fbf6e4ac3bae1d53c32b826383 | b8f68a2a5186a074032bf7f3e746951bfde004c3 | refs/heads/master | 2021-01-03T00:58:36.465200 | 2020-02-11T21:30:21 | 2020-02-11T21:30:21 | 239,847,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,021 | py | '''
Created on Dec, 2018
@author: Zixiao Yu
'''
import os
import json
import numpy
import csv
'''
Input files: movies800.json, reverseDict.json.
Output files: output is 3 json files(layer1, layer2, layer3) in following format:
not filter:
All_final_layerindex
with filters
1. genre_final_layerin... | [
"yuzixiaoepm@gmail.com"
] | yuzixiaoepm@gmail.com |
bc152200d29fb65d3f15389a83a766eb2af27faf | 1f874c6a515f7c86047378d507be652f18925eb5 | /mergeLinksTXP.py | 11f6d2459fbb87e7d74021579fa59ab876037a2d | [] | no_license | BeenleTian/TempCauseRelPro | b2325183123f80879e148e90b8b8462c34b9de86 | 4e554863ac4f5c8e5feb20bdc81c4517c1ce74db | refs/heads/master | 2020-12-30T14:19:35.216223 | 2015-10-26T14:22:18 | 2015-10-26T14:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | import sys
import os
def ensureDir(f):
d = os.path.dirname(f)
if not os.path.exists(d):
os.makedirs(d)
def getFieldValueTxp(fieldname, cols):
fields = ["token", "token_id", "sent_id", "nr_pos", "nr_lemma", "nr_deps", "tmx_id", "tmx_type", "tmx_value", "nr_ner", "ev_class", "ev_id", "role1"... | [
"paramita@fbk.eu"
] | paramita@fbk.eu |
473268ca477e93353c4880008855c1dca2b2e4d7 | fe5ae06133f41eddc00157df6ab85f8eabb50afd | /ex8.py | 861e8bffc510f5339b04c59f08da86af531d1f9d | [] | no_license | haokong0703/PythonStartUp | 32b39f8d2752a69a9cce83761554660264ea4461 | c6edac07ee0cae0fc21560de364ea89cfed33fd0 | refs/heads/master | 2021-01-02T09:36:01.760941 | 2017-08-03T17:18:20 | 2017-08-03T17:18:20 | 99,257,442 | 0 | 0 | null | 2017-08-03T17:14:54 | 2017-08-03T17:14:54 | null | UTF-8 | Python | false | false | 336 | py | formatter="%r %r %r %r"
print formatter % (1,2,3,4)
print formatter % ("one","two","three","four")
print formatter % (True,False,False,True)
print formatter % (formatter,formatter,formatter,formatter)
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn't sing.",
"So I said ... | [
"noreply@github.com"
] | noreply@github.com |
043c662c8aea819fade56d6bb682f6c44f7d36f3 | 162dec075b6e622c9495d115fbe8b7a83a992e3d | /apps/exam/admin.py | 41011d4e67e2ef6196307e5ee93ecd27937ca81b | [] | no_license | shubhamdevgan/flamboyant | b4fcca86b3c85b82fcdf42bc1af8279de465536a | 461e5a16320cdea5c1945628633932e75b5e207a | refs/heads/master | 2022-02-10T09:34:03.398111 | 2022-01-30T06:43:18 | 2022-01-30T06:43:18 | 230,481,030 | 0 | 0 | null | 2020-05-10T03:39:47 | 2019-12-27T16:58:50 | CSS | UTF-8 | Python | false | false | 109 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Exam) | [
"devganshubham2@gmail.com"
] | devganshubham2@gmail.com |
9ac566e98381467e354fc7fd6819e02e8ea73f10 | f9069ee014718a2d8e072a4a9490c4b5415a8760 | /38.py | 8c2efdc596fdec7d66bde8aa9f20651c95d42613 | [] | no_license | subhashl7/subhashpython | 1e74aa03576c55caccf4624837e2eff05289a2f4 | 7bb4eb050fe88da72cd672459ff0fe5b3d8962e9 | refs/heads/master | 2020-03-24T06:41:02.970001 | 2018-08-31T07:15:27 | 2018-08-31T07:15:27 | 142,537,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | N,K = input().split()
N,K = int(N),int(K)
N = N ^ K
K = N ^ K
N = N ^ K
print(N,K)
| [
"noreply@github.com"
] | noreply@github.com |
5d97d95d16c772bc0539baded389858d75f40403 | 7597fe68b0d7b750c3ddfeaeee19e8dedf8c3186 | /library/sources/core/kernels/binop/binop_common.py | bbf7ca60afc1c3426fa8137f7a922756e4f4791f | [] | no_license | nasingfaund/Yeppp-Mirror | 33de08f1e5a50b7e75ee905ac4f026a178786752 | 23cc725a7489d376558bef3e92e31fda014b6c47 | refs/heads/master | 2023-03-20T13:14:23.502813 | 2016-08-06T06:34:54 | 2016-08-06T06:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | from peachpy.x86_64 import *
from peachpy import *
from instruction_maps.avx_instruction_maps import *
from instruction_maps.sse_instruction_maps import *
def avx2_scalar_instruction_select(input_type, output_type, op):
if input_type == Yep32u and output_type == Yep64u:
SCALAR_LOAD = lambda x, y: MOV(x.as_... | [
"rguthrie6595@gmail.com"
] | rguthrie6595@gmail.com |
72c869f6621fd60a33ce24785b818e1ae15e5e87 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/gluinoGMSB/gluinoGMSB_M2450_ctau10000p0_TuneCUETP8M1_13TeV_pythia8_cff.py | f7d05477a5be68d6fcfb3e3c2425fddbdc7d028d | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 50,207 | py | FLAVOR='gluino'
COM_ENERGY = 13000.
CROSS_SECTION = 0.000104886
CTAU = 10000.0
MASS_POINT = 2450
SLHA_TABLE="""
## Important note!
## This file has been modified by hand to give the gluino and the
## stop_1 a very narrow width, such that it can be used to try out
## the R-hadron machinery. It is not a realistic SUSY s... | [
"ksung@cern.ch"
] | ksung@cern.ch |
4ec352b7fec601c5527b86e77fd11e0ead795e56 | a37219a018aab5a2c0d1934056b72aee8d32b9b8 | /0409/0409/ntust/Scripts/django-admin.py | 9c5695d0d64deb3f67f5536dbf3876dd66d52d87 | [] | no_license | Leesinbaka/JerryHW | 6a573defac546740e4358837f9c390ddef395edf | 6b7de91d69ae51fdc90601843ed1f46eb2ba2c3f | refs/heads/master | 2022-12-25T14:05:30.745364 | 2018-06-09T10:17:02 | 2018-06-09T10:17:02 | 124,868,685 | 0 | 1 | null | 2022-12-09T08:24:52 | 2018-03-12T09:58:28 | Python | UTF-8 | Python | false | false | 159 | py | #!c:\users\him\desktop\0409\ntust\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"kenneth72355700@gmail.com"
] | kenneth72355700@gmail.com |
75ca5aefe50b77509bfaaec7f261eccde8978151 | 02de8f705f354f0b130177621b886c7079e9c1d3 | /Task_10.py | 42d3053218a84b96e7bb7142e17ed914c1713d97 | [] | no_license | yekeenfatai/basecamp | d528e7984ff5e48c59dceab73e266b6374bf8a7d | 1b0bf11d8628167a6ea50460eff0cf6bd76bca28 | refs/heads/master | 2023-06-17T11:41:52.742260 | 2021-07-18T21:46:49 | 2021-07-18T21:46:49 | 387,271,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | def frequentChr(word):
"""frequentChr: accept a string as input and returns
the most frquently occured element as dictionary"""
#Verifying that the input is type string
try:
#To ensure that the parameter is a string not an array
if (type(word) in [list,set,dict]):
return f"Note... | [
"yekeenfatai10@gmail.com"
] | yekeenfatai10@gmail.com |
3dd23060467fe4b63a7c25228f5126fa8d571160 | cc3c46bf2c6bceeb3fbfea28bec7786e7f691df3 | /FORRIT/python_verkefni/byrjendanamskeid/verkefni_day_1/verkefni_07aftur.py | 739b073f40a0ab079206964f46103cf5fc6aebec | [] | no_license | magnuskonrad98/max_int | 8d7608978eb49c759377f4826bcdfcd59e7f1551 | ba3a8bf38e90674546ca6f5d118ab37babfe0178 | refs/heads/master | 2020-07-20T07:42:04.678497 | 2019-09-05T15:48:04 | 2019-09-05T15:48:04 | 206,600,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | price = int(input("Enter the product price: "))
price_with_tax = price * 1.255
print(price_with_tax)
| [
"magnuskonrad@gmail.com"
] | magnuskonrad@gmail.com |
2cffed30653acf460e4754cf7749eaf6a5e2e45b | cc0cc5268223f9c80339d1bbc2e499edc828e904 | /wallets/thrifty_wallets/manage.py | e4a50db512daef9656866ea7fe7ac714993b463d | [] | no_license | deone/thrifty | 0ba2b0445e7e9fd4cc378350de158dc6c89838b4 | a0ee4af9447b2765f4139deb87a3c1464e7c7751 | refs/heads/master | 2021-01-10T12:00:00.618968 | 2015-11-01T23:36:36 | 2015-11-01T23:36:36 | 45,340,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thrifty_wallets.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
ae0a2f0b5b3f0590e6e1b9e931af7d3b64441bfe | 635049987366fa45d03e8839f482b76414e59ee0 | /web/migrations/0005_auto_20180407_2211.py | cfbbb385aaf89550c9a5db46c837ecbf8d2303df | [] | no_license | 313799043/- | 5ecdef19feb47d36b2f73660012184a88ede830c | 353feee2ccadd8742cbdf061084224e5c41742b5 | refs/heads/master | 2020-03-08T11:25:23.825488 | 2018-04-08T07:13:30 | 2018-04-08T07:13:30 | 128,097,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 2.0.3 on 2018-04-07 14:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0004_auto_20180407_2156'),
]
operations = [
migrations.AlterField(
model_name='order',
name='status',
... | [
"m313799043@163.com"
] | m313799043@163.com |
1b340ebd2248f63c39e2921394126e7da83f5247 | 8a46f370477ea9fabd36249a4f6d70226917c24b | /blogdown/plugin.py | 8ad745eddeda8d95b2c65f40734315b3b18705c3 | [
"BSD-3-Clause"
] | permissive | blogdown/blogdown | af551991013d03e3b7b033cf45687f952eb41def | 4a463d341a1fe7547a3de33f03d356e74a89569e | refs/heads/master | 2022-06-09T11:53:03.728491 | 2022-05-17T19:26:54 | 2022-05-17T19:28:16 | 5,064,814 | 5 | 4 | null | 2016-03-14T02:44:58 | 2012-07-16T08:30:38 | Python | UTF-8 | Python | false | false | 2,147 | py | # -*- coding: utf-8 -*-
"""
blogdown.plugin
~~~~~~~~~~~~~~~
Utilities for a simple plugin system.
:copyright: (c) 2015 by Thomas Gläßle
:license: BSD, see LICENSE for more details.
"""
import os
from importlib import import_module
from pkg_resources import iter_entry_points
from runpy import run_p... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
72ee7a4ce27029e51b027616e8398695f52f6fe0 | 778bc60655bc3e7d2b474cc9280eceabe700bfea | /models/__init__.py | 363c1cdef1efe920dcfe8cc18ff8015178f9f8c6 | [] | no_license | 12334zq/speculosity | 166512beb14551b3e31a27d759d4e523f44ad2b2 | 01144dfaed2e380c6da16dd132fbe9081a3fab29 | refs/heads/master | 2021-09-15T23:02:49.075668 | 2018-06-12T10:14:37 | 2018-06-12T10:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from .vgg16 import VGG16
from .vgg19 import VGG19
from .vgg11 import VGG11 | [
"thibault.wildi@epfl.ch"
] | thibault.wildi@epfl.ch |
1a6f7da3348496cfdcfd72dc5c1d6c662ac408c9 | 4d7e6eaf9c2a4749edd025d5b204289a01e469a2 | /FlaskTest/day_01/carts/__init__.py | d9788c7c7678ef467346e24f97c22e07a933c098 | [
"MIT"
] | permissive | tjhlp/FlaskProject | f5db4a020a5523516624117583aa70183dc0d520 | 2213060ec3ee2720d79a7a3f71fbcaf23a85d64d | refs/heads/master | 2020-06-24T09:33:18.592170 | 2019-08-02T07:57:02 | 2019-08-02T07:57:02 | 198,929,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from flask import Blueprint
cart_bp = Blueprint('cart', __name__, url_prefix='/cart')
from .views import *
| [
"374586186@qq.com"
] | 374586186@qq.com |
8647d26df7f988b7991592e5749aad87ff561a08 | 0f02f1e13993149833d09d0f85fc1e49435ddc13 | /Lab9/hh_back/api/migrations/0002_auto_20210412_1409.py | 2b2b5d9637fb50ad82142555625df6ace6b9415a | [] | no_license | beksultanrrr/Web-development | f821b345eb9637f2d81a5b772c7f2269a80b71e1 | a4192adae583b7c6a27d453ee1d325e01cb501df | refs/heads/master | 2023-04-01T22:24:53.965225 | 2021-04-19T17:02:08 | 2021-04-19T17:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | # Generated by Django 2.0 on 2021-04-12 14:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='company',
... | [
"elvinashm@gmail.com"
] | elvinashm@gmail.com |
b670f36db9b9c4d1136a27548f323e31a2c032fb | 864720a85259b6c38614d715b901f0a1f166ff2b | /MainProject/newfor.py | 03da98b279241608912485393a240a8bf4ab2606 | [] | no_license | rhlsin/Weather-Forecast-Cum-Schedular | c0218335b5b58a14310dd89726bd9228f7c1bb5a | 971d51e783757a00b2c735e69fb291acef63f26a | refs/heads/master | 2021-09-18T05:39:06.565853 | 2018-07-10T10:03:05 | 2018-07-10T10:03:05 | 104,628,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | import datetime
import forecastio
from forecastiopy import *
from geopy.geocoders import Nominatim
Lisbon=[]
api_key = 'a94a682750fdb4970407428c7795efaa'
def namcty(name):
geolocator = Nominatim()
location = geolocator.geocode(name)
Lisbon.append(location.latitude)
Lisbon.append(location.longitude)
... | [
"rhl_92@yahoo.com"
] | rhl_92@yahoo.com |
3ad172fe5ecd7b6deb6d78171e29b47f0aac4bf3 | d013f83ac25db3cbdb87e37bda7249feaa88da1c | /code/models/user.py | 946efcc86698044ec1d9633620dc4c88e91c2e07 | [] | no_license | Jitesh-Khuttan/BookMyTicket | 97e5685bd9f80c8edba6aab87e7f3e023d0c1d32 | a6608b7d43147ba7a22e498bfb4b3385b6f4b18c | refs/heads/main | 2023-08-16T02:46:43.089198 | 2021-10-19T07:07:30 | 2021-10-19T07:07:30 | 415,529,560 | 0 | 0 | null | 2021-10-19T07:01:18 | 2021-10-10T08:37:37 | Python | UTF-8 | Python | false | false | 888 | py | from code.db.alchemy_db import db
class UserModel(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(60))
password = db.Column(db.String(100))
def to_json(self):
return {'id': self.id, 'username': self.username}
def register... | [
"jiteshkhuttan15@gmail.com"
] | jiteshkhuttan15@gmail.com |
82d49a9ea24a6ef56776243ff4a21c12b816e9f6 | eab72229ae04d1160704cbf90a08a582802a739c | /put_zero_den.py | 34666a2ec393a250b458da9b91999832b8c281fe | [
"MIT"
] | permissive | megatazm/Crowd-Counting | 444d39b0e3d6e98995f53badf4c073829038b6b7 | 647a055baccee2c3b6b780f38930e2ffd14d1664 | refs/heads/master | 2022-04-01T04:49:16.409675 | 2020-01-31T21:24:02 | 2020-01-31T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import cv2
import numpy as np
import os
import glob
from paint_den import paint
import params
path = params.input
dirs = [f for f in glob.glob(path + '/*/')]
images = []
for x in dirs:
images.append([f for f in glob.glob(x + '/*_pos.png')])
images.sort()
images = [item for sublist in images for item in sublist]
... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
c2b459c2282096b0821f5cafcca9b1d79861dd95 | 9619daf132259c31b31c9e23a15baa675ebc50c3 | /memphis.users/memphis/users/registration.py | 42d0886c2b83d4155d69ef9eca86b59d3b64b673 | [] | no_license | fafhrd91/memphis-dev | ade93c427c1efc374e0e1266382faed2f8e7cd89 | c82aac1ad3a180ff93370b429498dbb1c2e655b8 | refs/heads/master | 2016-09-05T19:32:35.109441 | 2011-08-22T06:30:43 | 2011-08-22T06:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from zope import interface
from memphis import controlpanel
from interfaces import _, ISiteRegistration
class SiteRegistration(object):
interface.implements(ISiteRegistration)
controlpanel.registerConfiglet(
'principals.registration', ISiteRegistration, SiteRegistration,
_("Site registration"), _("Sit... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
814f23902fd16e2421040797070c339848a66750 | 33bddacfd54d9d85989d96298ebdd70af3a190f8 | /user_profile/migrations/0002_userprofile_gender.py | 2109b8db1c7e9ca3162ef92167a89401e0630d63 | [] | no_license | Jagdish010/Django-API | 85a64342e1de500a39b9c91247fe2c212e4d9082 | 90615954e5d77a0022b5ad185461bbba18a800b9 | refs/heads/master | 2023-02-28T19:07:06.431872 | 2021-01-29T09:33:02 | 2021-01-29T09:33:02 | 334,087,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 2.0.7 on 2021-01-28 19:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='gender',
... | [
"jagdishn@avu.net.in"
] | jagdishn@avu.net.in |
5ef53c9e1394c1d2f92962a9f34217c5c9134413 | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /chutu/exmapxx.py | 5a8c550eb45031c938a4fb4f4a1d660bcf2fed3d | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # coding=utf-8
import arcpy
import os,glob,time
res=200
# 模板mxd文档路径,生成mxd文档路径
def createMxd(modelpath,mxdpath,symbologyLayer,jpgpath,string,lyrfile):
mxd=arcpy.mapping.MapDocument(modelpath)
if(os.path.exists(mxdpath)):
mxd=arcpy.mapping.MapDocument(mxdpath)
print("location as "+mxdpath)
... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
9e640d5e9035eb3c390422021a2cbf28beb05318 | cc2411f7ab2f743b619294e332a07aceec82ea41 | /faces-train.py | 9aa8b4c3695c8ad43c161b5693e944924c26f737 | [
"MIT"
] | permissive | GoPerry/opencv-face-recognition | 23c7a37e99d0769d0a90cacbc8ebf3763b7d09aa | 53b008dff52582be909c8dd19c33d11aa79d10b7 | refs/heads/main | 2022-12-27T17:43:40.591684 | 2020-10-13T14:38:41 | 2020-10-13T15:27:45 | 303,733,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import cv2
import os
import numpy as np
from PIL import Image
import pickle
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
image_dir = os.path.join(BASE_DIR, "images")
face_cascade = cv2.CascadeClassifier('cascades/data/haarcascade_frontalface_alt2.xml')
recognizer = cv2.face.LBPHFaceRecognizer_creat... | [
"perry_yuan@mail.com"
] | perry_yuan@mail.com |
90b782501b6f2a82869a0606c0c34ed8fdefb653 | 228cf193205005b8057bfcc11cfe59a2cce99e25 | /xianfengsg/online/V_1.3/XGBOOST_forecast_engineer.py | c79d9fc05b5d55310820164fd1b08f6542939a20 | [] | no_license | jimmyeva/AI-predict | a4b7a0adb4bf40497324332cbfe9106a78078403 | 2d7783ee0008e60bd04d27219b542b8abea235bd | refs/heads/master | 2022-04-11T06:11:36.332609 | 2020-04-08T08:23:10 | 2020-04-08T08:23:10 | 250,241,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,756 | py | # -*- coding: utf-8 -*-
# @Time : 2019/9/13 11:16
# @Author : Ye Jinyu__jimmy
# @File : XGBOOST_foreacst
import pandas as pd
# 显示所有列
pd.set_option('display.max_columns', None)
# 显示所有行
pd.set_option('display.max_rows', 500)
# 设置value的显示长度为100,默认为50
pd.set_option('max_colwidth', 100)
from sklearn import preproces... | [
"usstyjy@163.com"
] | usstyjy@163.com |
3e95082625682532c740b5cbbb866d6699da683e | 0f9cb900b0e7b07cc7b872ccd94fa25d0ebd5f99 | /section-5-lists-and-tuples/magic_adder.py | 51d733b4931b7742540a8f04da831ddeb0e2107d | [] | no_license | petkonnikolov/python-masterclass | 94aada4886ec808e9984059022b879079322855c | 635ba0dca44661baeb73d4e3446d7e083985852f | refs/heads/main | 2023-04-11T19:12:38.138602 | 2021-05-11T11:51:02 | 2021-05-11T11:51:02 | 359,227,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | string = input('Please enter three integers in format "a,b,c": ')
list1 = string.split(sep=',')
for index in range(len(list1)):
list1[index] = int(list1[index])
# calculation = (list1[0] + list1[1]) - list1[2]
a, b, c = list1
calculation = (a + b) - c
print(calculation) | [
"petko.nikolov@dxc.com"
] | petko.nikolov@dxc.com |
abdc779c2d410101111196e525ec6947439523c7 | b4fee5ef70c34e161c4fd8daf19a1bc233cd5f6b | /Python/Warmup-2/codebat_wm2_front_times.py | d92f281320236eb638b1324e92a33a9b92eaf3ea | [] | no_license | Hoan1028/CodingBat-Solutions | 2bf680a43cc5721f90ae731ac0996ca8f5f7f360 | f64412a88345240f70c4b0f1e1461d61b310ecb7 | refs/heads/master | 2020-05-19T00:34:39.963638 | 2019-05-10T01:06:11 | 2019-05-10T01:06:11 | 184,738,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #CodingBat Python Warmup-2>front_times:
def main():
#unit test
print('Expected Values: \nChoCho, ChoChoCho, AbcAbcAbc, AbAbAbAb, AAAA, \'\', \'\' \nActual:')
print(front_times('Chocolate', 2), front_times('Chocolate', 3), front_times('Abc', 3), front_times('Ab', 4), front_times('A', 4), front_times('', 4),front_t... | [
"hoannguyen1028@gmail.com"
] | hoannguyen1028@gmail.com |
10c811755bbeff6b27cebbc77dbe356bb64edc11 | 15ed3ab4510677e6df9b11af8fd7a36fc6d826fc | /v1/og_mc_3/tau=0.01/eta=0.04/library/mc6.py | a573e2553235d58cd70aaa9530cdec9d32c14c5f | [] | no_license | pe-ge/Computational-analysis-of-memory-capacity-in-echo-state-networks | 929347575538de7015190d35a7c2f5f0606235f2 | 85873d8847fb2876cc8a6a2073c2d1779ea1b20b | refs/heads/master | 2020-04-02T08:08:38.595974 | 2018-01-17T08:12:26 | 2018-01-17T08:12:26 | 61,425,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mc6.py
Created 21.3.2015
Based on mc5.py
Goal: Measuring Memory Capacity of reservoirs.
Changes:
- removed correlation coefficient correction MC <- MC - q / iterations_coef_measure
- added input-to-output connections
"""
from numpy import random, zeros, ta... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
82c2659eb4d6f99896c3ba268b2a4a1384b640aa | 7375c15595cd1010d87c1616c598466a413b5d41 | /HW3/NeuralNet.py | a596fea80d7eb168efa899f0751b9804e6875d93 | [] | no_license | gdr0ge/Fa19-ML | dfd12e8b550cdb09bce15adbfa81288e7be5e362 | c65a76f59d05db46da342c57cd6a6ecdbd053c08 | refs/heads/main | 2023-03-31T15:58:28.409003 | 2021-04-02T02:44:03 | 2021-04-02T02:44:03 | 353,881,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | import torch
import torchvision
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import matplotlib.pyplot as plt
n_epochs = 6
lr = 0.01
batch_size = 32
log_interval = 100
class Net(nn.Module):
def __init__(self):
super(Net, self,).__init__()
# se... | [
"grahamdroge@gmail.com"
] | grahamdroge@gmail.com |
300bf255e57aa3bb3508afab1994003379177da8 | 5a5cc86b58e8f09495e5e2f9dcfae77159b4cbf6 | /练习1.py | 1e683124ed011e3dfb1a7c7ccc3e6538a45326d1 | [] | no_license | Wangyinglihai/tijiaozuoye | b06711238d0e17a1fa2b9e0ba46d936a0a29691c | f7fa802839268a2a9d63acbccfc44b290900779a | refs/heads/master | 2020-03-23T21:37:14.814676 | 2018-07-24T09:48:20 | 2018-07-24T09:48:20 | 142,120,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 17 17:38:43 2018
练习1:
1.定义一个天气温度列表,写出里面每一天的温度
2.打印一周的天气,天气里面的周三打印例外:周三+温度
@author: user
"""
print('一周的温度')
a=[21,22,23,24,25,26,27]
print(a[0])
print(a[1])
print('the temp of 周三 is:'+str(a[2]))
print(a[3])
print(a[4])
print(a[5]) | [
"noreply@github.com"
] | noreply@github.com |
941023f561d7407ed3b0bee51288d9010a9e728c | cd22c49ca8e322ba91fa9688b144034a7711dc47 | /defi_streaming/token_activity.py | dfed24ef7c641fddc25cf33f50d63591f9a3bbf4 | [
"MIT"
] | permissive | howardpen9/eth_analytics | ef5f306da973289dd3c17781bacdf5457797d2ea | cf9f35f867c88cd3ec11836253861908a9bc3d92 | refs/heads/main | 2023-06-21T07:15:03.168679 | 2021-08-09T04:43:32 | 2021-08-09T04:43:32 | 387,317,327 | 0 | 0 | MIT | 2021-07-23T06:37:25 | 2021-07-19T02:34:36 | null | UTF-8 | Python | false | false | 3,639 | py | # This script can be used to view all the transactions from a specific ERC-20 token over a defined # of blocks.
# This is useful for counting volume of transfers, viewing where it's being used, etc.
from web3 import Web3
# Import Alchemy API Key
from dotenv import dotenv_values
config = dotenv_values("../.env")
# I ... | [
"lpose22@gmail.com"
] | lpose22@gmail.com |
fc07e766feb0209e6a93a506e4dfd139b922334c | 1c4306e8c32b05d3c61917d915da182703b473ba | /Classroom/hyperion/urls.py | 71c307c218a3695f9e078dde0eb02914b5b59c0b | [] | no_license | SabbirSzl/Software-Engineering-Project-Hyperion-ClassRoom | 96cec2633883d933c7586bcdf6826b8bbdb65257 | b9a808c2aa64ff8aa2d845f4e68492506e1589c2 | refs/heads/main | 2023-02-26T14:21:32.978147 | 2021-01-25T16:24:20 | 2021-01-25T16:24:20 | 332,654,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py |
from django.conf.urls import url, include
from django.urls import path
from hyperion import views
#from hyperion.views import AccountControllerTemplate,LoginController
urlpatterns = [
path("", views.classes, name = 'classes'), #this empty path will be redirect to classes
path("individualclass/", views.indivi... | [
"sabbirsozol@gmail.com"
] | sabbirsozol@gmail.com |
1e68855aee7ae6eefdb3a2f5f9190bde7e590908 | 0e7d6dd418f6a7617ced67ac8c8e8c2a4270f030 | /py_course/1-4/test3.py | 0a6bbbe5c9f7d2dc723026bc9417df976a7f1369 | [] | no_license | alexoch/python_101_course | b72dfb8d0c71baf60cc8c0c62ec02bd505deb506 | 4f8c765c3ce7d55562c5f18f7b45d6b0199d4628 | refs/heads/master | 2021-01-19T04:05:20.754879 | 2017-03-12T20:47:34 | 2017-03-12T20:47:34 | 84,426,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
: 10 20 30
: python lab3_1.py 10 20 30
: not triangle
: 1 1 1
: python lab3_1.py 1 1 1
: triangle
: 5.5 5.5 -2
: python lab3_1.py 5.5 5.5 -2
: not triangle
"""
import sys
X = int(float(sys.argv[1]))
Y = int(float(sys.argv[2]))
Z = int(float(sys.argv[3]))
if X <= 0 or Y <= 0 or Z <= 0:
print 'not triangle'
el... | [
"s.ocheretyany@gmail.com"
] | s.ocheretyany@gmail.com |
fb3ec15864cfb1866c1711d0586b7d7b0fff7090 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/particles/particles_ie013_xsd/__init__.py | e0ffd1abcba9a881fbd645379ab76771f0c5d955 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 169 | py | from output.models.ms_data.particles.particles_ie013_xsd.particles_ie013 import (
Base,
Doc,
Testing,
)
__all__ = [
"Base",
"Doc",
"Testing",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
16e0ae410ab9c5056f793ef00a29456e3926cbfc | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/116--Populating-Next-Right-Pointers-in-Each-Node-Medium.py | 2e8b81530cf65226d4d6de3352b0c75892188c4a | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
# Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
i... | [
"akulajayaprakash@gmail.com"
] | akulajayaprakash@gmail.com |
69b79f560be12c0e9e42677a4b97215c43d4af93 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_cuneiform.py | aa5197e96b7bd8efc91b06c79ac4112f74a72e7c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py |
#calss header
class _CUNEIFORM():
def __init__(self,):
self.name = "CUNEIFORM"
self.definitions = [u'of a form of writing used for over 3,000 years until the 1st century BC in the ancient countries of Western Asia', u'pointed at one end and wide at the other: ']
self.parents = []
self.childen = []
self.p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8e3f79372433e9b9c6eb7aa9fd960c6a2ff2d754 | 8edbd1bf5c7cd8e42926596445fd0470ad942795 | /model/Biller.py | b47bcf3ffc29bd61cdc403e96543422fb264a47c | [] | no_license | Luca-Guettinger/122-LB2 | 3d14f81f432b0569db63350dd80e96bae1432a8b | c89094d9af3516389b8ca44ed8ed963be842ffd8 | refs/heads/master | 2023-06-19T19:48:14.180694 | 2021-06-16T09:44:08 | 2021-06-16T09:44:08 | 377,446,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | class Biller:
def __init__(
self,
client_id,
name,
street,
zip,
location,
company_id,
mail,
):
self.client_id = client_id
self.name = name
self.street = street
self.zip = zip
s... | [
"luca.guettinger@cmiag.ch"
] | luca.guettinger@cmiag.ch |
3624606505d2c4d32dc651e65c3f931dac1fee9d | 9ba95201a8e27799f6d3de0cfca766cb42b78b61 | /venv/bin/easy_install-3.7 | 57db12113d976c9a92700e4f0d919c0810c0dad9 | [] | no_license | LuisaBarbalho/tasks-python | 011b603aa15b6e0fc9aedfd8f6f164845d0020ad | fc5b75073d1021d90df4ae6b805ab9c173fdffc4 | refs/heads/master | 2020-05-29T16:04:56.622115 | 2019-05-29T14:16:32 | 2019-05-29T14:16:32 | 189,238,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | 7 | #!/Users/luisabarbalho/PycharmProjects/python1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"luisa.barbalho@lais.huol.ufrn.br"
] | luisa.barbalho@lais.huol.ufrn.br |
24351931a129027ae9d1350e8f467ed17eb4a146 | 3773bc425b338cf6b73451885a378ed5563d27c2 | /char/ascii.py | 125f9ca24c7ebe5f915de14a630944a53c70970f | [] | no_license | xiangunremarkable/hiyanlou-code | 009b2bf5bb23ef562892de9949b1dec424e9ecbe | 13e5805727e37a080b460491f06f49cbafa50432 | refs/heads/master | 2023-01-21T03:06:58.698008 | 2020-11-27T03:22:39 | 2020-11-27T03:22:39 | 314,746,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | from PIL import Image #图像处理库
import argparse #管理命令行参数输入
#首先,构建命令行输入参数处理ArgumentParser实例
parser = argparse.ArgumentParser()
#定义输入文件、输出文件、输出字符画的宽和高
parser.add_argument('file') #输入文件
parser.add_argument('-o','--output') #输出文件
parser.add_argument('--width',type = int, default = 80) #输出字符画宽
parser.add_argument('--height'... | [
"3553667047@qq.com"
] | 3553667047@qq.com |
25b0faff57a134389ac668ba40d1d3421f140816 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv1dtanh_24.py | c8888a08e65cd985171dd5b7947bf12cd3c0dedf | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,688 | py | # -*- coding: utf-8 -*-
"""
conv1dtanh_24.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv1dTanh_24(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv1d(in_channels=16, out_channels=22, kernel_... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
0cd0e4e8ac5f482d0c574c61b50f82a0ddd477af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/f30589c91d8946586faff2c994e99395239bd50b-<main>-fix.py | 1d51b1b9cb0c17280c516c955697eab9c96e41df | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
def main():
argument_spec = purefa_argument_spec()
argument_spec.update(dict(name=dict(required=True), eradicate=dict(default='false', type='bool'), state=dict(default='present', choices=['present', 'absent']), size=dict()))
required_if = [('state', 'present', ['size'])]
module = AnsibleModule(argumen... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
353b3aac10cc74d54979bc18d4bb35675b95e170 | 00030a24bb6ca535240ba4c737c0b22b1b931acd | /flight_log_analyzer/flight_log_analyzer.py | 92fc4733b73e8cadc7f6ccd4d0a83eb09fe3bee8 | [] | no_license | UCSD-E4E/e4e-tools | 80ebee514a216769e0e7d29438441f2177c90a5f | e68c8bf29814b6a746d9b384cb06f7554134ad6a | refs/heads/master | 2023-05-26T18:41:30.716768 | 2023-05-15T15:46:58 | 2023-05-15T15:46:58 | 9,737,213 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | #!/usr/bin/env python
import numpy as np
import argparse
import Tkinter as tk
import tkFileDialog
import datetime
import os
def leap(date):
"""
Return the number of leap seconds since 6/Jan/1980
:param date: datetime instance
:return: leap seconds for the date (int)
"""
if date < datetime.date... | [
"ntlhui@gmail.com"
] | ntlhui@gmail.com |
f5f6a28ca792b417bdb0991b2ed1d631db33abdd | 87d4572262010ad6fab9a68e6fd3ffe956183f86 | /SadguruProject/SadguruTeaProj/tea_app/serializer.py | 778ff0cf149d3d3eecaa3aaa3c2dd2ced2190f35 | [] | no_license | NikhilDeshbhratar/ThinkBridgeTest | 9f4b557660c0de2227bb4e0674a8c696498e2d60 | 4c39b418ba324defdc33807e6292204a2b5dc36d | refs/heads/master | 2023-02-12T15:47:04.628706 | 2020-05-21T07:04:49 | 2020-05-21T07:04:49 | 265,541,580 | 0 | 0 | null | 2021-01-06T03:00:25 | 2020-05-20T11:18:01 | Python | UTF-8 | Python | false | false | 346 | py | from rest_framework import serializers
from .models import Tea
class TeaSerializer(serializers.ModelSerializer):
class Meta:
model = Tea
fields = "__all__"
class TeaListSerializer(serializers.ModelSerializer):
class Meta:
model = Tea
fields = ["id","name","price","description",... | [
"nikhil28.deshbhratar@gmail.com"
] | nikhil28.deshbhratar@gmail.com |
550323588bb7c91d6f193aa3a636c51d6a3b730e | 07f7e1296e528e83d570ee7f5c75ff83e331d949 | /cufacesearch/cufacesearch/api/api.py | 0a7465d9ef4781c7538c68ae161aa902f996b4e7 | [
"Apache-2.0"
] | permissive | wuqixiaobai/ColumbiaImageSearch | e0ab1ed8ab9724b70838085a37c3cd06638e93b2 | a4c4816174c522c844b08feb1c9ddcad5ca2f6db | refs/heads/master | 2020-03-08T10:38:13.669538 | 2018-03-22T19:56:34 | 2018-03-22T19:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,861 | py | import sys
import time
import json
from datetime import datetime
from flask import Markup, flash, request, render_template, make_response
from flask_restful import Resource
from ..imgio.imgio import ImageMIMETypes, get_SHA1_img_type_from_B64, get_SHA1_img_info_from_buffer, buffer_to_B64
from ..detector.utils import b... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
974489579d1b3a01da4b771465ba222ddba4a144 | d42bf95794c9c2ba90d5484c5760181f3f810a91 | /my_answers.py | 725b1bfc73279a32421531808fdb174c370c8360 | [] | no_license | shokir85/DLML_Bike_Sharing_project | 61e1f239488f57a4835135ca3ebb677528956088 | ec704287ebe5975df5e5c63cbcb0dd7db492f2dd | refs/heads/main | 2023-03-09T23:30:04.096818 | 2021-02-24T22:17:14 | 2021-02-24T22:17:14 | 342,050,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,464 | py | import numpy as np
class NeuralNetwork(object):
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# Set number of nodes in input, hidden and output layers.
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes
... | [
"57154234+shokir85@users.noreply.github.com"
] | 57154234+shokir85@users.noreply.github.com |
6a75a718dcc0386af8e66481b8e6baabcf4235b7 | 5b586be4d47d4d588e11ceb5b9213aea87b67257 | /bambou/contextual/decorators.py | ea5b31b9b03a295068e324cf69bc67f85f0095ff | [
"BSD-3-Clause"
] | permissive | Dogild/bambou | 47a202941e1c67eef207711538878a3e0ac0742e | a148e2b926d227b2da501910522859cf3e35d0df | refs/heads/master | 2021-01-21T09:53:06.691163 | 2016-03-05T02:08:18 | 2016-03-05T02:08:18 | 53,224,552 | 1 | 0 | null | 2016-03-05T21:36:41 | 2016-03-05T21:36:40 | null | UTF-8 | Python | false | false | 21,707 | py | from types import ClassType, FunctionType
import sys, os
__all__ = [
'decorate_class', 'metaclass_is_decorator', 'metaclass_for_bases',
'frameinfo', 'decorate_assignment', 'decorate', 'struct', 'classy',
'template_function', 'rewrap', 'cache_source', 'enclosing_frame',
'synchronized',
]
def decorate(*d... | [
"antoine.mercadal@gmail.com"
] | antoine.mercadal@gmail.com |
20223d251cf7c1ee244f3ff6bda6aeac1170471e | 02842943a8e8c5c53f5f8146234271446f1203ce | /102_morphological_analysis.py | eb9ada5fd4c6b12d0915f447c3a6585661eacd1e | [
"CC0-1.0"
] | permissive | utda/portal_keyword | e38856747bdd413519fe249a2bf4a7c49011bc37 | b83b5a70e766235361ec34e5d5d45610d649c248 | refs/heads/master | 2022-12-12T07:03:34.552994 | 2020-06-12T08:55:56 | 2020-06-12T08:55:56 | 252,589,741 | 0 | 0 | CC0-1.0 | 2022-09-30T19:00:11 | 2020-04-02T23:48:40 | Python | UTF-8 | Python | false | false | 1,672 | py |
# text-mining.py
# python解析器janomeをインポート - 1
from janome.tokenizer import Tokenizer
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import TfidfVectorizer
import json
import os
import requests
import configparser
import numpy as np
import glob
import csv
import os.path
# 形態素解析用オ... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
52df8a6e0f658bda2e297a144ee28205503152b5 | 51a5c2772232690a34ba2030c643ffcb8d41023d | /cloudy-scripts/grid-density/plot-electron-temp.py | db0cff264676e6631603b21f62d7347a1f04e9d6 | [] | no_license | calvin-sykes/mmas-project | 000e456f83f97c001d196721c2b3bcad7bf64f99 | 4a57334fd7036d49760811373ef2bc8c4fc9a89f | refs/heads/master | 2021-09-05T19:18:24.325590 | 2018-01-30T13:49:00 | 2018-01-30T13:49:00 | 106,418,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/python3
import numpy as np
import matplotlib, matplotlib.pyplot as plt
import cloudy_plots as clplt
if __name__ == '__main__':
fn_base = 'grid-density'
cp = clplt.CloudyPlotter(fn_base)
colourvals = np.linspace(1., 0., cp.nfiles())
colours = [matplotlib.cm.jet(x) for x in colourvals]
... | [
"sykescalvin09@gmail.com"
] | sykescalvin09@gmail.com |
cd7ca0848790ab8b6fa8f0a2dca430f44d1e1aea | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_orm/courses/courses_app/migrations/0004_auto_20210507_1257.py | 44b3c5750ec2e09c2a574516f4e4ef23d781992c | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Generated by Django 2.2 on 2021-05-07 19:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses_app', '0003_auto_20210507_1107'),
]
operations = [
migrations.RemoveField(
model_name='de... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
fede356b76cd95095561b4fdc7bba90441403527 | bfb28ec9c6504c08f874ea3f7fb069d29b47fd51 | /testing/products/tests/test_urls.py | 0198ea583bc5ef1f99ff38ee1d2a41b3c98915bd | [] | no_license | anantonyk/python | c15d00108a1db0602f6ebd6ea1d8ec84e7858b8c | 9b3a15984e810e6ea0e7116f30d89e95b84a2ffa | refs/heads/master | 2020-04-01T16:53:26.677779 | 2018-12-05T08:16:29 | 2018-12-05T08:16:29 | 153,402,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.urls import reverse, resolve
class TestUrls:
def test_url(self):
path = reverse('detail', kwargs={'pk':1})
assert resolve(path).view_name=='detail'
| [
"nastiaantonyk14@gmail.com"
] | nastiaantonyk14@gmail.com |
4894fa27068d286744754d2916a964a130d12341 | f789170ebaef7c0dc06695e60d54981d5484de8d | /src/RSS_filter.py | ed3255b5b583099e7301d0f47b7ac6938fe8b51a | [
"MIT"
] | permissive | cega/RSS-filter | 39cfc05bc753fac1922ce2d256f0f745f6919b4f | 84092e74fc9dccb8c2e169f2ff27e49134107e75 | refs/heads/master | 2020-12-30T17:45:04.079484 | 2013-03-23T16:02:39 | 2013-03-23T16:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,138 | py | #!/usr/bin/env python2
"""
RSS Filter
Usage:
RSS-filter
RSS-filter -e | --edit
RSS-filter -l | --list
RSS-filter -h | --help
Options:
-h --help Show this message.
-e --edit Edit the filters with your default editor.
-l --list List feed titles.
"""
import os
import errno
import stat
from cStri... | [
"github@u2ft.me"
] | github@u2ft.me |
c695fddcefdc0efae0816934bae5aaba3b17ab7c | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_02_syntax/hw/tests/logic_1_arithmetic_test.py | 24a92c5b8bec9f07cd079054c5fbfa6afd539e1c | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import pytest
from topic_02_syntax.hw.logic_1_arithmetic import arithmetic
params = [
(0, 0, '+', 0),
(1, 0, '+', 1),
(0, 1, '+', 1),
(100, 100, '+', 200),
(100, -100, '+', 0),
(-100, 100, '+', 0),
(-100, -100, '+', -200),
(0, 0, '-', 0),
(1, 0, '-', 1),
(0, 1, '-', -1),
(... | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
46d5774627783aa5520575af7c9d0f2cde6b0511 | eaf3c103ec2e0aaf5e3660fccc8f3dda6e55b44e | /hw2/FindBestParam_ma.py | 25b2f83a25f2a8f8f7818b62a51bd1eb806799f6 | [] | no_license | b06705039/FinTech | d0ca963fac3565c6de2c4de757496abe2f8034b1 | f5dae8fe1ff869212f8dae4dc2b0afb2692fb234 | refs/heads/master | 2020-09-16T11:36:49.953237 | 2020-04-20T02:53:00 | 2020-04-20T02:53:00 | 257,004,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | import sys
import numpy as np
import pandas as pd
# Decision of the current day by the current price, with 3 modifiable parameters
def myStrategy(pastPriceVec, currentPrice, windowSize, alpha, beta):
import numpy as np
action=0 # action=1(buy), -1(sell), 0(hold), with 0 as the default action
dataLen=l... | [
"b06705039@ntu.edu.tw"
] | b06705039@ntu.edu.tw |
9a4e9897475ce33d6365819dd1de00ebac7154ee | 16e54286bb66e4173f746936c829dda2c280ce68 | /python/13369.世界时钟(时区处理).py | 709107d93e28b099cd3926247907b96ea60c0dcf | [] | no_license | 569985011/Work-Space | 653b932ada697d29178c2211a40d7de7650f9421 | 9afeb1846433d22514a0997b7a48254ce85f5009 | refs/heads/master | 2021-05-04T00:28:23.098655 | 2020-09-30T11:32:57 | 2020-09-30T11:32:57 | 71,839,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import datetime
moscow_time = datetime.datetime(2019, 3, 18, 18, 13, 27)
lundon_time = moscow_time-datetime.timedelta(hours=+3)
beijing_time =lundon_time+datetime.timedelta(hours=+8)
tokyo_time =lundon_time+datetime.timedelta(hours=+9)
newyork_time =lundon_time+datetime.timedelta(hours=-4)
print("伦敦 "+datetime.dateti... | [
"Chauncy523@gmail.com"
] | Chauncy523@gmail.com |
7ee6dfd65f6902adeb07ab3e77ae072964561905 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/iam/_admin_get_list_country_age_restriction_v3.py | 74d2f077e0a0ec3dedd98d7a8e75cccd7aeadc41 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,385 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Iam Service (6.2.0)
# pylint: disable=duplicate-code
# pylin... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
8a06cc0bb2e553d32d22186fb3d417bad7e6eca4 | 62e8affbac7b31f0075f67a12391031132ea42f6 | /code/excluded/our/deepgrudgy1.py | 6b8ce4ae8a8b8e33554f58c6661429349f5be55f | [
"MIT"
] | permissive | CompetitiveMazeSolutions/PrisonersDilemmaTournament | 0bab13ec9fc0963b2acb58791ec84e47897ed155 | c8422af02d434399db8a7db05a8b944d76f0afaf | refs/heads/main | 2023-05-05T19:14:16.525405 | 2021-05-27T01:28:58 | 2021-05-27T01:28:58 | 369,590,104 | 0 | 0 | null | 2021-05-21T16:12:00 | 2021-05-21T16:11:59 | null | UTF-8 | Python | false | false | 450 | py | import random
import numpy as np
def strategy(history, memory):
if memory is None:
MAX = 0
MIN = -2
coop_level = 0
else:
MAX, MIN, coop_level = memory
n = history.shape[1]
if n >= 1:
coop_level += 1 if history[1,-1] else -1.5
if n >= 1:
MAX += 0; MIN -= 1/n
if coop_level > MAX:
... | [
"greenlee04@gmail.com"
] | greenlee04@gmail.com |
4ff812638778fa97edd09c504ffcd6dd6cdc11fa | 239ea6447abfc78571a64e1f7e0014e8d6258381 | /novice/02-02/unit_test_soring.py | e623454d5075aaee0a9f8f27b9585d14d703459d | [] | no_license | faizal-alkaff/praxis-academy | b6110661968f94d2cfaff56ac6220ef38da05da6 | 9c3069999ffaecd39016a015cbe6e9ec031991bc | refs/heads/master | 2020-09-21T05:33:25.644890 | 2019-12-20T08:53:22 | 2019-12-20T08:53:22 | 224,646,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | import unittest
from sorting_method import *
class TestMethods(unittest.TestCase):
def test_bubblesort(self):
bbllist = [8, 11, 3, 22, 16]
bubbleSort(bbllist)
self.assertEqual(bbllist, [3, 8, 11, 16, 22])
def test_quick_sort(self):
quickSort = [22, 5, 1, 18, 99]
quick_... | [
"alkaff.faizal@gmail.com"
] | alkaff.faizal@gmail.com |
02a65f8279d97c74d7a8b059a3e2e39c3ed462f9 | f00ee3b1d271741ddd5d07e490cc300f4b468964 | /nNums.py | 383324688a5a32b7b4c0cb01318e42978adee673 | [] | no_license | HyungjinLee/codingtest_programmers_Nnums | a353f9c6ee14e8c34afb5fd0858b115db3468ece | 127f193261eda6da1947e3b6695d5f71caf91bd9 | refs/heads/master | 2022-04-19T10:22:08.083652 | 2020-04-17T14:56:10 | 2020-04-17T14:56:10 | 256,531,697 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 933 | py | import copy
# copy를 이용 안하는 법은 없을까? 고민중
def solution(N, number):
candidates = [set() for _ in range (8)]
for i in range (8) :
candidates[i].add(int(str(N) * (i+1)))
def search(count) :
global answer
if count >= 8 :
answer = -1
return False
... | [
"2014104136@khu.ac.kr"
] | 2014104136@khu.ac.kr |
e823daeff120484c8d0edc305d5b065826e3dc10 | 5f2178281d7bab664df29177307bbac1f00106b7 | /settings/adx_config.py | 5ab7911467d1f11758e1e4391902da09f180d3e1 | [] | no_license | pablin87/rtb_exchange_sim | f5da98edd35f88b5e36d125cbd27c5c5ba76281a | c579e4a7e257cda496724720da0821c2dd01d3bd | refs/heads/master | 2020-05-26T00:35:55.361745 | 2017-01-31T18:08:57 | 2017-01-31T18:08:57 | 18,372,564 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py |
conf = {
# Definde what resource of the exchange connector endpoint is hitted
# in order to place a bid request.
'http_resource' : 'adx',
# Keys for price encryption in string hex
'encryption_key' : "b08c70cfbcb0eb6cab7e82c6b75da52072ae62b2bf4b990bb80a48d8141eec07",
... | [
"pabloberrilio@gmail.com"
] | pabloberrilio@gmail.com |
286164908e84c5092d847553da2a904fea968b9a | 905068636fd1e771f4cd2f4b3b57b7e1fac2686b | /python_code | 2290fdd41c713e8767e8255de77bdfea8cf4e9bb | [] | no_license | KinloongTiao/deribitconnection | 0595ba6dcd95880471729234423b11da858692bd | f402ee56105d1a3d087556ed7b4abfbc20cec58f | refs/heads/master | 2020-03-26T13:03:36.172971 | 2018-08-16T01:30:52 | 2018-08-16T01:30:52 | 144,920,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | #!/usr/bin/python
# -*- coding:utf8 -*-
import psycopg2 as psy
from deribit_api import RestClient
import time
import ssl
from threading import Timer
from datetime import datetime
class Deribit:
context = ssl._create_unverified_context()
# 用户名:3RkEWsw1wFTkG,密码:ES2AVXHWB5QOOWBWMHYXHSJDUBOQAZSB)
# 连接derib... | [
"noreply@github.com"
] | noreply@github.com | |
c9e0dbd320e21b8f48a680fafbcf65f86dc2b503 | 8541f96e5f48780050a7995ed735c70d4f3c2642 | /dedupe/merge.py | 1a8143458547b86d4f06c3387b56a2f067410d9b | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | influence-usa/lobbying_federal_domestic | ede64752f81b6a8496a9f6b31b3f2a6c3a5f485e | 117a1991e01a203c2c181c1c6163b044c4d5c56f | refs/heads/master | 2021-01-02T23:02:57.140303 | 2016-11-30T22:47:46 | 2016-11-30T22:47:46 | 17,500,504 | 7 | 2 | null | 2014-05-08T21:32:29 | 2014-03-07T02:39:15 | Python | UTF-8 | Python | false | false | 608 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, pickle, sys
import simplejson as json
import dedupe.serializer as serializer
def merger():
def load(filename):
return json.load(open(filename,"r"),
cls=serializer.dedupe_decoder)
input1 = load(sys.argv[1])
input2 = load(... | [
"zmaril@sunlightfoundation.com"
] | zmaril@sunlightfoundation.com |
a6deb99f06f534c972c5a08262ff9b30c27b248f | 980f502d17e27339a3906b0877abac7e03c34538 | /flask/bin/python-config | 28d131869f2d77b140c84709d5a277e6de27a6b9 | [] | no_license | ben-holland-young/learning-flask | 25e5f437bcbc835120578e5380ac91947141a18f | 0fe4a3b9c43e1615b080cae7eed31b350337b79f | refs/heads/master | 2021-01-12T06:37:11.377838 | 2016-12-29T15:46:09 | 2016-12-29T15:46:09 | 77,396,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | #!/Users/benholland/Desktop/flask_proj/flask/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys... | [
"bbne45@icloud.com"
] | bbne45@icloud.com | |
e7b14c0367b594b8adebfd94bd611149cf852b69 | bec7cb71348269467e720876d1b262379129e138 | /ask/ask/urls.py | 113ba92f8651397964e4890672e116f908d80ddc | [] | no_license | aftana/st-web31 | 6b18548891135454f6e5c822a92203feec04be2e | 862a73e0b576f1a611232aac4afec504a909c0af | refs/heads/master | 2020-04-05T12:38:04.863561 | 2017-07-12T13:40:13 | 2017-07-12T13:40:13 | 95,201,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """ask URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"art-xub@xubuntu.com"
] | art-xub@xubuntu.com |
3f83f46f9d7f4babfa8c81312e6fd61edc7c8c9a | cc52011cb420651cdd9d37af1ffbad68f935c7be | /junk/face_test.py | 02765a052dfcd7d9789560f7bae2bde65f24a6ca | [] | no_license | fatpat314/mask_detection | 0988a341fd47849977bbb7babdc0ed2fce928a6d | 025b420014e8aac71d867e06ef9202a473e5357c | refs/heads/master | 2022-12-20T05:43:44.700740 | 2020-09-28T08:19:56 | 2020-09-28T08:19:56 | 290,686,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,137 | py | import face_recognition
import cv2
import numpy as np
import os
import glob
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to make things run a lot faster:
# 1. Process each video frame... | [
"w.patrick.kelly@gmail.com"
] | w.patrick.kelly@gmail.com |
a0a7a472bbf79b3afa0328c6e60d3805b1c3f573 | d63633a0370581fa9a4a603c9c3a6e05677846bf | /data_loader_val.py | f234185bd2ba3d564f2ef3fd69cae6f710f8b013 | [] | no_license | aazabal1/image-captioning-project | 92393cf5f5cf3201f3d7f514ddbba851a4289624 | a92922be1c0223d647c4d5b4d69d00dd6498f138 | refs/heads/master | 2022-11-26T14:51:29.210475 | 2020-07-29T08:40:31 | 2020-07-29T08:40:31 | 283,444,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,496 | py | import nltk
import os
import torch
import torch.utils.data as data
from vocabulary import Vocabulary
from PIL import Image
from pycocotools.coco import COCO
import numpy as np
from tqdm import tqdm
import random
import json
def get_loader_val(transform,
mode='val',
batch_size=1,
... | [
"alvaro.azabal95@gmail.com"
] | alvaro.azabal95@gmail.com |
46d653f0ab2161be1b5b3920db66f39cf1230998 | 5321a9ec4589860d0f3ea803b54ea318c3c1cddf | /workplace/通光检验/Moudle/PreConfiguration.py | d1cba28bb1a6a4e11bbf643de9e585ef159fa458 | [] | no_license | Aphranda/PythonCode | 7859b40d394dd9568823f120bcdb417fb256f312 | 3e2dfd2254b4051b9b408d5c661c0083af6e4c94 | refs/heads/master | 2021-07-13T13:31:29.866007 | 2021-03-01T16:13:41 | 2021-03-01T16:13:41 | 238,137,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | import configparser
from ErrorConfiguration import Logits
Logits = Logits()
class Configuration(object):
def __init__(self):
self.config = configparser.ConfigParser()
def check_section(self, value):
try:
result = self.config.has_section(value[1])
return result
... | [
"1044770247@qq.com"
] | 1044770247@qq.com |
da6cdfe9ab180d0e96dc02d884b46c6a2f8a3e88 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/preprocess_20210421153926.py | 328dd81758da2a656921e2d8033defa2f29c1d4b | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,518 | py |
import os
import random
import numpy as np
from PIL import Image
import tensorflow as tf
import hyperparameters as hp
class Datasets():
""" Class for containing the training and test sets as well as
other useful data-related information. Contains the functions
for preprocessing.
"""
def __init__... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
729109b79364e3f3d02773c0155d279de1716fcf | 185d401e9e6ab7e2bb59ed022ede1b25ead7c8bc | /gen_data.py | 2dfd7d978660eacfeacf488fea5143d690209a3e | [] | no_license | ShanghaitechGeekPie/StartHack | 6cd857b6f0b82a3295c8817704dfea9708a10135 | 9a166128ca3d80a9952c8fd3f1464625a83222d2 | refs/heads/master | 2023-03-24T06:06:30.156563 | 2021-03-21T07:42:30 | 2021-03-21T07:42:30 | 349,931,155 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import h5py
import pandas as pd
import numpy as np
import os
import glob
def readH5(filename, save_dir_name):
f = h5py.File(filename, 'r')
def visitandsave(name):
ele = f[name]
if isinstance(ele, h5py.Dataset):
data = pd.DataFrame(np.array(ele))
data.to_pickle(os.path.... | [
"leomundspedoske@gmail.com"
] | leomundspedoske@gmail.com |
ca35561181fc69e2265ec83fc9065543dcf1bc0c | 0e23d367851e002e706c5fff996cbaf921ee78cb | /problem_algorithms/python3/Offer/53-I.py | d9c3b7c33b71653aaff71189bbcf5b82b90515e2 | [] | no_license | SpenceGuo/my_leetcode | 56d62650e96d26ee665a75dcb81109a2ffd854ba | 3d2c61ef245d83a818b05614ff1306a42823110f | refs/heads/main | 2023-04-15T15:11:03.766150 | 2021-04-09T10:33:01 | 2021-04-09T10:33:01 | 307,364,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from typing import List
class Solution:
def search(self, nums: List[int], target: int) -> int:
return nums.count(target) | [
"spence@sjtu.edu.cn"
] | spence@sjtu.edu.cn |
c26cdbd6de229d90cf71d67bf49f6a27ab68512f | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_optimizer/tensorflow/tf_nndct/utils/__init__.py | 3274ff4b5eecc566b7b6ab5c8e5fb76d2336b986 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 616 | py | # Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
8842513fbd0945b4aed9b8dbd6d3dd035a7e02d5 | 6a6b56b86967e0ff0ab123b74e19b38af5fd74cc | /Bruteforce/bruteforcetest.py | 9b96d8b07669b10de16fc2ba247803882629555a | [] | no_license | Lucas-Jollie/Heuristieken | bcd3a7e3bd011f2051105859d7be0b04d01c6353 | 561493bd58eec8ea21f79897eb0fa9c788663191 | refs/heads/master | 2021-01-10T16:56:00.366848 | 2015-12-16T21:37:13 | 2015-12-16T21:37:13 | 45,121,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py |
# def sort(ins, i):
# if i == 0: return
# sort(ins, i-1)
# j = i
# while j > 0 and ins[j-1] > ins[j]:
# ins[j-1], ins[j] = ins[j], ins[j-1]
# j -= 1
# return ins
#
# a = [3,4,5,2,1]
# i = 1
# print sort(a,i)
# def sort2(ins):
# for i in range(1, len(ins)):
# j = i
# ... | [
"lucas_jollie@outlook.com"
] | lucas_jollie@outlook.com |
e21691cac022d724653dc85d124ac0682dbbfdfa | ce85013a3041cd90dc820aa3a577acd07c9178f1 | /opgo/data/parallel_processor.py | aff1aff37700acf2651175227e56ae3a50b1ee45 | [] | no_license | pranav1416/opc_go_engine | c9cfa009571e1297f2b7dd9863efbfc086b727f6 | 34fc9946831144be90910edbeaddfe9352ea131c | refs/heads/master | 2020-08-14T11:40:24.870873 | 2019-10-21T03:00:09 | 2019-10-21T03:00:09 | 215,161,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | from __future__ import print_function
from __future__ import absolute_import
import os
import glob
import os.path
import tarfile
import gzip
import shutil
import numpy as np
import multiprocessing
from os import sys
from keras.utils import to_categorical
from opgo.gosgf import Sgf_game
from opgo.goboard_fast import Bo... | [
"pranav.borole@gmail.com"
] | pranav.borole@gmail.com |
e91eee6139b204ca38f3a5eead878773fbaea690 | 07ba86aee8532f6a5b2bfcdc30f8c2e8234751bc | /LeetCode/Problems/Python/347. Top K Frequent Elements.py | 4c8aaff201e9876cbd75d872e2e2be462a8fc479 | [] | no_license | yukai-chiu/CodingPractice | 1b7d4b0ffe9a8583091a8165976f71c7b3df41b5 | 3390a0ca4eceff72c69721bdc425a3099670faff | refs/heads/master | 2022-12-14T05:35:38.336552 | 2020-08-30T22:56:20 | 2020-08-30T22:56:20 | 263,502,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | #Heap
#Time: O(n+klogn)
#Space: O(n)
class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
n = Counter(nums)
n = [(-value, key) for key,value in n.items()]
heapq.heapify(n)
return [heapq.heappop(n)[1] for _ in range(k)]
#quick select
#Time: O(n) average, wo... | [
"48868656+kevinyukaic@users.noreply.github.com"
] | 48868656+kevinyukaic@users.noreply.github.com |
a6d693cdcbe37656bb5535ac4a05fe5cc9372d37 | 41d0bd94bbaec0299e6be6fc56a726545c1894cb | /sources/nytimes/__init__.py | 6b17755df17000bfee582d94d3ef7ceaa7c83853 | [
"Unlicense"
] | permissive | AB9IL/stream-sources | f86eec0552d0992e7ee02a39076e0a1042ebfe27 | ede8bd3ad7d51723d489192d0a6c5b2ea31ffe56 | refs/heads/master | 2023-02-03T23:09:25.582012 | 2020-12-23T08:12:42 | 2020-12-23T08:12:42 | 319,333,418 | 0 | 0 | Unlicense | 2020-12-07T13:47:06 | 2020-12-07T13:47:05 | null | UTF-8 | Python | false | false | 244 | py | from sources.generic import FeedSource
class Source(FeedSource):
SOURCE = {
'name': 'The New York Times',
'url': 'https://www.nytimes.com',
}
FEED_URL = 'http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
| [
"davy.wybiral@gmail.com"
] | davy.wybiral@gmail.com |
0060ceda36e78cb67618690effb675d9a7041d38 | 28887a9bfd18f64a045c419037e9aba2cfd1bf50 | /typed/for/sw.py | 46ac83c715ce619f759e6f1d7cf5e92de57aa3e1 | [] | no_license | Coobeliues/pp2_py | 18ba46bc82edc3f0c189f5e51ec6950af5269751 | 89cffd04499691e72e9dbbf9626a84ad27fddf79 | refs/heads/main | 2023-06-28T01:13:12.602998 | 2021-07-29T05:43:17 | 2021-07-29T05:43:17 | 380,136,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | a, b=int(input()), int(input())
while a!=b:
if a//2>=b and a%2==0:
a//=2
print(":2")
else:
a-=1
print('-1') | [
"70967044+Coobeliues@users.noreply.github.com"
] | 70967044+Coobeliues@users.noreply.github.com |
47ae5977cf0f5aac3687f9b062a692f09c6f5c78 | 3b034c36c383af330f765c063d13537692f7361c | /alien_invasion/settings.py | 1f168a0249e7b01d1a64a5ae79a2142ac5389f6c | [] | no_license | ctestabu/python | 87ba39a588afb3a88d738fac7743015e02c9e1a7 | 3d92c4ea161b32060757e5781cfb5688ecfab9b9 | refs/heads/master | 2020-08-30T04:23:28.229889 | 2019-11-28T15:11:40 | 2019-11-28T15:11:40 | 218,261,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | class Settings():
# Class for settings
def __init__(self):
# settings init
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230, 230, 230)
# ship settings
# self.ship_speed_factor = 25
self.ship_limit = 3
# bullet
# self.... | [
"noreply@github.com"
] | noreply@github.com |
4db1b6a570c6c09cb4abbde4d2d5b91439464880 | 86a563e6eff56cf96bfa3c6dcdfb706e68114530 | /ch05/layer_naive.py | f4262f3f86dabc938f835840d0e9ffd66c61601c | [] | no_license | mingrammer/deep-learning-from-scratch | be322ee82fe5c8d2bcde3ac3e7d35792c5314d1f | 4e158aa3f773ac7c60585f3f1627e94dac7a05ba | refs/heads/master | 2021-01-01T06:36:44.414300 | 2017-08-10T17:15:55 | 2017-08-10T17:15:55 | 97,468,838 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class MulLayer:
def __init__(self):
self.x = None
self.y = None
def forward(self, x, y):
self.x = x
self.y = y
out = x * y
return out
def backward(self, dout):
dx = dout * self.y
dy = dout * self.x
return dx, dy
class AddLayer:
... | [
"k239507@gmail.com"
] | k239507@gmail.com |
c21c0892e84b6e23f693f6f8b3b2a019f0daca3d | bbe9000b56086b7f8f52fcc3b49702c9045166a4 | /timestamp_graphs.py | 06dcc0944264bea2d4ed7625deca629e2f299cdf | [] | no_license | galexa05/Thesis-Subject---Event-Detection-in-micro-blocks | 7abd124f1f1d34b1d9062c96903ef56acb59a7a0 | dd25f7ea27ab9773106039a7624875c9b86e1479 | refs/heads/master | 2022-08-30T00:57:49.142048 | 2020-05-22T17:00:03 | 2020-05-22T17:00:03 | 235,589,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | import datetime
from time import strptime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def getList(df,name):
tableFlag=[]
data_sorted = df.sort_values(by=['date'],inplace=False)
data_sorted = data_sorted.reset_index(drop=True)
list_date = []
for temp in data_sor... | [
"noreply@github.com"
] | noreply@github.com |
5d0f4cb826491c6d60bd55e2f82ff687aad64d45 | 9acbf0279c38d11e89f16831e9c43b49badabb00 | /IPTVPlayer/tsiplayer/addons/resources/sites/hds_stream.py | 9875340d9a861185488cd59312f8b1383ca23e95 | [] | no_license | dgbkn/e2iPlayer | 4f101b87bc5f67bf14690d012a62cbe8755ab82c | e5f413ea032eb9012569d9d149a368a3e73d9579 | refs/heads/master | 2023-05-15T05:01:18.204256 | 2021-06-06T18:03:42 | 2021-06-06T18:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,881 | py | # -*- coding: utf-8 -*-
# vStream https://github.com/Kodi-vStream/venom-xbmc-addons
import re
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.hoster import cHosterGui
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.gui import cGui
from Plugins.Extensions.IPTVPlayer.tsiplaye... | [
"echosmart76@gmail.com"
] | echosmart76@gmail.com |
8922342ba5b5f8e04704a9baea1599907bccb947 | 91c6806fc5ae20dcc26308b58cd5ca52b22bc16d | /payment.py | f516bd27571a583cc697c2987987a408a1ea88f4 | [] | no_license | samarthgupta29/Python-Based-Wallet | c2e330c3ef322e71a63cfe5f517fdf33c4f87ecf | 1ea3c92385f9b66fa4f69395c2a4a3ee65f04229 | refs/heads/master | 2021-05-07T18:35:42.445053 | 2017-12-13T04:55:07 | 2017-12-13T04:55:07 | 108,803,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'payment.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
import sqlite3
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow3(object):
def paymentreg(self):
sema... | [
"samarthgupta29@gmail.com"
] | samarthgupta29@gmail.com |
f643f9a47de4c1ca115121662e6b5a7e52da83c7 | d23c012269057afe3556711fd514efce20085d75 | /api/routes.py | f8fa15a007349ac46eaa1ead2e4c302043d7cdd5 | [
"MIT"
] | permissive | bobruk76/E9 | c73464941c8f1955fc4145f852aebea43cb572e2 | b035a578636d1192b755069e7095d355065c8872 | refs/heads/main | 2023-01-04T18:52:29.505694 | 2020-10-25T16:58:49 | 2020-10-25T16:58:49 | 304,788,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | from flask_login import login_user, login_required, logout_user, current_user
from werkzeug.utils import redirect
from wtforms.ext.appengine.db import model_form
from api import app, login_manager, bcrypt, db
from flask import Flask, request, render_template, flash, session
from api.forms import CreateUserForm, LoginF... | [
"vladimir.m.polyakov@gmail.com"
] | vladimir.m.polyakov@gmail.com |
57058094d1fac2a6430800baef3bfb044fb40353 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/searchtext/iterators/InstructionSearchAddressIterator.pyi | 714c2a10a62f4d6f5eb1d692fba25f1bfdbdb764 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | pyi | from typing import Iterator
import ghidra.program.model.address
import java.lang
import java.util
import java.util.function
class InstructionSearchAddressIterator(object, ghidra.program.model.address.AddressIterator):
def __init__(self, __a0: ghidra.program.model.listing.InstructionIterator): ...
def __i... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
42edb48f292eb66a4d4f302b8e4a79b7eac25f28 | 7834fd5292ab1678c129f92018cf9617f15c19dd | /hatboard/__init__.py | 3df786d07a9e49308d01d07659cb7fd796bd50fe | [] | no_license | 3453-315h/HatBoard | f642ef9cf453dbc5bd8a52a1f43a198c9157b631 | 643df6535399e105c1c2a98e476f168bf122337b | refs/heads/main | 2023-06-27T16:04:35.041007 | 2021-08-02T13:37:06 | 2021-08-02T13:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | [
"noreply@github.com"
] | noreply@github.com |
9f174734342379109b5d2e786c230191b683d8dd | d49f1a4b64c33c024001306f1337c39ab09d88ee | /ncr/db.py | a9d50fc5e931e61fb52c5a4de8575837020062f5 | [] | no_license | nathanjordan/ncr | d1f299c8fc03db2bfa6c8b63d8ecb5fa1eb3f6ea | b8e7b94579a4c5721f5850d53fc91e0ebe592ad2 | refs/heads/master | 2020-12-26T02:23:01.564803 | 2014-06-15T03:41:05 | 2014-06-15T03:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | from __future__ import unicode_literals
from mongokit import Document, Connection
import datetime
from crypt import Crypt
class Controller(object):
def __init__(self):
self.conn = Connection()
self.conn.register([User, Session, Neuron])
# 12 hours?
self.conn['ncr']['session'].ensur... | [
"natedagreat27274@gmail.com"
] | natedagreat27274@gmail.com |
23531571afd810ca8392d8346a552f92c595e5c2 | 51c3fc9ebdf2a0b990e645810cbf8fce2f34c2b3 | /pricelist_test/__manifest__.py | 3c4b857c77cfacc73b51f9296c208edcabb2ae2a | [] | no_license | boming0529/pricelist_demo | 6e985fc39e1273af8f6c2fa087a44b2a97652357 | fd60f5b7057924aca5ca1b0715e6bc419e65f9af | refs/heads/master | 2020-05-07T21:50:53.067981 | 2019-04-12T02:59:44 | 2019-04-12T02:59:44 | 180,919,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # -*- coding: utf-8 -*-
{
'name': "pricelist_test",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'w... | [
"boming0529@gmail.com"
] | boming0529@gmail.com |
e28e29aba2f8f7f326b946462b4c962e23748f95 | 688e5a53f5f8a6760e499fc24ab0cbb20edbb4cc | /final/src/lidar_test.py | f82be0985e7f84875ac700dd4d2665fe38879d62 | [] | no_license | gravity101/Final_Project_TeamC | 2f429065d54b1f6766da7aa6975e9f75c007ae66 | 5ffbc1397061cd1d3afe23e347cd6225408d560e | refs/heads/main | 2023-08-30T19:01:43.130437 | 2021-09-24T07:50:56 | 2021-09-24T07:50:56 | 400,028,091 | 0 | 0 | null | 2021-08-30T02:40:21 | 2021-08-26T03:26:39 | Lua | UTF-8 | Python | false | false | 1,090 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import rospy
import time
from sensor_msgs.msg import LaserScan
from std_msgs.msg import Int32MultiArray
from xycar_msgs.msg import xycar_motor
class test() :
def __init__(self):
rospy.Subscriber("/scan", LaserScan, self.callback_lidar, queue_size=1)
s... | [
"khoram@ajou.ac.kr"
] | khoram@ajou.ac.kr |
1771d6d530278607822e15854013169af3b2e70d | f5183c0cd7fe2ef16edccb32e3d1aafe06c77c9c | /tests/08.py | c1f47c281c5a70b73605736c28b1e3ec7e89d7a7 | [] | no_license | sayan-rc/ants-vs-somebees | 0b6452d21dd68301865efb54f368a52e9b8ff113 | 3948a834bff25879eb4904fe8ddc33e39855a16e | refs/heads/master | 2022-10-26T07:21:15.297425 | 2020-06-12T21:45:50 | 2020-06-12T21:45:50 | 111,988,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,596 | py | test = {
'name': 'Problem 8',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # Testing TankAnt parameters
>>> TankAnt.food_cost
6
>>> TankAnt.damage
1
>>> TankAnt.container
True
>>>... | [
"sayanrayc@gmail.com"
] | sayanrayc@gmail.com |
1f66d2f362e53b3976edac547b79f60c4e925f1b | fbd6c98a999d558f28a3cea0e8a2c43dbc095d6c | /tests/unit/tabular/test_copulas.py | bca913a4ca506fc6fb0afc3f52c0d27d30ce30fc | [
"MIT"
] | permissive | daanknoors/SDV | 702859d39506b1245f48dc08161a62eadb1a3bf8 | c9234aa6fba2c6c23fa439736efd19fd06f19770 | refs/heads/master | 2023-01-12T11:30:57.003936 | 2020-11-19T09:10:42 | 2020-11-19T09:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,358 | py | from unittest.mock import Mock, patch
import numpy as np
import pandas as pd
import pytest
from copulas.multivariate.gaussian import GaussianMultivariate
from copulas.univariate import GaussianKDE
from sdv.tabular.base import NonParametricError
from sdv.tabular.copulas import GaussianCopula
class TestGaussianCopula... | [
"noreply@github.com"
] | noreply@github.com |
eb61ed6b4228b822dcbf63b841b03b4644006653 | 1f52594461c78eda903f76e03aaf966ad15afaec | /iftest/condition03.py | aa16e57b2b8b347575c8db59d9710aa3bcb31e64 | [] | no_license | TDOGX86/mycode | 9b3c3a8a9a3c796ec00d1698f9bb20a0364a333e | b0d85b89636d88447f123a5a71294ccb080f0f55 | refs/heads/main | 2023-04-06T20:12:42.999480 | 2021-04-08T16:44:11 | 2021-04-08T16:44:11 | 352,703,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #!/usr/bin/env python3
hostname = input("What value should we set for hostname?")
## Notice how the next line has changed
## here we use the str.lower() method to return a lowercase string
if hostname.lower() == "mtg":
print("The hostname was found to be mtg")
print("hostname matches expected config")
elif host... | [
"tamarris.jenkins@gmail.com"
] | tamarris.jenkins@gmail.com |
046c3669d38f4376af10f67bab79eef3d7c72f08 | 6633f57a55159651b1af03c60bed93fc077b49c5 | /transfer.py | 4f140df66f64c208bfcf38bb087737f28830c9e8 | [] | no_license | msfeldstein/airdrop-script | 8e72fab5ea7a5aa7e30a882c88cdafa1696ac016 | 18099be2f122d49d2db41884918b390087d93ecb | refs/heads/master | 2022-07-27T22:26:15.902208 | 2019-09-13T05:02:47 | 2019-09-13T05:02:47 | 208,136,560 | 1 | 1 | null | 2022-06-25T08:01:48 | 2019-09-12T20:02:47 | JavaScript | UTF-8 | Python | false | false | 8,775 | py | #!/usr/bin/python3
import pickle
import pprint
import requests
import stellar_base
from stellar_base.keypair import Keypair
from stellar_base.address import Address
from stellar_base.asset import Asset
from stellar_base.operation import Payment, CreateAccount, ChangeTrust, SetOptions, AccountMerge
from stellar_base.tr... | [
"msfeldstein@gmail.com"
] | msfeldstein@gmail.com |
56be18a63c0d30a9e4ba2dae5d07aad985c61656 | 40c4b8b618d67fc48b862809b6e2835bb7cf76eb | /leetcode/65.py | e19e991fccbe8881504df78c7650cbe96eaad2ad | [] | no_license | berquist/ctci | 9fa08ac724990eee32f8ad7cffc3517491570d41 | f0a69d3e4dd1b73a43c96dcb7a9c7b9955c04c39 | refs/heads/master | 2022-08-18T01:53:16.994300 | 2022-08-15T00:36:07 | 2022-08-15T00:36:07 | 120,108,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | class Solution(object):
def isNumber(self, s):
"""
:type s: str
:rtype: bool
"""
# assert Solution().isNumber("0") == True
# assert Solution().isNumber(" 0.1 ") == True
# assert Solution().isNumber("abc") == False
# assert Solution().isNumber("1 a") == False
# assert Solution().is... | [
"eric.berquist@gmail.com"
] | eric.berquist@gmail.com |
97bc6fd7abdac7d0908aa7cdf1c52f8472cf91f6 | dc8d6d4297a004fc98c0c998a0dc251565c1fb9d | /pythonScripts/redditbot/wordFinder.py | a2e5e078837c3f7c96f5ed4c7736f1fa51194955 | [] | no_license | CodingDonky/python_misc | a4a5c9e9bf89cbf4327e3c6ba9c3703d6d26a9f7 | 08aaecb150e55e90a2782b624a516183ce608ec1 | refs/heads/master | 2020-03-25T06:03:16.038747 | 2018-12-18T00:43:14 | 2018-12-18T00:43:14 | 143,480,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # First Reddit Bot
import praw
import config
def bot_login():
r = praw.Reddit(username = config.username,
password = config.password,
client_id = config.client_id,
client_secret = config.client_secret,
user_agent = "My first python bot v0.1")
ret... | [
"saintdane75@gmail.com"
] | saintdane75@gmail.com |
dd05a3286f39ae892ec0ac84a9eb8ba21a202787 | 5905c1dbcbec6c2748e92b6464e82505bae0d9b8 | /sensor_utils/sensor_manager.py | fda91403c888257ebd809c4db625d2f55400f0ef | [] | no_license | trevormcinroe/auto_garden | 791dc9186e2a655229415264082309c7a02cf744 | da19f34d0c311da6c741b21a1ad6c4b2cec4f77d | refs/heads/master | 2020-12-05T01:55:48.781067 | 2020-01-06T00:51:20 | 2020-01-06T00:51:20 | 231,974,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | """
"""
import numpy as np
import pandas as pd
class SensorManager:
def __init__(self,
camera):
self.camera = camera
def take_timelapse(self):
""""""
self.camera.take_timelapse()
def take_video(self):
""""""
self.camera.take_video()
| [
"ThomasBayes69!"
] | ThomasBayes69! |
33ce6b4e0bf8cebf3b43a04e20f421954223437d | 0fdabf061564cb809889eead9dce3efea16bf7b5 | /test_regsiter.py | cde3f29bfd5bf390533b53317720ea21d8513d9c | [] | no_license | huangyanping128/- | 6662b56567fb6f4392aceaff1f3d44b04523fa5f | 7aa315e18f821f7b083f735c953ebbdc83474319 | refs/heads/master | 2021-01-02T16:52:35.652646 | 2020-02-11T08:13:25 | 2020-02-11T08:13:25 | 239,710,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import requests
from common.connect_mysql import execute_sql
import pytest
s = requests.session()
@pytest.fixture(scope="function")
def delete_user():
"""先删除已经注册的用户数据"""
delete_sql = 'DELETE from auth_user where username="小晓的筱";'
execute_sql(delete_sql)
def test_regsiter(delete_user):
"""注册登录接口"""... | [
"wanglei_g@aspirecn.com"
] | wanglei_g@aspirecn.com |
e05c8b6335f2a71af28e423b1002904eee1db3b1 | aad4370c12f4d7ca13b348eec5131840695956f8 | /margin/ArcMarginProduct.py | 8e233348fbc9a4c1573ff875a8f5184163b41225 | [] | no_license | onurcaydere/ArcFaceTrain | 732051065135ced45746b26dc98a7f0d8f4bd764 | 2a49ad52d1f7596aefa68d952e1124ef7d187c3d | refs/heads/main | 2023-08-21T21:57:22.326706 | 2021-10-13T11:35:16 | 2021-10-13T11:35:16 | 416,712,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import math
import torch
from torch import nn
from torch.nn import Parameter
import torch.nn.functional as F
class ArcMarginProduct(nn.Module):
def __init__(self, in_feature=128, out_feature=10575, s=32.0, m=0.50, easy_margin=False):
super(ArcMarginProduct, self).__init__()
self.in_feature = in_fea... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.