blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
213604a476b08262d91f85eff3a2893ab8b9a3bc | 39c578b5d9eb5ce626f541d8a441533e7bafeb2d | /mlsurvey/sl/workflows/tasks/multiple_learning_task.py | f22fa70e2d449a4ab22bce20207eb9b0a7e4df45 | [
"MIT"
] | permissive | jlaumonier/mlsurvey | 09a0fd0ca172f8213c3229e7623306983bd00c58 | 373598d067c7f0930ba13fe8da9756ce26eecbaf | refs/heads/master | 2023-08-14T18:45:03.838227 | 2021-10-15T18:47:43 | 2021-10-15T18:47:43 | 261,498,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from kedro.pipeline import node
import mlsurvey as mls
from mlsurvey.workflows.tasks import BaseTask
class MultipleLearningTask(BaseTask):
"""
learn model from train data
"""
@staticmethod
def task_run_one_config(p):
"""
Run one supervised learning workflow
:param p: tuppl... | [
"julien.laumonier@iid.ulaval.ca"
] | julien.laumonier@iid.ulaval.ca |
d218141640c579e06d2abfd266b532f32f407505 | 07b0c7bc2871b8065b2d871b6ca70259b6ac08b0 | /src/api_trt/modules/model_zoo/exec_backends/onnxrt_backend.py | a0a184af4d792f6abea388bad537c69b1661630c | [
"Apache-2.0"
] | permissive | manhtung001/Facial-Recognition_InsightFace-REST | 29fa884b40c9f63cdd91e514a6b6d6a697d66ecd | e9eea80c323bd14ae2a18fc941d2a09fcfb18b12 | refs/heads/master | 2023-07-16T00:18:46.182766 | 2021-09-09T07:55:21 | 2021-09-09T07:55:21 | 404,211,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | import onnxruntime
import cv2
import numpy as np
import logging
class Arcface:
def __init__(self, rec_name='/models/onnx/arcface_r100_v1/arcface_r100_v1.onnx',**kwargs):
self.rec_model = onnxruntime.InferenceSession(rec_name)
self.outputs = [e.name for e in self.rec_model.get_outputs()]
# war... | [
"khongtung001@gmail.com"
] | khongtung001@gmail.com |
dd5d0b3e3ac60eaa5512bb81d33d0992dc2b2648 | ace7f64bb018cc6a92e695f63d35374d48474c9e | /app/util.py | dcf413ba34ee481cd66360ac6f1e3660f513644a | [] | no_license | detailyang/bitmex-forward | ab2f899efdb1777bcbce7bbd206508cb78e0e749 | 45af8223abce7ce9a2a68b49683834184693f1bd | refs/heads/master | 2023-08-23T22:23:52.618625 | 2020-03-13T09:26:09 | 2020-03-13T09:26:09 | 141,710,566 | 9 | 3 | null | 2022-12-08T02:23:09 | 2018-07-20T12:40:39 | Python | UTF-8 | Python | false | false | 708 | py | import time
import hmac
import hashlib
import urllib
def generate_nonce():
return int(round(time.time() * 1000))
def generate_signature(secret, verb, url, nonce, data):
"""Generate a request signature compatible with BitMEX."""
# Parse the url so we can remove the base and extract just the path.
par... | [
"detailyang@gmail.com"
] | detailyang@gmail.com |
a9e7b803f3ab4b13b47c9d1859fbacfd7ddf2ff6 | e1090bf72ba699036de9d5f34c08676a3ca84c80 | /praktikum 4.py | 79f3c850ef40da5caa4250e8c2cf8181264aeabb | [] | no_license | Mohammad-sofiyan/PERTEMUAN-9- | bc3cb1f177f9e1b2f5eb28c99b62985cdc07f997 | 27ac4f33b29177b4d533ac398b502e89d3f0d4a8 | refs/heads/master | 2023-01-22T01:02:37.066941 | 2020-11-26T11:36:23 | 2020-11-26T11:36:23 | 316,212,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 26 11:04:23 2020
@author: Asus
"""
n = 0
nm = []
nim = []
tugas = []
uts = []
uas = []
akhir = []
while True:
nama = input ("nama :")
nm.append(nama)
Nim = input ("nim :")
nim.append(Nim)
Tugas = input ("tugas :")
tugas.append(Tugas)
... | [
"m.sofian80820@gmail.com"
] | m.sofian80820@gmail.com |
235a252282d0e516500fa810c6c8813192a92911 | 6fabb792f6c1bfceb6df4ba2573f012f65b3a8a0 | /lib/python3.6/hashlib.py | 24ad0aa89c98c0e920125cb856fca47a36e04e51 | [] | no_license | yash0311/hotel | 420a682e290a4921811caa0fa955af41a52457d0 | d1840a0636a513e9f744f6e187624b0df1af74c3 | refs/heads/master | 2020-03-21T13:42:13.144694 | 2018-06-25T16:23:26 | 2018-06-25T16:23:26 | 138,620,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /home/yash0311/anaconda3/lib/python3.6/hashlib.py | [
"yprajapati0311@gmail.com"
] | yprajapati0311@gmail.com |
a37f89a0af826f227c7e2ce4f6d6dc54f4cb619e | d38aba6872846ec2ecafe6cded647af8c1ccda94 | /djangorestdemo/settings.py | c04d8e517407f255c8c64b04e120d556f1086eaf | [] | no_license | wizardoma/django-rest-api-demo | 6eaeb119fffcde1ebfd2aee6bb6c40e98be05cdb | 5910e2f52fc5dd8cd92155247cce89f7d1ca77f4 | refs/heads/master | 2023-08-10T11:31:06.246103 | 2021-09-16T07:52:56 | 2021-09-16T07:52:56 | 406,633,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | """
Django settings for djangorestdemo project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from ... | [
"alibekason@gmail.com"
] | alibekason@gmail.com |
9c069b3bce5fd665a0604af22acf1942f0dfe16a | e74fd31b9d37e8c43f42e3da4e9e34d5caa33584 | /re/search.py | 770f809f9d3813a5f80234c11d64f89ee74e9f9d | [] | no_license | Lumia1108/Python-Training | a5f140853d42bb2109afa9983ea661a0c5a26d67 | 8d365a48be3b6826a6fbc3e475c373d1da6d4d07 | refs/heads/main | 2023-07-05T03:54:11.139840 | 2021-09-02T04:20:56 | 2021-09-02T04:20:56 | 344,834,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import re
print(re.search(r'life', 'life is good').group())
print(re.search(r'is', 'life is good').group())
print(re.search(r'\d', '1 is one').group())
print(re.search(r'\d{4}', '1234 is one two three four')) | [
"jhsoft1108@gmail.com"
] | jhsoft1108@gmail.com |
86fcf585e7121caa6968a3c5a0bfd281544770c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02410/s418924252.py | 63557771bea67c49bf2723c66e25a07d7c4cec3a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | n,m=list(map(int,input().split()))
mA=[list(map(int,input().split())) for i in range(n)]
mB=[int(input()) for j in range(m)]
for ma in mA:
print(sum([a*b for a, b in zip(ma,mB)])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
82d4f8a638d84f91ab3f4cf61ad517ef8eeec04a | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc011/A/4811622.py | 80e3e9613e7fb93e920fc7e005481f593391fd61 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | n, c, k = map(int, input().split())
t = [int(input()) for i in range(n)]
t.sort()
result = 1
count = 0
f = 0
for i in range(n):
if (t[i] - t[f]) > k or c == count:
result += 1
count = 1
f = i
else:
count += 1
print(result) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
7622573ee5a322ca35255c62269e353ba2ad8f81 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02418/s050810012.py | 813576c56b0f65866e959ed464e23f400f903cdc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | def check(s, p):
for i in range(len(s)):
count = 0
for j in range(len(p)):
if s[(i+j) % len(s)] != p[j]:
break
count += 1
if count == len(p):
return True
return False
s = raw_input()
p = raw_input()
flag = check(s, p)
if flag:
prin... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a7904cfad194c47cb06548c5efce3cd9e2cf32bc | 754f6d37976ca5a88b1798c4bbec7f8c288db5ae | /tracking/laser_tracking/old/laser_tracker.py | 853aaa00c2a4c5f1db1367ab63afa69198b4d9ae | [] | no_license | bpoche/GLO | 1f91d438fb1887d536de354b3a514df1aa3b8379 | bf95a402dc075a398c99d51ed36d35d523671700 | refs/heads/master | 2021-09-10T12:58:08.274742 | 2018-03-26T16:16:33 | 2018-03-26T16:16:33 | 113,513,167 | 0 | 1 | null | 2018-03-01T15:09:39 | 2017-12-08T00:38:53 | Jupyter Notebook | UTF-8 | Python | false | false | 17,103 | py | #! /usr/bin/env python
import sys
import argparse
import cv2
import numpy
import numpy as np
import time
import pandas as pd
import os, errno
import glob
class LaserTracker(object):
def __init__(self,file_loc="",first=0,last=None,delay=.01, cam_width=640, cam_height=480, hue_min=20, hue_max=160,
... | [
"bpoche@vt.edu"
] | bpoche@vt.edu |
a06402773405e0a8873f0d645f195b3e0c4a9a8b | 182e7229d90bd7960dcae1fc669eb39a9443fd43 | /PYTHON/Python Language Fundamentals/Q4.py | 31ddb4c1cf5836c8a430ce0c4ee1c2ccee4b15f5 | [] | no_license | anujmalkotia/PRP_ALL | f4bc2f30cef6207347607f12118f618914e97247 | 04155a79411b0768799db533f3d3a0b6476c417a | refs/heads/master | 2023-03-30T00:51:04.788213 | 2021-03-11T19:27:32 | 2021-03-11T19:27:32 | 346,813,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | mylist4_ADID=[1,2,3,4,5]
for i in mylist4_ADID:
print(i)
mylist4_ADID.reverse()
print(mylist4_ADID)
m1_ADID=[5,10,15]
mylist4_ADID.extend(m1_ADID)
print(mylist4_ADID)
| [
"anujmalkotia304@gmail.com"
] | anujmalkotia304@gmail.com |
3f9db995bfed07ffbc51cae6a2dcb495a3bfb366 | c47b2b1b6f1d20f70557b280586ff6faa9991415 | /scrape.py | 124718e2b3a7ebad9fe53c518638c26a3a3db5e5 | [] | no_license | nathantspencer/prt_report | b4d1f17bf3e13b72335f60df438e630a90e71736 | 1365d0084ce2a4bddf9319f20f0a4c79c79bbbd1 | refs/heads/master | 2021-01-16T19:08:35.667334 | 2017-08-15T00:03:44 | 2017-08-15T00:03:44 | 100,145,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import code
import datetime
import json
import oauth2
import pandas as pd
import requests
from collections import namedtuple
from dateutil import parser
from keys import MY_KEY, MY_KEY_SECRET, MY_TOKEN, MY_TOKEN_SECRET
from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream
def write_downtime_csv():
K... | [
"nathantspencer@gmail.com"
] | nathantspencer@gmail.com |
c618fbe63927c3dfb385255fb1083389c74988d0 | ab6fdf7a790b7a46920b3ff3c14d2c46fb41785b | /test.py | db2bff1b6773b5cb0b2156c2995b67b31a1327e4 | [] | no_license | TrevorC64/BlockPy | 1532e4443d943eb17e44a1ec38abfd668d8cec3a | 61ca01cee1e68cd8ce44b2f97fec3b92724880f8 | refs/heads/master | 2022-12-16T09:40:24.152157 | 2020-09-09T23:04:21 | 2020-09-09T23:04:21 | 284,385,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #This python program was made with BlockPy!!
def calculateSum(x, y, z):
print(x + y + z)
#end
v1=input("Enter First Number:")
v2=input("Enter Second Number:")
v3=input("Enter Third Number:")
calculateSum(v1, v2, v3)
for x in range(10):
if not (x % 2):
print(x)
#end
#end
input("end ... | [
"trejcunn@iu.edu"
] | trejcunn@iu.edu |
e002f1c8825cb529bceafbb3225afc575698cfd8 | df1bb275ac6e517691eb33c5690228706f645971 | /notebooks/2_BasicModels/kNN_python/setup.py | d163001fad2ea9356a0dfa5eb24f775ef294c333 | [
"MIT"
] | permissive | mayurand/TensorFlow-Examples | dd5f3cf4f0e0c676f985a854cbd8aa599bc727fd | cb4f2fcdf619d6626474d3d92ff38f6b5ccbd170 | refs/heads/master | 2021-01-11T13:41:34.749602 | 2017-06-26T16:02:14 | 2017-06-26T16:02:14 | 95,084,144 | 0 | 0 | null | 2017-06-22T06:51:31 | 2017-06-22T06:51:31 | null | UTF-8 | Python | false | false | 246 | py | from distutils.core import setup
setup(
name = 'KNN',
version = '1.0.0',
py_modules = ['KNN'],
author = 'chenliyu',
author_email = '2572065090@qq.com',
url = 'http://pypi.python.org/ ',
description = 'implimentation of KNN in python',
)
| [
"mayurv.andulkar@gmail.com"
] | mayurv.andulkar@gmail.com |
4f056956ac34c65250b61df44d11799546b8ca80 | a947fe0b3584233154e2c07d135fea63a42a54f1 | /test/test_editorial_content_data_list.py | d56cd62be27ba2c957d8560230a7499eefd2dba6 | [] | no_license | khlevon/shutterstock-sdk | 0bcb7ce23afcbc38cce1baa90705ad182360ba24 | 7ad024e564a9e600065c18ba386474e97d7038f4 | refs/heads/master | 2023-06-20T14:13:50.504888 | 2021-07-23T15:16:09 | 2021-07-23T15:16:09 | 388,764,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # coding: utf-8
"""
Shutterstock API Explorer
The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media. # noqa: E501
OpenAPI spec version: 1.1.3
Generated by: https://github.com/swagger-... | [
"kh.levon98@gmail.com"
] | kh.levon98@gmail.com |
3a2ed58e973763684ba6813e31a0326f3c22804c | 6e060e9730b58e4d7819335438f915179504e72c | /bit_account/wizard/statement_account_supplier.py | e1396166ffeacd8fd83e3663b196b96e9860f338 | [] | no_license | missionpetroleumgit/addons_missiongit | 4dcdf1d0e79da982670c573d59574a939d1636c0 | 714514719d5d4d96f371dd529a70ac282070c43b | refs/heads/master | 2023-03-10T20:34:10.154050 | 2021-02-24T23:50:20 | 2021-02-24T23:50:20 | 342,027,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,457 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution - Ecuador
# Copyright (C) 2014 BitConsultores (<http://http://bitconsultores-ec.com>).
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"daldaz@mission-petroleum.com"
] | daldaz@mission-petroleum.com |
0d3433a53738ca9687fbf661a65d236e69d019ba | 47558bcc7e9873809495101f89d0f106bc8136a3 | /LabyREnth_2017/Programming/1/solver_local.py | aa8ca8b43f9f92b4a76c9b30aea9f12610e54205 | [] | no_license | Rurik/CTF | 8a00c3564002f8e173e033d408f1d99b5cfb7012 | b852e09d00e168f156e9f03b77a28a723914448a | refs/heads/master | 2021-07-19T06:18:18.953241 | 2017-10-22T14:52:06 | 2017-10-22T15:37:17 | 98,823,500 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | #import telnetlib
import re
import queue
#PASS = b"MAZE4J002PLAY"
#CLIENT = telnetlib.Telnet("pwn2.ddtek.biz", 11511)
#CLIENT.read_until(b"Password: ")
#CLIENT.write(PASS)
#print(CLIENT.read_until(b"Maze solutions must be presented as a single line of input.\n"))
def is_boundry(l):
return re.match(r"^\#+$", l)
d... | [
"brian@thebaskins.com"
] | brian@thebaskins.com |
64a02b7168ff59a96f4ee7b01fce28811b834205 | c1db80a35fd16313d4ba931a1c35be411ca1df71 | /ReturnFunctionExample.py | 0a35936e6b249b9b7024f788b49bcddcfb3ed08e | [] | no_license | galzchan/CP3-Sathita_Chom | 3878e3e5b7d4a9bfac371ad3839b491462c08dbb | 5ee7f524f6eb5cc88433e87bf26f5107723936b8 | refs/heads/master | 2022-12-23T13:39:57.284510 | 2020-09-29T05:35:34 | 2020-09-29T05:35:34 | 288,139,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | totalPrice = int(input("Please enter number : "))
def vatCalculate(totalPrice):
result = totalPrice+(totalPrice*7/100)
return result
print(vatCalculate(totalPrice)) | [
"c.sathita@gmail.com"
] | c.sathita@gmail.com |
31ac2720d094f94f3b9301561dd9daf58035779c | a0e3276753a78c96d52f4182161b5dbe165fbe04 | /FOS Dump v2.1.py | a080825b623cff1db93ad3181a81da3325f259b5 | [
"MIT"
] | permissive | robertnunn/FO_Shelter-dashboard | 390a78af2651a25f402854b2aa8ea88039916bb4 | 35eb5c573eb6d129b9b24e4ff200b08c0257ab0c | refs/heads/master | 2020-03-11T17:09:25.530723 | 2018-09-07T15:44:28 | 2018-09-07T15:44:28 | 130,139,051 | 0 | 0 | MIT | 2018-04-19T00:58:44 | 2018-04-19T00:52:31 | null | UTF-8 | Python | false | false | 5,462 | py | '''
First attempt to pull JSON data out of a decrypted Fallout Shelter save file
'''
import json, os
def invDump(vData):
# define desired fields
fields = ('id', 'type', 'extraData')
# define field labels
labels = ('id', 'type', 'uniqueName', 'bonus', 'bonusValue')
# print fi... | [
"noreply@github.com"
] | robertnunn.noreply@github.com |
25278f43f29b778e6c149a757ea266eba793cdd4 | 0610e2e6696d100f823a05771d1d17de53999fa7 | /rnn.py | 62e181377f78bb36888ef723f7960f90856f0324 | [] | no_license | pacifastacus/donkeycar_cleansing-rnn | 422c4c370ceeb6194c6fc9a1813af0762e8da62f | e3d191c62af7548a3f01cdfb1c072cc0e4e8645e | refs/heads/master | 2023-04-12T00:47:50.537127 | 2021-05-14T10:00:12 | 2021-05-14T10:00:12 | 361,684,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | import os
import numpy as np
from tensorflow.python import keras
from tensorflow.python.keras.layers import Input, Dense
from tensorflow.python.keras.models import Model, Sequential
from tensorflow.python.keras.layers import Convolution2D, MaxPooling2D, Reshape, BatchNormalization
from tensorflow.python.keras.layers i... | [
"palkovics.denes@gmail.com"
] | palkovics.denes@gmail.com |
e9ede67a4225288be33a9cbc072727f801c3899c | a4d04c95f9129b4551268e03ba0c28cb36794b1b | /django_project/ad_revenues/services/admob.py | 2bc92c9f92e2f2a7f191e0ee331f05e167356b68 | [] | no_license | gautam6785/django | 22a942d2e00895f16f50d73f5b6e18723eae994f | d058fd0e48141314b31136c1d0ae242c6f46d9fb | refs/heads/master | 2020-04-10T15:50:31.086737 | 2016-09-14T13:11:40 | 2016-09-14T13:11:40 | 68,207,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,627 | py | from generic import generic_service
from apiclient.discovery import build
from oauth2client import client
from datetime import datetime as DT, timedelta as TD
from oauth2client.client import Credentials
from ad_revenues.ad_revenues import get_user_creds, is_duplicate_platform ,date2timestamp, round_timestamp, get_days_... | [
"gautam@ourdesignz.com"
] | gautam@ourdesignz.com |
8dd828a7ef2b688423f57c2f47febafd5eff1227 | 2b05bed25e49b0282869652309e5e4f8cab7e555 | /model.py | 7c186dde5ceb531bace35ef79b58a5ebc802110d | [] | no_license | hehaodele/circuit-gnn | a8612fbb5929ca1f51b8324601604bbd2ee9cfad | 00bf0d870cdc87b0f3f6ea00a52e684f46409927 | refs/heads/master | 2023-07-24T01:14:51.914243 | 2023-07-07T17:32:29 | 2023-07-07T17:32:29 | 191,458,112 | 79 | 16 | null | null | null | null | UTF-8 | Python | false | false | 10,297 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
# ======================================================================================================================
"""
Complex Prediction Network
"""
def complex_linear(layer, x):
return (layer[0](x[... | [
"hehaodele@gmail.com"
] | hehaodele@gmail.com |
cf8d9a4f53e96489bca619b8dc89edaae172d063 | b26337c8791632d5737f7dd7a31fadc5a198019b | /src/gismutables.py | 3edd9179c2746a55cfe2774b9f13eaf3824665bf | [] | no_license | cjolowicz/lojban-source-words | 229193f9d7cb71cc26c149d33693ead581c7aef3 | 831c49341976ea72607ec2682f19b688100257a2 | refs/heads/master | 2020-05-21T06:35:33.093044 | 2011-05-09T21:12:12 | 2011-05-09T21:12:12 | 185,948,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,195 | py | from gismuscore import score
##
# Database table.
#
class Table(object):
def __init__(self, connection, tablename, attributes):
self.connection = connection
self.tablename = tablename
self.attributes = attributes
self.cursor = None
def open(self):
self.cursor = self.con... | [
"cj@dealloc.org"
] | cj@dealloc.org |
9e1889a4da855c95ceeb935dbe399dcaa8a95214 | 2c8200ffa3474f6b3b71dbe38a5d0059a83895b0 | /virt-usb | 1a416050f55f801dc9a819a8bd596ec6533be79c | [
"MIT"
] | permissive | mlen/ddcpoll | 8fda266e3308e9937eb3ccf7fa5bc634d3859442 | 683041f79b2ff6836ef226d2c5317575f2eb5620 | refs/heads/master | 2020-03-27T23:52:24.742120 | 2018-09-13T21:29:03 | 2018-09-13T21:29:03 | 147,354,487 | 14 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | #!/usr/bin/env python
import argparse
import contextlib
import libvirt
import sys
template = r'''
<hostdev mode='subsystem' type='usb'>
<source>
<vendor id='0x%04x'/>
<product id='0x%04x'/>
</source>
</hostdev>
'''.strip()
@contextlib.contextmanager
def libvirt_open(uri):
conn = libvirt.... | [
"mlen@mlen.pl"
] | mlen@mlen.pl | |
35fb6b987971eb53a9c5435414af7988c4961ebd | 11d95b3114e4a16233a659d611e10573abdbf710 | /01_pasteuria-ZOTU-table/f.combine_tax_assignments.py | 0fd8864db83bfdfe5d59f326da6fb525a8f32ce2 | [] | no_license | BioJNO/Pasteuria_Nematode_metabarcoding | 83ca4fc93053e8fd9976a3556ae2bbbbbf1705aa | 0c8bc687ada60e0bfc5e6b35af6a34c8499bfa7f | refs/heads/master | 2020-03-21T02:51:42.308240 | 2020-01-10T11:53:03 | 2020-01-10T11:53:03 | 138,024,631 | 0 | 1 | null | 2018-10-05T10:53:06 | 2018-06-20T11:38:53 | Python | UTF-8 | Python | false | false | 1,942 | py | # Script to include the best possible taxonomic match as the assigned taxonomy
# to each of the zero radius otus (zotus) generated by unoise3.
# Import mmap.
import mmap
# Write the outfile and (important) close it again.
outhandle = ("pasteuria_taxonomy_combined.txt")
outfile = open(outhandle, "w")
# You can't mmap... | [
"JamieNeilOrr@gmail.com"
] | JamieNeilOrr@gmail.com |
54a2ac39d5f82bb0261de10d4bd2935a611a6881 | e3beccff804b034047dc50e0247c28b1606c7fdb | /bogo_sort.py | 061ff6d79acf27c1b15d6d8a18c97d2dd614c9bf | [] | no_license | Rutrle/algorithms | 0434249a3d9616cc478697c78327f643166db3e7 | bfd5237c6420b84b3e43d321530dc4778fdd79ca | refs/heads/master | 2023-09-01T09:10:20.618467 | 2021-11-02T21:49:37 | 2021-11-02T21:49:37 | 357,696,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | import random
import sys
numbers = [1, 5, 8, 44, 6, 45, 468]
def is_sorted(values):
for index in range(len(values)-1):
if values[index] > values[index+1]:
return False
return True
def bogo_sort(values):
attempts = 0
while not is_sorted(values):
random.shuffle(values)
... | [
"rutrle@seznam.cz"
] | rutrle@seznam.cz |
85ec46eaedf265b65932294f4aefad53618ce5e7 | 7521293b1a96d6a3efd3de01d6ef0c46600d1994 | /菱形.py | 50c7645b1c8c46be30a9bce681c7a3d027ab77eb | [] | no_license | wyx208/wu-yixiong208 | 1d8cf4437e0aa0a621558bd09aa2a989affeace0 | 648a4674b4f732b2bf28f4b06ed669186818de3b | refs/heads/master | 2020-03-31T03:08:58.974594 | 2018-12-26T12:06:18 | 2018-12-26T12:06:18 | 151,854,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | import turtle as t
t.penup()
t.fd(-200)
t.pendown()
t.seth(30)
for i in range(2):
t.fd(200)
t.right(60)
t.fd(200)
t.right(120)
| [
"noreply@github.com"
] | wyx208.noreply@github.com |
e3a31a2c14d5b4e3188ded1faf77067e6ca76e3f | 6996691a6183d521c8306f204174238f6544d0bb | /tokyodystopia.py | 04b0a8e26e28dfad717dae677f3a822c1557e3f6 | [] | no_license | shnjp/py-tokyodystopia | b26edfc57fdb9e03b3de28626527c63d880ad18f | 8b0eef42b0eae88051f3c94136f1ae590a883a3e | refs/heads/master | 2021-01-24T00:54:04.960655 | 2010-02-27T12:46:00 | 2010-02-27T12:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # -*- coding:utf-8 -*-
"""
Python binding for Tokyo Dystopia
http://1978th.net/tokyodystopia/spex.html
"""
__version__ = '0.1'
import sys
import _qdb
# extract hear
TCQDB = _qdb.TCQDB
class TCQDB(_qdb.TCQDB):
for key in dir(_qdb):
if key.startswith('QDB'):
locals()[key] = getattr(_qdb, ... | [
"shn@glucose.jp"
] | shn@glucose.jp |
4dde42e19b5ac6847186f482b1ee8d9dd2743adc | 55108d411785501d66863573f4bbb52b83796c15 | /venv/Scripts/easy_install-script.py | 53c2328e2a44126660c10a2741fa2e04d07fd6ef | [] | no_license | enegriy/OnlineStore-study-group- | 8e2673af04be3322efd087eae06fed50f3098bb1 | aa8d340b44506d07119fe41d81747d3a037af694 | refs/heads/master | 2022-12-20T21:42:59.340215 | 2020-09-25T09:57:37 | 2020-09-25T09:57:37 | 264,140,081 | 2 | 2 | null | 2020-05-26T09:01:12 | 2020-05-15T08:32:04 | Python | UTF-8 | Python | false | false | 475 | py | #!C:\Users\Admin\YandexDisk-unix-service\OnlineStore-study-group-\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = r... | [
"65400361+XblSHNIK@users.noreply.github.com"
] | 65400361+XblSHNIK@users.noreply.github.com |
a2efc001f912508a6159e78a8759268b81ea96d2 | c6667d0e7bb32007f18053c7feb6fea27e0bfeac | /tf_spam_classifier.py | 596f09d04ba2c482ea781a553e6610937c5eb5a4 | [
"MIT"
] | permissive | AmirLavasani/SpamDetection | c3fe86f41580e80c42ecdce6074a09f0a54bab35 | 2ca4b0dc8f2242009df92c42c0b29f0af2199a69 | refs/heads/master | 2020-04-05T12:58:16.052687 | 2018-12-16T17:00:44 | 2018-12-16T17:00:44 | 156,888,791 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,362 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import codecs
import polyglot
from polyglot.mapping import Embedding
import tensorflow as tf
from random import shuffle
import click
def process_db(spam_path, not_spam_path):
db_train = []
db_target = []
with codecs.open(spam_path, 'r', 'utf8') as spam:
... | [
"amirm.lavasani@gmail.com"
] | amirm.lavasani@gmail.com |
14703f8578b804d609fbbb166ca60a795ed299fb | 40d1eacf8ecbccbf00af68e1f0a2ceb37c20f118 | /monitor.py | 53dc5f42ec432951658b1bf9a588a6a8b5e85de1 | [
"MIT"
] | permissive | arrazicode/Server-Monitor | 0ead812f726709c2d2dc33a7a9450d5cb56ad81b | e04450dda092c08613c1b87194d1766e4010b2a3 | refs/heads/master | 2023-03-22T08:46:04.509136 | 2019-08-05T16:15:52 | 2019-08-05T16:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | import os
import smtplib
from datetime import datetime
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import socket
import json
class Main:
def __init__(self):
self.success_list = []
self.fail_list = []
self.host_list_path = None
self.smtp_serve... | [
"33371682+ai-93@users.noreply.github.com"
] | 33371682+ai-93@users.noreply.github.com |
238db4f203adafdbff97d172d5e765ed19cc7edd | 1a9806d2b7024f62107f3fededd317015f4ffe10 | /Final Assignment/utils.py | 6c03888bfafdfbed0933fd1314c0854de39f791c | [] | no_license | MNiestijl/ML-Course | dd33476147535392175cddb2c110fc5bcae8a5d2 | 2c94e57210cb883ca750ba0da9196fc6437e2656 | refs/heads/master | 2021-01-24T18:25:56.603365 | 2017-07-09T19:37:57 | 2017-07-09T19:37:57 | 84,435,229 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,279 | py | import numpy as np
import pandas as pd
from scipy.io import loadmat, savemat
from sklearn.exceptions import NotFittedError
from pathlib import Path
import math as m
import numpy.linalg as la
from sklearn.base import BaseEstimator, ClassifierMixin
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as L... | [
"milan_niestijl@hotmail.com"
] | milan_niestijl@hotmail.com |
7a8a85dc5a3a16c2d803052a8d902c7eb41278e1 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/rasbt_mlxtend/mlxtend-master/mlxtend/_base/_classifier.py | c28a3668f82e55c395cafb7d08c381bc0104d08e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,243 | py | # Sebastian Raschka 2014-2017
# mlxtend Machine Learning Library Extensions
#
# Base Clusteer (Clutering Parent Class)
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
import numpy as np
class _Classifier(object):
def __init__(self):
pass
def _check_target_array(self, y,... | [
"659338505@qq.com"
] | 659338505@qq.com |
085e4b56ac21c5cd80e4f55ac19c4d558840797a | fbfcf96286edb696d2d840b8029ef3239e21f5ee | /authentication/forms.py | 4eb7cfcbdc0b3716374191d355eda1d25b545669 | [] | no_license | matt1007k/courier-web | 51df589aff82ed4cbc1841a7988250fed1ad8b58 | ccb015b9b985123fcc082c66ff8b783c8b6b276c | refs/heads/main | 2023-07-04T23:19:09.154440 | 2021-08-07T20:20:07 | 2021-08-07T20:20:07 | 350,116,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.validators import ASCIIUsernameValidator
User = get_user_model()
class RegisterForm(forms.Form):
username = forms.CharField(required=True, min_length=4, max_leng... | [
"matt1007k@gmail.com"
] | matt1007k@gmail.com |
8a2e0f29349bc93729c7f84810741a02954dfb12 | b10f9cf90fd8f225e0ca7e5fbaa118f177199e0a | /config/wsgi.py | 924dadf85a3f839a26a1d7e60fcca20deed2a702 | [] | no_license | MrCordeiro/django-pwa-app | 8f982a58d19d0d4eeadea346b29ea1a69f4645a4 | c6fda57314bba172e19cb6413a4676a0ff374e9b | refs/heads/main | 2023-08-25T04:08:09.870740 | 2021-10-23T12:49:06 | 2021-10-23T12:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for config project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"fernando_cordeiro@live.com"
] | fernando_cordeiro@live.com |
c0a9380b65fa405b9ecd5afca937d85fc43dff4d | 9be57e13dae005f7138879871cf4deb50bb32d3a | /tests/test_module.py | 6925827ce0e2a141c347c564e0ce65f595c52349 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | shnizzedy/progressivis | 28321e3187b49b9fe034bb1786729a4b15b4a519 | d3e67925253ff3dc34dc72282ac82bb2a9571354 | refs/heads/master | 2021-05-30T21:50:41.702094 | 2016-05-13T07:45:39 | 2016-05-13T07:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import unittest
from progressivis import *
class TestProgressiveModule(unittest.TestCase):
def setUp(self):
self.scheduler = Scheduler()
def test_scheduler(self):
self.assertEqual(len(self.scheduler), 0)
def test_module(self):
module = Module(id='a', scheduler=self.scheduler)
... | [
"Jean-Daniel.Fekete@inria.fr"
] | Jean-Daniel.Fekete@inria.fr |
975e35f4d46d96b077ccec902d83a50f0befc10b | 6725eff72a6cf04c9cf62cb6f7f9df6373d5ceb5 | /backend/eplan_18788/settings.py | fb957dea65dc264ef337508f1c3991c3f454f306 | [] | no_license | crowdbotics-apps/eplan-18788 | ae064dc4fc95bb3f2eb2218402cf7375fd6b7273 | 652b38c70d36fe84eebd335dffed30b8e3ade581 | refs/heads/master | 2022-11-16T06:07:53.552260 | 2020-07-10T09:38:39 | 2020-07-10T09:38:39 | 278,595,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | """
Django settings for eplan_18788 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
32199bf70c40c64d9497a96e4c056000b9c9a54f | 18508cea9458b2879017b44e6f18520cd8cf4f6c | /UCMDBPython/src/plugin_ntcmd_file_version.py | be371b707921cbbacd41e47fc3580ff9493e7e73 | [] | no_license | kvt11/dd-git | 7d4935962e06d835ad0023c4abb185876a5a9e77 | 49aafa7081b861c5f6d0e1753b425e78948116d0 | refs/heads/master | 2022-11-23T19:03:19.763423 | 2016-04-04T14:54:18 | 2016-04-04T14:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #coding=utf-8
import file_ver_lib
from plugins import Plugin
class FileVersionInformationPluginByNTCMD(Plugin):
def __init__(self):
Plugin.__init__(self)
def isApplicable(self, context):
client = context.client
if client.isWinOs():
return 1
else:
... | [
"bluesteelkc@gmail.com"
] | bluesteelkc@gmail.com |
901dce09cff479f84febc30adee8ee4f3db74d24 | 3626294d5b445a1d941e99272fd66d436cc9eb77 | /dev/Chill Music Downloader.spec | ef13ec0cf4abe8714572ba7ea75058bd1164ab09 | [
"MIT"
] | permissive | NoMariusz/ChillMusicDownloader | 5066f7a4cd759c78c4b8dc471b63f474d2787c7d | d8d3a6a3ba511e97ab8d65f86a4cbc8b83c9d43f | refs/heads/master | 2023-02-19T22:54:36.027719 | 2021-12-08T09:12:43 | 2021-12-08T09:12:43 | 236,994,168 | 5 | 1 | MIT | 2023-02-06T20:34:31 | 2020-01-29T13:56:42 | Python | UTF-8 | Python | false | false | 1,316 | spec | # -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
import pathlib, os
actual_path = os.path.join(pathlib.Path().resolve(), "..")
block_cipher = None
a = Analysis([os.path.join(actual_path, 'app\\chill_music_downloader.py')],
pathex=[os.path.join(actual_path, 'dev')],
... | [
"mariusz2727@vp.pl"
] | mariusz2727@vp.pl |
3422b4ff4f57c6a9b3da4195372158c127cc8a5e | 522eae78476cee4edabb0bdf18f698d78124ece5 | /server.py | 489310282cc1701ef23b1659af35e1427e12bcf6 | [] | no_license | YMLANG/StockPortfolio | 7bfbd12a991ca5cafea36f188d4475ae3025cc8a | 0d522f47b2811dc2bea6a866011ab9f08db67adb | refs/heads/master | 2022-12-13T14:15:28.004961 | 2019-08-01T08:46:34 | 2019-08-01T08:46:34 | 200,010,363 | 1 | 1 | null | 2022-12-08T02:33:51 | 2019-08-01T08:30:25 | Python | UTF-8 | Python | false | false | 259 | py | from flask import Flask
from flask_login import LoginManager
app = Flask(__name__)
app.config["SECRET_KEY"] = "Highly secret key"
numList = []
login_manager = LoginManager()
login_manager.init_app(app)
#
from user import users
#
currentUser = users("", 0)
| [
"noreply@github.com"
] | YMLANG.noreply@github.com |
f501cf8b2a05615bbfc01aedce03b7ad055a7973 | effa03817893dd885a23c7815f1099366b353c57 | /venv/Scripts/easy_install-3.7-script.py | ee916db441662a819bb986d8947094a201501f00 | [] | no_license | Hung86/SentimentalAnalysisServer | 228479ff41a96ef37c76527860bf1ea3dbabf8cb | 12fb9f366b34bbc145f2bd589dd6aaaa2cf874ef | refs/heads/master | 2021-05-22T14:21:42.916056 | 2020-04-05T11:03:39 | 2020-04-05T11:03:39 | 252,960,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!D:\working\NUS\py\big-data\SentimentalAnalysis\venv\Scripts\python.exe
# 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'(-scr... | [
"tkhung2004@gmail.com"
] | tkhung2004@gmail.com |
3be018c394015f43dc2ee52d2ece2a6651fa046e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/l06.py | 515136658f604c66165a4ec3da41969bbaff7f8b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
0132a466ce03efb17b0eb4b469b1eb7928a83af5 | 533c2e897bac8f91218826c4c0e91c96f81cd29d | /tests/utils/mock_server.py | 80a6238a1a1bd90ba6b57c44dfe7252de02823c9 | [] | no_license | dk2nd/client | e3e0aa99aa5b89df8b45876f600208354294a6ae | 5bceb506e529ed837e1587026feceec8bb688134 | refs/heads/master | 2023-02-20T18:57:03.693024 | 2021-01-25T00:52:35 | 2021-01-25T00:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,683 | py | """Mock Server for simple calls the cli and public api make"""
from flask import Flask, request, g
import os
import sys
from datetime import datetime, timedelta
import json
import yaml
# HACK: restore first two entries of sys path after wandb load
save_path = sys.path[:2]
import wandb
sys.path[0:0] = save_path
impor... | [
"noreply@github.com"
] | dk2nd.noreply@github.com |
4ae997b020eb24ea96f71c52c632792049b8bce7 | 21fd465beb03568fecd16fda53b84059633f3c20 | /embroidery/fileutils.py | b0e0dce1c303104f229d2e30adef4036e94f0dc3 | [
"MIT"
] | permissive | barbosa/embroidery | 278995d4dd66a9acb26edf55159eb9e426bf6199 | 63c2bd1a274e1e74ea63b57109a14d3b98c9d547 | refs/heads/master | 2022-04-04T15:39:45.507617 | 2020-02-13T11:59:43 | 2020-02-13T11:59:43 | 237,351,974 | 2 | 0 | MIT | 2020-02-12T21:46:48 | 2020-01-31T03:18:03 | Python | UTF-8 | Python | false | false | 136 | py | def default_output(input_path):
parts = input_path.split(".")
parts[-2] = parts[-2] + "_embroidered"
return ".".join(parts)
| [
"gustavocsb@gmail.com"
] | gustavocsb@gmail.com |
53ca3aaec58501c1a28b734211e344e239ce9b56 | af20c8f6fa12f5e81f98af547c13e71708549e60 | /weapon.py | bd2a2321c7335e63652c0778df40897ea57cc28b | [] | no_license | pguigli/text-combat-game | 270b5a4d8f46d2c886ada1c07065ac278ee3839c | 6cdc797e0fcccd0dd0751b02c53e499bd5564421 | refs/heads/master | 2020-04-21T20:46:35.816415 | 2019-03-20T14:11:32 | 2019-03-20T14:11:32 | 169,856,429 | 0 | 0 | null | 2019-02-14T22:10:29 | 2019-02-09T10:42:26 | Python | UTF-8 | Python | false | false | 2,574 | py | import os
import random
import time
SHORT, MEDIUM, LONG = 0.5, 1, 1.5
def show_weapons():
os.system('clear')
print("""\
=========================================================================
WEAPON INFORMATION | Choose from Axe, Bow, Dagger. Others are reserved.
------------------------------------------... | [
"pierre.guiglion@hotmail.com"
] | pierre.guiglion@hotmail.com |
a910a7beaa93acb4792ebb8362d8d9163f32e93c | 0145dd02f975529e1ae8e3069e0120069385a6f2 | /fluxcompensator/utils/pseudo.py | a6986bc6451fe098b203388ae0fcec729d9ed63d | [
"BSD-2-Clause"
] | permissive | koepferl/FluxCompensator | b275250109c03335fbc32983893164e4271d6267 | 751cac08971845069da8c962bc83459f091ba0f8 | refs/heads/master | 2021-06-21T06:34:00.943793 | 2017-06-22T21:05:32 | 2017-06-22T21:05:32 | 95,039,524 | 9 | 5 | BSD-2-Clause | 2020-06-22T19:48:30 | 2017-06-21T19:40:06 | Python | UTF-8 | Python | false | false | 4,368 | py | import numpy as np
class Pseudo(object):
'''
Mimics the properties of an ModelOutput array.
Parameters
----------
wav : numpy.ndarray
* SyntheticCube like: The 1D wavelength of val cube in microns.
* SyntheticImage like: The 0D wavelength of val image in microns.
* Syn... | [
"koepferl@mpia.de"
] | koepferl@mpia.de |
bb2ffa7ed652db9d1aa10e235a915cc61cf3c507 | c17766dd27183ce2d29df77234f9146a38bfa373 | /edit_distance.py | 869e25b6a6041f2a5fcd4839542eca769d62ec74 | [] | no_license | doantumy/MLDM-Project | 29e5ccd7206548765f1e01cab76567dc2107a032 | 351b17d547dd48beab8931e528134982669bd237 | refs/heads/master | 2020-04-25T17:45:56.029038 | 2019-02-27T17:42:24 | 2019-02-27T17:42:24 | 172,960,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,007 | py | # Ref: Group Project from 1st semester
# https://github.com/ajoseph12/Protein_Alignment_Minimum_Edit_Distance
import sys
import numpy as np
import pandas as pd
class edit_distance:
def __init__(self,fc_1,fc_2,k):
self.fc_1 = ' ' + fc_1 #Source freeman chain code
self.fc_2 = ' ' + fc_... | [
"doantumy173@gmail.com"
] | doantumy173@gmail.com |
26e51c4921eb1736c51e781cd828b919a4b4b897 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1190267/snippet.py | 2688e49f081b03d355fbc37009d8a0b90b919415 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 9,652 | py | #!/usr/bin/env python
#
# Copyright 2010 Facebook
#
# 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 a... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
ab3d5f1b248727067411b44c589a6561676d21b9 | 9b03a2506746f059268a56575285f6f6b36570c0 | /python/plotting/pretty_timeaxis.py | ab6b71ca6265373d240d5416a451b55c38cd6113 | [] | no_license | ankur-gupta/examples | ca6488bd253526d32bfed1779db52328e09e028d | 5d0cd37fe7ca6790e2038e512890848fafde76a7 | refs/heads/master | 2021-07-25T23:10:04.904954 | 2020-05-06T02:16:10 | 2020-05-06T02:16:10 | 167,782,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from builtins import range
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
# Beautify dates on the xaxis but don't modify the ticks.
# Jupyter has its own date formatter. These effects below ... | [
"ankur@perfectlyrandom.org"
] | ankur@perfectlyrandom.org |
5e6eaf886e7e74a7729c89a28999a550d5b7953b | 3f843964c7d8992553e792fd8a513aad9d37751f | /dev/publish_api_docs.py | d61938ffbc99371aacea7e70e9a481158325594e | [
"Apache-2.0"
] | permissive | rantav/spinnaker | 1065b360cdd7a58abdff7d642f167793b9f11773 | 98fb0c77db8fc723fd705ae6b663a8cbbd348fdb | refs/heads/master | 2023-06-12T21:02:31.954034 | 2018-06-29T21:32:29 | 2018-06-29T21:32:29 | 139,311,295 | 0 | 0 | Apache-2.0 | 2018-07-01T08:09:15 | 2018-07-01T08:09:14 | null | UTF-8 | Python | false | false | 5,586 | py | #!/usr/bin/python
#
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | rantav.noreply@github.com |
8c2c963d16c718fe2871d58b9350d3ab42e362bd | 0f9bd14e7092f07ca5045c51ec29e5cf28d075b6 | /tests/test_objects.py | 9fcf985abf84a465a216d90f4b91b0d870f78116 | [] | no_license | Betel-geuse/Lab_2_here | 970470abb0774d0ef9d7f8a537c2b74f1805c7da | e91b832634e9849974e88659e61351521f17f91f | refs/heads/master | 2023-09-03T20:08:06.876239 | 2021-09-11T13:46:25 | 2021-09-11T13:46:25 | 405,390,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from collections import namedtuple
"""
primitives
"""
str1 = "forbes"
num1 = 3
flot1 = 5.22
bool1 = True
bytes1 = bytes(b'd\x01S\x00')
bytearr1 = bytearray(bytes1)
bltfunc = len
"""
simple lists
"""
lst1 = ['a', 2, 'c']
lst2 = [1, 2, 3, 4]
set1 = set(lst1)
frzset1 = frozenset(lst1)
tpl1 = tuple(lst1)
"""
simple dicti... | [
"serega1357912@gmail.com"
] | serega1357912@gmail.com |
c572a7191cb7448706a6e93621483ec21ccee5ca | 143186a58fa0d0395823eb2be7861155f147ced2 | /Python_Interview_Questions/leetcode/problem_sets/Q134_gas_station.py | cdf56ae1de79ed8984ee477f66c64fa0cb9a899f | [] | no_license | MLgeek96/Interview-Preparation-Kit | 04dbda8259d5faaa1298f11c741de32744912fc7 | 39bfa35f74455df07b93b6d4e2378a6f2e556528 | refs/heads/master | 2023-08-14T19:12:39.913505 | 2023-07-25T13:55:32 | 2023-07-25T13:55:32 | 260,638,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | from typing import List
def canCompleteCircuit(gas: List[int], cost: List[int]) -> int:
"""
There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from the ith station to its nex... | [
"jacson.chong@bigpayme.com"
] | jacson.chong@bigpayme.com |
4e808b55d68fc959b93093eef571a1166e03efdd | d6b99ab3cc7108f4f0cc0be899641ac990e30db9 | /split_string/split_string.py | 2cf9b6dc6a0f81d094a6f334823d09ab0204003e | [] | no_license | AsemAntar/codewars_problems | ef97e8a8058551276cdb943a07474cbeb9353c4d | c0ae0a769e16211c2b8e325d1116a6cebd3be016 | refs/heads/master | 2020-08-10T02:01:12.411030 | 2019-12-15T22:45:20 | 2019-12-15T22:45:20 | 214,229,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # Author : Asem Antar Abdesamee
# Problem Description:
"""
Complete the solution so that it splits the string into pairs of two characters.
If the string contains an odd number of characters
then it should replace the missing second character of the final pair with an underscore ('_').
Examples:
solution('abc') # sh... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
5e0f729104f3ebb6262af792bb460881ebb2de00 | 244e9a07bf1334b68d7799738c2ffb02caab5571 | /base_external_referentials/ir_model.py | 4caf3fde2196d577221ee0e41f685f21f6f7163c | [] | no_license | eLBati/openerp-ebay-connector | 7366ee4ad7d0587e25c04eb34fcf7943e6f84a24 | b46e2a92a72d189ccbfb0b75513425f536e8b02f | refs/heads/master | 2020-04-20T07:24:47.925716 | 2014-04-11T11:06:24 | 2014-04-11T11:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | # -*- encoding: utf-8 -*-
###############################################################################
# #
# base_external_referentials for OpenERP #
# Copyright (C) 2011 Akretion Sébastien BEAU <sebast... | [
"devid@devid-snippetbucket.(none)"
] | devid@devid-snippetbucket.(none) |
32b4c48bfb3092e75cc93a1404c0a6c8db424703 | 594fc2618aaa544622e2179f090dcd40a38db7ae | /CreateMaze.py | 672185966a2f185ab0871d49599c90248979fa71 | [] | no_license | orbitalhybridization/CS382_Mazes | 910f3145d560391534c35232b52b5791cae550b1 | 810af7e7da6a75c3b06dfb3a7e85aa617d835d86 | refs/heads/master | 2021-05-17T07:18:58.116997 | 2020-03-28T01:54:48 | 2020-03-28T01:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # File: CreateMaze.py
from mazelib import Maze
from pgl import GWindow
import random
GWINDOW_WIDTH = 500
GWINDOW_HEIGHT = 300
MAZE_ROWS = 5
MAZE_COLS = 9
SQUARE_SIZE = 36
def CreateMaze():
g = GWindow(GWINDOW_WIDTH, GWINDOW_HEIGHT)
maze = Maze(MAZE_ROWS, MAZE_COLS, SQUARE_SIZE)
x = (g.getWidth() - maze.g... | [
"noreply@github.com"
] | orbitalhybridization.noreply@github.com |
eea2f72c952a6e7bb97b70ff7675c2f2dc3c3e28 | bbcec1959c050504853241bb4bc66f9eefc78451 | /ProbTrans.py | 80de46454a2ea4d7af99449de1a0a1a0bc79a4ee | [] | no_license | EstebanK23/Sistema-Cuantico | ceda83463fb2f919847872a9f3d99bdde5d5162e | 5a2a78c56ed5c024a32ed747366511e8b7ab59c6 | refs/heads/master | 2020-08-10T13:40:29.892127 | 2019-10-25T19:30:42 | 2019-10-25T19:30:42 | 214,353,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | def suma(t1,t2):
res_r=t1[0]+t2[0]
res_i=t1[1]+t2[1]
fin=(res_r,res_i)
return fin
def multiplicacion(t1,t2):
res_r=t1[0]*t2[0]+((t1[1]*t2[1])*-1)
res_i=t1[0]*t2[1]+t1[1]*t2[0]
fin=(res_r,res_i)
return fin
def multi_mat(vec,mat):
mat_fin=[[(0,0)]*len(mat[0]) for x in ra... | [
"noreply@github.com"
] | EstebanK23.noreply@github.com |
dc832f564f9b36bab6df19320d362a1949d6fd4f | 31e2106bc39a1e99dc4fadb2d597bd7b8cf03de5 | /examples/tutorial/replica_exchange_b.py | a672c2f27d97c1ba3e232559eeb6ad707cb70d27 | [
"MIT"
] | permissive | maxentile/radical.ensemblemd | d483ee27b01f6d41ee5113c1a7aaee599eed4652 | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | refs/heads/master | 2021-01-13T07:18:55.256329 | 2016-07-18T17:22:22 | 2016-07-18T17:22:22 | 71,578,966 | 0 | 0 | null | 2016-10-21T15:42:37 | 2016-10-21T15:42:37 | null | UTF-8 | Python | false | false | 12,786 | py | #!/usr/bin/env python
__author__ = "Antons Treikalis <antons.treikalis@rutgers.edu>"
__copyright__ = "Copyright 2014, http://radical.rutgers.edu"
__license__ = "MIT"
__example_name__ = "Synchronous Replica Exchange Example with 'remote' \
exchange (generic)."
import os
import sys
im... | [
"b.vivek91@gmail.com"
] | b.vivek91@gmail.com |
107379beebd46f10c57be540b59cbe2681f90dd0 | 2522f0b51cda1a0f37ff7a023e1c9031acd20647 | /main_functions/category_choice.py | 5b96513d299237fc1c6b9d7d1e2d24baf3e350eb | [] | no_license | GuiThink/opc_projet5 | 7d8c6c7be5953f39efb40345f8c8069c576add15 | c0f7881861d53d960ab27b65eee847dc94fdeeca | refs/heads/master | 2020-03-07T10:43:25.915915 | 2018-06-24T15:50:18 | 2018-06-24T15:50:18 | 127,438,321 | 0 | 0 | null | 2018-06-24T15:50:19 | 2018-03-30T14:40:11 | Python | UTF-8 | Python | false | false | 1,662 | py | #! /usr/bin/env python3
# coding: utf-8
from data_base.database_connect import UseDatabase
class CategoryChoice(object):
"""
Generates a Category object
"""
def __init__(self):
self.category_list = self.get_all_categories()
self.print_all_categories(self.category_list)
self.ca... | [
"pont.guillaume@yahoo.fr"
] | pont.guillaume@yahoo.fr |
416d2912260721822867e896f523aa21c0641153 | 15a018eedb5905d89d93daf000e2469836b91c62 | /september/cisc106_34.py | f811bd614afb97ece5a96ac231eee653db0d5527 | [] | no_license | Galante97/CISC106-Projects | fffe433ae3d35410ea20d0f1f2a9800ff1f1b95e | cc47e35160bad88f853b1801af977a11c49b4c82 | refs/heads/master | 2020-03-17T04:22:29.663999 | 2018-05-13T20:40:44 | 2018-05-13T20:40:44 | 133,272,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | '''
CISC106 Module that includes some basic helper functions such as assertEqual().
Versions:
0.151 - 2015-AUG-29, Modified by Jon Leighton
+ Modified names of __isEqual() and __isseqtype() to _isEqual() and _isseqtype().
+ Edited documentation for assertEqual() function for clarity.
0.15 - 2015-MAY-01, Modif... | [
"jgalante@udel.edu"
] | jgalante@udel.edu |
2b74e3b860f1c6971115da07e86cb382faff0ef7 | cbd4d4720febbb5db288588a6689ea628d08c02f | /awesome/parsers/vue.py | ce2ff5f097effec002cf7e02a65ca2f66158e846 | [
"MIT"
] | permissive | dc7303/awesome-finder | 01f828f5ab19f56bb6a31eb7d5728eabdb9da166 | 531d0b4236d8d12c090822f20133e3887d1003de | refs/heads/master | 2022-11-07T18:32:38.909198 | 2020-06-20T08:25:50 | 2020-06-20T08:25:50 | 273,651,750 | 0 | 0 | MIT | 2020-06-20T06:27:12 | 2020-06-20T06:27:11 | null | UTF-8 | Python | false | false | 1,273 | py | from . import AbstractAwesomeParser
class AwesomeVueParser(AbstractAwesomeParser):
AWESOME_TITLE = 'vue'
AWESOME_README_URL = 'https://raw.githubusercontent.com/vuejs/awesome-vue/master/README.md'
def find_content(self):
readme = self.read_readme()
content = readme.split('\n\n\n# Resource... | [
"zrongzrong@gmail.com"
] | zrongzrong@gmail.com |
742cb9e2f66547686f61d917b7364b4ae5613d49 | b4d4478c1160f2cd3b05f649e7245b3023ffee71 | /Token.py | 2029963efef9fc25d921e884241f7137bcc38f90 | [] | no_license | sbulat/Splendor | 2261e95782ee358a9cab8054c083a7d7b967ceef | d069d1b6eec30d5a4231269a594933674ac26d0d | refs/heads/master | 2021-01-10T04:02:40.108367 | 2016-01-15T17:00:33 | 2016-01-15T17:00:33 | 49,238,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
from Globals import *
class Token(object):
pos = [50, 500]
def __init__(self, x, y, bonus):
self.a = x, y
self.b = x+Glob.TOKEN_DIAMETER, y+Glob.TOKEN_DIAMETER
self.bonus = bonus
self.image = Glob.stoneToImage[self.bonus]
self.ov = Glob.canvas.create_oval(self.a, self.b, fill='whi... | [
"szczepan.bulat@gmail.com"
] | szczepan.bulat@gmail.com |
c18d76ff67bcc79a436ea90b42628e59202bf168 | ffef8958028e80ab50c5f63fe3eac78cb0cb6745 | /server.py | 476e9e084c3902687544a4048735418b5d70ecc5 | [] | no_license | somir1/login | 48a4f7bc33aff4eb7c38d19b3be66d07963b1c63 | e17ae6a45d42c79719260a845a44fad359ea2153 | refs/heads/main | 2023-06-24T08:24:42.015791 | 2021-07-21T03:28:23 | 2021-07-21T03:28:23 | 387,981,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from flask_app import app
from flask_app.controllers import login
if __name__ == '__main__':
app.run(debug = True) | [
"leonsomir@gmail.com"
] | leonsomir@gmail.com |
56e10d0655c2f6f7366ce2a46d971413d855fa76 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/util/suppression.py | 1240bb00dd13c5e937571f07d45e8b1364fc12da | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 2,199 | py | from __future__ import annotations
import re
from collections.abc import Iterable
from checkov.common.bridgecrew.integration_features.features.policy_metadata_integration import (
integration as metadata_integration,
)
from checkov.common.comment.enum import COMMENT_REGEX
from checkov.common.models.enums import C... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
5a62ee71eb7ab179ad89d4008513356ddcfd184b | 9facc548ed2853b24292b269c8e16a618c2afbfa | /postOrder.py | fadbf397fb8bfcbb5b170a8602a59223054f1668 | [] | no_license | TheTeamKoala/SlothDesktopConnection | 963946635b954165d9018b2620a23d614e8f6175 | ca9c6f224b9a4fdedd6df4d4bee9b98f786bf127 | refs/heads/master | 2020-04-17T21:32:22.149555 | 2019-03-22T09:25:33 | 2019-03-22T09:25:33 | 166,954,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import urllib.request
import json
import sys
id = sys.argv[2]
date= sys.argv[3]
quantity = sys.argv[4]
product_ID = sys.argv[5]
# order ekleme kodu. command argument olarak gelen ozellikler ile order ekler.
body = {'id': id, 'date': date , 'quantity': quantity , 'product_ID': product_ID }
urlBase = "https:... | [
"fatih1896@gmail.com"
] | fatih1896@gmail.com |
73907d39a6ebd0ecb4560a2163429c21574e887c | bf5f64f3583e8a8700a821b643fe4134ab77ea9b | /superheroes_project/superheroes_app/views.py | af45a68fe397d9345b37a7580d82ca6171a3f48f | [] | no_license | BA-CalderonMorales/SuperheroesCreatorProject | e7d6417899fd0ef457e3e95726496838451a8b10 | 4a2305ea90aaf4b7d1e4cc2256ca8651b376830f | refs/heads/main | 2023-07-16T15:11:54.550453 | 2021-09-03T16:12:55 | 2021-09-03T16:12:55 | 381,184,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from .models import SuperHeroes
from .forms import SuperHeroForm
from django.contrib import messages
# Create your views here.
def index(request):
"""Allows me to access all th... | [
"tbcm640@gmail.com"
] | tbcm640@gmail.com |
fbed86e0862d42f28bd53e95c77de8f3b15a1d16 | 90dfb922ce22c967d177f865e14dcd4928132550 | /developers/urls.py | e2e0d7d1e980741f048863c5d3bebb5e2cf3524b | [] | no_license | njerucyrus/devconnect | 2c3240f592ad0440ca7b59a151828809fa4f3a1f | 804c3eb3b1a9758ac81889c4f94eb4c24df81a9a | refs/heads/master | 2021-01-10T05:44:07.442662 | 2015-11-30T08:09:12 | 2015-11-30T08:09:12 | 47,104,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from.views import *
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views
from django.views.generic import ListView
from .models import *
from django.views.generic import TemplateView
from djge... | [
"njerucyrus5@hotmail.com"
] | njerucyrus5@hotmail.com |
bf2c9e13e748dfa8acf55137bea37fff9e3d44a6 | 1503a5863f603788b8bdf902c1bbb865a2c6e0ae | /part-5/lecture-5/code/line_plot_plus2.py | f3369c6c5c9b9cd418ea97624f61db5c9c50b785 | [] | no_license | danfrankj/python-course | 3c8a6a63e5c9989da88cdac18e67e1e6e0baf0b7 | 647d301273cf743d903b4886cb955b3ceba6445f | refs/heads/master | 2021-01-21T07:39:50.634730 | 2014-01-31T18:45:54 | 2014-01-31T18:45:54 | 22,737,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | x = np.linspace(0, 10, 1000)
y1 = np.power(x, 2)
y2 = np.power(x, 3)
plt.plot(x, y1, 'b-', x, y2, 'go')
plt.xlim((1, 5))
plt.ylim((0, 30))
plt.xlabel('my x label')
plt.ylabel('my y label')
plt.title('plot title, including $\Omega$')
plt.legend(('$x^2$', '$x^3$'))
plt.savefig('line_plot_plus2.png')
| [
"danfrankj@gmail.com"
] | danfrankj@gmail.com |
b66fc4e1a77c44b4680c567a1606c04469b2853a | df9f48eca876c2269d28c22d5f54ca2627883225 | /school/settings.py | 23128a80c709f47af6f2859882afdfcc04474a38 | [
"MIT"
] | permissive | yvsreenivas/inventory2 | ac15988fc34f32a619e3949ed42a788c86020380 | b92c03a398cb9831fa7a727a9a3287bdd9b17cd4 | refs/heads/main | 2023-03-23T06:35:23.207654 | 2021-03-18T16:47:14 | 2021-03-18T16:47:14 | 345,376,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | """
Django settings for school project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
im... | [
"yvsreenivas.yahoo.co.in"
] | yvsreenivas.yahoo.co.in |
d18639a9796d3baeb43bcbf39b7b48dc073be71a | 397398cb895f3b3714982926fc1db28b6acd6cc8 | /sens/image.py | b933d357ca594c826c64465d680b9395996197bc | [] | no_license | TronPaul/sens | 8f7782d43723ded73c9fb9cc5e1ef928cfc52a9c | ebf304f26c446fdae49615f50483a3b36aa5b6f9 | refs/heads/master | 2021-01-10T21:01:00.542468 | 2013-10-15T17:34:05 | 2013-10-15T17:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | import urllib.request
import io
from PIL import Image, ImageDraw
ONLINE = 'ONLINE'
OFFLINE = 'OFFLINE'
PADDING = 3
LOGO_NONE_URL = 'http://static-cdn.jtvnw.net/jtv_user_pictures/xarth/404_user_150x150.png'
def build_image(twitch_status):
logo_url = twitch_status.logo_url
status = twitch_status.status
name ... | [
"mark.b.mcg@gmail.com"
] | mark.b.mcg@gmail.com |
0fa7ddbac5ef66de98fed667ab206def9202a8e0 | 1b6170a4498fafae0f3de7f71e6c6c81a214e738 | /testAutomation/temp/eden/controllers/sync.py | f6be9441c739e11ec16c78e93adb97b604bfb017 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CSCI-362-03-2015/Team6 | d487c5dd2fc86060551519fca9ec122c931cadf6 | e976f2fcfd648424984ef635284dbe13ceacb39f | refs/heads/master | 2021-05-02T12:17:07.572410 | 2015-12-10T20:56:33 | 2015-12-10T20:56:33 | 41,507,134 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,811 | py | # -*- coding: utf-8 -*-
""" Synchronization Controllers """
# -----------------------------------------------------------------------------
def index():
""" Module's Home Page """
module_name = T("Synchronization")
response.title = module_name
return dict(module_name=module_name)
# ---... | [
"draugelsm@g.cofc.edu"
] | draugelsm@g.cofc.edu |
b21b6ea353087096de3e106782d74ef25574cc65 | aee3642150c702020a4128bfcc76fd458811f339 | /backend/lib/QASystemOnMedicalKG/test_neo.py | 77a0249820eedad6a396b0efca69bf4a08db6cfe | [] | no_license | rxdaozhang/foodBorneDisease | c67dd37fc2167415d47105ee9baadf3e7b40967a | 6d256ae32de159f9c0abb1872862b51a9d67cdcb | refs/heads/master | 2020-12-11T10:21:41.210133 | 2020-03-13T14:54:07 | 2020-03-13T14:54:07 | 233,821,195 | 0 | 0 | null | 2020-01-14T10:58:18 | 2020-01-14T10:58:18 | null | UTF-8 | Python | false | false | 220 | py | from py2neo import Graph,Node,Relationship
graph = Graph("http://localhost:7474",auth=("neo4j","ohahaha"))
a = Node("Person", name="Alice")
b = Node("Person", name="Bob")
ab = Relationship(a, "KNOWS", b)
graph.create(ab) | [
"896836861@qq.com"
] | 896836861@qq.com |
859e0faea95ce87da3152576945b979455addd2c | afffbdf4b7011e59a5d5253e9d5cc36a1e802af8 | /main.py | 600a66d6b1468df03943deaab082af0bc925cb34 | [
"MIT"
] | permissive | surya-x/Focus-Coding | fc1ea671f7bc5a01f85c335a19c9974464c987df | b3349a4f3e6cc5fa1cbf30e3fa492a9aa9af38f0 | refs/heads/main | 2023-09-04T07:51:04.509262 | 2021-11-03T20:36:54 | 2021-11-03T20:36:54 | 420,233,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | import os
import random
import pafy
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def get_driver():
exec_file_path = r"/Users/vsuryakumar/CodeBase/chromedriver"
options = Options().add_argument("--headless")
driver = webdriver.Chrome(executable_path=exec_file_path, ... | [
"kumarsurya.2001@gmail.com"
] | kumarsurya.2001@gmail.com |
6cb5a4e88884421b42513d7f6f813ca06bda2c4b | 9341a1eb44a8ecf9629cd58f746836ce4988acc4 | /Python全栈开发中级/第二模块/第二关课后练习/ATM+Log/__init__.py | 697da9f9492ce176756a86704783a6e6ae4a183c | [] | no_license | liudefang/14_day_training_camp | d846c91759b69b09b185a351c046187582336fbe | e608ceeb1ff47f8f458c1dbfc5974c428d351a2d | refs/heads/master | 2023-03-10T09:20:52.719381 | 2023-02-22T10:32:30 | 2023-02-22T10:32:30 | 128,916,715 | 2 | 0 | null | 2023-01-05T21:57:52 | 2018-04-10T10:40:14 | JavaScript | UTF-8 | Python | false | false | 105 | py | # -*- encoding: utf-8 -*-
# @Time : 2018-05-28 22:44
# @Author : mike.liu
# @File : __init__.py.py | [
"15989576517@139.com"
] | 15989576517@139.com |
4da63feb93d7c27541efed91f449f67ea88a4fc2 | e906fe8237e5b55b7bef1f7a87884c5924ccd8b1 | /contactmps/context_processors.py | 98c239bbb478844afc111d5142b05c0474145d13 | [
"MIT"
] | permissive | OpenUpSA/contact-mps | ac9a88ef166769d6305e213f3d77191f385c962a | 63d7f86e1b6c9319a4d0344a6125cd22770f34c7 | refs/heads/master | 2022-12-11T07:22:20.942567 | 2020-01-15T13:11:59 | 2020-01-15T13:11:59 | 93,042,651 | 0 | 2 | MIT | 2022-12-08T02:08:08 | 2017-06-01T09:52:56 | JavaScript | UTF-8 | Python | false | false | 750 | py | from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
def general(request):
""" Add some useful settings into the template helpers.
"""
info = {
'BASE_URL': "https://%s" % get_current_site(request).domain,
}
ga_tracking_id = getattr(settings, 'GOOGL... | [
"jbothma@gmail.com"
] | jbothma@gmail.com |
f30cb588e1e0a2ef3419e16626420d3eaf16c09b | 1ea6f1e784b5edfa5846873491a1f5e21912fb82 | /Python/Stage2/buckets/scipy_curve_fitting.py | 921229314374285047cf2cffa23aee57f5b3f57d | [] | no_license | mariafoo/ENGN4200-Individual-Project | 2b11071dc11e303cb66872666c52fe3f0f0dfa16 | a07bac4bf4facd4fd22da3508473e31b06bc2b52 | refs/heads/master | 2020-12-26T04:16:56.833021 | 2016-09-09T12:30:03 | 2016-09-09T12:30:03 | 43,758,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | # curve fitting algorithm from http://www2.mpia-hd.mpg.de/~robitaille/PY4SCI_SS_2014/_static/15.%20Fitting%20models%20to%20data.html
# frequency estimation algorithm from https://gist.github.com/endolith/255291
# parabolic function algorithm from https://github.com/endolith/waveform-analyzer/blob/master/common.py
impo... | [
"maria.foo@polycademy.com"
] | maria.foo@polycademy.com |
dd6415024aa3cbcb67c72fdd6d5982cb3f90a182 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Python/801-900/824.GoatLatin.py | 3a2bc8c0e7db0df5b73e1507777865a28111ca71 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py |
class Solution:
def toGoatLatin(self, S):
"""
:type S: str
:rtype: str
"""
yuanyin = {'a', 'e', 'i', 'o', 'u', 'I', 'E', 'A', 'O', 'U'}
words = S.split(' ')
for i in range(len(words)):
if words[i][0] in yuanyin:
words[i] += "ma" + ... | [
"xpf6677@163.com"
] | xpf6677@163.com |
2038dd0e6d0049b70a0b0d8ef36745acc98d4064 | fe826833d207ced7b01d8aef4922da58614846ca | /demo/NavierStokesDrivenCavity.py | 7202e6a95247bd4863a6e921199545fc994f8544 | [
"BSD-2-Clause"
] | permissive | snytav/shenfun | ce56d912a38beef3f4df3072708a1f9aa5370e75 | 67844cb75e21488d7ab43bf0caa21dfbdc057395 | refs/heads/master | 2022-12-14T21:21:44.895648 | 2020-09-16T13:40:54 | 2020-09-16T13:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | r"""Solve Navier-Stokes equations for the lid driven cavity using a coupled
formulation
The equations are in strong form
.. math::
\nu\nabla^2 u - \nabla p &= (u \cdot \nabla) u) \\
\nabla \cdot u &= 0 \\
i\bs{u}(x, y=1) = (1, 0) \, &\text{ or }\, \bs{u}(x, y=1) = ((1-x)^2(1+x)^2, 0) \\
u(x, y=-1) &=... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
d04916ce31b279a1f9fc87350d32b953922df62d | 91831729887869f9d232c27ddd11d9944c379eb2 | /ELBAROUDI_Projet_Python/Salle.py | cc9c602fbf0b28c193ba02a50a624388bb87a4cd | [] | no_license | Mirrai20/Projet_Python_Gestion_Cinema | 607b960b3d76d8ed6148d4e4d0a54881a2b399fa | 0cb1e1f13e78e442a85f8199ae7340ed6d15e117 | refs/heads/main | 2023-08-12T23:30:57.277016 | 2021-09-17T19:07:14 | 2021-09-17T19:07:14 | 407,638,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,338 | py |
class Salle(object):
def __init__(self):
self.idSalle = 0
self.numSalle = 0
self.description = None
self.capacite = 0
# Getters
def getIdSalle(self):
return self.idSalle
def getNumSalle(self):
return self.numSalle
def getDescription(self):
... | [
"marouaneelbaroudi@gmail.com"
] | marouaneelbaroudi@gmail.com |
5c8b9bbaeea57e3892988d55ad34cbcfa836aba7 | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /419. Battleships in a Board.py | 0dd34567666bfd5777b15f6d650c4bcb404e31ef | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | class Solution(object):
def countBattleships(self, board):
"""
:type board: List[List[str]]
:rtype: int
"""
# Idea: If a point is the head or tail of a ship, only one of its 4 adjacent points is 'X'. Exception: The ship contains only one 'X'.
# If a point... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
d52a0f2b3512a01a4bc89c095b3be1560824ccc3 | f9a956cd538456b6ab7ab3845d575804aa9ac617 | /face_code.py | 42168c3576084b8b2f9a640174ac9e7fa846d120 | [] | no_license | ashwin-ram03/Facial-Recognition-Program | 46792d769b6a049f443344c72a58ced0f6f694f1 | 0079887df9e615fdafaabdea5325c96fea23a6ba | refs/heads/main | 2023-07-31T09:40:45.651116 | 2021-09-17T21:04:09 | 2021-09-17T21:04:09 | 407,678,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | import cv2
imagePath = "./abba.png"
cascPath = "./haarcascade_frontalface_default.xml"
# Create the haar cascade
faceCascade = cv2.CascadeClassifier(cascPath)
# Read the image
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# Detect faces in the image
faces = faceCascade.detectMultiScal... | [
"noreply@github.com"
] | ashwin-ram03.noreply@github.com |
513feabf45f7c82de26dc86ec05084c5978d6a2f | de0ea892c498a73d7e510d68dc16f674a1a10ca1 | /pg_access_module/main.py | e5516f079762cbb8caa604e9eec094d4fb6610c7 | [] | no_license | prtkmishra/sms_api_gw | 3c65c85f17ce97a7facb8fe93c9ea8dbb0e961b6 | e586d887a4fe1ac0b0e5af5093128c6c9a6804f7 | refs/heads/master | 2022-11-13T04:03:44.579567 | 2020-07-01T09:48:18 | 2020-07-01T09:48:18 | 194,861,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from sql_api import PgSqlAcess as pgaccess
import os
import psycopg2 as pg
connection = pg.connect(user = "doadmin",
password = "xiy137wyu7kydkt0",
host = "db-postgresql-lon1-28344-do-user-1661509-0.db.ondigitalocean.com",
port = "25060",
... | [
"prateek.mishra@aricent.com"
] | prateek.mishra@aricent.com |
52226f4c6f61f355dee6934b2406ab0322259ca7 | 2097ae4e64127989b4a037df7240ff2ac3acd442 | /BilibiliSpider/items.py | 95735c52f12fbc13f588629cf01c7e6d576e575b | [] | no_license | ccf19881030/BilibiliSpider | c10d4f3ecd6142cc112362b28800b2292611926b | 22efc63d3dccc812d89cf9dde5497e7f31a91349 | refs/heads/master | 2020-05-09T12:07:59.557697 | 2018-09-17T04:51:59 | 2018-09-17T04:51:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,292 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst, MapCompose, Join
from BilibiliSpider.utils.metrics import *
class ... | [
"827188553@qq.com"
] | 827188553@qq.com |
bfbd985a9a4874e9a8eb451e8751e8058973157c | b52c4dd14cbd3f5565214852634c6c1843e0511c | /src/libraries/serial_utils/catkin_generated/generate_cached_setup.py | 64147178953762a96805b4c20b094a635af92136 | [] | no_license | BJU-Robot-Team/Bruin-2-Master | 45289bf8571bc3e6c8fed22dffc663b391a3b6e3 | f5cef527441f0e050a858e3de9079c145fbdf9d4 | refs/heads/master | 2021-01-13T17:11:52.845084 | 2018-05-22T20:05:37 | 2018-05-22T20:05:37 | 69,610,756 | 0 | 3 | null | 2018-04-28T21:51:56 | 2016-09-29T21:49:56 | C++ | UTF-8 | Python | false | false | 1,336 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"nathan.woehr@gmail.com"
] | nathan.woehr@gmail.com |
15d0eeb301f64ce987013f5d1fdb52e1b9391506 | d4fd44c566d6c9c697aa05e2e8d5c54612f1d8ce | /Flags.py | 48fa7e74de541cc56b6d3e5c53dc05aacef70c5f | [] | no_license | ReillySam/CodilityChallenges | f163ebcf0be91fae39c057e7fe772087e9553ae5 | 5c26e874e5a99750d85527de50e9e95c2aff5175 | refs/heads/master | 2023-05-03T00:33:12.677832 | 2021-05-26T14:04:25 | 2021-05-26T14:04:25 | 371,054,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | '''
A non-empty array A consisting of N integers is given.
A peak is an array element which is larger than its neighbours. More precisely, it is an index P such that 0 < P < N − 1 and A[P − 1] < A[P] > A[P + 1].
For example, the following array A:
A[0] = 1
A[1] = 5
A[2] = 3
A[3] = 4
A[4] = 3
... | [
"samreilly132@icloud.com"
] | samreilly132@icloud.com |
bc33ed359cb4383a36cb1891b5438d17dbae7915 | e62d08a306bff35d955ad71382c5d5609004564f | /SiAn_House_Price_spider/settings.py | 36b28124f66b57e852e1163aaef61c9309d4f629 | [] | no_license | Cccold/SiAn_House_Price_spider | 030e2c147220904b01c7ca3687d7785177d1dcb0 | 83325f539a7149ead652b5577b9b35cfa5a322af | refs/heads/master | 2022-12-21T09:54:53.897541 | 2020-09-27T10:11:36 | 2020-09-27T10:11:36 | 297,900,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | '''
@Author: MengHan
@Go big or Go home
@Date: 2020-09-25 15:18:17
@LastEditTime: 2020-09-27 16:55:49
'''
# -*- coding: utf-8 -*-
# Scrapy settings for SiAn_House_Price_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the... | [
"menghan426@gmail.com"
] | menghan426@gmail.com |
198758c611b2f754df74f3b1587d1c8ef5e8c7fd | ec1f8cdbf52bcc5516a833e02ac99301a1664ed9 | /wordclasses/wctool.py | 41aa852ee84d3a9b2979e3e11015d5b6c7da6751 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | senarvi/theanolm | 8fe85dcf07358a331807b9002a56b6089d5f0ff3 | 9904faec19ad5718470f21927229aad2656e5686 | refs/heads/master | 2023-06-24T10:39:21.985241 | 2023-06-12T06:55:26 | 2023-06-12T06:55:26 | 42,454,187 | 95 | 37 | Apache-2.0 | 2020-11-05T11:22:31 | 2015-09-14T14:35:54 | Python | UTF-8 | Python | false | false | 6,849 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import argparse
import logging
from time import time
from theanolm.backend import TextFileType
from wordclasses import TheanoBigramOptimizer, NumpyBigramOptimizer
from theanolm.vocabulary import Vocabulary
from theanolm.vocabulary import compute_word_counts, Bi... | [
"seppo.git@marjaniemi.com"
] | seppo.git@marjaniemi.com |
846b82d516567cd220e94d37409b58410512e50e | 2846e9aae639966796395a92bfe8ac06315f22b0 | /leetcode/ino/prob_400/prob_400_nth_digit(2).py | 7f74b0e0dc8cd07d8cb1a46c3033b1ceede09a87 | [] | no_license | sglim/inno-study | 6b8b454da4977be5ffb53d6862f3e8f2177bb077 | 456a3dd62b429037587cd23ed847ac316aa723dd | refs/heads/master | 2020-05-24T07:36:42.717567 | 2017-06-27T02:49:25 | 2017-06-27T02:49:25 | 84,835,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | class Solution(object):
def findNthDigit(self, n):
"""
:type n: int
:rtype: int
"""
if n < 10:
return n
order_idx = 1
temp = n
k = 0
while temp > 0:
k = temp
temp -= order_idx * 9 * 10**(order_idx - 1)
... | [
"inoh.jung@gmail.com"
] | inoh.jung@gmail.com |
98b53161de910a5fc90453333082809fd4754bf4 | 30ceb3f09637a84049b4fe243c636f7a46b2a131 | /ps4/assignment/dist/dnaseq.py | 5fe98ff39bea7e812c41e8763b97884b2dd3a6f7 | [] | no_license | nos111/Introduction-to-algorithms | 618d24c66277f232b4d15df1e6aa1f007bd18427 | a4c682777f742dac645b4be7d6861346f3dbb991 | refs/heads/master | 2021-05-05T05:07:30.264768 | 2018-07-05T16:32:50 | 2018-07-05T16:32:50 | 118,663,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | #!/usr/bin/env python2.7
import unittest
from dnaseqlib import *
### Utility classes ###
# Maps integer keys to a set of arbitrary values.
class Multidict:
# Initializes a new multi-value dictionary, and adds any key-value
# 2-tuples in the iterable sequence pairs to the data structure.
def __init__(self... | [
"nsaffour@gmail.com"
] | nsaffour@gmail.com |
fb0c2d11d83af0b57309fce4015bad6a14379dcb | 0fbb53e340ab54f2f46cb03eee258e853d20d032 | /polls/tests.py | 36e4a59d33582185acb4ac9ff305ae13539e22ff | [
"MIT"
] | permissive | 2martens/PythonDjangoTest | 9e0c7912725ae6b10fc918958be526f3d3ddda2b | 86ae9484c70dcc702e0558b1f7d95733a8ddd4d8 | refs/heads/master | 2021-05-30T11:18:36.636223 | 2016-01-07T11:59:07 | 2016-01-07T11:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,276 | py | import datetime
from django.test import TestCase
from django.utils import timezone
from django.core.urlresolvers import reverse
from .models import Question
def create_question(question_text, days):
"""
Creates a question with the given `question_text` and published the
given number of `days` offset to n... | [
"github@2martens.de"
] | github@2martens.de |
f434fcaa65adeac3b0d231eb8376e416d30d67b4 | ed8fd6ceae73d2df92f034be1526de9585223cef | /溫度轉換器.py | 15532d28a0481a82ddbf7b7312e0b3f41b7ece86 | [] | no_license | da-wei-huang/temperature-adjuster | 9466c5db293e0ef73a5ffc3ad6757e458225eb94 | 8f902be23a285705f3dcdd37bab580e4a36e8aef | refs/heads/master | 2022-04-17T22:37:06.018425 | 2020-04-15T02:10:18 | 2020-04-15T02:10:18 | 255,774,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | c = input('請輸入攝氏溫度')
c = float(c)
f = c * 9 / 5 + 32
print('華氏溫度為: ', f) | [
"dv888000@gmail.com.tw"
] | dv888000@gmail.com.tw |
ee9f2f036105dba96b45d403501a0648783a1e34 | d0babc8ef9e886282a36e3f2c44c4af348303a94 | /asv_bench/benchmarks/benchmarks.py | 56b9f3063603e82ecf7be0700cc917fbb6b1ee94 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wfadam/modin | 211aec9018a308a735c406610c3c15004d44e4a0 | af627dda4b64d2ceba9a354bac5b3e40e24e43bf | refs/heads/master | 2023-02-10T21:13:50.315227 | 2021-01-05T23:29:51 | 2021-01-05T23:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,828 | py | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | [
"noreply@github.com"
] | wfadam.noreply@github.com |
29020421a4c2b3af91c62bc1878cb1167c9e5f2a | 1db383726eaf5b5b5b37895e8dc9865cdde2ea4b | /hw4/src/data_association.py | 64ea762aeb794da3820a52c063f64b234379487d | [] | no_license | awsk1994/Computer_Vision_projects | 8204b358558b7041f36dd90a14e92bcd6ee4eefc | 0a15b57859c4d65dccada789a1108ae310722e94 | refs/heads/master | 2022-06-06T03:47:20.289959 | 2020-05-05T21:10:14 | 2020-05-05T21:10:14 | 242,282,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,494 | py | import math
import numpy as np
import sys
from scipy.optimize import linear_sum_assignment
np.set_printoptions(threshold=sys.maxsize)
class GNNSF:
def __init__(self, cost_method="euclidean"):
self.cost_method = cost_method
def get_edge_cost_matrix(self, object_graph, X_pred, Z, deleted_obj_ids, inv=... | [
"shawn3298317lin@gmail.com"
] | shawn3298317lin@gmail.com |
eadad6267442b3a2c621a8e4605bba7c3a82e856 | fc15b61aff8014b8995f52587f014f6569c9f429 | /1. Two Sum/two_sum.py | d025ece005890226301448605e9d1b9d45583be9 | [] | no_license | sh0aibsha1kh/leetcode-solutions | 9dd0092a8fa9309cdd3591d9e2c2dc36348baf38 | 37f0db42ffdc067f11ae845e5e0341226a213d96 | refs/heads/master | 2020-04-24T21:54:04.881420 | 2019-05-02T03:23:39 | 2019-05-02T03:23:39 | 172,293,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | class Solution:
"""
Given an array of integers, return indices of the two numbers such that
they add up to a specific target.
You may assume that each input would have exactly one solution, and you may
not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
... | [
"shoaibmuhammedshaikh@gmail.com"
] | shoaibmuhammedshaikh@gmail.com |
4d6bf7e4ba66dd0c8829c9fbdf2691c0ea527b7c | 3813fbd97c1bc95f43ec4ac3eaceb272335e4011 | /pyshark_test.py | dfd5d490699a891bca59a081320d799d3be4f0d3 | [] | no_license | monsoonp/pytest02 | 200d7db2c3b7d4452c110398e4728e4b58171201 | fa7c25c9c77766fe04ce394fe4f6a2394e0e3523 | refs/heads/master | 2022-11-13T16:17:29.174342 | 2020-07-10T08:58:27 | 2020-07-10T08:58:27 | 266,921,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | import sys
import os
import pyshark
import json
import time
from datetime import datetime
from contextlib import suppress
import redis
r = redis.Redis(host="localhost", port=6379, db=0)
# value를 배열로 넣어 key가 중복일 시 추가
class Dictlist(dict):
def __setitem__(self, key, value):
try:
self[key]
... | [
"alstn0706@naver.com"
] | alstn0706@naver.com |
47bf83a160bfc51995106dc38a302578407f955b | c31d440a92b33ad49c6da9c2e2646f4796fe1d0c | /oneflow_onnx/x2oneflow/handler.py | a880dd21084c9f6712768918b9f5ac7e3f8b4384 | [] | no_license | jiangjiajun/oneflow_convert_tools | c4ec79fed35f2f4489039b419e0f7d7f0877c467 | 96696edd940d58187573d7531404e6b5054e3d56 | refs/heads/main | 2023-04-15T03:21:23.828413 | 2021-04-16T09:49:24 | 2021-04-16T09:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,967 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"1182563586@qq.com"
] | 1182563586@qq.com |
3154a600e6729fea2e348b3023c8368ddddb449e | e972ebd59711a786780f4178f5b717fe245fd0a3 | /Python/Oct22-3.py | 17094deef5f025aad6d3d3bf236b2b094f093987 | [] | no_license | sai-varshith/make-pull-request | a46ed30803070fc28fd0b70a152779e53f98bcad | 8e1faa342fae423731090d271314cd5b9e23a9db | refs/heads/master | 2023-08-14T11:25:41.460714 | 2021-10-02T05:00:27 | 2021-10-02T05:00:27 | 412,333,564 | 3 | 0 | null | 2021-10-01T05:02:53 | 2021-10-01T05:02:52 | null | UTF-8 | Python | false | false | 458 | py | # String permutations
def toString(List):
return(''.join(List))
# Permutation function
def permute(a, b, c):
if b == c:
print(toString(a)) # print results
else:
for i in range(b, c + 1):
a[b], a[i] = a[i], a[b]
permute(a, b + 1, c)
a[b], a[i] = a[i], a[b... | [
"47290046+SaucyGames05@users.noreply.github.com"
] | 47290046+SaucyGames05@users.noreply.github.com |
660d32641ac4ddc47abfd5ac7ad7e4fbc19dbe6e | c56c7c15e379bd69850e30d3c08a4e1e8c4387eb | /social/views.py | 07873e4e93b271890f8af5c83750ca3ea02fd45a | [] | no_license | Aakashmangla2000/YOLO_SocialMediaSite | a4731b5d78c8350a23e7a863e2968a05d8afb472 | cf8e6e47e09adb9c2bc40c5631e076b05ebe409d | refs/heads/master | 2022-12-17T10:32:24.135360 | 2020-09-22T21:31:46 | 2020-09-22T21:31:46 | 296,597,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,570 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.views.generic import ListView
from django.views.generic.detail import SingleObjectMixin
from django.views import View
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from social impor... | [
"akkibaby90@yahoo.com"
] | akkibaby90@yahoo.com |
2ac68f033b334ba6786a9f248980d1401598617b | a4d359e672eb83c7f0239a565a2d31e748ee50ea | /web/app.py | c511d624e290c567fb8fdb634a9b158a5a9fca60 | [] | no_license | michalbogusz23/PackageEar | 7314676689b230803461e4fef26671a9c401328a | f692a1531d04a0aa0ae12948c1e646d624801703 | refs/heads/master | 2023-02-15T05:18:54.938187 | 2020-11-09T20:11:46 | 2020-11-09T20:11:46 | 307,684,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from flask import Flask, render_template
app = Flask(__name__)
app.debug = False
@app.route('/sender/sign-up')
def signUpUser():
return render_template("register_form.html")
@app.route('/')
def index():
return render_template("index.html")
if __name__ == '__main__':
app.run(host="0.0.0.0", port=5000) | [
"mbogusz998@gmail.com"
] | mbogusz998@gmail.com |
c9b1366c238e8af101572b43b815a8bc78368a46 | c14cb1a662c0b893af5c93effc69e0e0e2c5cdae | /modules/first.py | 3b9bbb71cdbb7bdbc53b3051c09a7c9b43dc64b6 | [] | no_license | ravibv/python_programs | ddd3789d6374b796152489c62dfd4d8f8d04375c | abbab5fbaee20e74959a79c01f2aac34a1ce01a5 | refs/heads/master | 2016-09-09T17:43:18.048704 | 2015-06-09T10:33:34 | 2015-06-09T10:33:34 | 37,111,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/python
from sys import argv
#from simple import print_func
import simple as s
script,name=argv
s.print_func(name)
s.print_foo(name)
| [
"ravi@localhost"
] | ravi@localhost |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.