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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6d33955bebbc64147d3979731aa39d330a4225c | 5b3d819753ad2b2b2ec1e7a47a1e8e15ad9f191d | /src/classifiers.py | 810dfde902fa1f2f5817e3c1fc90df978af8cab2 | [] | no_license | dmelis/interpretwoe | 517d48f959fb1a9a54619c681a4762fc9282f3be | 3debdf583ca2771627d390fec6fcfc1b547d4de0 | refs/heads/master | 2023-08-31T04:45:04.119795 | 2021-10-20T16:01:51 | 2021-10-20T16:01:51 | 144,336,557 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import sklearn.naive_bayes
import sklearn.ensemble
from sklearn.metrics import accuracy_score,precision_score,recall_score,f1_score
import pickle as pkl
def factory(dataset, model_type, load_trained=False):
if not load_trained:
if dataset == 'boston' and model_type == 1:
classifier = sklearn.n... | [
"dalvmel@mit.edu"
] | dalvmel@mit.edu |
49240bb2697840e83be185607f3e0edbe71c7580 | d40343711cd7af3e466d89785cb0f43f687f58d8 | /Leetcode/Minimum_Numbers_of_Function_Calls_to_Make.py | eb8c37f5d941da5ded624f1cb7e34cbe9336ecda | [] | no_license | Ashoksugu7/DSA | d0cd8708afa5f259646a028dc907a673ef694acf | b3963727d0cbc13e9b642e0a1a141d92d2a485df | refs/heads/master | 2023-02-25T20:39:50.458716 | 2021-01-24T18:01:38 | 2021-01-24T18:01:38 | 281,011,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | """
Minimum Numbers of Function Calls to Make Target Array
User Accepted:0
User Tried:0
Total Accepted:0
Total Submissions:0
Difficulty:Medium
Your task is to form an integer array nums from an initial array of zeros arr that is the same size as nums.
Return the minimum number of function calls to make nums from arr... | [
"realsugu@gmail.com"
] | realsugu@gmail.com |
32a3ad79591182c9ba50204847a810b156de646f | 87914d69a6e13f83cae06e96567b5b99499fd407 | /gamse/pipelines/common.py | dce153f4876ac9e00dfa4e8b65babfe1ea17d05f | [
"Apache-2.0"
] | permissive | wangleon/gamse | 10c38c0bbd44c2342e54e789d5eb7568f7c0c920 | eda4c82fc304485b08fdb931b3acdbbb75a67e85 | refs/heads/master | 2023-06-15T23:05:20.990993 | 2023-06-08T02:46:47 | 2023-06-08T02:46:47 | 113,046,520 | 10 | 2 | Apache-2.0 | 2023-06-08T02:46:48 | 2017-12-04T13:32:14 | Python | UTF-8 | Python | false | false | 5,556 | py | import os
import re
import time
import configparser
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as tck
from ..utils.obslog import read_obslog
def load_config(pattern, verbose=True):
"""Load the config file.
Args:
pattern (str):
verbose (bool):
Returns:
... | [
"wang.leon@gmail.com"
] | wang.leon@gmail.com |
162ac1a38bcb646310eea02176cfec098ea658c5 | 31beaa6ffbfa80b1dfcc6e863a127d30366c716d | /online_trajectory_process/scripts/downsampling_interpolation_process.py | e192cc7af9e86ec03fb849e0777ce643de078852 | [] | no_license | ThanasisTs/trajectory_process_utils | 26492b3050839cc4968c413e82ea63acaa2efe18 | 6f7c538f75bfac71f74c2e01afb3b082646b7e07 | refs/heads/master | 2023-03-11T23:14:41.341566 | 2021-03-03T16:18:13 | 2021-03-03T16:18:13 | 258,867,312 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,776 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Point
from geometry_msgs.msg import PointStamped
from keypoint_3d_matching_msgs.msg import Keypoint3d_list
import math
import numpy as np
from scipy.spatial import distance
x, y, z = [], [], []
xRaw, yRaw, zRaw = [], [], []
xV_tmp, yV_tmp, zV_tmp = [], [... | [
"thtsitos@gmail.com"
] | thtsitos@gmail.com |
55bd083fb1dc1c3a0325dd006dbf44eb622be8ef | c6f260cc6aa09647fae97d344a375ddf28bfe839 | /orgs/views.py | 54ea027b0465550810960cc318b238412295de86 | [
"MIT"
] | permissive | jpaav/comm | 573f36bea67297ab0b1d060947d939acede1c894 | 514d62b8c3ed301dee559538825ad8f253e25fc8 | refs/heads/master | 2020-03-19T12:59:48.104353 | 2018-06-28T22:57:42 | 2018-06-28T22:57:42 | 136,554,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,114 | py | from django.contrib.auth.models import User
from django.contrib.sites.shortcuts import get_current_site
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.utils.encoding import force_text, force_bytes
from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
... | [
"joepaavola@gmail.com"
] | joepaavola@gmail.com |
423ad321a753ab4c0c03d697b64e240e9e2d244e | d898284595e462f0f06e9439b9cead382497be06 | /dumpcomputer/demo.py | 527fd50a1a4dbbb231ab0e8072aa15c98bcec766 | [] | no_license | yingjianjian/learner | d41cb2af76b5ab6973b652421c08f831dfa8431f | fc023e0adbabeaff952e521d5e87f46f2e080549 | refs/heads/master | 2020-12-30T10:49:28.197998 | 2017-08-01T03:08:11 | 2017-08-01T03:08:11 | 98,859,630 | 0 | 0 | null | 2017-08-01T03:08:11 | 2017-07-31T07:15:50 | Python | UTF-8 | Python | false | false | 5,209 | py | #!/usr/bin/env python
#1 Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY
#1 Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public L... | [
"root@vm33-ysj.(none)"
] | root@vm33-ysj.(none) |
3c8caf718092e757093f24383c72c9fef8b37672 | 4d1437ba20e513c56aa3fc8b84946f15133370b9 | /src/lcd_maker.py | 6dd5aa6e23b93300dcae7b9b0e73b97fd832114e | [] | no_license | lvlarco/name_sign | ceba9df255915ecf02d53c01015a79a2edfa7eae | 7814d784a06045267b20b66f516938458bd29c56 | refs/heads/master | 2021-06-27T20:12:08.059582 | 2020-10-07T20:18:49 | 2020-10-07T20:18:49 | 166,124,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | import RPi.GPIO as GPIO
import time
from RPLCD.gpio import CharLCD
import requests, json
from pprint import pprint
import harvesine as hv
import fetch_weather as fw
GPIO.setwarnings(False)
#configure LCD and define GPIO mode
cols = 16
rows = 2
gpio_mode = "BOARD"
if gpio_mode == "BOARD":
lcd = CharLCD(pin_rs = 1... | [
"marco.campos001@gmail.com"
] | marco.campos001@gmail.com |
a18e9a1b42952ec22c0953b9bebd3e5d9d1bb746 | cef31bc305699e6f9ac0afc318cf90b26d3f48c8 | /venv/bin/pip3 | 737eff885dfa5acf709874cc64ba6931761bb05d | [] | no_license | nail1021734/apriori_algorithm | 18bd31106b2210af2f180385f4eb74a3476d2457 | 8adbd11ed63ab205efff8ceaa4317184851dc52e | refs/heads/master | 2023-01-04T10:39:51.651370 | 2020-10-24T13:11:05 | 2020-10-24T13:11:05 | 302,863,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/neil/Desktop/aprioi_algorithm/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nail1021734@gmail.com"
] | nail1021734@gmail.com | |
0312f021af7a059e4433dda7db189643c71a65fc | 5d72b2c36e2f5ef5aa53cb017bf93f53164d1cbd | /PCA.py | 4d4bc52f1e3403944fca25fb4f7020545014e2ba | [] | no_license | artvive/Machine-Learning-basics | c87747a55391b263d86e506576b9556da6319a65 | aa808a051232568e97a9060d97964069f4a3c44f | refs/heads/master | 2021-01-11T17:19:45.970747 | 2017-04-22T17:00:04 | 2017-04-22T17:00:04 | 79,749,750 | 0 | 0 | null | 2017-04-22T17:00:05 | 2017-01-22T22:17:39 | Python | UTF-8 | Python | false | false | 476 | py | import numpy as np
from scipy.linalg import eigh
class PCA(object):
"""docstring for PCA"""
def __init__(self, n_components=2):
super(PCA, self).__init__()
self.n_components = n_components
def fit_transform(self, x):
dim = x.shape[1]
x = np.copy(x)
x = x - np.mean... | [
"arthur.vive@student.ecp.fr"
] | arthur.vive@student.ecp.fr |
9a831b0de04f242a14d0827843a05ec645d4709f | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/AdHot/feed_tpl_admin/feedtpladmin/model/applypublish.py | f8438691ee2721113ee4bb79595f504a3ae8cd6a | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from sqlalchemy import Column
from sqlalchemy import types
from sqlalchemy.types import Integer, String
from feedtpladmin.model.meta import Base
from sqlalchemy.sql.expression import text
class ApplyPublish(Base):
__tablename__ = "apply_publish"
apply_id = Column(Integer, primary_key=True)
stype_id = Column(In... | [
"liyong19861014@gmail.com"
] | liyong19861014@gmail.com |
b3eef9bf297a294647d6016f103c422c4600ba40 | 07dfe52200c70ac0c8e86da1344a1e3284bf2164 | /animeScript.py | 939612ec3380e47e8480546fbc5f7b86cbf8a331 | [] | no_license | kearnie/horriblesubs_book | 934d7f3b6a31103f0f3496a09d88bbad2c00a347 | b565649066b6a683321f907a0ae32034217667f9 | refs/heads/master | 2021-06-10T05:12:50.560320 | 2017-02-14T11:03:30 | 2017-02-14T11:03:30 | 72,269,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | import subprocess
import shutil
import shlex
import re
import ass
import os
def takeSnapshots(fileName,ep):
amountPerEp = 10
episodeTime = 20*60
ignoreTime = 60*3
interval = int((episodeTime - 2*ignoreTime)/amountPerEp - 0.01)
base = "kearnie/screencaps/"
extractTimes = [i for i in range(ignore... | [
"Kearnie Lin"
] | Kearnie Lin |
7d5200dc07c4ab8e35337e63713f0a2e2b852c85 | 8778a5a8188e238d83264b65d04ec727147d9440 | /auto_log/autolog.py | a31c30c25e94b080339d3c891cccb1f33e7e61b0 | [] | no_license | RainFrost1/AutoLog | 21bcb2e0a6b5e08225fd095f55c9d5986b12c65f | a1d1cf9b0e519601a48d047218c7a34525989fef | refs/heads/main | 2023-06-20T08:57:51.051738 | 2021-07-20T03:30:40 | 2021-07-20T03:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,674 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"liuvv0203@outlook.com"
] | liuvv0203@outlook.com |
9dc7b3340119e22850b84c68782778ccc8616e18 | b6302c926fbcd65cd7300aca7af5ae6e05aee8dc | /02_reto_programas_ramificados.py | 604be5301a9b7e11f2aae64719728f69f810751e | [] | no_license | danhiel98/pensamento-computacional-python | 0efc899ebc1abbf56f5dbbb794d254449adc4a83 | 1f2b9209a768738f90826372db595bb7f619af31 | refs/heads/master | 2022-12-21T15:35:30.388084 | 2020-09-23T19:47:35 | 2020-09-23T19:47:35 | 298,077,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | nombre1 = input('Introduzca el nombre del primer usuario: ')
edad1 = int(input('Introduzca la edad del primer usuario: '))
nombre2 = input('Introduzca el nombre del segundo usuario: ')
edad2 = int(input('Introduzca la edad del segundo usuario: '))
if edad1 > edad2:
print(f'La edad de {nombre1} es mayor que la de ... | [
"danhiel.garcia98@gmail.com"
] | danhiel.garcia98@gmail.com |
13f183ad4d985b6f8f788da3e3cdd36f339659ea | e730d4ca31ab039ba1b6cef12feba7fee2b47415 | /src/old/multimodal_code/train_tfidf.py | 420d8c58c13e0679ddd3195bee514dad7d468fc3 | [
"Apache-2.0"
] | permissive | trungnt13/digisami_journal | f1f49ffbdba17cd864c4cf9fe32eb238db2924e5 | 671486d0fe7b65cad80daf8e8b96d475245c5fed | refs/heads/master | 2021-03-24T12:14:20.139103 | 2018-11-17T18:09:49 | 2018-11-17T18:09:49 | 97,585,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | from __future__ import print_function, division, absolute_import
from odin.utils import ArgController, stdio, get_logpath, get_modelpath
args = ArgController(
).add('-ds', 'sami, estonia, finnish', 'estonia'
# for training
).add('-bs', 'batch size', 8
).add('-lr', 'learning rate', 0.0001
).add('-epoch', 'number of epo... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
bc817a1f834cee5b11559787a13f9d98dbbc6e45 | 6dcb820a5bb558e794eede6c74c7bf0a92170a6b | /Player/astar.py | 478bc76c7d82e92961b41d7ee0ff4fc5a925d43b | [
"MIT"
] | permissive | xenofyxus/bc18-scaffold | d69644ffc2bdeeb11cd2e9f547551978f449de19 | 21cb58d470908aa739ff802f828dbb1ee9e0d3dc | refs/heads/master | 2020-05-14T06:04:32.903759 | 2019-04-24T23:23:02 | 2019-04-24T23:23:02 | 181,704,175 | 0 | 0 | null | 2019-04-16T14:18:38 | 2019-04-16T14:18:37 | null | UTF-8 | Python | false | false | 3,197 | py | import battlecode as bc
import sys
import math
directions = [dir for dir in bc.Direction if dir is not bc.Direction.Center]
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
... | [
"alex.lindstrom92@hotmail.com"
] | alex.lindstrom92@hotmail.com |
aad379ec45612f9fc3a2c8c9759a8ae8f9c97972 | a23d09676dcd3af65793ba1b71213e47f4bc06d7 | /start.py | 9a751701c32ce887ad946177dc7b74dbadcf27c5 | [] | no_license | macnaer/YoutubeDownloader | 913d36cb5bd10825c55b999403fdc76aa577b50f | 417cc5dc1c0fe3b88e9f460b9eb3226edf03381c | refs/heads/master | 2020-12-23T20:26:29.627077 | 2020-02-02T20:30:49 | 2020-02-02T20:30:49 | 237,264,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from lib.YouDownloader import start
start()
| [
"master@rivne.itstep.org"
] | master@rivne.itstep.org |
a80686c1c0e866961160612e3415c4ec00d47d91 | 98c441f8e676690ff5edab22441bdca485e95b5d | /thesis/code/numpy_dace/scipy_dace.py | 99dda541a9cf492e008ade2637601f21caba0875 | [] | no_license | drewblount/2014-2015 | 096cc62c162340b7e48a2405d4c9d1493ab09901 | 64b04a9b3e1b3e138e6589efa99f6129393004ad | refs/heads/master | 2016-09-06T03:14:17.005613 | 2015-04-30T16:35:24 | 2015-04-30T16:35:24 | 24,079,375 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,859 | py | ## This is a copy of dace.py, but using scipy.linalg instead
## of numpy.matrix. Two reasons for the switch: scipy alwaY
## uses BLAS, numpy not alwaY, and scipy.linalg makes classes
## less ambiguous
## see: http://docs.scipy.org/doc/scipy-0.14.0/reference/tutorial/linalg.html
## The goal of this file is to build a ... | [
"dblount@reed.edu"
] | dblount@reed.edu |
10218606bc41a31bc1a6be5c657e397952013755 | 7608a4c0e2252f53aa632e89b9dcab94ad195391 | /crop/forms.py | 43761cc37f1bf266d84a48af2f19d527217c209c | [] | no_license | gokulacko/agri | 505369099aab4098e8adcfee3ec2d9708be59d4e | 604bde1f3583456fcd6a1d83122e77cd688a9cad | refs/heads/master | 2020-04-30T16:29:14.225155 | 2019-04-03T13:53:17 | 2019-04-03T13:53:17 | 176,949,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,781 | py | import crop.models as m
from django import forms
from django.forms import widgets
class LandForm(forms.ModelForm):
water = forms.CharField(widget=forms.TextInput(attrs={'class': 'water', 'placeholder':'Water(Rate 0 to 10)'}))
avg_temp = forms.CharField(widget=forms.TextInput(attrs={'class': 'avg_temp', 'placeholder... | [
"gokulakrishna@admins-MacBook-Pro-6.local"
] | gokulakrishna@admins-MacBook-Pro-6.local |
859f09c0d3a81ea9d6185389e14eba77f8111778 | 31780af7a5558523def1aae5f25df3e0b084be9b | /Ex8.py | 83c3f99e15c117b70d491154a61cb1d530c30620 | [] | no_license | sevilaybayatli/PYTHS19 | 1796615ff939f2e98ce657feeaa3efd47a2e66c6 | ae0607e215a0d8205475d124c0362c39881e5eda | refs/heads/master | 2020-07-23T16:12:17.922548 | 2020-03-23T22:03:00 | 2020-03-23T22:03:00 | 207,624,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #Exercise Question 8: Find all occurrences of “USA” in given string ignoring the case
#input_str = "Welcome to USA. usa awesome, isn't it?"
#The USA count is: 2
import sys
inputStr= "Welcome to USA USA. usa usa awesome, isn't it?"
words=inputStr.split()
count=0
for string in words:
if(string=='usa'):
count+... | [
"sevilaybayatli@gmail.com"
] | sevilaybayatli@gmail.com |
792c101ee370e6e54da0bf9882f8979fe03c7a1f | 113c576d565bb22da1c7d9b6a7e2d2ae41040d0c | /wsgi_dashboard.py | 80e29ee034bf777f843654367e99643e90052c21 | [] | no_license | kaiXlee/itinerum-dashboard-api | e250d6cd730b2603fffe7110858867fd223d0d7f | 9501f6ecf3b65558bb27df336c1f26e0e8e6a13e | refs/heads/master | 2023-02-21T09:29:24.411765 | 2021-01-18T13:43:56 | 2021-01-18T13:43:56 | 330,678,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/env python
# Kyle Fitzsimmons, 2016
'''WSGI entry script for allowing API to be managed by gunicorn'''
from dashboard.server import create_app
application = app = create_app()
if __name__ == "__main__":
if app.config.get('CONF') in ['development', 'testing']:
app.run(host=app.config['APP_HOST'... | [
"kyle96921@hotmail.com"
] | kyle96921@hotmail.com |
559458267e3ecc40de1fd72a828827e2bf280126 | 04be75e9d1cca617216f0323e0521e83132f5a1d | /ex16_read.py | f989e948b3fedf5c22438376faccc763b06ca370 | [] | no_license | musalappa/python_exercises | 38d1c791b668028d8a73fdebbd5332267999f30a | 459c01547c962404785296d2cb8d75e7344454a8 | refs/heads/master | 2016-09-13T16:30:34.512697 | 2016-04-29T05:27:55 | 2016-04-29T05:27:55 | 57,356,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from sys import argv
script, filename = argv
file = open(filename, 'r')
line1 = file.readline()
print line1
line2 = file.readline()
print line2
line3 = file.readline()
print line3
file.close()
| [
"sai@localhost.localdomain"
] | sai@localhost.localdomain |
7e480e4dc6bdcdfadec1cb67702ec7c01682db41 | 0e8bca906671e3f00e7053ace4caedac4ac5170d | /server/routes.py | ac250bb43a5b53d9b773f4ba65c5e248bc6b2f3b | [
"MIT"
] | permissive | akatama-ai/exp | f1be5439319fc54d0d41507f4cfca707a9d8a941 | 3853e1731621069c4e68c56830712e2a565c7381 | refs/heads/master | 2022-12-25T22:26:07.120431 | 2020-10-13T15:17:50 | 2020-10-13T15:17:50 | 303,739,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from flask import jsonify, render_template
from server import stats
from server import utils
def init(app):
@app.route("/stats")
def app_stats():
return jsonify(stats.info())
@app.route("/")
def frontend():
return render_template("index.html")
@app.route("/explorer")
def explor... | [
"support@quantex.live"
] | support@quantex.live |
d0048b864ae3aa6a2d0bcf6304faa67c5134e843 | 5e90faf04599d8ed1d051c7bbfe60da7b97ec465 | /aprior/ap_exec.py | a9ebbba42b85e6d1397f5d9c727628b12493656f | [] | no_license | sc1000y/dataminingLearn | beb2dbe225d35098e802a42f95ec5916b9880d17 | 078243a877ff4860be5f7c60781ff9b98e1ad6c1 | refs/heads/master | 2021-05-07T07:23:23.940589 | 2017-11-01T11:33:57 | 2017-11-01T11:33:57 | 109,125,296 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | # -*- coding:utf-8 -*-
import sys
import IDBKit
def getDataSet():
db=IDBKit.IDBKit();
RAWNAME=["BREAD","BUTTER","NOODLE","CHIP","COKE"]
sql="select "+",".join(RAWNAME)+" from DM_EXEC1";
list=db.find(sql)
return list,RAWNAME
def createC1( dataSet ):
'''''
构建初始候选项集的列表,即所有候选项集只包含一个元素, ... | [
"sc1000y@qq.com"
] | sc1000y@qq.com |
f8a59288deec752423b2c72090556006824d29a1 | 639b7ed3b8632bf5fa33329d2250587cfaad0c49 | /bin/smartserver/smartserver.py | 0b83a17d7267aa79a3fdf44bd4972fe3e3807565 | [
"BSD-3-Clause"
] | permissive | martiancrow/x12_engine | 597597b5d880594ca4dd19e1d2bc8b265183bb26 | b68d636880f07b65b2224eeebb2300d67a1f8c4b | refs/heads/master | 2021-01-01T19:26:58.017351 | 2017-07-31T17:20:08 | 2017-07-31T17:20:08 | 98,589,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
Filename : hello.py
author : Crow
creat time: 2017-06-03
updata time: 2017-06-03
'''
import sys
import datetime
#sys.path.append('/Volumes/DATA/virtualboxHost/ubuntu16.04_64/x12_engine/bin')
sys.path.append('./bin')
import x12_python
def smartserverinit():
#pr... | [
"xiaolongliu@xiaolonutekiMBP.lan"
] | xiaolongliu@xiaolonutekiMBP.lan |
2a8492f318cc40ad1d0a3b439477ef6a062477ff | de706b4cd4c02ec71486fbd4a262aacf337e7a8c | /lesson_2/hw02.py | 080ce0d466165b748b5c8c7f9cbfb6e621884b36 | [] | no_license | DuDaria/Homework_backend | c896a30af4db9c0e118f230b5f01c351d68ff695 | fa9e06e79c7b61896e53417e8b91fd69e87d6061 | refs/heads/master | 2023-03-19T17:39:56.364082 | 2021-03-11T21:53:39 | 2021-03-11T21:53:39 | 319,733,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py |
__author__ = 'Дю Д.Н.'
# Задача-1: Запросите у пользователя его возраст.
# Если ему есть 18 лет, выведите: "Доступ разрешен",
# иначе "Извините, пользоваться данным ресурсом можно только с 18 лет"
age = int(input("Привет, Сколько Вам лет: "))
if age >= 18:
print ("Доступ разрешен!")
else:
print("Извините, пользо... | [
"60156592+DuDaria@users.noreply.github.com"
] | 60156592+DuDaria@users.noreply.github.com |
25475c8cd28fea1964462e2f3074d5c639fc00c0 | 9eb5c0e840d91b0752eadc3ca212886bd983619f | /andrewvoss.org/downloads/RoboPiLib.py | 6e88efca825e081fd09eff77a63903724974844e | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | avoss19/Server | f5437a76a3ddbd029cd89ca512e97828f4458ebb | 3e49ff2be6000d4488259d048f685aa24bb9b2bb | refs/heads/master | 2021-05-06T20:39:21.205688 | 2018-04-09T03:54:12 | 2018-04-09T03:54:12 | 112,486,369 | 0 | 0 | MIT | 2017-12-11T04:28:08 | 2017-11-29T14:35:37 | CSS | UTF-8 | Python | false | false | 8,406 | py | #*****************************************************************************
#
# RoboPyLib_v0_98.py
#
# Copyright 2016 William Henning
#
# http://Mikronauts.com
#
# April 27, 2016: Initial Release
# May 20, 2016: First "Real" Release
# June 21, 2016: updated pulseGen
# March 3, 2017: added pwmWrite(pin,pulse,period)
... | [
"voss1167@gmail.com"
] | voss1167@gmail.com |
dc0b3e92359841527eb725eab414c555165243b7 | acecbde132f01594ba5917073f4e5c2e9c14baef | /basedata.py | 5ed4918d12c683092ecf87eab65d57ef50c5adc9 | [] | no_license | Fandref/encyclopedia_api | f4f1dd1eebe92c3947183059166099cc896128f2 | f848ec4ab616e6ef85bed73da14a461bdcb873da | refs/heads/master | 2021-06-13T04:40:16.358545 | 2020-04-09T16:32:05 | 2020-04-09T16:32:05 | 254,424,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,885 | py | import psycopg2
# from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
conn = psycopg2.connect(dbname = 'encyclopedia', user='postgres',
password='', host='127.0.0.1')
cursor = conn.cursor()
# cursor.execute('CREATE DATABASE encyclopedia')
cursor.execute('CREATE table IF NOT EXISTS worl... | [
"fazanwin@gmail.com"
] | fazanwin@gmail.com |
78a5a63f542ae9feddb4fac15b4b7755a0acc35a | 4e28bca1ee83f734698d1fe39a0bc976b090f3d6 | /Pyiiko/__init__.py | 86fe9e233fccd5ef20261a5ee82437045ed27c56 | [
"Apache-2.0"
] | permissive | rnd137/pyiiko | e3a4ad6b8d60781abf977b291542d3bf11adec8a | a702858c2ee597cbcc32317f45c2a79ec6c19035 | refs/heads/master | 2020-04-17T04:13:59.702107 | 2018-12-24T18:28:15 | 2018-12-24T18:28:15 | 166,220,810 | 1 | 0 | Apache-2.0 | 2019-01-17T12:17:58 | 2019-01-17T12:17:58 | null | UTF-8 | Python | false | false | 132 | py | __version__ = '0.2.1'
from Pyiiko.server import *
from Pyiiko.biz import *
from Pyiiko.card5 import *
from Pyiiko.frontWeb import *
| [
"gadzhi@yandex.ru"
] | gadzhi@yandex.ru |
4c0874ae8e3969c644c69f902e55c0eb10c0ee8a | 51a48244d08b63501130b8c7091aa66587ac1413 | /parse_data.py | 60e1be0c7fbc2e9d94497672ed148eadcaa6e06e | [] | no_license | amlight/events_visualizer | cfd0233ebda2e544b2c74707899a78c0e8b021e3 | 9fcbbac185939dbd3bb2f97f9d20fca9ac08495a | refs/heads/main | 2023-04-18T14:47:41.338862 | 2021-04-23T22:15:32 | 2021-04-23T22:15:32 | 357,566,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | import pandas as pd
# parse_data takes the data.csv and dictionary.txt files and creates a dataframe displaying the counts
# of flap events for each link.
# custom split function for get_dictionary
def split(line, sep, pos):
line = line.split(sep)
return sep.join(line[:pos]), sep.join(line[pos:])
def get_d... | [
"33048372+mjt98@users.noreply.github.com"
] | 33048372+mjt98@users.noreply.github.com |
b5267886e52d4f26f06f7b57765cf73595a070da | 2254e3c5e17955d654994d388a5babe20eab2516 | /api/loadenv.py | ac4226a590f228155b4bdb7de3c96b9ab7f41e43 | [] | no_license | webclinic017/bauskslashtrader-monorepo | 5069b001e214198e62c99c588db91f7707753de4 | 0a42d0eed4fb90bbf3178caac3ff00f16d0f0d5b | refs/heads/master | 2023-07-12T18:25:21.505747 | 2020-07-25T00:49:24 | 2020-07-25T00:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from dotenv import load_dotenv
from pathlib import Path
import os
# Set home directory
project_dir = Path(__file__).parent
os.chdir(project_dir)
# Load development vars
env_path = Path('.') / '.env'
load_dotenv(dotenv_path=env_path)
| [
"bauskas@gmail.com"
] | bauskas@gmail.com |
3c02dfa0a6825a233462d9bf9303390430c747a0 | f529b5f3de211ecde43d094e85a062acfa612840 | /framework/__init__.py | 0e34f418c834cb5d3f20facf60ae96e1b5b625be | [] | no_license | ashwins-code/neural-network-library | 251453444d9391b2a285db01a13a186464ca87bb | 85ca9a6399fa281dd091907835efb2a253f67f01 | refs/heads/master | 2023-01-03T00:22:26.309362 | 2020-10-31T19:08:24 | 2020-10-31T19:08:24 | 308,945,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | from .tensor import * | [
"ashwinbose6@gmail.com"
] | ashwinbose6@gmail.com |
94b849b44b714027b0e55f0fb64ab69f8c31279a | 11730493cfd1aa88610894809a0b71128bae2c0f | /src/python_utilities/src/python_utilities/light_status.py | 0566e61b597c7005fab32b56c71b6ceacc619dc8 | [] | no_license | Pencilvesterr/ros_robot_controller | dc0edb6a5a5f500599663cc72e6f897ad070fd1c | bd2a817452300f9cb3105f0a62415326fde3e7f2 | refs/heads/master | 2023-08-31T08:45:52.896557 | 2021-10-08T03:25:35 | 2021-10-08T03:25:35 | 407,418,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from enum import Enum
class LightStatus(Enum):
unselected = 0
red = 1
yellow = 2 | [
"m8crouch@gmail.com"
] | m8crouch@gmail.com |
a2fc6b67823b389fa5e113148a4c74bb481da9c5 | 142d2fc8080203174567a2ecb270f9ed2064e006 | /08_list_manipulation/list_manipulation.py | 1a485a1adddbc5d162359a2d7b8c17a3d616e111 | [] | no_license | bricruz/pythonpractice | e917b687063c2c5848e5d0c2e306578265a443b7 | c05a85956ac7db7cf3e5d8838ae3769b50ff4621 | refs/heads/main | 2023-09-02T22:51:01.816662 | 2021-11-18T03:36:24 | 2021-11-18T03:36:24 | 428,284,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | def list_manipulation(lst, command, location, value=None):
"""Mutate lst to add/remove from beginning or end.
- lst: list of values
- command: command, either "remove" or "add"
- location: location to remove/add, either "beginning" or "end"
- value: when adding, value to add
remove: remove ite... | [
"cruz.b.james@gmail.com"
] | cruz.b.james@gmail.com |
103f7be254649415a24450fe958b3718c8e1c050 | 95e3fb7930365261e0fe4055dacac47b5330b4aa | /src/predectorutils/analyses/tmbed.py | b71ee4f67e427c39231ddd2486990ca5b52e9fd7 | [
"Apache-2.0"
] | permissive | ccdmb/predector-utils | 66af68fd07fa17556cbb9149d0be6b7eabf247cd | b394f101019151f07bf56242158c9e1345172c6c | refs/heads/master | 2023-06-23T13:13:12.854325 | 2023-06-14T12:28:13 | 2023-06-14T12:28:13 | 237,380,937 | 0 | 0 | null | 2020-01-31T07:29:09 | 2020-01-31T07:27:52 | Python | UTF-8 | Python | false | false | 4,821 | py | #!/usr/bin/env python3
from typing import TypeVar
from typing import TextIO
from collections.abc import Iterator, Sequence
from ..gff import (
GFFRecord,
Strand
)
from ..parsers import (
FieldParseError,
BlockParseError,
parse_field,
raise_it,
parse_str,
parse_sequence,
)
from .base ... | [
"darcy.ab.jones@gmail.com"
] | darcy.ab.jones@gmail.com |
8129e2a0cd766c799cb6243ba4faa2d109475333 | c9eda3c0342d8cf51ecddcceba555f3556af5ee5 | /slicer_gui.py | ec838d9798b5ca7c6fd246cdceb9ff84472986b4 | [] | no_license | nerginer/3dlp-host-software | 4b5c9902fa16059127ad6cef8db7ad84c75cf8f0 | 32c957989baef9a2a92d31b73891b0eeee37cfb2 | refs/heads/master | 2021-01-10T18:33:36.498509 | 2013-07-06T00:20:09 | 2013-07-06T00:20:09 | 40,202,402 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,240 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '3dlp_slicer.ui'
#
# Created: Sat Jun 01 20:47:44 2013
# by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf... | [
"oswaldonfire@4cfbdd0b-1efc-a790-3b7a-4779d8d2eca3"
] | oswaldonfire@4cfbdd0b-1efc-a790-3b7a-4779d8d2eca3 |
993fae64ed448bd384cd9874345f1c6c7a511337 | 2f3d66965dbec4021c3819dce093a8b40724af33 | /mirage/libs/zigbee_utils/encoders.py | 81e74803e0c94aed5ca55b2bc7c77a345f2d0585 | [
"MIT"
] | permissive | RCayre/mirage | 92bfa2c2822c06238976dbba6df993b10f2dc25d | f73f6c4442e4bfd239eb5caf5e1283c125d37db9 | refs/heads/master | 2023-02-04T06:23:05.985200 | 2022-11-24T19:16:53 | 2022-11-24T19:16:53 | 203,883,338 | 199 | 35 | MIT | 2023-01-26T03:06:32 | 2019-08-22T22:36:00 | Python | UTF-8 | Python | false | false | 684 | py | from mirage.libs.common.sdr.encoders import SDREncoder
from mirage.libs.zigbee_utils.chip_tables import *
class ZigbeeEncoder(SDREncoder):
'''
Software Defined Radio encoder for Zigbee protocol.
'''
def _getChips(self,bits):
for i in SYMBOL_TO_CHIP_MAPPING:
if bits == i["symbols"]:
return i["chip_values"... | [
"rcayre@laas.fr"
] | rcayre@laas.fr |
4b50f06cfdc691ef3c0d26607ce65b2d26a4dfe8 | 2bb04faa91f1bd6dbda1c5fa1d77963456a89f85 | /nombres/settings.py | 2bfd2678c65335221b9c156ec22c65cb8c1cab97 | [] | no_license | jevelezse/blog | 8d8a0a771431487b5648ad74d5e7a5af134ebd24 | 607522200b59f48793e2d6b7c2a6141f3e7eb3b7 | refs/heads/master | 2021-01-22T06:23:17.295328 | 2017-02-12T23:05:28 | 2017-02-12T23:05:28 | 81,754,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | """
Django settings for nombres project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"jevelezse@unal.edu.co"
] | jevelezse@unal.edu.co |
f679afceadef48ea4dfbb7be731d33ebf7c0048d | a61819ed872820725e6266faa4ebe5a9791dbe7d | /listogram.py | fb6607f28add7096fd7aeaa81baf20fb020388e4 | [] | no_license | NinjaAung/Tweeter-Gen | 4ee2387956154e414c325da93b2282b7b945918d | 0912acb08aaeecdf6f51cbd168feb5375eaccbe8 | refs/heads/master | 2021-07-12T09:51:31.643775 | 2020-03-05T17:46:53 | 2020-03-05T17:46:53 | 238,708,413 | 0 | 0 | null | 2021-03-20T02:58:21 | 2020-02-06T14:33:59 | Python | UTF-8 | Python | false | false | 5,079 | py | from __future__ import division, print_function # Python 2 and 3 compatibility
import random
class Listogram(list):
"""Listogram is a histogram implemented as a subclass of the list type."""
def __init__(self, word_list=None):
"""Initialize this histogram as a new list and count given words."""
... | [
"ninja.aung02@gmail.com"
] | ninja.aung02@gmail.com |
ca58378ef29f0e1780b97d43010cb3a9819c329d | 8fba37f0b439c26d61673a01d5aae8c27384b0a6 | /Final/pathfinding.py | 665c3a2e18da775a5a9c0a712fd6222bf65080b8 | [] | no_license | jlicht27/cmps1500 | c0ecc531d63e7c2a029c304b0ded73c739cc2f2c | 7ec5ee445e913729eacf7d1554c4de4443fb6751 | refs/heads/master | 2023-02-09T20:17:59.097041 | 2021-01-05T19:41:07 | 2021-01-05T19:41:07 | 327,102,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py |
grid = {'a': ['b', 'f'],
'b': ['a', 'c', 'g'],
'c': ['b', 'd'],
'd': ['c', 'e'],
'e': ['d'],
'f': ['a', 'g', 'h'],
'g': ['b', 'f', 'i'],
'h': ['f', 'i'],
'i': ['g', 'h', 'j'],
'j': ['i', 'k'],
'k': ['j', 'l', 'm'],
'l': ['k', 'n']... | [
"jlicht@Jonathans-MBP-2.fios-router.home"
] | jlicht@Jonathans-MBP-2.fios-router.home |
21adb5fe26148007f1bdf9ddd5b7e1ea8a60d049 | 050bd514f7878190a61878d319e7bb6d44799f39 | /app/shop/api_views.py | c48521c4748dc3fc7f6b7b574a51288eba142343 | [] | no_license | MikhailoVL/api_automation | a29cbcff3d1c3ef4c559d6ebbd1f63a6387b2c0f | bcfba9855c1106602edd90631d6d7c6073881227 | refs/heads/main | 2023-03-14T09:49:47.930090 | 2021-03-03T08:43:55 | 2021-03-03T08:43:55 | 342,175,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | from rest_framework.generics import ListAPIView, CreateAPIView,\
UpdateAPIView, RetrieveAPIView
from .serializers import OrderSerializer, ScoreSerializer
from .models import Order, Score
from .permissions import HasGroupPermission
from .util_s_filter import DateRangeFilter
from django_filters import rest_framework ... | [
"mykhailo.liutyi@introlab-systems.com"
] | mykhailo.liutyi@introlab-systems.com |
7a43ee47815996296f8211326aaaa908d8cd4e74 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nndefunct.py | a6668d2bbc5efa937e3a225b5521fa0fc1b30293 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 232 | py | ii = [('SadlMLP.py', 1), ('PettTHE.py', 8), ('CarlTFR.py', 5), ('CookGHP2.py', 1), ('ClarGE.py', 1), ('MedwTAI.py', 1), ('WadeJEB.py', 2), ('KirbWPW2.py', 1), ('SoutRD.py', 1), ('JacoWHI.py', 1), ('DibdTRL.py', 2), ('TaylIF.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
76f9aab1e2a377a6f833911580d749f2a1040ff4 | 9b40158304af99888bb473814151bacf8873c8b5 | /lists/views.py | 846475ffbc67bf27a1ae84accafd681d2fd2f26f | [] | no_license | bjweiqm/ddtt | 0503f16b5982f7d9fea5358ceecad85427f5d705 | 3fac475230da4e1a01d6ed60ba4736e7b9b6079d | refs/heads/master | 2016-08-11T21:08:18.438065 | 2016-02-24T10:30:21 | 2016-02-24T10:30:21 | 52,411,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #! /usr/bin/env python3
#encoding:utf-8
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
#在这儿编写视图
def home_page(request):
return render(request, 'home.html')
| [
"weimegn@126.com"
] | weimegn@126.com |
f2dc4a4849474e33b6122176af5ac9b4ec1419f3 | 7328d5cdad3a201953c750aaa04f6c197e9eb858 | /apps/result/views.py | 42a320a488ad6e199b6210e822d71d11f9464235 | [] | no_license | asfaqahmed/School-management-system-Django | 9a2bbae13fbbaa6333dde0a166e7501d488f84c1 | 56f8c419c8c41b8c73f660ccd5ce0185e00a5894 | refs/heads/main | 2023-08-23T02:12:59.912450 | 2021-10-13T16:52:23 | 2021-10-13T16:52:23 | 416,824,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render
from django.views.generic import DetailView, ListView, View
from apps.students.models import Student
from .forms import ... | [
"asfaqahmed356@gmail.com"
] | asfaqahmed356@gmail.com |
f44596aea4d37e1378e087af1f88953f0c088cf2 | 54d8a05e0238e96eb43e4893bacba024e490bf11 | /python-projects/algo_and_ds/task_scheduler_leetcode621.py | 4aeb5a5c1e5db5792764f6e1ed7d8104f82af46e | [] | no_license | infinite-Joy/programming-languages | 6ce05aa03afd7edeb0847c2cc952af72ad2db21e | 0dd3fdb679a0052d6d274d19040eadd06ae69cf6 | refs/heads/master | 2023-05-29T10:34:44.075626 | 2022-07-18T13:53:02 | 2022-07-18T13:53:02 | 30,753,185 | 3 | 5 | null | 2023-05-22T21:54:46 | 2015-02-13T11:14:25 | Jupyter Notebook | UTF-8 | Python | false | false | 2,126 | py | """
# TODO this is not working
task scheduler
leetcode 621
Input: tasks = ["A","A","A","B","B","B"], n = 2
Output: 8
Explanation:
A -> B -> idle -> A -> B -> idle -> A -> B
There is at least 2 units of time between any two same tasks.
we can try this using a max heap
[(3, 0, a), (3, 0, b)]
a=0, b=0
i = 0 so a an... | [
"joydeepubuntu@gmail.com"
] | joydeepubuntu@gmail.com |
3a6a5df5f8a628756abc9856951e29d2fcb67018 | ebc31d1c4ef8d1a28688a3822353d0312f7805a6 | /entree/host/profiles/admin.py | da5b4f67ccd86b0e08491bc57590270d8c3fb27b | [] | no_license | yedpodtrzitko/django-entree | 4cf63232a9c3a975e8a682bb3e7250d6bb543166 | 7bca1bd13dc29a0310b2047f3d9095c7b35e6947 | refs/heads/master | 2021-01-04T14:07:25.874683 | 2013-07-04T23:17:05 | 2013-07-04T23:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | from cache_tools.utils import get_cached_object
from django.conf import settings
from django.contrib import admin
from django.forms import BaseInlineFormSet
from django.utils.translation import ugettext_lazy as _
from entree.host.models import EntreeSite
from entree.host.profiles.models import SiteProperty
class Re... | [
"yed@vanyli.net"
] | yed@vanyli.net |
c1a2bb3a2f2d23bb9480bbc734db437ea0e088b0 | 53c3f5e9bbaa52b80b2644a04e3ff336218ab4e8 | /Year 2/Saul Burgess/Labs/2020-10-01/Lab6(3-B).py | 089f8aabc4dac642caaf69010ddb640c39d3ef4e | [] | no_license | DT211C-2019/programming | 085011a709e0f8729df8184c3b71c82d06723398 | dd15978e7b8059834e5a11f7036cb380ed52b202 | refs/heads/master | 2021-06-23T17:41:59.463000 | 2021-05-05T00:04:50 | 2021-05-05T00:04:50 | 216,625,686 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | for i in range(1, 10):
for j in range(1, 10):
print(i, "Multiplied by", j, "is", (i*j)) | [
"C19349793@mytudublin.ie"
] | C19349793@mytudublin.ie |
ea2335cf507636acb309773f21249b1500c086a9 | f3ac41b803545a7a272afaf25ed173598ce5b3bc | /aggressive_pipe_test.py | db766c521fc36c589272a9d36b13dffcab6f39b5 | [] | no_license | rynstewart/ECE_P4_Advanced_MIPS_Sim | 4ec83eab3c19dbd504d1137d4e8a51d05ba6db9c | 72f4cddc69d76b6075ac55045f659da97143a421 | refs/heads/master | 2020-09-16T14:05:04.161919 | 2019-12-09T03:50:01 | 2019-12-09T03:50:01 | 223,792,445 | 0 | 0 | null | 2019-12-09T03:50:02 | 2019-11-24T18:43:10 | Python | UTF-8 | Python | false | false | 35,540 | py |
import time
class Statistics_Pipeine:
def __init__(self, debugMode):
self.I= "" #current instruction being executed
self.name = "" # name of the instruction
self.cycle = 0 # Total cycles in simulation
self.NOPcount = 0 #keeps track o... | [
"rynstewart10@gmail.com"
] | rynstewart10@gmail.com |
688973944544c6f2ad0c18a1f82d05ccfc259f1a | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/battle_control/dynsquadviewlistener.py | 46819f433e680bed108cdf012b7912d40ccedadf | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | # Embedded file name: scripts/client/gui/battle_control/DynSquadViewListener.py
import BigWorld
from constants import INVITATION_TYPE
from gui.battle_control import g_sessionProvider
from gui.battle_control.requests.context import SendInvitesCtx
from gui.prb_control.prb_helpers import prbInvitesProperty
from adisp impo... | [
"info@webium.sk"
] | info@webium.sk |
dab71c7c7ca10f4fa9d20b9077001ab35b0c0475 | 2fe41c6d3968a8acad6afb37333134c828462492 | /binary_to_float-tqdm.py | 3e38702b5dafad030ff886a8a45f5f2139f76fb2 | [] | no_license | alex-meadows/binaryparse | 6d1f9bc65e2b24200c141ceb9d62682323893bd4 | ecadc1cb64e433ac108b417f1edd47362f60fa72 | refs/heads/master | 2022-12-11T07:35:28.460321 | 2020-09-09T22:54:54 | 2020-09-09T22:54:54 | 294,243,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | import struct
import sys
from tqdm import tqdm
#initialize the 'fileName' list with file names for, xi, eta, Dg, and GH
fileName = "", "", "", ""
fileContent = []
numbytes = []
for z in fileName:
with open(z, mode='rb') as file:
v = file.read()
fileContent.append(v)
numbytes.append(int(len(v)/4))#t... | [
"noreply@github.com"
] | alex-meadows.noreply@github.com |
f092071813dfa5e13e3b8190ae4b7e3c3fb549fd | 815151e83df53382eba9fbd34b9fec84e11714f0 | /AWS_IOT/aws_publisher.py | 9af2f2aceaa341680b3e35e8425be931dca6a448 | [] | no_license | tadeuamaral/pfc | 65d65642dcb8b4ab4a01c46c0ab29970af951de9 | 6118c24626fb992fce7bb87f029888a01ba98684 | refs/heads/master | 2020-04-22T02:14:35.247752 | 2019-01-30T02:30:34 | 2019-01-30T02:30:34 | 170,041,671 | 0 | 1 | null | 2019-02-10T23:56:13 | 2019-02-10T23:56:12 | null | UTF-8 | Python | false | false | 2,397 | py | # -*- coding: utf-8 -*-
#!/bin/bash
import os
import sys
from datetime import datetime
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
import time
import json
import argparse
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from configure import pfc_conf
from configure import pfc_mqtt_t... | [
"house9737@gmail.com"
] | house9737@gmail.com |
c4140a667a35b2d8e8c828993ec52a8eca4ca50f | 58fcbbde289b4c0575c06542986e5d1f3a95ff6d | /app/main/model/calificacion_producto.py | 94c1eb261df26b8e1dc6a791943b2794ae2eff2f | [] | no_license | Team-3-TCS/api-my-store | 045691196aa019efe0188912ead4f7fe32c68a9a | e3e6d716102280e73932e5eba65b2ff27eec45e0 | refs/heads/dev | 2023-04-09T23:43:49.973791 | 2021-04-26T00:21:43 | 2021-04-26T00:21:43 | 351,312,190 | 1 | 0 | null | 2021-04-26T00:21:44 | 2021-03-25T04:49:31 | Python | UTF-8 | Python | false | false | 570 | py | from .. import db
class Calificacion_producto(db.Model):
__tablename__ = "calificacion_producto"
id_calificacion = db.Column(
db.Integer, primary_key=True, autoincrement=True)
id_producto = db.Column(db.Integer, db.ForeignKey(
'producto.id_producto'), nullable=False)
id_cliente = db.Co... | [
"eisten.flores@unmsm.edu.pe"
] | eisten.flores@unmsm.edu.pe |
10585dad5b6446bed09db2ec7320848d018b4d5e | a330f3ba0431b397206cdb02df8e0ac923be2dcb | /LyndaCourse7.2.py | b03e496140cc8898fb81402685d6b3bbe1038259 | [] | no_license | coreyderosa/Python-Tkinter | d53a5776346eead5e1ced6b688d8ec8c85b22cf8 | 3b7c642f90378db132ac6436fb4509cdde1fdf1d | refs/heads/master | 2021-01-10T22:58:32.650462 | 2016-10-06T02:12:26 | 2016-10-06T02:12:26 | 69,717,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | #can use this with Keyboard events such as ButtonPress, ButtonRelease, Enter, Leave, Motion, KeyPress, KeyRelease, FocusIn, FocusOut
from tkinter import *
from tkinter import ttk
root = Tk()
def key_press(event):
print('type:{}'.format(event.type)) #displays key type event- type 2 is key press
pri... | [
"coreyderosa@gmail.com"
] | coreyderosa@gmail.com |
b8dae0aba14861e40314b608502313c768f9ecb4 | 62bb149a207550c2ad6a6c319e24d23b08f0bb07 | /page/admin.py | 3deb51ee981b51f98cfe44821986dd8e95b522a0 | [] | no_license | onr20/kaft | 4a1ab3b9454dd3cc05a24b609c98ef9e667ad235 | 2f52d180963d4a0e3f7c58352b3c88af5c600ec1 | refs/heads/master | 2023-04-19T06:23:58.564336 | 2021-05-08T21:50:00 | 2021-05-08T21:50:00 | 365,242,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.contrib import admin
from .models import Page, Carousel
class PageModify(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
list_display = (
'pk',
'title',
'slug',
'status',
'updated_at',
)
list_filter = ('status',)
list_editable = ('s... | [
"onrozcan20@gmail.com"
] | onrozcan20@gmail.com |
a115ec089052a5f20b7c8d7cc33f4f75f2e6b2b9 | eb98ad1577f052f72dedc530191132f55bfbb6ce | /code_and_data/core/ppo.py | 5b424a553c6c2ddc931d84d21f3febac63e671c0 | [] | no_license | zchaoking/VAKLIL-Supplementary-Files---AAAI-2020 | 9ca3ae540aeff8353e255e3699779848c5d50175 | 37b73a9030f56578de920d77bae7ba41403a3ba8 | refs/heads/master | 2022-03-10T07:52:47.451663 | 2019-11-21T15:38:01 | 2019-11-21T15:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import torch
def ppo_step(policy_net, value_net, optimizer_policy, optimizer_value, optim_value_iternum, states, actions,
returns, advantages, fixed_log_probs, clip_epsilon, l2_reg):
# debug
#policy_net, value_net, optimizer_policy, optimizer_value, optim_value_iternum, states, actions, \
#r... | [
"fanyang@dhcp-morris-3166.redrover.cornell.edu"
] | fanyang@dhcp-morris-3166.redrover.cornell.edu |
cc1e3ec045322da5e27aa08c83831635d126cfb1 | 2e92d3fec5046f0052c40c9b078fe27314b49af4 | /rekog-working.py | 0065e4c253222b8d89027b1f1140ec9fca65a69b | [] | no_license | mondiman/rekog-ss | b2b3f3757bf63aa9dba67ea7f47bbdd10d3228ba | f2add14a2d34ab5bf74fad44231d2ce03bbeda71 | refs/heads/master | 2020-03-23T14:08:54.192860 | 2018-07-20T19:01:33 | 2018-07-20T19:01:33 | 141,659,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | from __future__ import print_function
import boto3
from decimal import Decimal
import json
import urllib
from copy import deepcopy
print('Loading function')
rekognition = boto3.client('rekognition')
client = boto3.client('sns')
rekog_max_labels = 10
rekog_min_conf = 80.0
label_watch_list = ["Human", "People", "Per... | [
"noreply@github.com"
] | mondiman.noreply@github.com |
d8e0f174795778a50f9f731e86cd07665ffab752 | 4559498420ef7a3de7c8d49761bbb5a38ae6403f | /stackGAN/solver_stackGAN.py | 72fc6a2dd1a9ae806480a9e3d4e219382842017d | [] | no_license | Dylan199602/CS230_StackedGAN | 02163be3c26c92f61602f5718c945d65e881b1c7 | a335044b9a65c525922f03f908bdff376e7b2626 | refs/heads/master | 2021-03-23T23:21:19.031777 | 2019-12-08T17:28:23 | 2019-12-08T17:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,221 | py | from model import Generator
from model import Discriminator
from generator import Generator as G2
from discriminator import Discriminator as D2
from torch.autograd import Variable
from torchvision.utils import save_image
import torch
import torch.nn.functional as F
import numpy as np
import os
import time
im... | [
"noreply@github.com"
] | Dylan199602.noreply@github.com |
5c2f65f3d8265e99550da60ed7b4a8cf09a5c48b | 6f7e071edf7845c44688d2aa2a7882e3b33c449f | /chapter22-lesson4.py | b7a6e921285a5a17a8210f51e38fe4b53b44bb8f | [] | no_license | amano7/LearningPython | af7ead578fcb0e86cecc01becc6d5f02a87bd021 | 6a72f8c80fa6a1e665d89b9912894414dce9c0e8 | refs/heads/master | 2020-06-19T05:57:48.407094 | 2019-09-01T05:39:59 | 2019-09-01T05:39:59 | 196,588,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | def anagram(w1,w2):
w1 = w1.lower()
w2 = w2.lower()
return sorted(w1) == sorted(w2)
if __name__ == "__main__":
print(anagram("Iceman","cinema"))
print(anagram("leaf","tree"))
print(sorted([1,2,5,4,3])[::-1])
| [
"super7.amano@gmail.com"
] | super7.amano@gmail.com |
9bbed5650b78a27c595b8d6796994c735b5bf023 | 4028a44fcd7349f8169260c3817ad7085a3f4919 | /apps/goods/migrations/0001_initial.py | 17f3512decc546c70695aa67fb9bd7dcf8d909bf | [] | no_license | benjieqiang/dailyfresh | 1fbae02b293cd38de88c564512cef65864eb222d | 3116935fd1bf382b9c3ed5126b5ba36f024100a4 | refs/heads/master | 2022-12-11T22:40:50.494114 | 2019-09-03T00:49:50 | 2019-09-03T00:49:50 | 205,858,693 | 1 | 0 | null | 2022-12-08T02:34:30 | 2019-09-02T13:03:27 | Python | UTF-8 | Python | false | false | 7,981 | py | # Generated by Django 2.1 on 2018-12-06 06:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='GoodsImage',
fields=[
... | [
"benjieqiang@163.com"
] | benjieqiang@163.com |
cd26a97a9b5a11a42584b1b09d43489d5196cbae | 77be6786ca1b176987aa1f23a992a039b16bd9b6 | /LeetCode/二叉树/144.py | a58c9dd3ad92c087a64f635734d702921846d229 | [] | no_license | yuyaxiong/interveiw_algorithm | b854fb952e94c5d204657a6cd6a90b3775d14a49 | 907a60702ef94e4f79313b0d0c7fe999bc508051 | refs/heads/master | 2022-03-20T07:04:14.944704 | 2022-02-07T10:12:25 | 2022-02-07T10:12:25 | 170,670,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Definition for a binary tree node.
from typing import List, Optional
# 144.二叉树的前序遍历
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
# 递归版本
class Solution:
def preorderTraversal(self, root: Optional[TreeNode]) -> List... | [
"chinayuyaxiong@sina.com"
] | chinayuyaxiong@sina.com |
2d1d47ab6569f49eb7676644d902bb9501b95b6c | 3978985f6cf08f141cb9d780be4f8b7b2347c16b | /part-data/test-hex.py | ace3c362bebd65ef1741f086274328e456212db3 | [
"MIT"
] | permissive | wuljchange/interesting_python | 1ee5f2474645267fca9eb4e391700dcb5db051e3 | 3fdf9f7f17f7b361be030bb4eadf7aab889b15fe | refs/heads/master | 2020-05-02T18:47:18.087498 | 2020-03-09T04:02:08 | 2020-03-09T04:02:08 | 178,139,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import base64
import binascii
if __name__ == "__main__":
s = b'hello world!'
# 2进制转换成16进制
h = binascii.b2a_hex(s)
print(h)
# 16进制转换成2进制
print(binascii.a2b_hex(h))
h1 = base64.b16encode(s)
print(h1)
print(base64.b16decode(h1)) | [
"wulinjiang1@kingsoft.com"
] | wulinjiang1@kingsoft.com |
7f73826c85e81db663f9b34aed4a3145967e7f40 | 42ff9e20d828aee1497a819037e0f215c8e9313a | /start.py | 681cfd14b6a23b849b0b649a2a2a7f6ed151aaf7 | [
"MIT"
] | permissive | yangshyrmei24/connecting_flights | c11fa7113339cb1a20b92d647ac8a50bcd13a638 | a0e9ce1c98985755bebadce4d047cd979e90936d | refs/heads/master | 2023-04-09T18:10:23.305800 | 2019-05-27T17:39:03 | 2019-05-27T17:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from shortest import Database, ConnectingFlights, console
if __name__ == '__main__':
db = Database('localhost', 27017, "connecting_flight")
cf = ConnectingFlights(db)
console.menu(db, cf)
console.clear()
| [
"nuttysalmon@gmail.com"
] | nuttysalmon@gmail.com |
97e7426c257696024e0ab90fca3023b7aa6b13d9 | e790278fa154798103ce11d593502e4841b09cce | /Custom_Layers.py | b0983c35661e0b1965eff79f2b550d3c252f3ced | [] | no_license | enix45/Recommender_keras | 1ae6c7843ba3492ee00c7ecc2ea7d5c85a606bd4 | d65bbdec0547b8d1ef88e0c1034710f1729a3b67 | refs/heads/master | 2021-09-09T23:54:34.749926 | 2018-03-20T09:05:01 | 2018-03-20T09:05:01 | 125,987,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,735 | py | from keras import backend as K
from keras.engine.topology import Layer
class interaction(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
super(interaction, self).__init__(**kwargs)
def build(self, input_shape):
self.kernel = self.add_weight(
name = 'kernel',
shape = (input... | [
"ubuntu@ip-10-152-8-137.ap-northeast-1.compute.internal"
] | ubuntu@ip-10-152-8-137.ap-northeast-1.compute.internal |
681455c58163656fd7be32f57a4dbd6258269b02 | 8dceed86beea3a9f84ba68d8345f1686786d12ff | /mtcnn-pytorch-master/test_on_image.py | 058ad1941fb4b4f17395654a1918c6094817137d | [
"MIT"
] | permissive | nishino123/detection-recognization | 6beb503f24a28dbc07600d72989a16ebcc482028 | ee74ed41830083adc4301664abb6a08b1c63d332 | refs/heads/master | 2022-04-13T07:13:26.040655 | 2020-04-13T12:28:18 | 2020-04-13T12:28:18 | 255,317,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: UTF-8 -*-
#@Time : 2020/3/23 @Author : SUNLIN
from src import detect_faces, show_bboxes
from PIL import Image
def face_detect(filename,save_file_name):
img = Image.open(filename)
print(img)
bounding_boxes, landmarks = detect_faces(img)
img_copy=show_bboxes(img, bounding_boxes, landmarks)... | [
"your email"
] | your email |
3fbdcdb01d4eff3aefb6d1b33806471e8d35d230 | a69597f476b069ef3dadac8f90187b3d90df8ae8 | /scripts/perf/alltime.py | 9eb3d31ba74dd8687f993d46793851f768ffce1d | [
"MIT"
] | permissive | duzhuqi/rocFFT | b1b917e85d434c8fa48a0670b0b88c9403e33545 | ebd54e7124deacec29be382d66c78a37bf2ac133 | refs/heads/master | 2023-06-18T19:04:30.743400 | 2021-07-06T03:27:37 | 2021-07-06T03:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,939 | py | #!/usr/bin/python3
import sys, getopt
import numpy as np
from math import *
import subprocess
import os
import re # regexp package
import shutil
import tempfile
import perflib
import timing
usage = '''A timing script to generate perf data and plot for major fft 1D/2D/3D cases
Usage:
\talltime.py
\t\t-b Spe... | [
"noreply@github.com"
] | duzhuqi.noreply@github.com |
d8e049a229f3a22afbce372b735887be1c31d193 | f1e293397a23629261cd162862914d6d5e7c456c | /src/polls/views.py | 3931e666647bbe9a5cc3ad6138fe31c3fb2b48c3 | [
"Apache-2.0"
] | permissive | s4boys/serveling | 0a2c469a8e7829e738fa3dbbd68edaa9e0a58e09 | c49063b154deea51cd401e2c02b7092ddfad22b3 | refs/heads/master | 2020-04-05T04:43:11.645764 | 2018-11-15T11:16:38 | 2018-11-15T11:16:38 | 156,563,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("hi2")
| [
"71duha1bif@hft-stuttgart.de"
] | 71duha1bif@hft-stuttgart.de |
1ed0f4d3aefd0f204f6d3172550834342f343de7 | f6b1d01a7b31427a2a5e424d7725f8f5c08d1b39 | /alg/swap-node-pair/index.py | 0fbcb891db00e7477b4def031310845bab1fc72d | [] | no_license | thainam83vn/learns | 5ce3b89af5b70982554d64f77569abb5ae1cd805 | 239f69b50cf689b46270d6ee097ef62cb9309ad7 | refs/heads/master | 2023-01-08T17:57:18.126709 | 2020-12-19T02:55:28 | 2020-12-19T02:55:28 | 197,106,240 | 0 | 0 | null | 2023-01-07T11:49:54 | 2019-07-16T02:31:06 | Python | UTF-8 | Python | false | false | 415 | py | from libs.node import ListNode, NodeLib
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
if head is None or head.next is None:
return head
next = head.next
temp = next.next
next.next = head
head.next = self.swapPairs(temp)
return next
lib... | [
"thainam83vn@gmail.com"
] | thainam83vn@gmail.com |
16db426e69fbbf5f00eebc5b166fe294c8ba0245 | dc38691dc76478290b52efe2cfd9a814d5d5f510 | /code/python/338.counting-bits.py | 68ca9877516c00ff5db3eea2d0be028ba8c25c7c | [
"Apache-2.0"
] | permissive | ANYALGO/ANYALGO | f6b947a2e5d7f2e07b936e1371902064868359fe | 09060bd4605d112b7ee66b4571ef309bfac06b6a | refs/heads/master | 2021-08-02T13:05:35.762982 | 2021-07-24T01:57:09 | 2021-07-24T01:57:09 | 254,394,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | class Solution:
def countBits(self, num: int) -> [int]:
return [bin(i).count("1") for i in range(num + 1)]
| [
"Kirin.Toudou@protonmail.com"
] | Kirin.Toudou@protonmail.com |
16e0b7ce242e8efacebf2e5f1d3a610e46dd3fda | 0dd849243d8fc7930d267277a2ee251bc35273ba | /library/nxos_vlan | 269a4ed0a2943ff99aea87d391cf347a3e081d2a | [
"Apache-2.0"
] | permissive | my76128/nxos-ansible | bd95e49b95fb8b057f67b7932ab6c280cb457173 | 8cfa8b0803a7645d39ef6e44cb994b6e72225d54 | refs/heads/master | 2021-01-12T21:01:56.823450 | 2015-04-29T13:57:04 | 2015-04-29T13:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,628 | #!/usr/bin/env python
# Copyright 2015 Jason Edelman <jedelman8@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jedelman8@gmail.com"
] | jedelman8@gmail.com | |
4501c661e8f14f94c93296355442f997beee8ef4 | 8e5c37560d9b03e30b00a1d4b423013882eb2d55 | /hzpzp/scripts/template_cff.py | 8949802b6bbb32c422040223bc0e14cc5646a148 | [] | no_license | syuvivida/MonoHiggsSignal_13TeV | ac363aab91fe4a2f5562884fce3bffb8471fc8eb | 5428633898c61dbf021e82c630a08da23192ccd4 | refs/heads/master | 2021-05-25T11:42:22.048512 | 2020-04-16T11:44:02 | 2020-04-16T11:44:02 | 42,017,135 | 0 | 1 | null | 2015-10-05T15:40:44 | 2015-09-06T20:03:32 | Python | UTF-8 | Python | false | false | 550 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/31b6e7510443b74e0f9aac870e4eb9ae30c19d65/bin/MadGraph5_aMCatNLO/cards/production/13TeV/monoHiggs/PROCESS/TYPE
externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.vstring('LOCATION'),
n... | [
"dburns@ucdavis.edu"
] | dburns@ucdavis.edu |
b8b43d0e7996b984d9e9323ff65e77ef77928c37 | c88082a909c5d6bb741465bd37063ceb7bb4d887 | /crawler_ex00_1 2.py | a37a8f05ce7f44c91e41e905d718b363a0747033 | [] | no_license | raningtky/python | 38b0ad18b716de53e58c0a4b6d56d458986a090b | b8a1557afa32140ff05e4ae9c5943441bef74af6 | refs/heads/master | 2021-01-01T03:34:20.197627 | 2017-08-10T09:26:19 | 2017-08-10T09:26:19 | 56,868,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# CopyRight by heibanke
import urllib
from bs4 import BeautifulSoup
import re
url='http://www.heibanke.com/lesson/crawler_ex00/'
number=['']
loops = 0
while True:
content = urllib.urlopen(url+number[0])
bs_obj = BeautifulSoup(content,"html.parser")
tag_number = bs_obj.find("h3")... | [
"hxt1108@163.com"
] | hxt1108@163.com |
fb6d30d0717d9671573299e2c339d1946962da2f | 16fcf452e6165a0de5bc540c57b6e6b82d822bb1 | /Learntek_code/25_Sep_18/fun12.py | 25339a75bfd72a9f1490f439cc1c26fc2eb07c0f | [] | no_license | mohitraj/mohitcs | e794e9ad2eb536e3b8e385fb8d222e8ade95c802 | d6399b2acf69f5667c74f69715a0b55060bf19d1 | refs/heads/master | 2021-09-09T00:21:23.099224 | 2021-09-07T16:39:07 | 2021-09-07T16:39:07 | 87,798,669 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | k = 10
def fun1():
global k
#k = k+10 #
k = k+10
a = k+10
print (k)
print (a)
fun1()
print ("outside ", k)
print (len("hello"))
| [
"mohitraj.cs@gmail.com"
] | mohitraj.cs@gmail.com |
b862cd7a47b8262ef7b59d3a12ff63f1fbe58f40 | 274f6fc92de000145d19bf1d8fc3d6ec1f33dc15 | /thegame/settings.py | 64ca557e0e2563961c85949accff4ec7b537c914 | [] | no_license | Harsh77480/ONLINE_GAME-using-websockets | ebc3cfe95bcfc67ca5973394f6c95ce2c090e0e8 | 355af45119ddb49d18e12bf1f585b15a3c2e85ef | refs/heads/master | 2023-05-06T06:54:10.464592 | 2021-05-26T19:19:16 | 2021-05-26T19:19:16 | 370,670,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,813 | py | """
Django settings for thegame project.
Generated by 'django-admin startproject' using Django 3.2.3.
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 pathlib... | [
"haesh77@gmai.com"
] | haesh77@gmai.com |
f083dced3502518dab0883992fa9044778b96520 | fef8f43025cff430d9aea080885173d9c22b3cb6 | /etalia/library/migrations/0005_paperuser_store.py | cae9e7afa809c463d95225ed65b389504668cf50 | [] | no_license | GemmaAA1/etalia-open | 30a083141330e227ac1de9855894bfb6e476e3cc | 260ce54d2da53c943d8b82fa9d40bb0c0df918a6 | refs/heads/master | 2023-03-28T03:33:13.771987 | 2017-10-30T00:55:27 | 2017-10-30T00:55:27 | 351,120,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('library', '0004_paperuserhistory'),
]
operations = [
migrations.AddField(
model_name='paperuser',
na... | [
"nicolas.pannetier@gmail.com"
] | nicolas.pannetier@gmail.com |
ed772c7502b6135f7aacb792dc4ee4125b01e12e | e2e470577eb6ec34b581dbcc718ea74a00d19fa5 | /account/views.py | 4dbb2eb47e131d91884926c5f97fa5c9dec19397 | [] | no_license | Bob-Al-Max/bookmarks | ce8b6264ef0c69f4571627d556d3cbe6ba9fe4d7 | 955c726ee8712a4ce7f2a574ed26b8a13b1f9264 | refs/heads/master | 2022-12-06T03:35:53.620897 | 2020-08-31T10:55:27 | 2020-08-31T10:55:27 | 291,689,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,419 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from .forms import LoginForm
from django.contrib.auth.decorators import login_required
from .forms import LoginForm, UserRegistrationForm
from .models import P... | [
"borq_10@mail.ru"
] | borq_10@mail.ru |
13a9f4b483fbac1ac0450b8685ceba8953d86c21 | cd0bb37a673983ce1cf1a2a378c95976a64650e2 | /WEBRTC_Angular_7_Typescript/node_modules/uws/build/config.gypi | 0be03fb11bdfb341b50a679727994305b6032520 | [
"Zlib"
] | permissive | FuriousTurtle/Refrac-AngularJS-To-Angular7-Typescript | bd935153bf7b0d4c8bc810928912cb54b394b791 | 8eb003ec37a9dd09167b96612bb5e34cdab44374 | refs/heads/master | 2023-01-23T13:38:28.998476 | 2019-06-14T10:55:31 | 2019-06-14T10:55:31 | 189,003,204 | 0 | 0 | null | 2023-01-07T20:38:57 | 2019-05-28T10:02:53 | JavaScript | UTF-8 | Python | false | false | 5,381 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"tmourier@xivo.solutions"
] | tmourier@xivo.solutions |
2aaa8256b36374a734450a22978b2e29400e882b | 0723be4044582ef43d36368b8a5638656e5d9889 | /venv/lib/bullet.py | ebf2320394386bc0f9a87b9a913996634bc659ee | [] | no_license | Encyf/Space_invaders | e94ff464905f639dc2fce33f364528994a26e07f | ff70b8dd59a2f2070f78b565973e4818dcf4afdf | refs/heads/master | 2022-11-24T03:08:38.351649 | 2020-07-19T10:58:26 | 2020-07-19T10:58:26 | 279,367,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
def __init__(self, ai_game):
super().__init__()
self.screen = ai_game.screen
self.settings = ai_game.settings
self.color = self.settings.bullet_color
self.rect = pygame.Rect(0, 0, self.settings.bullet_widt... | [
"67859752+Encyf@users.noreply.github.com"
] | 67859752+Encyf@users.noreply.github.com |
53372f4846a7d187b171c35df0aa90005f3f6c75 | 4e3763a5136576d77cd10d8bae2e66b0925688c8 | /AWS_CICD/libs/job.py | 44349c1ad41a8230010889595418f61ffb86d6de | [] | no_license | lePaulo/AWSDatalakeDataTransformationOrchestration | 99159027e4b5c0f09b05997a7b511d1068cd0912 | c339d42a8062705dcfc5367bca186b5bd5cfcd8a | refs/heads/master | 2020-03-21T13:56:04.963067 | 2019-03-08T09:26:04 | 2019-03-08T09:26:04 | 138,632,646 | 5 | 6 | null | 2018-06-26T13:38:15 | 2018-06-25T18:11:08 | Python | UTF-8 | Python | false | false | 776 | py | import boto3
import os
BATCH_CLIENT = boto3.client('batch')
def send_command(bucket_name, input_prefix, output_prefix, timestr, job_name, job_dependencies=[], environment_variables=[], command=[], memory = None, vcpus = None):
container = {
'environment': environment_variables
}
if memory ... | [
"monchyp@amazon.fr"
] | monchyp@amazon.fr |
9dad92a32edc5005e54baa1ad84ff10789f971f0 | 6eacbf7828396f0e13ffb0ac0f8d0135bc480055 | /test.py | 7ff82bd3365b494993be09a4e4fd1b147fbf3aa5 | [] | no_license | Abdel-Fadhyl/France_Inter | 1a40e11d47acb767b0ae74f3671513e875710a9c | faafccb84cc8a999a23e47eb42155fc28c63a5ef | refs/heads/master | 2023-08-24T22:35:12.031275 | 2021-10-13T13:44:13 | 2021-10-13T13:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | import requests, uuid, json
from azure.cognitiveservices.speech import AudioDataStream, SpeechConfig, SpeechSynthesizer, SpeechSynthesisOutputFormat
from azure.cognitiveservices.speech.audio import AudioOutputConfig
import tkinter as tk
gui = tk.Tk()
gui.geometry("500x200")
def getEntry():
speech_config = SpeechC... | [
"djoi_a@etna-alternance.net"
] | djoi_a@etna-alternance.net |
d1ac8f2d290ad912ee598b9de46bc0a8af886db2 | aa0a367248df4833d3165c318e5b03544a93acb4 | /des.py | e373e5350086d2911a406142d4bbffb42ad655f9 | [] | no_license | rojla123/selmi | c7fe387bbd9d6f9d17cd62246cc721f00d2af918 | d328c6c6d3cd7e449b0e71fc629028fb30c5036b | refs/heads/master | 2022-11-30T00:22:44.514911 | 2020-08-04T13:51:33 | 2020-08-04T13:51:33 | 284,993,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py |
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
import pandas as pd
import os
import sqlite3
from pathlib import Path
import pandas as pd
import streamlit as st
import time
import numpy as np
def load_data():
data=pd.read_csv('ammar.csv'... | [
"noreply@github.com"
] | rojla123.noreply@github.com |
52cc4176f1a4d4bc97320e8ad23192457f7d5695 | 0b9f4d621264fc643bc13758e59b9b81df250862 | /fantastic_lamp/fantastic_lamp/asgi.py | 3f871a77e8fe45d1d74ee3b64cb92a63a3fe38c7 | [
"MIT"
] | permissive | XrossFox/fantastic-lamp-django-framework | f50b09b4cd4c3ed9045da885952b45294296d140 | 61f3e252237bb3ea2e9929237e3701b68f78c226 | refs/heads/main | 2023-02-01T04:58:38.065041 | 2020-12-21T00:32:16 | 2020-12-21T00:32:16 | 322,911,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for fantastic_lamp project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"warhead_1090@hotmail.com"
] | warhead_1090@hotmail.com |
2a0581eafc31abc7fc1ad21c4a8ee84f9e530959 | 713014c2050a7e25e8f25bfb941a5a59c6510010 | /venv/bin/easy_install-3.7 | 5a732bb81b4936a000412e2cabb4987e9943dd6d | [] | no_license | darckwind/face_of-_china | 20a9ff04af9161ac558dc75bc6afb6e196fb64d0 | a946663f04fe720d918f58338d0cae5d1e8ac587 | refs/heads/master | 2020-06-25T06:05:12.881170 | 2019-07-31T19:41:37 | 2019-07-31T19:41:37 | 199,224,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | 7 | #!/Users/franciscolagos/PycharmProjects/untitled8/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\.py... | [
"f.bunout01@ufromail.cl"
] | f.bunout01@ufromail.cl |
241094939f15196f1c39915afe3c309568d1eaa9 | 4d40e4f747ee5b2e2a7b63ca62a7edaecd5e9bfe | /phrases.py | 84b7c1a3df5cf38dfdc301fa4238b3e6b15caf73 | [] | no_license | mike-conner/Unit-3 | 5700a57cfe00606df7e5b16041a3c0c665cefb16 | 9385ecec4987a35411cc5e2d2250ab4c16bc06e2 | refs/heads/master | 2022-08-07T00:12:36.553800 | 2020-05-16T17:35:32 | 2020-05-16T17:35:32 | 263,072,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # phrases to be used for the game
PHRASE_LIST = [
'BETTER LATE THAN NEVER',
'HANG IN THERE',
'HELLO WORLD',
'A DIAMOND IN THE ROUGH',
'BEST OF BOTH WORLDS',
'PIECE OF CAKE',
'YOUR GUESS IS AS GOOD AS MINE',
'SO FAR SO GOOD',
'HANG IN THERE',
]
| [
"noreply@github.com"
] | mike-conner.noreply@github.com |
fab197008b9ba50ab6d79be8054d8b56f37a35d0 | bf06236de52938e8bb8491bdde56edcad0562356 | /Vorna/Vorna/asgi.py | e6f53b14326b3cc2b35e3c84c15f4cd4d8ec31cc | [] | no_license | webclinic017/Mt_v | a68603753e629ed3f3e65f06f924ad80befaf241 | 08b90c5edf0da588fe4b5f3756797c02ab4ed0d7 | refs/heads/main | 2023-01-05T03:12:24.481276 | 2020-09-29T20:17:32 | 2020-09-29T20:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for Vorna project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"pooriaxana@gmail.com"
] | pooriaxana@gmail.com |
a167d5dc2cdec2921991ce9f4f2c0efe7f0d135e | 71c1e6a2c376815ca0a4f96191f971bdff90ebf5 | /ryu/tests/integrated/vrrp_common.py | 6ab48e69b127581975afe0c0eae51c555a418412 | [
"Apache-2.0"
] | permissive | ntts-clo/ryu | d0ba49e281327fca0d5321bbd137f401436a779e | abafab91493f40be60d3fe0e580ee0f01709f09f | refs/heads/master | 2021-01-18T14:38:11.539342 | 2014-05-06T09:57:39 | 2014-05-09T16:14:57 | 8,921,181 | 2 | 0 | null | 2013-05-27T01:57:36 | 2013-03-21T04:31:47 | Python | UTF-8 | Python | false | false | 8,658 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 Isaku Yamahata <yamahata at valinux co jp>
#
# 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://... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
4d29b40f431711f553ef332c6c2ebe3ff2b4f174 | 3da522a5f394b2520e727651b2a5b5a9bec0be41 | /app/views/user.py | db7c28d90738cf9ce167ed9e34177436a6c31b5b | [] | no_license | unicode-tech/django-project-starter | 2dcd29e17579a91c65c1120f4e64555b6b3ec4aa | ab64486f53da230846492506576a883794d2654a | refs/heads/master | 2023-07-17T20:11:59.044487 | 2021-08-24T16:17:57 | 2021-08-24T16:17:57 | 392,238,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from django.db.models import Q
from django.template.loader import render_to_string
from django.urls import reverse_lazy
from django.views.generic import TemplateView, UpdateView, DeleteView, CreateView
from django_datatables_view.base_datatable_view import BaseDatatableView
from src.models import User
from app.forms ... | [
"calvinbenhardi@gmail.com"
] | calvinbenhardi@gmail.com |
438537c819c1db70d5539ab1446160e25797b3cc | 73e4a072c283a58854abcaeab0e1ac33eb11a6bf | /mrb_automation_test/api_automation/api_automation_perfect/mrb_api_perfectreport.py | 1faedaa3e713f8c0cc0bf0a8fa8226691a82a049 | [] | no_license | amez7089/mrbtest | d52e3b3d6eea6aa836e259c563a3e2f755ff8794 | 2113f58b551d17ec792dffeb9fcbaea5885b8f54 | refs/heads/master | 2020-04-06T13:48:44.750285 | 2019-09-30T09:43:41 | 2019-09-30T09:43:41 | 157,515,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
import time
import unittest
# import HTMLTestRunner
import HTMLTestRunnerCN
def Suite():
testunit=unittest.TestSuite()
test_dir = "E:\\PythonProject\\mrbtest\\mrbtest\\mrb_automation_test\\api_automation\\api_automation_perfect"
discover=unittest.defaultTestLoader.discover(test_dir,p... | [
"1269758616@qq.com"
] | 1269758616@qq.com |
29f0a079f6e5a4b601f5c4bbc7925986e11e105d | bc70b275257d0e19ee8d3983edaf6a0aa6068b4f | /custom_env/__init__.py | 6a1e5222426c1d4b0aad3da0b34a3c9cc78cbb34 | [
"MIT"
] | permissive | x2ever/delay_control_rl | bc2bcd72e4d4010b8be13688ca4bcca7508d816d | 1427c024f36320f976e3eef736d433d123bce324 | refs/heads/master | 2023-04-05T09:22:17.876993 | 2021-03-21T01:00:00 | 2021-04-06T17:01:14 | 298,260,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from .delay_env import DelayWrapper | [
"x2ever@naver.com"
] | x2ever@naver.com |
b34c91a555ccc75421794ee67d4b0c298663856e | a40c0f432804b42bef9bf4790f0445ac3d6da36f | /lab7/example1.py | a88afdbf2166141adff6e1a845573353891bdf54 | [] | no_license | b55888938/270201050 | c1c2ec7d47d33abde2627d29b758214b274a6f09 | 142c751047f6b2733ea8e3ecb99e2e58687557a3 | refs/heads/master | 2023-02-07T18:22:03.728359 | 2020-12-27T20:38:22 | 2020-12-27T20:38:22 | 305,070,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | def funct(number):
sum = 0
for i in range(number):
sum += a_list[i]
return sum**2
a_list = [12, -7, 5, -89.4, 3, 27, 56, 57.3]
a = funct(len(a_list))
print(a) | [
"ahmetozdemir@std.iyte.edu.tr"
] | ahmetozdemir@std.iyte.edu.tr |
d1ad93b138e8063d8d19f43af0d411ce7c5d9886 | 6c99d2ddc48847155f9863c8c0d86ed1d98eafef | /homework_!_softmax/baseuse_softmax.py | a1a6424d3ece2df91705bf89eae228cb9297d5b3 | [] | no_license | sakurasakura1996/cs231n_homework | 9fb15231ffff972241ad1b31ecc24182c2255489 | aed4e88bcdff4aa7e3c7dd7c1a3f5b8688b42414 | refs/heads/master | 2020-09-09T05:26:51.188240 | 2019-11-15T08:37:26 | 2019-11-15T08:37:26 | 221,361,036 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import math
import numpy as np
socres = np.array([[1,2,3],
[1,2,3]])
scores = np.array([1,2,3])
exp_scores = np.exp(socres) #numpy 还是很灵活的,exp操作记住不需要math包,numpy直接有
print(socres)
print(exp_scores)
# 下面测试对numpy二维数组每行进行归一化
socres_normalize = socres / np.sum(socres)
print(socres_normalize)
a = np.arra... | [
"2470375551@qq.com"
] | 2470375551@qq.com |
8bd97f6ce4e21e6e1e0cdfc3b3ecfe1ee2a583cf | 838f6e9e242c380e99cfca9d10210dd662355776 | /data.py | 58eb4dccd2280dcf929cc286c03a51e0ec57cc41 | [] | no_license | yukunfeng/char_word_lm | 087c9caf090a46cd9d9e99fa26f61574bb5e0d54 | 881fef9c8bb5cdbc6ef18288d11b3c3e9bff7e7a | refs/heads/master | 2022-01-22T08:46:24.313462 | 2021-08-29T05:51:19 | 2021-08-29T05:51:19 | 208,559,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,727 | py | from collections import Counter
import collections
import os
import torch
def get_word_len(counter, confidence):
word2len = {}
character_num = 0
for word in counter.keys():
word_len = len(word)
word2len[word] = word_len
character_num += (word_len * counter[word])
word_num ... | [
"yukunfg@gmail.com"
] | yukunfg@gmail.com |
bebdae1318fbbbe9bc0e9c03a7ef871a75950c2d | cbdef2e8ed259adc4653ade34db12d8bcc0cea9f | /dominion/cards/Card_Astrolabe.py | 3671e3165a04e13e64994d68ab481283b3dc43d6 | [] | no_license | dwagon/pydominion | 8dd5afef8ec89c63ade74c4ae6c7473cd676799f | 545709f0a41529de74f33aa83b106c456900fa5b | refs/heads/main | 2023-08-29T10:02:26.652032 | 2023-08-23T02:25:00 | 2023-08-23T02:25:00 | 18,776,204 | 1 | 0 | null | 2023-08-23T02:25:02 | 2014-04-14T20:49:28 | Python | UTF-8 | Python | false | false | 1,941 | py | #!/usr/bin/env python
""" http://wiki.dominionstrategy.com/index.php/Astrolabe"""
import unittest
from dominion import Card, Game, Piles
###############################################################################
class Card_Astrolabe(Card.Card):
"""Astrolabe"""
def __init__(self):
Card.Card.__in... | [
"dougal.scott@gmail.com"
] | dougal.scott@gmail.com |
cf636381529d19dad2768d8600e76d832662df5c | 991cd70073c162f637fbec3a9e921707aa434b8e | /opentelemetry-propagator-gcp/src/opentelemetry/propagators/cloud_trace_propagator/__init__.py | 8470ad90390c3c75818db36d8aebc5886c723d30 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/opentelemetry-operations-python | 700a59c954cd18ae6428032339d01908580a4f2d | b0ca7decb6a5bb01409822e746b7463f4a7a76ba | refs/heads/main | 2023-08-18T11:24:59.282098 | 2023-08-15T17:02:54 | 2023-08-15T17:02:54 | 244,484,614 | 49 | 42 | Apache-2.0 | 2023-09-01T14:42:48 | 2020-03-02T22:00:22 | Python | UTF-8 | Python | false | false | 4,960 | py | # Copyright 2021 The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
d1656ae9e0c55bf483e9bb2b3f5bc11f49b140f0 | 35076aa3d703bd10dcc0652e9da05b0e4e1aebbe | /models/ingredients_db.py | 970ac2a5e1f0960677160546c769375e7a770439 | [] | no_license | dfortuna/Leftoven_Backend | d33bf23775b786c169c620623d63e454e35fbaec | 92b5d3aa20d5866d77259119dab4148ed74b7628 | refs/heads/master | 2020-04-19T08:49:44.390403 | 2019-01-29T04:25:38 | 2019-01-29T04:25:38 | 168,090,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | from db import db
class Ingredient(db.Model):
__tablename__ = 'ingredient'
id = db.Column(db.Integer, primary_key=True)
ingredient_label = db.Column(db.String(80), unique=True, nullable=False)
classifier_trained = db.Column(db.Integer, nullable=False)
def __repr__(self):
return '<Ingredient %r>' % self.ingred... | [
"denisfortuna@Deniss-MacBook-Pro.local"
] | denisfortuna@Deniss-MacBook-Pro.local |
c8d1be0c9067f432037453243688615f33aa2e12 | 171e781bf129a647df520ac04cfeb2343fab1c2d | /skin-lesion-detection-service/test/test_lesion_detection_model.py | 5607d00d4afd5b0b05f625f9b5ae002b1686c0f8 | [
"MIT"
] | permissive | Joro97/microservices-hospital-webapp | f21624e093c04b2fc8a639e30a21d4e14a96bf87 | 0300d115f15b33832f1035c609945bd47685f06f | refs/heads/master | 2022-12-09T13:40:30.878751 | 2020-01-06T08:48:36 | 2020-01-06T08:48:36 | 160,716,929 | 13 | 2 | MIT | 2022-12-08T01:30:56 | 2018-12-06T18:42:34 | CSS | UTF-8 | Python | false | false | 2,648 | py | import os
import unittest
import src.model.lesion_detection_model as ldm
from keras.preprocessing import image
class LesionDetectionTest(unittest.TestCase):
RESOURCES_PATH = os.path.abspath(os.path.dirname(__file__))
def setUp(self):
self._model = ldm.LesionDetectionModel()
def tearDown(self):
... | [
"tsvetkovt@tsvetkovt-a02.vmware.com"
] | tsvetkovt@tsvetkovt-a02.vmware.com |
c81d09b9d8607b73e3502e7e3e7c8a23a362894d | 8d8e886fd873d3d2955628f39263661a6d2140b1 | /mediplus_backend/project/settings/production.py | ea53cf2c3e53aa9c78f06d6d7eb676fe7a793be2 | [] | no_license | mikietechie/mediplus_backend | 187a9e3ccc54f2a6a47fc6cfda12bbc0f7ab1754 | 16cb5f1f85c54fcaf4b2d02cd4963fd697581501 | refs/heads/master | 2023-07-12T17:25:35.727586 | 2021-08-20T14:44:06 | 2021-08-20T14:44:06 | 394,951,846 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from .base import *
ALLOWED_HOSTS = ["mediplus.co.zw"]
CORS_ORIGIN_WHITELIST = ["mediplus.co.zw"]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.getenv('mediplus_db_password', 'a1mtwstdb'),
'USER': os.getenv('mediplus_db_password', 'postgres'),
... | [
"mzinyoni7@outlook.com"
] | mzinyoni7@outlook.com |
69f9bacc67a6e72c89930a9ce1ec7fff866b1469 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_outplay.py | 3b5a7058b53f990bc21deadc6ccbc62f475177fb | [
"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 | 356 | py |
#calss header
class _OUTPLAY():
def __init__(self,):
self.name = "OUTPLAY"
self.definitions = [u'to play a game more cleverly and successfully than another person or team: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [],... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ac880b2de85169f05e40a1abe6a70c57ddef7333 | 3411e7d0d8876089668735a37208dda295d6ee08 | /src/orig/MLiP_setup.py | 4bbd44ddb2f87211ee7180755bb7d245d67bc887 | [] | no_license | Wassasin/atpscheduler | eddfa77b639828e99acb706136c5f22820d978f9 | aad64f2da546461071b6e682298d73832809f043 | refs/heads/master | 2021-01-10T21:08:35.903181 | 2014-04-21T21:19:54 | 2014-04-21T21:19:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | '''
Created on Mar 23, 2014
@author: Daniel Kuehlwein
'''
import logging
import os
from readData import get_e_features
from Strategy import load_strategies
from random import shuffle
PATH = '/scratch/kuehlwein/males/E'
def create_data_file(fileName,problemList):
with open(fileName,'w') as OS:
OS.write('... | [
"git@woutergeraedts.nl"
] | git@woutergeraedts.nl |
79f5aef07082705f1d3fab093de1f12036af1c58 | c092cc56f30507e80db8e647f529c10e7f9dc9e1 | /app/venv/bin/easy_install-3.8 | ea67c002831e03e40d532b8aab2c1774d52cd47e | [] | no_license | admin341/INSTA341 | bc023541029e6f7cc8b75f0d31265446e236566b | 475f35e87391786a4fee249cadff11dc21435418 | refs/heads/develop | 2022-04-13T17:22:05.757339 | 2020-03-27T23:22:10 | 2020-03-27T23:22:10 | 237,218,348 | 0 | 2 | null | 2020-03-24T03:05:43 | 2020-01-30T13:25:30 | Python | UTF-8 | Python | false | false | 451 | 8 | #!/Users/zubairnurie/Desktop/INSTA341/app/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__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?|\.exe... | [
"mznurie@msn.com"
] | mznurie@msn.com |
ab96fd42f458840cbde4665fa536683c1496eebb | 08f8f1ab5d16bff856381467de03502e353ff9c5 | /results/views.py | 1983364fadf8dc4e37d7d54c8daaaa7db92dfaa0 | [] | no_license | kevin8519/Python_django_Project | 934bbb3923e7af4cb7f1c8bcfe8b7a02b18b8032 | cb8cc8b3f521053d3acc1e0a498a9f63abed2651 | refs/heads/master | 2021-01-12T08:46:01.303002 | 2016-12-16T20:00:13 | 2016-12-16T20:00:13 | 76,681,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | from django.contrib.auth.decorators import login_required, permission_required
from django.contrib.auth.mixins import LoginRequiredMixin,\
PermissionRequiredMixin
from django.db import connection
from django.http.response import HttpResponse
from django.shortcuts import render, render_to_response
from django.templa... | [
"thanakevin85@gmail.com"
] | thanakevin85@gmail.com |
a00e528dba063a65c21e0ebd0fe662e0500a3217 | 58ee1dc37b57e0b4f06cf383c6a9e0654f490150 | /pypy3-armv6h/lilac.py | cdd21f6434f234e6e816d4abc95161d6f4918ff3 | [] | no_license | MikeyBaldinger/arch4edu | f3af87ef3a8d4cd78fde7e0ef75658c17dbe8c06 | c1775bf7fe0ffc87f3c8b4109fb1e8acde12a430 | refs/heads/master | 2022-12-23T16:40:55.513537 | 2020-09-28T21:00:59 | 2020-09-28T21:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!/usr/bin/env python3
from lilaclib import *
maintainers = [{'github': 'petronny', 'email': 'Jingbei Li <i@jingbei.li>'}]
update_on = [{'archpkg': 'pypy3'}]
build_prefix = 'extra-armv6h'
time_limit_hours = 24
def pre_build():
download_official_pkgbuild('pypy3')
add_arch(['armv6h'])
def post_build():
git... | [
"i@jingbei.li"
] | i@jingbei.li |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.