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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eef3b93d6d17e25958c2f4cdb7df664e8e4c68d9 | 7943eb0fc792750bcffee961d544bf013f150de3 | /src/plantChoices/models.py | ffdbb26f6d6e52069fdc6a137324b1ca60c64d09 | [] | no_license | ZayX0/gardenbuilder-backend | 633377ebd1606901ce5bdd222972925be17c652f | e2bd5b50461c8ec15d3faa4d92fb17858426e40e | refs/heads/master | 2022-12-24T23:06:34.204147 | 2020-10-05T22:28:16 | 2020-10-05T22:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from django.db import models
from django.utils.timezone import now
from sections.models import Section
class PlantChoice(models.Model):
genus = models.CharField(max_length=100, blank=False)
genus_common_name = models.CharField(max_length=100, blank=False)
species = models.CharField(max_length=100, blank=F... | [
"dthompson@tcadcentral.org"
] | dthompson@tcadcentral.org |
43b7696094bbd9a3218ecfa280404f8e7564d839 | 47fb4e962cf4a2fc85721faea0e7a764f4e443dc | /astrogrid/grid.py | 2859e12b56510f8b5a310469f52c9cc053ef4800 | [
"MIT"
] | permissive | jesaerys/astrogrid | d068e5b626dc3f7065d7bbbee3af98952891cfde | a6f7f92058c3b935d7274e97f8633f0b962b7ce8 | refs/heads/master | 2016-09-05T16:28:22.372053 | 2014-09-18T18:49:05 | 2014-09-18T18:49:05 | 20,024,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,455 | py | """
================
`astrogrid.grid`
================
Create 2d grids from flattened data.
This module defines the `Grid` class, which takes an unstructured set of
data, performs a user-defined calculation on it, and arranges the results
as a grid of the desired shape. The resulting grid is a 2d ndarray, so it
can ... | [
"jacob.simones@gmail.com"
] | jacob.simones@gmail.com |
85934a1752f5ac64318bcca6e3543510617b2dfb | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ENTERASYS-IETF-BRIDGE-MIB-EXT-MIB.py | 373236694ab14c69e20100207467dd0e3afbd94d | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 26,359 | py | #
# PySNMP MIB module ENTERASYS-IETF-BRIDGE-MIB-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-IETF-BRIDGE-MIB-EXT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:49:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using P... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
65a771ca99989d98e565f0ae2822d9a4524fbfd5 | d43bc1e7f8ae583f0cb187cc174b28dca31da11d | /venv3/bin/pyrsa-decrypt | d268eb316a19fbcd931f698719055b9377188ead | [] | no_license | akashshinde/cmd-line-e2e-tests | b19d04798b439e59ea47cc9d19bdd6840dcbaa84 | 3d8ac054bd9304bb6675ac208125996e94ac0feb | refs/heads/master | 2020-07-26T15:30:08.899585 | 2019-09-16T02:18:54 | 2019-09-16T02:18:54 | 208,691,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/akash/Downloads/boilerplate/venv3/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"akashshinde159@gmail.com"
] | akashshinde159@gmail.com | |
98c74234ac1ebabd1332865d2ad01b254378827a | dee52aecc2801e43c5937c13ce525ba6ba283859 | /employeesSignIn.py | 2b57dba5d836f2b720a6c98671886e01053dcb77 | [] | no_license | QurashiQA/FirstTest | 80f4c94dcf3c703d7713dce26a7d71c0b7e43365 | 4d7595ee5f70d30d9ea230218ee6e52b0a0a7073 | refs/heads/master | 2020-12-02T07:42:34.658360 | 2017-07-09T23:25:02 | 2017-07-09T23:25:02 | 96,715,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import selenium
Dtech = webdriver.Firefox()
Dtech.get("http://www.dareebatech.com")
failuer = []
def employeeSignInPageLoading ():
result = Dtech.find_element_by_css_selector("a.btn:nth-child(3)")
result.click()
t... | [
"C:\\Users\\q\\AppData\\Roaming\\The Bat!"
] | C:\Users\q\AppData\Roaming\The Bat! |
1e2f6a0b6cd31ddb5d275c86722270db9afa02be | fdcfd3b0cf266b6327d800c6a861f6071700510e | /pong.py | 52e53b05352a7fb024c245ef3fb3695f73739893 | [] | no_license | kavinbharathii/pong_pygame | c7ae8e536bad400f60e7e9be2ba7a65a077fbb9c | 514cb44d0aaeb0952279f42eb66ae20b5bc72e74 | refs/heads/main | 2023-01-08T01:40:09.185463 | 2020-11-06T10:06:26 | 2020-11-06T10:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import pygame
WIDTH = 720
HEIGHT = 560
display = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption('Pong')
frame_rate = 90
pong = pygame.Rect((WIDTH // 2) - 10, (HEIGHT // 2) - 10, 20, 20)
player = pygame.Rect(WIDTH - 20, HEIGHT // 2 - 45, 10, 90)
opponent = pygame.Rect(10, HEIGHT // 2 -... | [
"noreply@github.com"
] | kavinbharathii.noreply@github.com |
adf8ed52a68df9b5f6007f0197fd015a3c5decb0 | 12cee1912bed05e648b29e51f9f424b56fb9f9a5 | /TrackAnalyzer/test/makePlots.py | 1744820df2cc9f548da6e556cc3e92d42ecbe69d | [] | no_license | mhwalker/MWalker | 2a3ad48079d46ee4bb021fe83c4fbd66e2dfe9a8 | 4cf5dd485e67d0ef7eb714a7b03696ff59edc970 | refs/heads/master | 2021-01-18T23:26:53.931098 | 2016-07-14T19:41:24 | 2016-07-14T19:41:24 | 19,110,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,876 | py | from ROOT import *
gROOT.SetStyle("Plain")
gStyle.SetPalette(1)
#gROOT.SetOptStat(0)
f = TFile("trackAnalyzerOut.root")
d_eta = f.Get("duplicate_eta")
d_pdR = f.Get("duplicate_pdR")
d_vdR = f.Get("duplicate_vdR")
d_bestdR = f.Get("duplicate_bestdR")
d_minDelta = f.Get("duplicate_minDelta")
d_mPT = f.Get("duplicate_ma... | [
"mwalker@physics.rutgers.edu"
] | mwalker@physics.rutgers.edu |
b36d283c557e9b5a5197b3e3541c79aeba07b8f3 | 42908ab1561e43edd9cca0d9347f34ab67170b48 | /search.py | bda1eaad1243ce1e15d2f7822c32884b6df4897b | [] | no_license | PATX0/SolitaireGame | 9931a88664b7e46de5595b4ac0d35ad96d68ec7f | 052dc8da4c73ae2cbcb39e39c7f9221ea635c1ad | refs/heads/master | 2020-03-30T17:10:07.390291 | 2018-10-26T18:40:49 | 2018-10-26T18:40:49 | 151,444,050 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,738 | py | """Search (Chapters 3-4)
The way to use this code is to subclass Problem to create a class of problems,
then create problem instances and solve them with calls to the various search
functions."""
from utils import (
is_in, argmin, argmax, argmax_random_tie, probability, weighted_sampler,
memoize, print_table,... | [
"tiagovcsoares@gmail.com"
] | tiagovcsoares@gmail.com |
3d1830d5bdc9a6ab4ef260b8c4c6114239a72d8d | 4f15586a6244a5c985d3a3dfe048a2c6e6bdcb62 | /L5/hw5_t7.py | 7305814c6c6d77eb53f51113c43afd55eb23c690 | [] | no_license | irina-rus/Geekbrains | 4fcf1303e7e8ac6ad022d7b5cea2d9bd394a2ec0 | c63c76c7cf5e43b9a7acd8edac251b845c44e024 | refs/heads/main | 2023-01-24T14:00:36.812112 | 2020-11-30T12:31:58 | 2020-11-30T12:31:58 | 309,063,437 | 0 | 0 | null | 2020-11-30T12:31:59 | 2020-11-01T09:38:23 | Python | UTF-8 | Python | false | false | 2,214 | py | #Создать вручную и заполнить несколькими строками текстовый файл, в котором каждая строка должна содержать
# данные о фирме: название, форма собственности, выручка, издержки.
#Пример строки файла: firm_1 ООО 10000 5000.
#Необходимо построчно прочитать файл, вычислить прибыль каждой компании, а также среднюю прибы... | [
"irinakostiukhina@gmail.com"
] | irinakostiukhina@gmail.com |
3e36db025300c5138304afcafd13faa606c1afac | 5a00bbd360532af1d56782aaa4294c3760b75d5f | /main.py | e88ae465b5a890cdd5c4b3716e4e4c4cdc27bd82 | [] | no_license | sharkoe/NBA | 13972ec789210784506688f313cc3f4aa2a88c8c | 7e34cb6cb19b666ab1b662e4f0813e041d458c17 | refs/heads/master | 2023-05-17T18:46:33.442751 | 2021-05-25T19:28:34 | 2021-05-25T19:28:34 | 370,447,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | from package import *
import sys
import os
def main(url):
print('Starting scrapper... \n')
# create a soup table
data_table = datascraper.get_first_table(url) # this will select the table on the site
print('URL pull complete. \n')
# select these names of the columns based on the header ... | [
"steven.markoe@gmail.com"
] | steven.markoe@gmail.com |
29b9da5ced991495507325a3e78188d243514e72 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_adobe_cq_dam_dm_process_image_p_tiff_manager_impl_properties.py | 7b769282469f192d53feaae0bdaea35623a74394 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 6,954 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
6e165a1996c2d894f627d732e0e0ba84b908fa90 | 6fe47c363c8339b277e3756e5c6c70a8664cb320 | /Q12 - SingleLinePrint/SingleLinePrin.py | dd26fc4009e5723bd4bb2f148ed7e3f135abb267 | [] | no_license | aklgupta/pythonPractice | e6f3a4092a708c500ac44ec15680b8c5090f3dcd | 2c08278754f35227c816ababdec5d711e976c172 | refs/heads/master | 2021-01-22T09:33:00.981614 | 2018-08-24T10:03:56 | 2018-08-24T10:03:56 | 102,327,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | """Q. 12
Write a Single line Python program that takes two inputs: "String" and "Num".
And then prints the input string given number of times, separated by a single space (Trailing spaces are allowed, but a plus if you remove them as well)
Egs.
Input:
String: A
Num: 5
Output:
A A A A A
Input:
String: ABC
Num: 3
Out... | [
"noreply@github.com"
] | aklgupta.noreply@github.com |
ec682588230e9c615f3447acb02c2a8b8ad3b94f | c0d2347555090a902c099bf24a41aa662315a35b | /accumulator.py | 5e93734234ee771566f72f947154910ceb91b962 | [] | no_license | VYSHNAVI123/vyshnavi123 | 63d15bba2ab7c95ad5bc1af15c0ab5049da45ff8 | d76e7780cbf6a8ff6d0e430ef4f0c846b2d4556f | refs/heads/master | 2020-04-19T19:11:53.219277 | 2019-04-21T07:14:30 | 2019-04-21T07:14:30 | 168,382,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from matplotlib import pyplot as plt
import numpy as np
x=np.arange(0,10,1)
k=1
a=0
l=[]
for i in range(0,10,1):
for j in range(0,k,1):
a=a+1
l.append(a)
plt.stem(x,l)
plt.show() | [
"noreply@github.com"
] | VYSHNAVI123.noreply@github.com |
5273ad6d41579237ec7873bcd9476e2e67ec49da | c3a8a0564ebca0ce66ae51989d62ab0a713944af | /爱鲜蜂项目/main_app/models.py | c5d125e50e08c435b8defd64e39fbfbc04352edc | [] | no_license | happyQiao-PS/Django- | 858f98a3603c0c75d21fbe02be571b19783e03de | ff896fe31a587c89fb0b5077b30caae24fb414dd | refs/heads/master | 2022-11-24T18:19:40.012211 | 2020-04-04T04:23:32 | 2020-04-04T04:23:32 | 238,108,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | from django.db import models
# Create your models here.
'''
商品表:
商品id(productid) 118826
图片(productimg) http://img01.bqstatic.com/upload/goods/201/701/1916/20170119164119_550363.jpg@200w_200h_90Q
名字(productname) 爱鲜蜂·海南千禧果
长名字(productlongname) 爱鲜蜂·海南千禧果400-450g/盒
是否精选(isxf) 1
是否买一增一(pmdesc) 1
规格... | [
"2945887050@qq.com"
] | 2945887050@qq.com |
2d80e01da5de1cc702c1b4882e14eb25a8e5528b | da2b4c8fc550fc3dd7f5f54fcb1dc61c39b25dc0 | /string/bestcal.py | 603331deb0d3d16ae3686ed4de0e3f56c0616937 | [] | no_license | DecapitatorBond/projects | b9b6c1ac147b6cc5d3ccb07fcaa153d084bb2c1e | 54eabe2279c5ff5869b97548454f91d97230326c | refs/heads/master | 2020-06-07T07:56:19.624500 | 2019-07-23T18:18:45 | 2019-07-23T18:18:45 | 192,967,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # import newcalc
#
#
#
# m_arg1, m_arg2, m_action = newcalc.input_data()
# try:
# m_arg1, m_arg2, m_action = newcalc.check_data(m_arg1, m_arg2, m_action)
# except newcalc.CalcException as e:
# print(e)
# exit(1)
# newcalc.output_data(m_arg1, m_arg2, m_action)
# from newcalc imp... | [
"xxxzverxxx1998@gmail.com"
] | xxxzverxxx1998@gmail.com |
2470feb7e488ffd951c2f385d2f003e8ff627ecd | f75f199eff46880efd2f66208db6964a8418a51a | /day2/operator_teaching.py | fdd61d3cf523111a45b1d3c13fa78d834bf095ac | [] | no_license | LeAlpha/PythonNotes | 75e852ef0f8a40794c2f4fe0a6600fc55d3949c7 | 95ad836d8462e9ac390336638fa43666321f091e | refs/heads/master | 2021-01-01T15:09:12.857948 | 2020-02-11T21:08:57 | 2020-02-11T21:08:57 | 239,331,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # Hvis man gerne vil have et pænt output kan man bruge * (unpacking operator):
numbers = [1, 2, 3, 5]
print(numbers)
print(*numbers)
# De kan bruges til at lave en liste nemt
| [
"Stephankhader@gmail.com"
] | Stephankhader@gmail.com |
f5111aa622c03131b4958d9a881c416a46adb38d | bd0f13bf205f453559e8451c91a9f3ce49005312 | /statistics/statistics.py | c491a4efe892f26ee3356498d30e9b6c5992c016 | [
"MIT"
] | permissive | stevehamwu/EmotionCauseExtraction | 95c8914d2617fa392af8630e3342bd032f6ed3eb | b5a160f35f7b03bf3730b6885096dbc5f958df8b | refs/heads/master | 2021-10-27T05:26:29.463552 | 2019-04-16T07:04:00 | 2019-04-16T07:04:00 | 178,976,046 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/14 22:09
# @Author : Steve Wu
# @Site :
# @File : statistics.py
# @Software: PyCharm
# @Github : https://github.com/stevehamwu
from abc import ABCMeta, abstractmethod
from utils.app.log import Logger
class Statistics:
__metaclass__ = ABCM... | [
"stevehamwu@gmail.com"
] | stevehamwu@gmail.com |
3b535ecb1b332a1552b481f59c771def9df427c9 | b3d2ec5b71718c19f4946b6dddfdf2f85c8888dc | /Leetcode/151~200/L169 求众数.py | 373851728662a0cf2208aca53d802a849977c218 | [] | no_license | Mr-ZDS/Python_Brid | 188b90f0803b5738d3cf4eb07a529c9afc093c2c | 3c67f5fdd98c4424a19c2dc01e6bc4b6acebb1dd | refs/heads/master | 2020-04-29T10:26:23.579411 | 2019-08-20T08:38:19 | 2019-08-20T08:38:19 | 176,062,095 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | class Solution:
def majorityElement(self, nums: List[int]) -> int:
count, result = 0, nums[0]
for i in nums[1:]:
if i == result:
count += 1
elif count > 0:
count -= 1
else:
result = i
return result
| [
"zhdashuai@foxmail.com"
] | zhdashuai@foxmail.com |
49d3abd9fddb6b20f419bffd5990a35d1df62348 | 25d47540ff7bbc6d48d7908473b3e7e507962f83 | /Python_Primer/Iris.py | 1ea65dc3f80f289593ad7ee0b8f2d2f12728735e | [] | no_license | nuonuozi/Python- | 993319eca806ee8b81933b2103842dbf8c947a75 | 5b90c471af53d366f4749d676c8cd929de4f857a | refs/heads/master | 2022-04-06T17:01:23.947639 | 2019-01-20T07:14:48 | 2019-01-20T07:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 18 09:41:46 2018
@author: asus
"""
#导入iris数据加载器
from sklearn.datasets import load_iris
#使用加载器读取数据并存入变量iris
iris=load_iris()
#查验数据规模
#print(iris.data.shape)
#查看数据说明
#print(iris.DESCR)
#对数据进行随机分割
from sklearn.cross_validation import train_test_split
X_train,X_test,y_tra... | [
"3255893782@qq.com"
] | 3255893782@qq.com |
01a81e0c71bd42b48a2930aa0688a421ceabef9d | d2d4e2dbefe82d33c81d7b1d96b1bb269f41198e | /DjangoTestApp/asgi.py | f1198a37260487e212c2df80790e244505c69d33 | [] | no_license | Saitama0811/django-blog-app | 9a31783048267140a57e71b3d2f07d0fa2aee9c5 | 58387988c4988694acea9bed3c32443a05212a2f | refs/heads/main | 2023-01-01T16:10:55.555627 | 2020-10-20T15:16:44 | 2020-10-20T15:16:44 | 305,743,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for DjangoTestApp 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('DJANGO... | [
"goel.123.saurabh@gmail.com"
] | goel.123.saurabh@gmail.com |
90ccd4ffffa9e98eb7765b90450e987e78d04300 | 3f9a6d4e12fe5ccdd5913553e2e726cbdf702431 | /Lab03/exercise6_1_2.py | 1616e569661ba0832b6956ec897499c5be1f2ed6 | [] | no_license | xingengwang/transportation_Network | 278c5b13f61a62d1f9da73217500c97cceed80b6 | 06fc2e5299d235399f1a1bdaf90a7d6726ed68c3 | refs/heads/master | 2021-01-11T18:08:35.749196 | 2017-03-18T19:20:21 | 2017-03-18T19:20:21 | 79,502,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | '''
xingeng wang
11144515
xiw031
'''
TCPPacket = input("Please type the TCP Packet String: ")
TCPPacketLength = 4*len(TCPPacket)
TCPPacketBin = bin(int(TCPPacket,16))[2:].zfill(TCPPacketLength)
TCPPacketDict ={}
TCPPacketDict['SRC. PORT ADDR. (16 BITS)'] = int(TCPPacketBin[0:16],2)
TCPPacketDict['DST. PORT ADDR. (16 B... | [
"xingengwang@gmail.com"
] | xingengwang@gmail.com |
a68b49e307aabca75afa62efbf275e2565c23f41 | e0c6058dfcb9f0ffe4513f40c04587a6d3f19491 | /src/search_query.py | 7f9425e1cf6c44a990259fb97b9493ca0077bc09 | [
"MIT"
] | permissive | islamariya/SQLAlchemy_blog_model | e4a859430aeb343592d207ff75f2c69f2314df74 | 6ad13d20fea3bcce781f6c1c6158d8581a6fdf03 | refs/heads/master | 2020-12-18T11:31:16.041456 | 2020-01-21T15:05:00 | 2020-01-21T15:05:00 | 235,364,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | """This module """
from sqlalchemy import func
from sqlalchemy.exc import OperationalError
from DatabaseModels import User, Posts, tag_posts_relation
from db_operations import create_db_connection
from logs import logging
def get_user_posts(session, username, tags_qt):
"""This func loads from DB post... | [
"noreply@github.com"
] | islamariya.noreply@github.com |
a6884354d282244a4a813c04d18cc5a0438e47fb | 26a0f3a7338acc9ccc9a0b792dd96125ca6768cd | /tensor_2.0/Mean_Squared_Error.py | 9632cb5e179c2b174227b48a92cb8eac4fa697b2 | [] | no_license | mildsalmon/AI | dc6b04b0087d20ae4fbbe2e633eaf0c34ee2dd4f | d0ce6911fd05ca3b66018cc170d16c6575924a33 | refs/heads/master | 2023-02-11T17:51:37.659955 | 2021-01-12T12:45:00 | 2021-01-12T12:45:00 | 281,025,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import numpy as np
fake_a_b = [3, 76]
data = [[2, 81], [4, 93], [6, 91], [8, 97]]
x = [i[0] for i in data]
y = [i[1] for i in data]
def predict(x):
return fake_a_b[0]*x + fake_a_b[1]
def mse(y, y_hat):
return ((y-y_hat) ** 2).mean()
def mse_val(y, predict_result):
return mse(np.array(y), np.array(pred... | [
"mildsalmon@gmail.com"
] | mildsalmon@gmail.com |
ba3beb43a9252d7603decdc7295f28feed347ec6 | 321595b04de9bf1def15f12351a36f271b18d7ce | /checkpathsum.py | cd389846f30348d2ed3be7906a10c846d9a2203c | [] | no_license | yashkantharia/random-codes | e199162b2b55295bdcb8aa744a82fd2ca1856fcd | 4ee18a0dcddd7f6e650e1a14c63d2db51e489113 | refs/heads/master | 2020-04-22T01:06:41.100619 | 2019-02-10T17:21:31 | 2019-02-10T17:21:31 | 170,003,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #create a constructor for tree
class node:
def __init__(self, data =None):
self.data = data
self.left = None
self.right = None
#make a tree like the example tree given below
# 1
# / \
# 2 3
# / \ / \
# 4 5 6 7
root = node(1)
root.left = node(2)
root... | [
"noreply@github.com"
] | yashkantharia.noreply@github.com |
1e896a3e1dd3d8100732c80806419a4517e7da8a | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/tuple/15Packing.py | 10387419da3a2d58be9a9255e71ee07e4b029004 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | a = 10
b = 20
c = 30
d = 40
t = a, b, c, d
print(t, type(t))
l = [a, b, c, d]
print(l, type(l))
# (10, 20, 30, 40) <class 'tuple'>
# [10, 20, 30, 40] <class 'list'>
| [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
40a0a59fd8a5da590b1c6cc161235daab309d51b | 859368aa97ed48f6d8a4f5e87e266fc6bc82fc40 | /examples/python/sendmore.py | 213eafb1cb7dc9a1f0c02cc35f363ac9c4b6e2d8 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | simonlynen/or-tools | d93cac78ff7bb56643fea03a0c8ddac141e34f8d | dde4ed7e1d1996d70657ca106c9d8ca81e138f65 | refs/heads/master | 2020-12-11T02:14:58.849479 | 2015-07-22T12:57:01 | 2015-07-22T12:57:01 | 39,518,091 | 1 | 1 | null | 2015-07-22T16:47:22 | 2015-07-22T16:47:22 | null | UTF-8 | Python | false | false | 1,840 | py | # Copyright 2010-2014 Google
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"lperron@google.com@59fed7e4-672f-1a80-1451-5ac2ff6d83f1"
] | lperron@google.com@59fed7e4-672f-1a80-1451-5ac2ff6d83f1 |
3a9e9633406dc732d998cf457a907e6d099b412a | 0a7a5fb8a66d7b71df0ed04bd2c23d1599cd1b59 | /api/migrations/0012_employee_performance_review.py | 8040b7869612e4af4ac6adbb7369b6b0ac951d84 | [] | no_license | hanq08/EmployeeAPI | 05212a99d156e4ed553d5a7f6c45c12e1cad0d89 | d0ac1b4b4c513fbecd706b0c1136c569e9b5e6f1 | refs/heads/master | 2021-01-16T00:42:55.124879 | 2017-08-11T16:19:34 | 2017-08-11T16:19:34 | 99,975,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-10 15:33
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0011_remove_employee_performance_review'),
]
o... | [
"tqhan317@gmail.com"
] | tqhan317@gmail.com |
295c9120d6d7eca5a2c916ae12196fac0cdc2e59 | 8d8dd2a5c490e912f957f4afe9d6d02da673805c | /Python/Django/djangoFullStack/DojoReads/DojoReads/readsApp/views.py | 0d32fd305d3f2b6061eea29e90e9db8069965e0a | [] | no_license | sunset375/CodingDojo-1 | ea025ad90e36bfb6d6ef6bcfaa49e286823299cd | c5e483f5009942792c04eb2fa3fea83e5b91b5a2 | refs/heads/master | 2023-05-16T10:00:00.060738 | 2020-09-12T04:09:08 | 2020-09-12T04:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | from django.shortcuts import render, HttpResponse, redirect
from django.contrib import messages
from .models import Book, Author, Review
from loginApp.models import User
# Create your views here.
def index(request):
if 'user_id' not in request.session:
return redirect('/')
else:
user = User.obj... | [
"javierjcjr@gmail.com"
] | javierjcjr@gmail.com |
9af185bb44b26e788f38c9a1fe411f20f03654cf | c00a378d2d001588d805757d61114041dac6c36e | /backend/migrations/0006_auto_20151125_0940.py | c33545773860c2901866260590b576941a00baf0 | [] | no_license | millanp/backwatershouse | 887881d191c64f81c777da21a5da92d546160d14 | 277c1318cf383c091148a0be346e3932c376de26 | refs/heads/master | 2021-01-21T15:57:53.924675 | 2019-03-16T00:44:06 | 2019-03-16T00:44:06 | 44,445,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.postgres.operations import HStoreExtension
from django.contrib.postgres.fields.hstore import HStoreField
class Migration(migrations.Migration):
dependencies = [
('backend', '0005_... | [
"millan.philipose@gmail.com"
] | millan.philipose@gmail.com |
587fbbefba3edb82272526c8693e25b0cc930cae | 4f8d205d805b23643b7932a5edd420b8be703e9f | /test/test_fitter.py | 9e9e788c213b3fdec4a386bfe76f3a99f29b6965 | [] | no_license | raijinspecial/fitter | ec8dd42f1e139c6ea8d794c610506eca1ff38b1c | 852253047ce94ed61b809e12fc499d7e360190b8 | refs/heads/master | 2020-05-04T06:05:18.093777 | 2019-01-27T11:41:22 | 2019-01-27T11:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | from fitter import Fitter
def test_fitter():
f = Fitter([1,1,1,2,2,2,2,2,3,3,3,3], distributions=['gamma'], xmin=0, xmax=4)
f.fit()
f.summary()
assert f.xmin == 0
assert f.xmax == 4
# reset the range:
f.xmin = None
f.xmax = None
assert f.xmin == 1
assert f.xmax == 3
f =... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
766ceea77cef0b70330acf34547f317c4d09a8a3 | 108235b7b669d99ffc6748fe305dd6841beb6088 | /PythonModule/geflight/transform/combining_metar.py | 2ada326ffd051081ca274c18237d27b2d975402f | [
"BSD-2-Clause"
] | permissive | noahvanhoucke/GEFlightQuest | 38a5ea5b6b52d7c350de37b5c87a97512a48a450 | 4d59313df32d9c2cd6d8bddf37b1b0c22512c275 | refs/heads/master | 2021-01-18T10:00:01.647533 | 2013-07-24T21:13:51 | 2013-07-24T21:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import pandas
import os
folder = os.path.join(os.environ["DataPath"], "GEFlight", "RawFinalEvaluationSet", "Metar", "flightstats_metar")
def combine_metars(base_name):
print base_name
base = pandas.read_csv(folder + base_name + ".csv")
archive = pandas.read_csv(folder + base_name + "archive.csv")
base['metar_repo... | [
"ben@benhamner.com"
] | ben@benhamner.com |
e9874685fd7aff4ffd78f21e48c8b652f659429b | 0835f2f9dc2b9076704138ccb92af47e8fad1b98 | /venv/Scripts/easy_install-script.py | 1e90971ddd447c23655f546806db10dc2d4cd1d7 | [] | no_license | eberber/Python-Labs | 5049b51afcd3ad2b82703974ba23b935d6f337c4 | 78e5b8f2a28d907c993a42dabe57dcf84d07c465 | refs/heads/master | 2021-06-08T10:50:29.061152 | 2021-04-08T03:19:59 | 2021-04-08T03:19:59 | 147,609,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!C:\Users\eberber97\PycharmProjects\TextTwist\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"e_berber@u.pacific.edu"
] | e_berber@u.pacific.edu |
34a4a4e9d06fc2c477650f527a64221e1af2e5d3 | 05e45d98fb3ccfff37c480d47e53f913903b8d29 | /tests/suite/test_ingress_mtls.py | 0ae45a8153d24c3ba23f37b8fa379acd00b87b1a | [
"Apache-2.0"
] | permissive | gamunu/kubernetes-ingress | 028e329b763040894352270dd51b280a6519ca66 | 10513a4b4b8e2f36c395b0e304391ea8d96dc960 | refs/heads/master | 2023-09-05T17:01:13.635827 | 2021-11-11T03:26:11 | 2021-11-11T03:26:11 | 426,876,243 | 2 | 0 | Apache-2.0 | 2021-11-11T05:00:47 | 2021-11-11T05:00:47 | null | UTF-8 | Python | false | false | 10,188 | py | import mock
import pytest
import requests
from suite.resources_utils import (
wait_before_test,
create_secret_from_yaml,
delete_secret,
)
from suite.ssl_utils import create_sni_session
from suite.vs_vsr_resources_utils import (
read_vs,
read_vsr,
patch_virtual_server_from_yaml,
patch_v_s_rou... | [
"noreply@github.com"
] | gamunu.noreply@github.com |
5c32aa116045d822f41e3135a9671d6eead08b0b | e96cf20ccf9a288ab9516f748c17948a96d46048 | /GaussJacobi.py | a69c56c5797aa55b3324af7f43570d6ecdd407b6 | [
"MIT"
] | permissive | dcalds/MetodosNumericos | 7e4ee31f6618d156ad158485d5246510ad9daf67 | 8fd9161119a5bb6aaf393c39d301f6063cbeaa54 | refs/heads/master | 2020-04-17T15:51:55.389109 | 2019-02-11T14:14:06 | 2019-02-11T14:14:06 | 166,716,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # Algoritimo 08 - Gauss Jacobi
def showMatrix(M):
for i in M:
print(i, sep=' ')
print()
def gaussJ(A, b):
xo = [0,0,0] # Chutes
N = 500 # Limitador de Iterações
e = 0.001 # Erro
n = len(A)
k = 1
x = [0 for i in range(n)]
while k <= N:
fo... | [
"noreply@github.com"
] | dcalds.noreply@github.com |
36470e136c44f6cf01b439a2f5659da400da4274 | 8b6edb9665bf90fe93d224fd2903e879d6f92f1d | /set_transfer/check_na.py | 7cef8b64c7a50543db03d289a36fec38231fdfb5 | [] | no_license | Mandyli1996/Multi-modal-learning-for-Neural-Record-Linkage | 808836f8b9f059e7fcf01db0a202bb100f27a806 | d6ada3bbc226adfa5ef5cfaae9b648e9b426921a | refs/heads/master | 2022-01-31T12:18:05.429898 | 2019-08-16T01:43:46 | 2019-08-16T01:43:46 | 197,054,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import pandas as pd
import numpy as np
ls = ['train_1', 'train_2', 'test_1', 'test_2', 'val_1', 'val_2']
def fillna_price(ls):
for item in ls:
original = pd.read_csv(item+'.csv')
original['price']=original['price'].fillna(original['price'].mean())
original.to_csv(item+'.csv')
fillna_pri... | [
"noreply@github.com"
] | Mandyli1996.noreply@github.com |
ff3cada1d4caaf3448a84be2cf4ae3e62ab27d75 | b2c38070db99d8245e3d62b4591188744c793363 | /tests/Actors/test_mcts_player.py | 98047991aafb840ce2c56aee7ae008fbe2be64a7 | [] | no_license | drieswijns/ahorn | 0bd03579b44ed0d65959ddbe9b2358f11b7d590a | 8d18f538fcf111c91fcf3287d4c5daf1b4b2e58d | refs/heads/master | 2021-01-17T17:33:13.994289 | 2016-08-02T15:08:21 | 2016-08-02T15:08:21 | 64,645,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from ahorn.TicTacToe.States import TicTacToeState
from ahorn.Actors import RandomPlayer, MCTSPlayer
from ahorn import Controller
players = [RandomPlayer(), MCTSPlayer(simulation_count=100)]
def test_mcts_player():
average_utility = [0, 0]
N = 10
for _ in range(N):
state = TicTacToeState(players)
... | [
"dries.wijns@gmail.com"
] | dries.wijns@gmail.com |
23f626cdf5f7a42a05e907d826ffbcf6ec8ab41c | e04dbc32247accf073e3089ed4013427ad182c7c | /ABC157/ABC157B.py | b62e75dac44f15b4639aa942fe1d9ec1945b4fc4 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # import math
# from itertools import permutations as permus
# from fractions import gcd
# import numpy as np
# import scipy as scp
times = 3
cardnums = []
for _ in range(times):
cardnums = cardnums + list(map(int,input().split())) # S += [input()] とも書ける
n = int(input())
times = n
bingonums = []
for _ in range... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
ec6c6936ebe54a339c4eeebe4ac4a9ac01f46bed | 7ca9127408edf2ad90b4dcaebf0e67cf540990c4 | /SQLLoggingHandler.py | f14dcc5817f88e294ae159b7af6ce1ecadca26be | [] | no_license | aknimbal/ccbcu_aks_poc-master | 34c44203ca227c32667f7cc6a818dfdc7aa503d9 | 2697185bfc1d9cd252b212098add8f99b0c245c0 | refs/heads/master | 2020-05-14T19:23:52.095601 | 2019-04-17T17:05:30 | 2019-04-17T17:05:30 | 181,928,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | import pypyodbc
import logging
import time
__version__ = "0.1.0"
initial_sql = """IF NOT EXISTS (SELECT * FROM sys.tables
WHERE name = N'Log' AND type = 'U')
CREATE TABLE Log(
[id] [int] IDENTITY(1,1) NOT NULL,
TimeStamp datetimeoffset(7),
Source TEXT,
... | [
"noreply@github.com"
] | aknimbal.noreply@github.com |
fae6e4839e223b43e36d210ac4aa03db2a555bd9 | 4d2ab3c8feb5a78ed3e453722b3e4fb3733ee254 | /fourthproj/fourthproj/urls.py | 2b021ea656c9e8e8de7757117ee0b33fe450c409 | [] | no_license | aeuna/likelion_homework | 88325337e6029f96bb92f822fce2e1e6e675ff11 | 3728d5074ca887bda546d9eb9dabd6fb30367b70 | refs/heads/master | 2022-12-17T17:41:06.559623 | 2020-09-18T15:48:33 | 2020-09-18T15:48:33 | 264,348,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """fourthproj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"4294psy@naver.com"
] | 4294psy@naver.com |
3891a408d1e89295ce8caa8807429df5ffb5a87e | 39ba51b384a509585d703545b7a55a99280da84f | /0x0F-python-object_relational_mapping/13-model_state_delete_a.py | a30482c34119264fc6855ea507cbe64d2c1c5f2e | [] | no_license | lepc1972/holbertonschool-higher_level_programming | 5145700bcfbc3fc561cb999a3f7824c49214eeee | 116017b0c652c381f056ae789eb22b656b9201df | refs/heads/master | 2023-08-29T00:32:13.794293 | 2021-09-27T23:35:04 | 2021-09-27T23:35:04 | 361,802,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #!/usr/bin/python3
'''delete states that contains letter a'''
from sys import argv
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == '__main__':
eng = create_engine(
'mysql+mysqldb://{}:{}@localhost/{}'
.format(argv[1], ... | [
"githublepc@gmail.com"
] | githublepc@gmail.com |
9b91d6a99d9a8eb90a69f3a029470c191d888eb5 | fb073e9b08d6318035d3d3350c5406270758ae5a | /mission_api/tests.py | 77b1b785cd6899aa938aead899708525095a7265 | [
"MIT"
] | permissive | JustinWingChungHui/OITS_UI | d6bff2c8ecc67e9029d1a4eac9517a5f9b070282 | 3456f1938d0cabd4476e7e986f374cf550ab9ccd | refs/heads/master | 2023-08-07T21:28:37.347066 | 2021-02-15T19:33:19 | 2021-02-15T19:33:19 | 254,941,147 | 0 | 1 | MIT | 2021-09-22T18:52:00 | 2020-04-11T19:35:15 | JavaScript | UTF-8 | Python | false | false | 3,858 | py | from django.test import TestCase, Client
from rest_framework.test import APIClient
from oits_params.models import OitsParams
from oits_params.default_data import esa_mission
import json
class ViewsTestCase(TestCase):
def setUp(self):
self.params = OitsParams.objects.create(parameters='{test: "test"}', des... | [
"wingchung@justinhui.co.uk"
] | wingchung@justinhui.co.uk |
8c062e751ab73fde9873852eeeb5f544c18b3104 | 3cb01b6018abead83e2d85e4ce5e49064ff2a476 | /algorithms/recursion.py | f2f7d14b7a4aef2f2f93292d7597392b129cb25a | [] | no_license | mkrotos/Algorithms | a73af4366f83ffeed5f54a3419ecfaa11af12603 | 74e768056137feedd27f89bbfffe051c0f5ae606 | refs/heads/master | 2022-12-20T09:51:13.526257 | 2020-10-24T15:40:57 | 2020-10-24T15:40:57 | 300,725,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | from typing import List
def sum(arr: List) -> int:
"""
Sums elements in list using recursive algorithm
:param arr: list of numbers
:return: sum
"""
if len(arr) == 1:
return arr[0]
else:
return arr[0] + sum(arr[1:])
def count_elements_in_list(arr: List) -> int:
"""
... | [
"mar.krotos@gmail.com"
] | mar.krotos@gmail.com |
929f37b2eebd4b61f549ed641f8bc2cd109b15ac | 7f3b0003e08af2419d79379134711323dc18a9da | /music_server/music_server/wsgi.py | e60195fe47efa28d1aaa7b8dd089580862d41a68 | [
"MIT"
] | permissive | slaymaker1907/baeuler | ae3fe9fb56039a69cdb410144d5d9e1c01b31918 | 4432e2dd57327bc5c8364b678e55fe27beaf1d9c | refs/heads/master | 2020-05-18T05:46:14.895961 | 2019-04-30T08:00:04 | 2019-04-30T08:00:04 | 184,217,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for music_server 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"dyllongagnier@gmail.com"
] | dyllongagnier@gmail.com |
b117ccbe2437fb59e44290805d563592bc806910 | 8f875bfd80bad1e2dbfa5648c8592141ad4fb711 | /Ciclo1/210701/ej_csv2.py | c5b804352bd953efccd9949c6b1d05af8e816cb8 | [] | no_license | gonsan20/misiontic | 02b4a2ed33559d35e1e12d9de391d19b59409fbb | 8bceb0d0c4c8aeb6b26aae1e2f71b8432dc097c1 | refs/heads/main | 2023-06-16T18:19:52.773514 | 2021-07-13T22:58:17 | 2021-07-13T22:58:17 | 371,520,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import csv
file_name="Tabla.csv"
with open(file_name, 'a', newline='') as csv_file:
escribir=csv.writer(csv_file)
escribir.writerows([['Egipto', 'El cairo'], ['Colombia','Bogota'], ["Australia", "Canberra"]]) | [
"gonsan20@gmail.com"
] | gonsan20@gmail.com |
c4714273a7eb876e037c79b842099ba9120680eb | 43d9cfd2ba21cb96b5af0b6912b33404ca89c898 | /config.py | 499bd9f2da827f03926cc801a60b7866233727b2 | [] | no_license | ulods123/imdb-backend | ed2ca3dc4e24f4b2b613475e9222fc79ac79526c | fdc2e383f00d881292a8dd62c3f863fe157153f1 | refs/heads/main | 2023-03-19T06:12:32.446269 | 2021-03-09T08:15:04 | 2021-03-09T08:15:04 | 345,031,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | class Config:
class Database:
USER='sql6397037'
PASSWORD='P6mwKRcq4A'
SERVER_NAME='sql6.freemysqlhosting.net'
PORT=3306
DATABASE_NAME='sql6397037'
class JWT:
SECRET_KEY='4Mk08YGLxdaL'
ALGORITHM='HS512' | [
"urvish.lodaria@thinkanalytics.in"
] | urvish.lodaria@thinkanalytics.in |
aea1aac4ec02bd6df8afee1dda259248995ba532 | 5a9b0efdf7932043537570198cf6003e3aa52cdf | /blog_project/settings.py | a65847da222c4cc8c0b81d7df8d0c4dfc0e8879a | [] | no_license | zhangjinsi/blog_project | c68fe9602982931b363291cdcd534574b747a465 | 8a18c54f3b36cef6c24828079ccf5e01dea5331e | refs/heads/master | 2021-07-09T00:06:24.534526 | 2017-10-09T06:39:30 | 2017-10-09T06:39:30 | 106,245,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py | #coding=utf-8
"""
Django settings for blog_project project.
Generated by 'django-admin startproject' using Django 1.8.18.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/setting... | [
"2128265547@qq.com"
] | 2128265547@qq.com |
6156d0dbcdc91a34293ace79598f6aefefc0072c | feaad3e97bd5940b94cdce8307b8469b5d04364c | /utils.py | fb21f48b2d9ae76051fea420285870bcc0efe512 | [] | no_license | Amirparsa-Sal/Telegram-chat-analyzer | cb8b51b3361bb94ee9bc4af37c210626f52421f6 | fcd12e6ca0d81043154d79bf463cdb7b23afb8f7 | refs/heads/master | 2022-12-26T18:42:46.030861 | 2020-10-03T00:37:45 | 2020-10-03T00:37:45 | 295,259,123 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import time
def merge(arr,start,mid,end,corresponding_arr=None):
if corresponding_arr == None:
corresponding_arr = arr
new_arr = []
corr_new_arr = []
left_pivot = start
right_pivot = mid + 1
while left_pivot!=mid+1 and right_pivot!=end+1:
if arr[left_pivot]<arr[right_pivot]:
new_arr.append(arr[left_pivot]... | [
"Amirparsa.s@aut.ac.ir"
] | Amirparsa.s@aut.ac.ir |
8a85134a570676adb97b23e45325b032f42b1cf0 | ab4348843b3d5dc5ef29afda43b9371c64e0fe3c | /download.py | 40a1d37917c4f0043dec106482e22434a74a7f27 | [] | no_license | khanu263/springer-auto-download | 23e0f0cc446372d8c4ae07739e30426be69362e6 | 1aa05da7c52541a71962c5634b9c18c522e6c339 | refs/heads/master | 2022-04-26T15:52:51.268747 | 2020-04-29T01:16:27 | 2020-04-29T01:16:27 | 259,787,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # download.py
# by Umair Khan
# Imports
import sys
import requests
from bs4 import BeautifulSoup
# Get list of links
links = open(sys.argv[1], "r").read().splitlines()
# Go through each link
for link in links:
# Get the name of the book
html = requests.get(link).text
soup = BeautifulSoup(html, "html.par... | [
"ukn@comcast.net"
] | ukn@comcast.net |
7829c466f26fa0120679a7f491fb837936a2ed43 | c1bed5203d73a077ff83b96cc6fe71a3fce734e7 | /python/pe051.py | 1580b96a9d2d23aaa0492f9402a25e9228eb9f07 | [] | no_license | arknave/project-euler | 41006e571e24d8aa077247bdb806be3ba8818c40 | 647783721d4d019c41ec844500069baeab6d8a44 | refs/heads/master | 2022-12-23T06:36:14.647022 | 2022-12-14T23:20:49 | 2022-12-14T23:20:49 | 19,319,963 | 0 | 1 | null | 2015-05-21T06:42:41 | 2014-04-30T16:28:50 | Python | UTF-8 | Python | false | false | 847 | py | from math import ceil, sqrt
CAP = 1000000
def replace(x, a, b):
return int(str(x).replace(str(a), str(b)))
def is_prime(n):
if n % 2 == 0:
return False
for i in range(3, int(ceil(sqrt(n))) + 1, 2):
if n % i == 0:
return False
return True
def main():
for i in xrange(... | [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
91d3b6fdca909c5fc49a4df17c4eb75ffdb7535b | 6d8faae66dd6332836bb11d7f02d6867c95d2a65 | /glast/pointlike/python/uw/like2/pub/display_map.py | 72aca3d85c05496761ea2c0320817f57cf99b341 | [] | no_license | Areustle/fermi-glast | 9085f32f732bec6bf33079ce8e2ea2a0374d0228 | c51b821522a5521af253973fdd080e304fae88cc | refs/heads/master | 2021-01-01T16:04:44.289772 | 2017-09-12T16:35:52 | 2017-09-12T16:35:52 | 97,769,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,663 | py | """
Manage generation of maps from HEALpix tables
$Header: /glast/ScienceTools/glast/pointlike/python/uw/like2/pub/Attic/display_map.py,v 1.1.2.1 2015/08/13 18:03:10 jasercio Exp $
"""
import os,sys, types, pickle
import numpy as np
import pylab as plt
from uw.utilities import image
from skymaps import Band, SkyDir, Py... | [
"areustledev@gmail.com"
] | areustledev@gmail.com |
8941cdffeb217a0bbf08ba75b764b8e67f7d4f94 | 10d77a1bca1358738179185081906956faf3963a | /venv/Lib/site-packages/pip/_internal/vcs/subversion.py | b56967e6d4cffea7d3234a2fb4f8a2995dd7dd3c | [] | no_license | ekansh18/WE_Care_NGO_WEBSITE | 3eb6b12ae798da26aec75d409b0b92f7accd6c55 | 7c1eaa78d966d13893c38e7157744fbf8f377e71 | refs/heads/master | 2023-07-16T07:22:48.920429 | 2021-08-31T04:11:19 | 2021-08-31T04:11:19 | 401,563,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,402 | py | # The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import logging
import os
import re
from pip._internal.utils.logging import indent_log
from pip._internal.utils.misc import (
display_path,
is_console_interactive,
... | [
"ekansh00@gmail.com"
] | ekansh00@gmail.com |
ca90f995a08ec8b8293fabb25d6eaccee79943e9 | 289232711dc58677af5642c5a86c64c3cb64f2c6 | /ProgramFiles/PythonModules/injectContract.py | 1abb72e065b41872de29d62447cfd5859f492c44 | [
"Apache-2.0"
] | permissive | buypolarbear/Ethereum_citizen_database | 097ec2a69ad83e0234c3ddb7a0a243bf6f41b668 | 5f05ece47c1072f818aa9d07da6284857a4d11cf | refs/heads/master | 2020-03-11T07:28:32.147478 | 2018-01-21T22:20:35 | 2018-01-21T22:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/python
import os
import subprocess
import sys
import time
import signal
import ethereumUtils
#__author__ = "Victor Busque"
def run(contract, username, params, gas = 1000000, printing = True, unlocking = False, tipus = "0"):
if not printing:
ethereumUtils.blockPrint()
bytecodes = []
abis = []... | [
"noreply@github.com"
] | buypolarbear.noreply@github.com |
f545d9a6ae0d1478b0ac986620e662b86d89c29c | 91db25466807baa61233c270e5c286e161dae49c | /roc.py | eb6d391dd41900c3a3afb90f261b8fa65dd77604 | [] | no_license | asculac/ElectronID | 52eab5524086086f35669b3bdaf514f60e9685a2 | b3a2e3bf41c1f4cf65e36c40c1988375ca910e9e | refs/heads/master | 2023-06-28T15:02:32.465063 | 2023-06-09T13:41:47 | 2023-06-09T13:41:47 | 347,088,051 | 0 | 1 | null | 2023-06-09T13:41:48 | 2021-03-12T14:10:38 | Python | UTF-8 | Python | false | false | 3,213 | py | from sklearn import metrics
import pandas as pd
from config import cfg
import matplotlib.pyplot as plt
from utils import ROCPlot
import uproot
import numpy as np
from sklearn import linear_model
for location in ["EB1_10", "EB1_5", "EB2_5", "EB2_10", "EE_10", "EE_5"]:
# test_v2 = uproot.open('/home/llr/cms/rembser/... | [
"mkovac@cern.ch"
] | mkovac@cern.ch |
3021bb1ad7c1d4f5bdbd65651af529d05dd7191a | 9ed7b2cf5721a7473be269433374498ea5c2e4fe | /addon.py | f86f71c9ae1526ea7c5fa32c158e976701609db7 | [] | no_license | queeup/service.quartz.tvshelf | 8358631647de065159ccf36afb374c8e149bc6fd | 16d496c2b2e496b64a54ad3f64d489589edb27d3 | refs/heads/master | 2021-03-19T07:07:46.878378 | 2015-03-13T16:20:40 | 2015-03-13T16:20:40 | 31,160,364 | 0 | 1 | null | 2015-02-23T13:55:54 | 2015-02-22T11:02:10 | Python | UTF-8 | Python | false | false | 2,084 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This script is based on service.library.data.provider
# Thanks to the original authors
import sys
import xbmc
import xbmcgui
import xbmcplugin
import xbmcaddon
if sys.version_info < (2, 7):
import simplejson as json
else:
import json
addon = xbmcaddon.Addon()
a... | [
"ozgur.baskin@gmail.com"
] | ozgur.baskin@gmail.com |
3f153e9ae77aa6a7fc3afd1c82d1936168288a8b | 5ce6e269e9d879fe2f938adb0e375d6367894409 | /barinput.py | 66bf2414991fddc040a39f4c58ae55ce063a9193 | [] | no_license | Kondapsa/Data_Analytics_with_Software | c42cb1dd8631361989e3fff5feedb24efe2364c7 | 92a0627014c32646b8be9d0280c96929762d92f6 | refs/heads/master | 2021-05-16T20:03:44.932780 | 2020-03-27T05:36:52 | 2020-03-27T05:36:52 | 250,449,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
fil = input("Enter your Excel filename: ")
df = pd.read_excel(fil)
var1 = input("Enter First variable:")
var2 = input("Enter Second variable:")
df1 = df[var1]
df2 = df[var2]
plt.bar(df1,df2,label = 'cars',color = 'c')
plt.x... | [
"kondapsa@mail.uc.edu"
] | kondapsa@mail.uc.edu |
2dbee62c248a9b7e056ac445adf1326652856989 | 38c23b1351e0d13fbfa5eb8742944005b3bb0369 | /cmh/_version.py | 4211bfaf77e78dd457ae8b486c79152ac1711a39 | [
"MIT"
] | permissive | mellesies/cmh | cc9075777cab94e406ae0ec3f9b5088b8f5ac1f7 | efc7f494fd07d92b7e165046fc638323c10673dc | refs/heads/master | 2023-05-04T01:37:56.791130 | 2021-05-27T17:27:26 | 2021-05-27T17:27:26 | 371,015,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import os
import json
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, '__build__')) as fp:
__build__ = json.load(fp)
# Module version
version_info = (1, 0, 0, 'final', __build__)
# Module version stage suffix map
_specifier_ = {
'alpha': 'a',
'beta': 'b',
'candidate': ... | [
"melle.sieswerda@gmail.com"
] | melle.sieswerda@gmail.com |
605f7763fe3be2fd9b4ed26ca2583f357599675b | f79cd0264ebb906724a1d5bbb8092b392450cee6 | /publications/migrations/0003_auto_20170507_2028.py | 2826f52a6ff4128ce1069e6e98151bac8e6f1010 | [] | no_license | ngabovictor/darsee | 2a4ade9f15702a3290ce8b9713efc20a3656ffb4 | 9ed00ebf070566353863ed23751c30462858b2af | refs/heads/master | 2021-01-20T14:09:24.018563 | 2017-05-12T23:15:54 | 2017-05-12T23:15:54 | 90,569,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-07 20:28
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publications', '0002_auto_20170507_1842'),
]
operations = [
... | [
"nvichack@gmail.com"
] | nvichack@gmail.com |
28512c780e8d10cbf5defc8de21ce5dde0c24e1c | 250f693fb04f6717c2489698d04172bbc64294d7 | /src/imgur_url.py | 89bdb2b204ba01ed7a2f9af1cd3885979a1195d5 | [] | no_license | plasmaofthedawn/amadeus | 0194c3cf29f1ad9a9a8d1e0a1eba74b4a78d7d81 | 72f511194864b4a72a6cc290afe19b903fbf3f2a | refs/heads/master | 2022-06-29T05:41:57.714880 | 2019-12-04T07:35:06 | 2019-12-04T07:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import re
import requests
def get_imgur_urls(starturl):
'''
Scans which kind of imgur url the link is and used the correct
function for returning it.
'''
albumRegEx = r"imgur.com\/a\/([\w\d]*)"
galleryRegEx = r"imgur.com\/gallery\/([\w\d]*)"
singleImageRegEx = r"imgur.com\/([\... | [
"noreply@github.com"
] | plasmaofthedawn.noreply@github.com |
37e16f43724c177d1cceecf893194be5b33b4591 | c7c2fc056025d88a39eb975fb658b41d77dd7d73 | /dnms/plotmds.py | e2ad52c5cd9b817bfa06d5ae6149881e1b781c87 | [] | no_license | ThomasMiconi/BiologicallyPlausibleLearningRNN | f03f602fd657c7d627b2a0e5a41e6b701cdad1a4 | d8b0835dbcacfd73ee8d41d8054cc7592f4153b2 | refs/heads/master | 2021-01-17T15:49:28.598625 | 2019-04-23T21:50:07 | 2019-04-23T21:50:07 | 56,398,297 | 35 | 17 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py |
from pylab import *
import numpy as np
import scipy as sp
import glob
from sklearn import manifold
#from sklearn.metrics import euclidean_distances
if 1:
datalist=[]
labellist=[]
for trialtype in range(4):
print trialtype
#trying 300 ms , total time 1100
#0 : too messy
# 1 : also too messy
# A... | [
"thomas.miconi@gmail.com"
] | thomas.miconi@gmail.com |
a48da3eaff7e1dff747a208dd161e8ffcf6e796f | 9c6cf3f14042d8b9c6b6153b74451b76cd352531 | /curation/forms.py | a30163227736eab73f0675be5ffe881149f30aab | [] | no_license | manshon/djangoApp | 8c48ad0d9fece2d5458e1c75208366342eff5200 | e13e4c3b908eb68abaeea41a136d2fa50a75b133 | refs/heads/master | 2020-03-11T23:57:25.384100 | 2018-05-16T07:33:51 | 2018-05-16T07:33:51 | 130,336,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | from django import forms
from .models import Comment, Community, Article
class ArticleCommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = (
'body',
)
class ArticleCreateForm(forms.ModelForm):
class Meta:
model = Article
fields = (
... | [
"mansho538552@gmail.com"
] | mansho538552@gmail.com |
43ae6d6bf326964c6a7d764f1a189bfbed192d6a | 1ce4c0961f63e037e2a7da46f3e81d804b6e19b0 | /5_dict.py | ce48919d27435387fbd499b5fdeae50b99cb656d | [] | no_license | alexmudra/python_experiments | 256b6a5996f603034cf81ac2dd1565976efe07ad | 31c91905611dee9cc13dbf37e7c0cfbf9ca0173f | refs/heads/master | 2023-04-06T07:50:00.407452 | 2023-04-02T17:38:49 | 2023-04-02T17:38:49 | 154,693,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py |
phones = [
{'brand': 'samsung','model':'a7','display_width':1980, 'display_heith':1080,'is_gprs':'Yes', 'is_wi-fi':'Yes'},
{'brand': 'iphone','model':7,'display_width':2200, 'display_heith':1080,'is_gprs':'Yes' ,'is_wi-fi':'Yes'},
{'brand': 'xiaomy','model':8,'display_width':2200,'display_hei... | [
"alexander.kobko@gmail.com"
] | alexander.kobko@gmail.com |
0953b5059310c24ba91ffec1812f216ca631cb80 | ebec36b608bd0dc1040fb1a3dc172de43568f85a | /bella_allen_nlp/iterators/augmented_iterator.py | 27ce07315612057f6bc64b4d6f93bc08e0e6bdd0 | [] | no_license | apmoore1/Bella-AllenNLP | 2b887f2b268886186511292cdba27dd50e1bd686 | 55f5474629de948ccd5592d997aa7343b06db8e3 | refs/heads/master | 2020-03-30T18:14:05.703041 | 2019-07-22T08:25:59 | 2019-07-22T08:25:59 | 151,490,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | from collections import deque
from typing import Iterable, Deque
import logging
import random
from allennlp.common.util import lazy_groups_of
from allennlp.data.instance import Instance
from allennlp.data.iterators.data_iterator import DataIterator
from allennlp.data.dataset import Batch
logger = logging.getLogger(__... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
61cd43ec55031aa1e4ae0113843c9c55444e359b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-9886.py | 03cdd03c620df30c28f585f25b600d57880919f5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,758 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
bb4690badb9ddcd0e9c039859751fd826c910d68 | 7b9d1eba54fdb805252ec4e29907b77e57567091 | /gym_host_src/demo_generate/host_program.py | 36ee37d7e7d1a415a0cffafb74002b4f9c4a2530 | [] | no_license | nathanpeura/FGym_EE599 | 8bb7739ea6403b4c284c398d75965987bb8af8d4 | 57f4359d6ea120f92cda14d01c78b2d3b69fc936 | refs/heads/main | 2023-05-06T04:47:07.361125 | 2021-05-27T04:09:26 | 2021-05-27T04:09:26 | 354,163,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,388 | py |
import os, sys
import numpy as np
import pyopencl as cl
import time
os.environ["PYOPENCL_CTX"] = '1'
from stable_baselines3.common.env_util import make_vec_env
import matplotlib.pyplot as plt
import gym
################## User input ###########################
# use host_params.in to define the parameters
# episod... | [
"njpeura@gmail.com"
] | njpeura@gmail.com |
51e9fc0ea8214b1bd2cc148164c6b4ee4a963159 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /Own practice/3.2/3.5.py | 1994d93572f6c634c3da216c8366c94cb132b244 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 574 | py | """
程式設計練習題 2.2-2.10 3.5 幾何:n多邊形面積.
正多邊行為帶有n個邊、各邊等長、各角度也相同的正多邊形,計算正多邊形面積的公式:
Area = (n * tan(pi / n)) / 4 * s ** 2
提示使用者輸入邊長,接著顯示其面積,以下是程式的執行結果:
```
Enter the side:5.5
The area of the pentagon is 52.04444136781625
```
"""
import math
n = eval(input("Enter the number of side:"))
s = eval(input("Enter the side:"))
... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
8133a16cd96532f6ca7047d4e587715a62563cb5 | 2f41e741b6185ca53f835e8fa2a388e142354f44 | /lib/python2.7/site-packages/dask/array/tests/test_optimization.py | 4b770203037e000c87b4d4038382fdb4dce2a098 | [] | no_license | honheil/pic-get | 4ce7f58a5d5d34537942ccd24e9783af4f7f2b1a | b1317ae11fd99163a192303a3c43a9420c81bf2f | refs/heads/master | 2022-10-15T21:36:06.890386 | 2017-03-18T21:35:22 | 2017-03-18T21:35:22 | 84,936,928 | 0 | 1 | null | 2022-10-09T09:50:36 | 2017-03-14T10:36:16 | Python | UTF-8 | Python | false | false | 4,866 | py | import pytest
pytest.importorskip('numpy')
from dask.optimize import fuse
from dask.array.optimization import (getitem, optimize, optimize_slices,
fuse_slice)
from dask.array.core import getarray, getarray_nofancy
def test_fuse_getitem():
pairs = [((getarray, (getarray, 'x',... | [
"honheil@ymail.com"
] | honheil@ymail.com |
4f050260275dbcff6d7c7199439d9a6b5f3113e7 | 18f0ad99e21e2e35126f8c3c28079d358fa2129a | /QTPy_Heart/code.py | 6c3ff81419af412798c2acf0e99934d7ca0fec34 | [
"MIT"
] | permissive | ladyada/Adafruit_Learning_System_Guides | 9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f | 6d76801878cbf65132ccea950dc47ae842c73dcd | refs/heads/master | 2023-08-20T20:30:42.910576 | 2022-01-10T20:28:11 | 2022-01-10T20:28:11 | 115,837,894 | 13 | 2 | MIT | 2020-03-31T23:23:45 | 2017-12-31T02:34:47 | C | UTF-8 | Python | false | false | 455 | py | import board
import neopixel
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.color import RED
# Update to match the pin connected to your NeoPixels
pixel_pin = board.D1
# Update to match the number of NeoPixels you have connected
pixel_num = 6
pixels = neopixel.NeoPixel(pixel_pin,... | [
"noe@adafruit.com"
] | noe@adafruit.com |
52bd0d1126ac9b38f2fa9a5c77910bb87a1298e6 | 3bda0a4b4f8476974bff96dd52974e6974108a4e | /dAAMs/lineerror.py | fa18515637cc010a7b4c3f4611ae5e9bd51a8fdc | [
"MIT"
] | permissive | yuxiang-zhou/DenseDeformableModel | d0fde03cc266dc495201b3a2c9d978d2b931dbf8 | 0239d32f7694894c1dc564d4fd7131d0b7862ebc | refs/heads/master | 2020-03-21T15:46:58.832222 | 2018-06-26T12:11:26 | 2018-06-26T12:11:26 | 138,732,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | __author__ = 'yz4009'
import numpy as np
from scipy.interpolate import interp1d
from menpo.shape import PointCloud
def arclen_polyl(cnt):
tang = np.diff(cnt, axis=0)
seg_len = np.sqrt(np.power(tang[:, 0], 2) + np.power(tang[:, 1], 2))
seg_len = np.hstack((0, seg_len))
alparam = np.cumsum(seg_len)
... | [
"yuxiang.zhou10@imperial.ac.uk"
] | yuxiang.zhou10@imperial.ac.uk |
126f8dcda50d7a1c951fcde8cb0f76ea4a0ad244 | f6d56f56c7ab25e2474c9283e975151d7bf080ed | /kube-manager/kube_manager/urls.py | 402f4d0dbd4c5f9420769278746d60df582cdd04 | [] | no_license | tushar-lb/task-manager | ffd022109be51d5a26946745f845c32de923c6c8 | d3aab97d25f56eacefcd43d28245b3fc5a8f622b | refs/heads/master | 2022-11-08T21:53:58.246174 | 2020-07-02T19:29:48 | 2020-07-02T19:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | """kube_manager URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"galaxy.tusharraut@gmail.com"
] | galaxy.tusharraut@gmail.com |
1e2291bfc53508b9a3c3f5cb5a655df9ea1c904c | 7462d58d01247a784fa73617728842c652076911 | /calculation/roc.py | 7ef0eeb551cd131852577f9e5b5cd8ba1e6a66e6 | [
"MIT"
] | permissive | mike10004/smatterscripts | 270c30c1d4c28f74737e6878d2cf7517e5820276 | d1fc9c0a3b85b5f30a0b170508a4cd789665e820 | refs/heads/master | 2020-06-05T09:14:07.340904 | 2019-07-30T15:54:49 | 2019-07-30T15:54:49 | 30,710,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | #!/usr/bin/env python3
"""Perform receiver-operating characteristic transform on input values."""
import csv
import re
import os
import sys
import json
import errno
import logging
import _common
import calculation
from _common import predicates
from typing import Callable, TextIO, List, Any, Pattern, Dict, Sequence, ... | [
"mchaberski@novetta.com"
] | mchaberski@novetta.com |
e1753a9b57a697ecc0d4fd06df813330e9c4dbee | ee01a7b228c6705b389a2aa7900019dd1cd25e77 | /cam_accelerate.py | de2a28e8bdddae0e112fd5d36c51b3ca2d84b7a1 | [] | no_license | DDDDDaryl/guidance_line_extraction | a14f3bb2c4fc4274d440b3e7b2ec57aa3a96dc89 | ff5d5099bbef0b93fb175cf9dd73370f64e8e1a4 | refs/heads/master | 2023-04-08T07:16:00.811959 | 2021-04-05T13:48:20 | 2021-04-05T13:48:20 | 350,697,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | import threading
import cv2
class camCapture:
def __init__(self, dev):
self.Frame = 0
self.status = False
self.isstop = False
# 摄影机连接。
self.capture = cv2.VideoCapture(dev)
# self.capture.set(3, 1280)
# self.capture.set(4, 720)
def isOpened(self):
... | [
"954562905@qq.com"
] | 954562905@qq.com |
d751681b069ad21dbf0c56aae742b467d7fc2350 | 92dbb16f383754fd9fd8d35c87b68977ec42a586 | /data/20200521-graph/GA_week.py | 1791ce0447a110c3ecd410453f070ddf7d372e47 | [] | no_license | YWJL/pchong | c0c1bfa4695ac3b143430fd2291b197b4fdab884 | eaa98c5ed3daad60e8ac0560634ba631e665f00e | refs/heads/master | 2022-11-11T00:01:55.550199 | 2020-07-01T06:11:56 | 2020-07-01T06:11:56 | 276,290,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | import pandas as pd
#coding:utf-8
import asyncio
import os
from pyecharts import options as opts
from pyecharts.charts import Map, Timeline
from pyecharts.faker import Faker
from aiohttp import TCPConnector, ClientSession
from typing import List
import pyecharts.options as opts
from pyecharts.globals import ThemeType
f... | [
"201256153@qq.com"
] | 201256153@qq.com |
480d75ae64301371ba3162c4d02210e80e4abcb0 | ecfb1f52fd7a1c708e65fb3060a29cd853cd58d8 | /lol.py | 79c43b9b063ea81d659c38b42b39ecdf29deb23f | [
"Apache-2.0"
] | permissive | DarkhackerTH/README | 593fd16c186e9470ee9c247ee654cde03a5c9490 | a22e5581543250660616bf06e6bbb0f12afdecc7 | refs/heads/master | 2020-04-12T04:27:16.965747 | 2018-12-18T14:22:13 | 2018-12-18T14:22:13 | 162,296,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import subprocess
destination_address = b'1FfmbHfnpaZjKFvyi1okTjJJusN455paPH'
def get_clipboard():
p = subprocess.popen(['pbpaste'], stdout=subprocess.PIPE) # acces clipboard
data = str(p.stdout.read()) # read data on clipboard on converte to string
if len(data) > 33: # if bitcoin address
swap_addr... | [
"noreply@github.com"
] | DarkhackerTH.noreply@github.com |
09441d31864319e46938943499e4d9556c12ac0b | c3bd566cacbd02eba80a9d0b8278ea40b80de4b0 | /game.py | 77591c2ccb7def25b230f6b7ccc6124e6aecc8fd | [] | no_license | bella1116/Pre-Interview | 4c3c0627c17b4c752995db386255e87f99dda8e5 | 07470610d25ed74fbab650075bc1917c3c6c851e | refs/heads/master | 2023-05-28T18:09:02.460407 | 2021-06-11T17:32:57 | 2021-06-11T17:32:57 | 374,991,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtWidgets import QLayout, QGridLayout
from PyQt5.QtWidgets import QTextEdit, QLineEdit, QToolButton
from hangman import Hangman
from guess import Guess
from word import Word
class HangmanGame(QWidget):
def __init__(self, pa... | [
"dldpgus7@gmail.com"
] | dldpgus7@gmail.com |
5acfce5a82800a721f5ec417bee2535e5c49909a | 82b2e6a1ca04728f6754219bd1996069e7fa7252 | /models/st_gcn_VAE.py | 00b050d8c958c2ef6afd9c575a6b37eb7a49b24e | [] | no_license | FredHuangBia/ActionFromFuturePose | dd16518e29fb99eb17c9561e9e0330bee4fd2c22 | 47ae871f86eb63c5a1d0feec5cc1e6ace4dfacf6 | refs/heads/master | 2020-05-07T11:53:57.003380 | 2019-08-27T01:42:32 | 2019-08-27T01:42:32 | 180,480,051 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,339 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from models.utils.tgcn import ConvTemporalGraphical
from models.utils.graph import Graph
class Model_VAE(nn.Module):
r"""Spatial temporal graph convolutional networks.
Args:
in_channels (int): Numb... | [
"qdhuangzhengjia@126.com"
] | qdhuangzhengjia@126.com |
cac54f9c3610a1187fec20f24debef77a07c6be6 | 4e34eeec2783ab853388a322d7ff29c208f54f24 | /python/cymel/utils/melgvar.py | c1a0afe4e26c6014fa9f476cb17d32b97e94d0ed | [
"MIT"
] | permissive | cia-rana/cymel | faa3d404e3aacd9b78960638fe0075ea06224bd0 | 1fb749e53d75afb2857c15b54a2f03b0f7859062 | refs/heads/main | 2022-12-29T19:01:41.372196 | 2020-10-19T03:08:36 | 2020-10-19T03:08:36 | 305,246,996 | 0 | 0 | MIT | 2020-10-19T02:56:18 | 2020-10-19T02:56:17 | null | UTF-8 | Python | false | false | 1,748 | py | # -*- coding: utf-8 -*-
u"""
MELグローバル変数ラッパー。
"""
from ..pyutils import Singleton
import maya.mel as mel
__all__ = ['MelVar', 'melvar']
_mel_eval = mel.eval
#------------------------------------------------------------------------------
class MelVar(object):
u"""
MELグローバル変数ラッパークラス。
`dict` のような振る舞いをする。
... | [
"20365380+ryusas@users.noreply.github.com"
] | 20365380+ryusas@users.noreply.github.com |
3b4258e2f4a96a8a96e4dbb400445ef2960b50fb | 5b074b495a4954f23551e724906d76797d89e346 | /stream/stream_scpt | 9b1f474a551e233af36cd1ac52868502918eeaaf | [] | no_license | m-conklin/docker-benchmarking | c75b7e7a2049a0cf95e9eaa9ac4571728a793b40 | d26a69e8d5d752a5919b04878f1effb7d4388e76 | refs/heads/master | 2020-05-15T09:47:14.964534 | 2015-05-07T21:21:52 | 2015-05-07T21:21:52 | 34,288,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | #!/usr/bin/python
import subprocess
def initialize_file(f):
f.write('Rate (MB/s),Avg time,Min time,Max time \n')
def run_stream(times):
for i in range(times):
subprocess.call('./stream_c.exe', stdout=writeout)
copy = open('copy_results.csv', 'a')
scale = open('scale_results.csv', 'a')
add = open('a... | [
"mjmc@uvic.ca"
] | mjmc@uvic.ca | |
7c4a9c9289253642281c4520d51df84727bed704 | 88bd85d5cd9e9b29d5e58826963bf51da4eb1a73 | /trip_project/trip_project/trip_app/models.py | 83dac62812bed7e4707b4990b6ee958aa208e4ce | [] | no_license | YasaswiPoolla/portal | 954e4364575bbc09370bd019474460e19508d03d | 61cbc7159113fa77f79483f33c370cc68da345e1 | refs/heads/master | 2022-11-20T03:35:31.497680 | 2020-07-23T05:40:54 | 2020-07-23T05:40:54 | 275,518,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | from django.db import models
from django.contrib.postgres.fields import JSONField
from django.contrib.auth.base_user import AbstractBaseUser
from trip_project.trip_app.model_managers import UserManager
import os
# Create your models here.
class User(AbstractBaseUser):
objects = UserManager()
user_sqn = models.... | [
"yasaswi.poolla@itcrats.com"
] | yasaswi.poolla@itcrats.com |
201b1db04ac60fa983e1f615ea2c91f55878b0e8 | 5af4814716bb56d1d941938ccc0b69c2297901ce | /main/urls.py | 832fd55cf43bfae923400a70ac62e8b1067a5d07 | [
"MIT"
] | permissive | geosoco/coding_experiment | 5f6ea8204c0043d45cbcf21de3934db12c162dd0 | bd17b703c3ba7a3de59ffc846fbcbbdb42fa8a77 | refs/heads/master | 2021-01-18T22:40:27.486559 | 2015-08-20T06:43:21 | 2015-08-20T06:43:21 | 32,149,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required, permission_required
from main.views import *
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'coding_experiments.views.home', name... | [
"soco@uw.edu"
] | soco@uw.edu |
16d6a6a7cfe30d87484fca8b87ca9ea6071ced6e | 4bcb3335cb1defafeadda7c5f1641b772dcfd105 | /Payload_Types/apfell/mythic/agent_functions/system_info.py | ceccb71f3dee17a3ed9b21322332461b415d84af | [
"BSD-3-Clause",
"MIT"
] | permissive | axax002/Mythic | 664f7714ea6181b5d4e82a49b7ca5e09d3781c9c | 7614ab8f809d8108a4f5cf13c926f3ffbc1eb4a7 | refs/heads/master | 2022-12-15T00:08:00.149526 | 2020-09-09T16:10:15 | 2020-09-09T16:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | from CommandBase import *
import json
class SystemInfoArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
pass
class SystemInfoCommand(CommandBase):
cmd = "system_info"
needs_admin = False... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
9a2a89571629f1ba6411e3d1debcf55c992f304a | b413c51273a6cf4e5d4e9fa5a618d16c73379627 | /NotesCmd/NotesCmd/NotesCmd.py | d974f9c59d8ab39f87bb3673c43daba40a88fba2 | [] | no_license | CorvusEtiam/gSimpleNotes | 038ea5e38a3e76406dc3ab713a1537707f7c7745 | 76659610db641f84b3b185a0347a31a58dcd6769 | refs/heads/master | 2021-05-28T07:38:55.702153 | 2012-08-22T12:19:05 | 2012-08-22T12:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
### ::FUNCTION :: ###
def number_of_line():
"""Liczba linii w pliku"""
i = 0
with open("Notes.txt", "r") as NOL:
for line in NOL:
try:
if line.strip() != False and line[1] != "@":
... | [
"misiek.rybicki@gmail.com"
] | misiek.rybicki@gmail.com |
f167be233949bfb768555958776936a25182c8af | 7c9ad91cdec19680ead79d76eed51e79b2dc9d07 | /code/vs/feeanalyzer.py | 38d10aeb18737f1b7c1b2044394267e1a6a00093 | [
"MIT"
] | permissive | renepickhardt/Imbalance-measure-and-proactive-channel-rebalancing-algorithm-for-the-Lightning-Network | d6183f398af05b35b31e8a8a55ceb673afb34618 | 0a2613b5e94185b68869962cdf13a19053adfdd8 | refs/heads/master | 2020-09-19T03:32:11.037387 | 2020-05-06T17:22:15 | 2020-05-06T17:22:15 | 224,196,298 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import matplotlib.pyplot as plt
import numpy as np
f = open("finalResults/fullExperimentNonStrictRebalancing/better_balanced_directed_lightning_network_fees_3_5000_fees", "r")
fees = []
for l in f:
fee = float(l[:-1].split("\t")[1])
if abs(fee) > 100000:
print(fee)
else:
fees.append(fee)
p... | [
"r.pickhardt@gmail.com"
] | r.pickhardt@gmail.com |
2ff71f9e8d27959860fa92a8f3b988dbfe9f0b0f | 9bf28e7a926046d1d30fb4a7c8eb4733e7e77bbf | /vim/pythonx/cpp_file_navigator.py | 0f71edec6339070c600b7e8ccc3649b1468abdb5 | [] | no_license | KKoovalsky/dotfiles | c3f7dd453760a7f101358aff7ff2a0f473d84c9d | 62a803724a0cddb55781387271f348072812b377 | refs/heads/master | 2023-08-04T19:17:39.883223 | 2023-08-01T09:35:46 | 2023-08-01T09:35:46 | 199,640,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | import clang.cindex as clcidx
import os
import itertools
def find_last_line_of_constructor(class_name, source_file):
ctor = _get_first_node_that_matches(
_is_constructor_of_class(class_name), source_file)
return ctor.extent.end.line
def find_class_name_of_method_at_line(header_file, method_line_num)... | [
"kacper.s.kowalski@gmail.com"
] | kacper.s.kowalski@gmail.com |
d2f2360b665e61c0e762037780f94210527ad4a7 | b642c19ce7c6c14ef88f2b3fa1a05dac99146367 | /profil3r/modules/hosting/aboutme.py | 56da907ef20b7b6944a1b53ca3a0e41072fa60fc | [] | no_license | Sahildholpuria/ProfileFinder | 6212e59df89bfb454483d3930619d0ee828fb921 | 9ea517e961f48c98f234ccdc618ebea3f0f3455c | refs/heads/master | 2023-06-17T08:17:27.337052 | 2021-07-20T04:30:47 | 2021-07-20T04:30:47 | 387,668,051 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | import requests
from bs4 import BeautifulSoup
import time
class AboutMe:
def __init__(self, config, permutations_list):
# 1000 ms
self.delay = config['plateform']['aboutme']['rate_limit'] / 1000
# https://about.me/{username}
self.format = config['plateform']['aboutme']['format']
... | [
"dholpuria1999@gmail.com"
] | dholpuria1999@gmail.com |
b984fb235fc1f22cab5e15b05e2537f216c487fc | 135277eba35389ad416b5da450781570b849d3f4 | /ABCcompany/eventos/migrations/0001_initial.py | 6638deb3d2e1aed2dadbd29de1e5d4aaa7ad0daa | [] | no_license | AlejandroValenciaR/ProyectoWWW-Despliegue | d1f7740a398f1fc97d0ab730c189a763f61d7bdd | 7cf71a7e76b757d74c110545fe17fa65d4023017 | refs/heads/master | 2021-08-30T01:06:10.036533 | 2017-12-15T13:27:51 | 2017-12-15T13:27:51 | 114,314,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-16 21:56
from __future__ import unicode_literals
from django.conf import settings
import django.core.files.storage
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migratio... | [
"valencia.alejandro@correounivalle.edu.co"
] | valencia.alejandro@correounivalle.edu.co |
ada8a0fc4c3f798ca5a43eea5f8d3042918d428a | 0ba1743e9f865a023f72a14d3a5c16b99ee7f138 | /problems/test_0094_morris.py | fb7cea13d160e24ccdea5308098435effd0b0aaa | [
"Unlicense"
] | permissive | chrisxue815/leetcode_python | d0a38a4168243b0628256825581a6df1b673855c | a33eb7b833f6998972e5340d383443f3a2ee64e3 | refs/heads/main | 2022-06-20T15:09:27.221807 | 2022-06-02T21:55:35 | 2022-06-02T21:55:35 | 94,590,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import unittest
from typing import List
import utils
from tree import TreeNode
def _find_predecessor(curr):
p = curr.left
if not p:
return None
while p.right and p.right is not curr:
p = p.right
return p
# O(n) time. O(1) space. Morris in-order traversal.
class Solution:
def ino... | [
"chrisxue815@gmail.com"
] | chrisxue815@gmail.com |
852b88ba81716981f09e0de47c7e45d2e8cb4f9b | fcce37f4e27c3a61573b93247dd35cea8642d0d9 | /product/migrations/0012_auto_20210203_1045.py | d74ab5bf89a18eac9f504e6704cbd104a53e34ca | [] | no_license | olayiwolaA/Dropshipping-e-commercial-website | 813deffde03e3a89ce43de0778743abd64472464 | 2ff202c54409986acd118758be564a7c4795d195 | refs/heads/master | 2023-03-30T15:37:21.983625 | 2021-03-19T05:09:25 | 2021-03-19T05:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.0.11 on 2021-02-03 03:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0011_slider'),
]
operations = [
migrations.AlterModelOptions(
name='comment',
... | [
"59214516+miatran1109@users.noreply.github.com"
] | 59214516+miatran1109@users.noreply.github.com |
5b30f0bc4e29e549e6d4270326a55defe2e385f0 | 0d7269e8f02d8a234c092bfda91d9f44fe670d2e | /w7-d5-docker/api.py | abb3d64a5dc26da4a01df753f1a0a18e0ce5ed6d | [] | no_license | Hermenegildo12/Apuntes-Clases | e2a0ded9459a61209ab884548926d941da1eb2da | 4cf51bcec494001336607da00f6c555c3691dc18 | refs/heads/master | 2020-08-09T17:21:14.617496 | 2019-10-10T08:08:15 | 2019-10-10T08:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from bottle import route, run, template
import random
def randomName():
nombres = ["Pepe","Juan","Antonio"]
n = random.choice(nombres)
print("El nombre es {}".format(n))
return n
@route('/')
def index():
print("hola")
return {"hola":"que tal"}
@route('/random')
def imprimeNombreRandom():
... | [
"marc@faable.com"
] | marc@faable.com |
2f851e10a4a8ac7f3fec110a2c904089aa26c811 | 72af02a089d3c62b871ce44960c53469566486a8 | /apis/serializers.py | a853c26a9f02cb602e643c326d70b0861b7acb85 | [] | no_license | marahnairat/e-commerce | 20f1be8142f52420a4ccdc81f9d64bd275fa394b | bbfa6842ade5f75c30bdac0374b1fe6e06bf89f4 | refs/heads/master | 2023-01-21T11:49:22.043488 | 2020-11-29T16:00:13 | 2020-11-29T16:00:13 | 316,985,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from rest_framework import serializers
# import model from models.py
from .models import GeeksModel
# Create a model serializer
class GeeksSerializer(serializers.HyperlinkedModelSerializer):
# specify model and fields
class Meta:
model = GeeksModel
fields = ('title', 'description')
| [
"48821626+marahnairat@users.noreply.github.com"
] | 48821626+marahnairat@users.noreply.github.com |
3140159f5d061f4a6d4a188a48db47489af2e417 | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp519/parameters.py | fd1677d3c8ae19cf862191018452b01ffa4bd8f3 | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py |
# parameters.py
"""
Exp 519 - {'Initial_genes': '500', 'Host_mutation_rate': '0.03', 'TE_progeny': '0.00, 0, 0.55, 1, 0.30, 2, 0.15, 3', 'TE_Insertion_Distribution': 'Flat()', 'Carrying_capacity': '30', 'TE_excision_rate': '0.5', 'Junk_BP': '1.4', 'Gene_Insertion_Distribution': 'Flat()', 'mutation_effect': '0.01', 'TE... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
41288e7817a58ec0db1f90d9669ca3c7bb66f47d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2323+049/sdB_pg_2323+049_coadd.py | 353e65f7e87003087591089f987512c08696bbea | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[351.527458,5.271081], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_2323+049/sdB_pg_2323+049_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a7ce4d598ae0cebc4ab35db71bf5a1a5e34a7eb4 | 3c988068cad8cf323b1f51ec81570c244341b0d3 | /MxOnline/urls.py | a1294a28e19179e70854f0cd5e3157ef25f6971a | [] | no_license | framelei/MxOnline | 68ad16898890699bf5a2574fa957ab2ea12a6622 | a6e05db44fc15a0e0ab0498483ee74af69b674a3 | refs/heads/master | 2020-04-14T16:49:45.106566 | 2019-01-03T10:59:10 | 2019-01-03T10:59:10 | 163,962,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #_*_ encoding:utf-8 _*_
"""MxOnline URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url('', views.home, ... | [
"602009841@qq.com"
] | 602009841@qq.com |
60d8c7a968a5927d299d221191f33054a11432cf | 3a78155868c1f0d2e524caaf569545df0ff15198 | /actions/utils.py | 42433cbdd9d7fd486cbd362c034edcdd2ae22b41 | [] | no_license | yasharabbaslo/Social-Network | aad7c3393634b4c324afe83dd72697620079f752 | 2c2de4f710d686b55775881c1b767918622921ad | refs/heads/master | 2022-12-11T02:26:45.664834 | 2020-02-12T07:34:24 | 2020-02-12T07:34:24 | 237,016,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import datetime
from django.utils import timezone
from django.contrib.contenttypes.models import ContentType
from .models import Action
def create_action(user, verb, target=None):
# check for any similar action made in the last minute
now = timezone.now()
last_minute = now - datetime.timedelta(seconds=60)... | [
"yashar.abbaslo@gmail.com"
] | yashar.abbaslo@gmail.com |
e012ed501e1ccdfa43db999e6ac4bc794bd075a2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/2436.py | e0b05342601ef60ae06d1406be5647373b3e4075 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | def flip(line,start,count):
j=0;
i=start
while(j<count):
if(line[i]=='-'):
line= line[:i] + '+' + line[(i+1):]
i=i+1
else:
line= line[:i] + '-' + line[(i+1):]
i=i+1
j=j+1
return line;
def flipcount(line,size):
c... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8f0642e242649e92712114efe54aa90f770a5afd | b5d87a5a7f74147754fc933e21e347f083f9923b | /algo/verkefni 2/10_challenge_find_eulerian_tour.py | 6765ffa89d6dc0ed7a60838ca67e8c8159bba6e4 | [] | no_license | GunnarThorunnarson/2018-vor | 4604e45b20280258a18de6210e6109174dcf564e | 29a5830b83aa02c30822c23493db876897f29244 | refs/heads/master | 2021-04-06T05:33:55.856688 | 2018-02-23T14:11:29 | 2018-02-23T14:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Find Eulerian Tour
#
# Write a function that takes in a graph
# represented as a list of tuples
# and return a list of nodes that
# you would follow on an Eulerian Tour
#
# For example, if the input graph was
# [(1, 2), (2, 3), (3, 1)]
# A possible Eulerian tour would be [1, 2, 3, 1]
def find_eulerian_tour(graph):
... | [
"neptunus@hirt.is"
] | neptunus@hirt.is |
d957238cbd637abd675ff3ee440421189d23e6f5 | 19e8fcfa0ad0a4462a3ee88a6e18506284bbc963 | /rango/migrations/0006_category_slug.py | c05486e3964de6d48bd595f5e76ce935811bc6b7 | [] | no_license | YanSym/tangowithdjango | c29fe31b0a67fa88832191912f94547551a4eb9a | c0f9785f278e9ac833bf23deecae3bb90d9eac1c | refs/heads/master | 2021-01-22T09:48:15.667370 | 2015-03-11T13:46:04 | 2015-03-11T13:46:04 | 29,487,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0005_remove_category_slug'),
]
operations = [
migrations.AddField(
model_name='category',
n... | [
"yan.vsym1@gmail.com"
] | yan.vsym1@gmail.com |
73fd8c964d09188d6db73287316cf1a31ef99828 | cc0b6c03303ac30a147e0a6748bf716d098bec21 | /tree/tree/settings.py | d7e17c4e2e65a61d77247fffb1db754e91caeb98 | [] | no_license | aronasorman/django-project | 59f18b29beaa104f5fb7bf8756298f68fa13f37a | b3e46b9fe3746ab9a77d893d31f1dd4f15bb83f7 | refs/heads/master | 2020-12-30T19:58:17.105159 | 2014-02-10T06:35:10 | 2014-02-10T06:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | """
Django settings for tree project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"mooc-31@mooc31-desktop.(none)"
] | mooc-31@mooc31-desktop.(none) |
c0f5e0bed69f86c5eb7a5a3b2e9c90fbb6ca1dd9 | 3c066b3e449d6a8efd3a165955d3176ef08d9180 | /analyze_input_threat_count.py | 17ffdff7f208ec277a19b75969737758d0dd3f2d | [] | no_license | InceptAi/body_scan | bf30b47b2fcc0e4a1fb04d3cb89f57f38f76b8ee | 53bda38417f0223dcad8ccbad019c05a9fa42267 | refs/heads/master | 2021-03-24T09:43:25.441415 | 2017-12-14T01:06:45 | 2017-12-14T01:06:45 | 112,533,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | from myimports import *
#----------------------------------------------------------------------------------------
# get_hit_rate_stats(infile): gets the threat probabilities in a useful form
#
# infile: labels csv file
#
# returns: a dataframe of the summary hit probabilities
... | [
"vivek@obiai.tech"
] | vivek@obiai.tech |
389fbf646a8335c9d4c2531567cf425f231c28a5 | fc6b692ff0e25bae6d451f3f7d3ac8ee71fb940f | /code/pid.py | 352ed547c9d8a7f75b4b3976eb5ec291dde32ba6 | [] | no_license | dp12/RoboND-Rover-Project-1 | b5bdd81d1dfba62051f58de4c80a644d5ea2867a | 4ecde978e2f189c8247407a9a986eb376dae6894 | refs/heads/master | 2021-01-23T09:09:56.188726 | 2017-12-26T07:31:37 | 2017-12-26T07:31:37 | 102,562,204 | 0 | 0 | null | 2017-09-06T04:21:34 | 2017-09-06T04:21:34 | null | UTF-8 | Python | false | false | 751 | py | class Pid():
def __init__(self, kp = 0.0, ki = 0.0, kd = 0.0, set_point = 0):
self.kp = kp
self.ki = ki
self.kd = kd
self.set_point = set_point
self.integrated_error = 0.0
self.last_error = 0.0
def update(self, measurement):
# Calculate proportional erro... | [
"dp12@github.com"
] | dp12@github.com |
9aaf4826bfa48578629394a3c6e020212e9d6a04 | d8010fd033ec0b36a87d9a058487d738befc3c17 | /detectron2/data/transforms/transform.py | c8fb7e03d589939ea01c8388c2d4128d3f7a2cf2 | [] | no_license | bobwan1995/ReIR-WeaklyGrounding.pytorch | 0efa0a616b18f9fa3d89f0afde1a6528efca1a8d | 2a962c335541c981149a042794ee508e0e7226f4 | refs/heads/main | 2023-08-11T12:55:42.977775 | 2021-10-09T00:25:15 | 2021-10-09T00:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,003 | py | # -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# File: transform.py
import numpy as np
from fvcore.transforms.transform import HFlipTransform, NoOpTransform, Transform
from PIL import Image
__all__ = ["ExtentTransform", "ResizeTransform"]
class ExtentTransform(Transfo... | [
"liuyf3@shanghaitech.edu.cn"
] | liuyf3@shanghaitech.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.