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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88842d784deeecde1c87e82ab837462e8ead03f9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZZsnGAjYLyosG9zmH_12.py | aa9e707c08223592b4481ac84b90ac438ecda630 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py |
def flash(fc):
var1, oper, var2 = fc
return var1 + var2 if oper == '+' else var1 - var2 if oper == '-' else var1 * var2 if oper == 'x' else round(var1 / var2, 2) if oper == '/' and var2 else None
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
47cb81c305f5950abd06d4b86fb817c6ec52f5fa | 1d9ad7aa473191dad19a64b8a72a4677db221e93 | /main.py | 62666cef8f1456cdbb69389b0e988ba4da7db633 | [] | no_license | ethicalhacker7217/PyStudio | 1884329209ec487f95300ee30521a51761d5bc3c | 176756fa396d3156803b400ffac2c5ac658a27cc | refs/heads/main | 2023-04-25T07:00:09.446229 | 2021-05-15T05:20:09 | 2021-05-15T05:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | from tkinter import *
from tkinter.filedialog import asksaveasfile,askopenfilename
import subprocess
compiler = Tk()
compiler.title('PyStudio')
File_path = ''
def set_file_path(path):
global File_path()
File_path = path
def run():
if File_path == '':
save_prompt = Toplevel()
text = Label... | [
"noreply@github.com"
] | ethicalhacker7217.noreply@github.com |
3b30e4f81446dc8646720b7e1ef823a4cf0e1cba | e67822aa34c5d121978732b33a2bf85613b8fc41 | /chapter4/problem5.py | 2867d2e1eef48d0f06bdb66e7338affb6a062460 | [] | no_license | Kwon1995-2/BC_Python | c3a6cb450fbe728d368a840c03c0817e8dcc46fa | d3df813498a72367dc8f6a4f9efbbbca072de700 | refs/heads/master | 2023-03-18T21:39:45.621360 | 2021-03-20T13:50:39 | 2021-03-20T13:50:39 | 298,744,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | """ 크기가 같은 두개의 리스트 L, M을 생성하고
두 리스트의 각 요소 합으로 구성되는 새로운 리스트를
생성하라
L=[1,2,3] M=[4,5,6] => [5, 7, 9]"""
L = [1,2,3]
M = [4, 5, 6]
LM = []
for i in range(0,len(L)):
LM.insert(i, L[i]+M[i])
print(LM)
| [
"noreply@github.com"
] | Kwon1995-2.noreply@github.com |
5fbc95af27e8f02dbba38eac2683c62ebb6d0c35 | 3a6ab03da2f7ec1069c80f23c2ed6e2108ecb0ff | /urllib_urlopen.py | a8567af89b4f9558c14308f49467b82ed5562da0 | [] | no_license | lyletzzzw/pyAPIExample | 01604c0bc0f3df2b20b229873d25493d191d3e99 | 3760789f5d485774d86c469aa221ca6d8c2dba2c | refs/heads/master | 2021-01-17T17:06:33.730266 | 2012-08-05T13:06:18 | 2012-08-05T13:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #! /usr/bin/env python
#coding=utf-8
import urllib
'''
sock = urllib.urlopen('http://diveintopython.org')
html1 = sock.info()
html2 = sock.read()
sock.close()
print html1
print html2
'''
print '--------------------------------------------'
data=urllib.urlencode({'wd':'AAA'})
print data
sock = urllib.urlopen('http:... | [
"lyletzzzw@sina.com"
] | lyletzzzw@sina.com |
c2abb820a33634fbd4d2baa8cc40894fd5ffc9db | afea9757be324c8def68955a12be11d71ce6ad35 | /willyanealves/customer_service/migrations/0018_remove_customerservice_serviceitem.py | 5389c0887e5e5598bfdb43884190c5126c6d8681 | [] | no_license | bergpb/willyane-alves | c713cac3ec3a68005f3b8145985693d2477ba706 | 8b2b9922ba35bf2043f2345228f03d80dbd01098 | refs/heads/master | 2023-02-10T19:57:50.893172 | 2021-01-11T16:17:14 | 2021-01-11T16:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Generated by Django 3.1.2 on 2020-11-16 14:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer_service', '0017_auto_20201116_1115'),
]
operations = [
migrations.RemoveField(
model_name='customerservice',
... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
74be8d4d0984d5ac6a6f034cc22a1d68d58228f7 | 369e4a831387a477a1e37b995b264504e6ed91bd | /nomadiq_app/run.py | 66275b06c174c1dd71971b802216f699235dbd0b | [] | no_license | geneahn/nomadiq_repo | 2544762c507e0121c284b979240c52fca36a4f68 | baba67426f940f9de5f3b7cb0519a496467cd087 | refs/heads/master | 2020-04-21T22:38:43.380259 | 2019-04-16T07:08:21 | 2019-04-16T07:08:21 | 169,919,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from nomadiq_app import app as application
if __name__ == '__main__':
application.run(debug=True)
| [
"linhmtran@berkeley.edu"
] | linhmtran@berkeley.edu |
da9bfaca059b92580491b71e850ef87666555b90 | 9baa968c71efebb42c70c130de930cb4810ded31 | /OS_IMUDataConversion.py | 05e2d59dff4bb385de0ff7c99c81dc6fa852ff76 | [] | no_license | jravenhorst909/MoveShelf_IMU_analyser | 02cdc0e7f54f9120611106314ad8c055dfb7ad22 | cadc3c405b4f61f4d44a29783824889e1f204360 | refs/heads/main | 2023-02-12T20:46:16.826991 | 2021-01-06T10:21:20 | 2021-01-06T10:21:20 | 311,619,156 | 8 | 1 | null | 2021-01-06T10:21:21 | 2020-11-10T10:12:03 | Python | UTF-8 | Python | false | false | 1,582 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 8 13:28:40 2020
@author: Joris Ravenhorst
"""
import opensim as osim
def IMUdata_conversion(trial_dir_path,TrialName):
# Build an Xsens Settings Object.
# Instantiate the Reader Settings Class
xsensSettings = osim.XsensDataReaderSettings('myIMU... | [
"noreply@github.com"
] | jravenhorst909.noreply@github.com |
c5764734108e5118eb033f9417b70073be8ac9a0 | 28541d61368a14a0d5003db4cc07fed21b40c41f | /Chapter-4/maze3.py | 2a2bcf9a00c029002b258874bd88cd10f9fc123a | [] | no_license | eizin6389/python_algorithm | 390861f9342ce907f2cda0b45b84d364bcba7541 | abf3588ed97a343b6559eb5d69156708d42bc243 | refs/heads/master | 2022-12-06T20:48:49.470312 | 2020-08-14T13:29:26 | 2020-08-14T13:29:26 | 282,905,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | maze = [
[9,9,9,9,9,9,9,9,9,9,9,9],
[9,0,0,0,9,0,0,0,0,0,0,9],
[9,0,9,0,0,0,9,9,0,9,9,9],
[9,0,9,9,0,9,0,0,0,9,0,9],
[9,0,0,0,9,0,0,9,9,0,9,9],
[9,9,9,0,0,9,0,9,0,0,0,9],
[9,0,0,0,9,0,9,0,0,9,1,9],
[9,0,9,0,0,0,0,9,0,0,9,9],
[9,0,0,9,0,9,0,0,9,0,0,9],
[9,0,9,0,9,0,9,0,0,9,0,9],
[9,0,0,0,0,0,0,9,0,0,0,9],
[9,9,9,9,9,9,9... | [
"hide@matsumotohideto-no-MacBook-Pro.local"
] | hide@matsumotohideto-no-MacBook-Pro.local |
dfa355b0aa14dd76ed80003014bdb0d64e25c20b | 84fe91caa2209022b8300a7f42dea0b78db41e12 | /action/test/test_watermark.py | acb7ae6abfbc2f7e2d4e76c4d1d2bf2991c3c0c8 | [
"MIT"
] | permissive | mshemanskyi/image-batch-processor | 6b579f1e3442262a9abb5a0cd8f6731a23ebf13b | dd7e0d9bc77fd06fe0f94c4f4fd025323633d9f7 | refs/heads/master | 2023-01-10T10:03:52.523962 | 2020-11-07T21:18:47 | 2020-11-07T21:18:47 | 303,668,070 | 0 | 0 | MIT | 2020-11-07T20:27:36 | 2020-10-13T10:33:10 | Python | UTF-8 | Python | false | false | 677 | py | import unittest
from action.watermark import watermarkImage, watermarkText
import cv2 as cv
import numpy as np
class WatermarkTest((unittest.TestCase)):
@classmethod
def setUpClass(self):
self.testImage = cv.imread('examples/img1.jpg')
self.watermarkLogo = cv.imread('examples/wm-logo.png')
... | [
"noreply@github.com"
] | mshemanskyi.noreply@github.com |
6dcb83acc4bf4107889ebbe1f7af8432518e95eb | 3a022998c1fa28408e6d38845f29730579d22a20 | /rootsofcube.py | 88f22babfd0f3217b9e57c2e5a715534a2a49d56 | [] | no_license | nandishaivalli/APS2020 | 1cd69fbade6fd2069f6b72dc5e8815d905c73836 | 57bcbe919c92692c61093e01304815c0f29222dc | refs/heads/master | 2020-12-20T20:58:23.523106 | 2020-05-16T07:44:33 | 2020-05-16T07:44:33 | 236,208,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #using formula find the roots of cubic eqn
a = 3
b = 4
c = 4
d = 3
#ax3+bx2+cx+d=0
p = (-1*b)/(3*a)
q = p**3 + (b*c-3*a*d)/(6*a**2)
r = c/(3*a)
x = (q+(q**2 + (r-p**2)**3)**0.5)**(1/3) + (q-(q**2 + (r-p**2)**3)**0.5)**(1/3) + p
print(x) | [
"noreply@github.com"
] | nandishaivalli.noreply@github.com |
ba55baa802dc3a6b2fe5b7b479d00888a5eec426 | 728be4e1d3ab5a63e2d6900637fdfb822d965a43 | /blobing_photo.py | a41716f876d2c4ec077f3e39a3870d46e285f6db | [] | no_license | Reveta/openCV_Python | 7ea7aeb5da5243b4359cb75ed9e14489051d917f | 6b88a9c1ba459f2810c54b91da77e0f0914da894 | refs/heads/master | 2023-07-16T00:26:17.752429 | 2021-08-23T19:33:10 | 2021-08-23T19:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | # !/usr/bin/python
# Standard imports
import cv2
import numpy as np
# Read image
# image_original = cv2.imread("media/blobs/blob.jpg", cv2.IMREAD_GRAYSCALE)
image_original = cv2.imread("media/blobs/microchips_1.png", cv2.IMREAD_COLOR)
# image_original = cv2.imread("media/blobs/microchips_2.png", cv2.IMREAD_COLOR)
th... | [
"gfdsre1999@gmail.com"
] | gfdsre1999@gmail.com |
563f625c719041548b3b0dee923cd3f05db82e19 | 498328d283bbcfa2aed7780cc2ccd1ab1435998c | /validation.py | 7edbc1a87dd4a75e441e312bb3351b880ee9201b | [] | no_license | ktan8/AM205-Project | 51a336921314b5e977dd9682a60f8c73adc64598 | e697afe74f0b9fb8d2b177191e7d8472a3167031 | refs/heads/master | 2020-04-11T01:01:34.481178 | 2018-12-16T15:01:19 | 2018-12-16T15:01:19 | 161,403,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,987 | py | '''Reads suppulemeal data'''
import pandas as pd
import os
import network_matrices
import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
def label_active(row):
'''Label whether a given knockout was higher express - huristic is to see
if it's above 20% points above/below baseline'''
if(ro... | [
"akaran@caltech.edu"
] | akaran@caltech.edu |
3eaa1551407f554655a52f1b22c4d721669fa579 | 3e6e18edfe81bb19e298ae4e1831cb76c2c6069d | /src/lpcshop/models/bottles.py | a4dba719454dd661eebe4d48daada55e5b64e9f8 | [] | no_license | libertalia/lpc | 2e72de7eee36cd92d62e4d250186bda2353c179a | 972343abdcffffc2bec0cac4e2057c91edfa1716 | refs/heads/master | 2023-01-07T08:13:02.708844 | 2016-05-13T01:34:57 | 2016-05-13T01:34:57 | 58,680,165 | 0 | 1 | null | 2022-12-26T19:59:29 | 2016-05-12T22:02:24 | JavaScript | UTF-8 | Python | false | false | 2,117 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.six.moves.urllib.parse import urljoin
from django.utils.encoding import python_2_unicode_compatible
from djangocms_text_ckeditor.fields import HTMLField... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
bfed24c5b9f51dc5e88f33ea662a3f1e253a3474 | 39c7137821880e504608a4508299ed5883e3ebe3 | /website/run.py | d10df72b10721b85de47d5e8500058bead40b612 | [] | no_license | tharrington923/rCheckUp | 081a6b806e41f2b0d2a1b82e35f402b0ed9c932d | 80e13d9b79b069f01dc83cb43d282557d5f78787 | refs/heads/master | 2020-12-10T03:27:05.944264 | 2017-06-29T16:02:15 | 2017-06-29T16:02:15 | 95,575,694 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | #!/usr/bin/env python
from rcheckup import app
app.run(host='0.0.0.0', port=5000)
| [
"tharrington923@gmail.com"
] | tharrington923@gmail.com |
aea1aef16acb0e35be9835c1de7d957ef061384a | a55bf36b8c58cb5b430734a9e5c35fec3a757b46 | /Pygame/Maps/Attempts/Map01/app.py | 4eab769097b0c2c65af739eb60bbae8eaf628217 | [] | no_license | alexetsnyder/OuroborosPython | 5547a6f925263430f024b5fd1d1d797600ec5f9d | 3c5e93fb90368c30c2748218a56a4d184e144caa | refs/heads/master | 2021-06-28T22:37:07.555035 | 2021-03-01T23:45:10 | 2021-03-01T23:45:10 | 225,740,980 | 1 | 0 | null | 2021-03-01T23:45:10 | 2019-12-04T00:03:14 | Python | UTF-8 | Python | false | false | 1,680 | py | #app.py
import pygame, island_map
import imp, go, events, config
from pygame import freetype
from structs import *
class Screen:
def __init__(self, size):
self.set_size(size)
self.surface = pygame.display.set_mode(self.size, pygame.RESIZABLE)
def wire_events(self):
imp.IMP().add_listener(events.Wi... | [
"alexetsnyder@gmail.com"
] | alexetsnyder@gmail.com |
a3686500cf1b87f08d8a3d467cb0f56dead33719 | 44cfc32ae35487314cbf2ea83fbc96de9ac3e693 | /Trees/post_iterative.py | f989a9dbf228047512a35fb120c7ca73c34c63c3 | [] | no_license | Imonymous/Practice | 738fdf2099a74127460a647fee8db97c95f322fc | ff6138d858777e6a669a5a387cd2f775c60c9aff | refs/heads/master | 2020-03-18T16:53:15.029553 | 2019-11-09T23:29:27 | 2019-11-09T23:29:27 | 134,991,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/env python
from isBST import TreeNode, BinaryTree, readBinaryTree
# Using one stack
def build_stack(node, s):
while node:
if node.right_ptr:
s.append(node.right_ptr)
s.append(node)
node = node.left_ptr
def peek(s):
if len(s) > 0:
return s[-1]
return N... | [
"iman.mukherjee@gmail.com"
] | iman.mukherjee@gmail.com |
74c6e22e10d24f80e71b7232533ed388186eeff9 | 6ecbf084f558b37f0cee51c7226c1e116b5aa7bf | /scratch/bnn.py | aac4b4b2e7b7f9d26c1dc0798692c2967766ade1 | [] | no_license | reichlab/bayesian_non_parametric | 364b12ad07b09e9a4386572bd47c709ad7629497 | c8d7eb7493addb919b8f7159768dc732ce1a1f35 | refs/heads/master | 2021-01-01T06:43:10.176687 | 2018-03-25T14:33:32 | 2018-03-25T14:33:32 | 97,492,688 | 2 | 0 | null | 2018-01-02T15:23:21 | 2017-07-17T15:38:01 | Python | UTF-8 | Python | false | false | 8,338 | py | from __future__ import absolute_import
from __future__ import print_function
import matplotlib.pyplot as plt
import autograd.numpy as np
import autograd.numpy.random as npr
from autograd import grad
from sklearn.preprocessing import scale
from autograd.optimizers import adam
def black_box_variational_inference(logpro... | [
"gcgibson@us.ibm.com"
] | gcgibson@us.ibm.com |
c16c35fcddd7c0a797b27db56f807ce47716da1a | 7bc03c4f3fc28a9cebc9ebd3581060129a112416 | /ogb/ogbn-products/mlp.py | 3a6a307fffdcbe5fdff3be599899997a804eddba | [
"BSD-3-Clause"
] | permissive | cornell-zhang/GraphZoom | 468f6a03cf8009d133345f267425933421054e6a | 5156f86fa22efa853e864553de4225a9122d8062 | refs/heads/master | 2023-04-04T19:06:33.155239 | 2021-04-20T23:21:35 | 2021-04-20T23:21:35 | 238,811,116 | 106 | 16 | BSD-3-Clause | 2023-03-24T23:42:18 | 2020-02-07T00:10:40 | Python | UTF-8 | Python | false | false | 4,345 | py | import argparse
import numpy as np
import torch
import torch.nn.functional as F
from ogb.nodeproppred import PygNodePropPredDataset, Evaluator
from logger import Logger
from csv import writer
class MLP(torch.nn.Module):
def __init__(self, in_channels, hidden_channels, out_channels, num_layers,
... | [
"xl289@cornell.edu"
] | xl289@cornell.edu |
e97a029febec768754bf9e0c325316f93500cf73 | 8025929108bb70599cc5079b0f32d35c556dfe33 | /font_batch_subset.py | 4166574af64597447c4f5d871beec315011070c0 | [] | no_license | waivek/website | 1b0a0c49c3d28f6736362251a184cf48db4063b7 | 82a5f91ef9335de2dde86af934e5305895cd160d | refs/heads/master | 2023-07-11T08:10:32.109086 | 2023-07-02T06:47:19 | 2023-07-02T06:47:19 | 113,569,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | from columnar import columnar
import argparse
import subprocess
import os.path
import re
parser = argparse.ArgumentParser(description='Batch subsets a font to an accepted unicode range')
parser.add_argument("directory")
parser.add_argument("unicode_range")
args = parser.parse_args()
headers = [ "Input", "Output", "Inp... | [
"waivek@gmail.com"
] | waivek@gmail.com |
467775b4bd0bdc529f7af369a772db9776c3f4d4 | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /atcoder/corp/dwacon6_a.py | 0f60c706492fb0f7e55329255dd53fcbe06cb6d9 | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | N = int(input())
titles, times = [], []
for _ in range(N):
s, t = input().split()
titles.append(s)
times.append(int(t))
idx = titles.index(input())
ans = 0
for i in range(idx+1, N):
ans += times[i]
print(ans)
| [
"premier3next@gmail.com"
] | premier3next@gmail.com |
39b251cf54d0848c796c624fffa0a173acf39360 | 8d5ff31efba68cfc3e833d74ee2e1baa20c2ae87 | /example/petstore/apis/pet/updatePet.py | 905f31823115094929116457528d605abd007d7b | [] | no_license | avanov/swagger_codegen | 8fd3f08f0e0d7aff5beb5602e755836009b0494f | b0fcc84cfd12091ef443fc000d4ff6a547a48d86 | refs/heads/master | 2022-12-11T04:21:24.066731 | 2020-08-28T13:56:34 | 2020-08-28T13:56:34 | 292,118,282 | 0 | 0 | null | 2020-09-01T22:10:54 | 2020-09-01T22:10:53 | null | UTF-8 | Python | false | false | 1,585 | py | from __future__ import annotations
import pydantic
import datetime
import asyncio
import typing
from pydantic import BaseModel
from swagger_codegen.api.base import BaseApi
from swagger_codegen.api.request import ApiRequest
class Tag(BaseModel):
id: typing.Optional[int] = None
name: typing.Optional[str] = N... | [
"asyncee@users.noreply.github.com"
] | asyncee@users.noreply.github.com |
0486cb46bc1ae6e72dae5915d07ace26bbe31c92 | ebc478ba6921afc9a3f613eda29942e3434512c6 | /snpfc/snpCompare.py | 4b454241b380e1545d7cabec6d16716f95c013b5 | [
"Python-2.0"
] | permissive | TeamMacLean/snpFC | 704c24947bf13a476c733845324061a7e12e4b2f | 6f3f90ebba4aa527bca80381d7d0002438011d22 | refs/heads/master | 2020-04-28T02:28:44.062833 | 2019-04-26T11:36:11 | 2019-04-26T11:36:11 | 174,899,809 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,318 | py | import os
import vcf
class SnpCompare:
"class to compare SNPs from multiple VCFs."
def __init__(self, vcffiles):
"""Initializes the object with vcf files and data structure variables to compare snps."""
self.vcffilenames = vcffiles
self.snpsites = {}
self.snp_positions = {}
... | [
"ram_krishna.shrestha@tsl.ac.uk"
] | ram_krishna.shrestha@tsl.ac.uk |
e5473522c26a9ba7d2654c9fa7a954d97bb4ed88 | f855be082bd55159cf6f77be034a78ecf2020232 | /actions/actions.py | 9501206f8fdb9634b4fe7561bdb7409868ff48ea | [] | no_license | athenasaurav/venkat | 64e3b9522bbcceb141d87f4b04498dcfd7f10969 | bfb7a767793483a6a8663e1e112a20c03433b2df | refs/heads/main | 2023-03-27T11:32:52.246192 | 2021-03-16T18:01:55 | 2021-03-16T18:01:55 | 348,443,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,129 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
from typing import Any, Text, Dict, List
from rasa_sdk ... | [
"noreply@github.com"
] | athenasaurav.noreply@github.com |
7bd8c0b70b4ffef14ae6fc96a939fd776a871a5f | c4b852ce48ddef75f8c57bd2e70cc8ae7dc10693 | /ToDo/console/migrations/0006_auto_20150309_1629.py | cbad7de01caa9cfa4fe39921f022ec9d123245ed | [] | no_license | MMX13/todo | a2d063b3872579faa4b2ac4e1df4dfab74fe6788 | b303fcec6e44f93223e6dab0de5a6d359c72cc70 | refs/heads/master | 2020-06-07T11:36:13.255423 | 2015-03-20T05:00:11 | 2015-03-20T05:00:11 | 31,998,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('console', '0005_auto_20150309_1627'),
]
operations = [
migrations.AlterField(
model_name='task',
nam... | [
"bgaramy@hotmail.com"
] | bgaramy@hotmail.com |
4ac2e03f18c59c4cf2e602bb3b261c600978f096 | c7575775b41d1435f33131eb5fdb1b5ec9066bba | /heyapp/settings.py | e259df91898c04a481dccc46c69e0c51a5722d51 | [] | no_license | Wambuilucy/nostalgia | 12a5c951769b2d4dc0e4e68fce65bb53d360e0e7 | 5daf50d9e37e263a40c948ffcb155d85e03bd5b2 | refs/heads/master | 2023-01-06T08:00:33.547694 | 2020-11-03T17:00:44 | 2020-11-03T17:00:44 | 309,750,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | """
Django settings for heyapp project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"wambuilucie99@gmail.com"
] | wambuilucie99@gmail.com |
396451adf046ae9a1e9a93d08c731002c02b4a78 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AntMerchantExpandIndirectOnlineModifyResponse.py | deb575d50e426359ce6993ae14225946249fa464 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AntMerchantExpandIndirectOnlineModifyResponse(AlipayResponse):
def __init__(self):
super(AntMerchantExpandIndirectOnlineModifyResponse, self).__init__()
self._sub_mer... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
4b664002f3b91925204f95cf5afde92db89ca9f4 | 154e563104144721865a90987db0332bef08a4c3 | /rh_aligner/plotting/__init__.py | 8187d6023c6db7b60a29f9fbf00456387099c256 | [
"MIT"
] | permissive | Rhoana/rh_aligner | 565572d645769053c74a36ddf0f53ecc20d997fe | baab698f6520b9b999bccf423dc510b0c8f4b9bb | refs/heads/master | 2021-01-01T05:29:25.406459 | 2016-05-09T15:34:58 | 2016-05-09T15:34:58 | 56,165,015 | 3 | 3 | null | 2016-05-05T20:00:26 | 2016-04-13T15:43:33 | Python | UTF-8 | Python | false | false | 281 | py | """
Plotting of the stitching and alignment steps library
- to deubg the steps
"""
from .view_pre_pmcc_mfov import view_pre_pmcc_mfov
from .view_post_pmcc_mfov import view_post_pmcc_mfov
__all__ = [
'view_pre_pmcc_mfov',
'view_post_pmcc_mfov'
]
| [
"adisuis@seas.harvard.edu"
] | adisuis@seas.harvard.edu |
fd6eb4ffc23f7389f26fd2d60442434609b29286 | 5f814192b19721dc9c06e0e9595738b0f8561233 | /OCR/east_text_detection.py | f8bee5a5e3d5d1b813617866d1b192837295a2ef | [] | no_license | irischo/civil_translation | 7b3c5c58e201f74547d5ae21123fdfd9d4bc5e64 | 240638a434957ea25cfac262da93fc23e292f6f2 | refs/heads/master | 2022-11-23T15:32:50.503095 | 2020-07-29T00:40:06 | 2020-07-29T00:40:06 | 283,387,321 | 0 | 0 | null | 2020-07-29T03:21:50 | 2020-07-29T03:21:49 | null | UTF-8 | Python | false | false | 2,829 | py | from imutils.object_detection import non_max_suppression
import numpy as np
import argparse
import time
import cv2
# argument parse
ap = argparse.ArgumentParser()
ap.add_argument('-i', '--image', type=str, help='path to input image')
ap.add_argument('-east', '--east', type=str, help='path to input EAST text detector')... | [
"korea7030@naver.com"
] | korea7030@naver.com |
4968c79739666e8ad2edd13f77a4d5034eea9c2e | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp45_9000.py | 4d4f26e616aa9b6ced1b2bb6742aa541c91b1e07 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,965 | py | ITEM: TIMESTEP
9000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
7.1778912625688207e-01 4.6482210873740115e+01
7.1778912625688207e-01 4.6482210873740115e+01
7.1778912625688207e-01 4.6482210873740115e+01
ITEM: ATOMS id type xs ys zs
8 1 0.128064 0.0616737 0.0601487
35 1 0.0656057 0.120012 0.0619676
130 1 0.06852... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
1517524505fa74f594aa60a8d208dff423017646 | 2ce15189f888f9823469d7eaca69c7c1e06d9a01 | /apps/login_app/migrations/0001_initial.py | 0d97fff9e69a4eec96bb77b7913c10519bb3f726 | [] | no_license | paulfranco/cards | 6cbcbe3e71b889cb8fbbbbc0fe9a3a4b229087d0 | 5250b2526d37b9993355fc2f5afed3df778a2812 | refs/heads/master | 2021-07-04T16:49:41.182133 | 2017-09-27T06:20:44 | 2017-09-27T06:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-27 01:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"paulfranco@Pauls-MacBook-Pro.local"
] | paulfranco@Pauls-MacBook-Pro.local |
12554a6f358810f3d7bcf732d99807639d1b65bf | 22ebdd6881730a9474ede8e8167c615990c4e275 | /prob17a.py | e5cae5301008b8a21864cb95ac76154a72222942 | [] | no_license | MMohan1/eueler | a96a465b265334b03645f2e2bb66c85395c54e75 | 05a88f1c9b41fbc3d6bcd95b38b83a6510b3b50a | refs/heads/master | 2021-01-18T15:14:35.320214 | 2015-02-02T11:02:06 | 2015-02-02T11:02:06 | 15,935,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | def prob17():
list1=[]
total_char=0
dict1={0:'',1:'one',2:'two',3:'three',4:'four',5:'five',6:'six',7:'seven',8:'eight',9:'nine',10:'ten'}
dict2={11:'eleven',12:'twelve',13:'thirteen',14:'fourteen',15:'fifteen',16:'sixteen',17:'seventeen',18:'eighteen',19:'nineteen'}
dict3={0:'',1:'ten',2:'twenty',3:'thirty',4:'fo... | [
"manmohansharma987@gmail.com"
] | manmohansharma987@gmail.com |
564f224574f406c1a966ab5582a316627e5a9ae1 | 2cfa657fd119a23de2a5c2ae6d55e6d2516bae2d | /test/functional/wallet_keypool_topup.py | 1c1aa4fe3a776fdc70d840768a3b9deacdbccf53 | [
"MIT"
] | permissive | vivuscoin/vivuscoin | 640b10ae3a72c03b501e03b07caae09ce6c87c81 | ba0db89712234bf68b2d6b63ef2c420d65c7c25d | refs/heads/master | 2023-05-07T06:26:26.241247 | 2021-05-25T03:54:32 | 2021-05-25T03:54:32 | 362,198,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Copyright (c) 2021 The Vivuscoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test HD Wallet keypool restore function.
Two nodes.... | [
"support@vivuscoin.com"
] | support@vivuscoin.com |
07030cbb64db6488b93f8e7f03c975d1d39c099d | df5cd640098a10e754a9552187fc5ad8c50df90c | /colour/examples/algebra/examples_interpolation.py | 4acf509db6a9fd00459d7e4bce455a3a20c6b8ca | [
"BSD-3-Clause"
] | permissive | ofek/colour | d4963c9b77b0d119cf3ef3296dbf5369167472df | 04f4863ef49093a93244c1fedafd1d5e2b1b76da | refs/heads/develop | 2021-07-08T05:33:14.220392 | 2017-09-29T22:34:14 | 2017-09-29T22:34:14 | 105,406,461 | 0 | 0 | null | 2017-09-30T23:06:18 | 2017-09-30T23:06:18 | null | UTF-8 | Python | false | false | 3,265 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Showcases interpolation computations.
"""
import pylab
import colour
from colour.plotting import * # noqa
from colour.utilities.verbose import message_box
message_box('Interpolation Computations')
message_box(('Comparing "Sprague (1880)" and "Cubic Spline" recommen... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
47cf0fd8aeef98b4cf379b295d0c198188f4b2da | 22a671da954e3c6ecc83f7d24bb4a7c6c22cdeb9 | /flask/lib/python3.6/io.py | 153ad1e1b39a6a6b1fc5224983d5dbaa58d11d97 | [] | no_license | areibman/Kaggle-Renthop | 62b7b0066bd6e980f10447681d749f183e8552b9 | 553aadca9ba1faa1696df048fb46e3843dda0113 | refs/heads/master | 2021-09-03T14:22:09.400118 | 2018-01-09T18:50:13 | 2018-01-09T18:50:13 | 116,855,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /Users/alex/anaconda3/lib/python3.6/io.py | [
"alex@Alexs-MBP.fios-router.home"
] | alex@Alexs-MBP.fios-router.home |
1f20faa1db5d79da116d4b083125c2a17a098fc2 | 2485df18e7584efc0652ab5693ca299a29bf315a | /Finance/Monte-Carlo/Python/Pricing.py | 443d07a10067c4ceebbe99b11a406d8ee136e2d2 | [] | no_license | lesibius/Programming-For-Fun | c16a576dcb91ff12e7ae8116386d4ac89c5e40c0 | ae7e19e6ba78f4f95bbbf64f0d222f16d6b22b1d | refs/heads/master | 2020-05-29T08:41:19.938610 | 2017-02-17T10:50:23 | 2017-02-17T10:50:23 | 69,820,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 18 10:28:21 2017
@author: clem
"""
import math
import numpy.random
import scipy.stats
import matplotlib.pyplot as plt
import sklearn.utils as sku
class Path:
"""
Class to represent the path of a random variable following a Brownian motion (e.g. stock price)
... | [
"noreply@github.com"
] | lesibius.noreply@github.com |
36ef3a599bd8eeffa53ece08e08283a8b626e2f6 | 29a0ce2e17aa6a092d3c5bae2da9a3a4fcd7fd22 | /pandas_practice/basic5.5_clean.py | 0b15b414ec7a4ed81aeffe658385351a63fed922 | [] | no_license | varun0308/python_practice | 0a94c7c5789665e6f930166a424499647b83ba55 | 6badc59b871b610ef407054128bc1ed482ec148f | refs/heads/main | 2023-08-25T12:56:22.404006 | 2021-10-02T13:59:47 | 2021-10-02T13:59:47 | 330,429,476 | 0 | 0 | null | 2021-01-20T09:22:17 | 2021-01-17T16:02:00 | Python | UTF-8 | Python | false | false | 380 | py | import pandas as pd
df = pd.read_csv('D:\Varun\python_practice\pandas_practice\dirtydata.csv')
print(df.head())
# We can drop any unwanted column as
df1 = df.drop(['Calories'], axis = 1) # Or axis = 1
print(df.head())
# We can concatinate 2 dataframe, column-wise or row-wise
df2 = pd.concat([df1,df['Calories']], axi... | [
"varunsathish038@gmail.com"
] | varunsathish038@gmail.com |
97550ee9088bd44771d6985a9fa127e9f57fd623 | 9fb8221849511024fa74a7a9f40c89075e06d7b1 | /node_modules/bcrypt/build/config.gypi | e53b910c93cae2e01ae79dba6454d5dd5ee46d45 | [
"MIT"
] | permissive | ericajlittle/tinyURL | d94f6598ef49c95177bc84fa52351672dd9b9c86 | b1f167da5a5665ab93598594389ac7f3a665b534 | refs/heads/master | 2021-01-11T21:13:21.703523 | 2017-01-31T21:51:28 | 2017-01-31T21:51:28 | 79,271,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | 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,
"debug_devtools": "node",
"gas_version": "2.23",
"host_arch"... | [
"ericalittle123@gmail.com"
] | ericalittle123@gmail.com |
caef2901988d4c4ef7134aa4f7bd5d6bc5e027cf | e180e68c468557b186d083869c005c98abdf539a | /Testing Hardcoded format/test12.py | 45c8d0b0c94ebea29eb0ddab7264b94cf3c404aa | [] | no_license | singhalshubh/Notification-system-Testing-using-selenium | 8a58977d7d63c1216e420363f408826e9bfccf7a | e460e7ceeb63e5eea9a914be0ed84febaebe47c7 | refs/heads/master | 2020-03-21T21:33:03.046748 | 2020-01-17T09:53:24 | 2020-01-17T09:53:24 | 139,069,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | __author__= 'shubh'
import unittest
from selenium import webdriver
class signup(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
def test_unsubscribe_community(self):
user ="raghav"
pwd= "sha123#56su"
driver = webdriver.Firefox()
driver.maximize_window() #For maximizing window
dr... | [
"noreply@github.com"
] | singhalshubh.noreply@github.com |
25824908e100267109197ad1c04cca8d349a6f10 | 8cf0cf9b71b7c5fbaa150e9893bf461ef661045e | /ownblock/ownblock/apps/parking/models.py | 84c75498d4e8e94365b81a282ee43d877a925a7d | [
"MIT"
] | permissive | danjac/ownblock | 676b27a5aa0d4ce2ac2cd924a632489cd6fc21ee | ac662fb7efb2f04567e2f85638c1250286452611 | refs/heads/master | 2016-08-02T21:51:56.055598 | 2015-05-02T12:54:47 | 2015-05-02T12:54:47 | 34,940,828 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from django.conf import settings
from django.db import models
from django_countries.fields import CountryField
class Vehicle(models.Model):
description = models.CharField(max_length=100)
registration_number = models.CharField(max_length=12)
country = CountryField(default="FI")
resident = models.Fore... | [
"danjac354@gmail.com"
] | danjac354@gmail.com |
18369325e71e025ee816fd5e5d7ce741992af937 | 399765d71fbc931125fe75cc6c71eabdac4dc58f | /app-tornado.py | bced06bd7f1d0304a5654802440c2e6409be3fa6 | [] | no_license | G-Guillard/NEO | 98e989952c7a15de630962c44d65998e979f7efd | 3317b228fbeead14b1546290e9e7a7a7abbd7ff3 | refs/heads/master | 2020-12-10T09:16:47.845598 | 2020-01-16T15:29:19 | 2020-01-16T15:29:19 | 233,555,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | import os
from tornado.web import Application, RequestHandler
from tornado.ioloop import IOLoop
from pymongo import MongoClient
from bson import Code
import pandas as pd
from plotly.utils import PlotlyJSONEncoder
import plotly.graph_objects as go
import plotly.express as px
import json
from sklearn.cluster import KMean... | [
"5038620+G-Guillard@users.noreply.github.com"
] | 5038620+G-Guillard@users.noreply.github.com |
2c04318b0b4fa9de6ab094de0b250b0fad83f7ad | 3ee88f6e7c427eef6dd7bb177f4b3a727bccbcd2 | /pbnh/conf.py | 90a4b7dcbb4ef4decd192aada7dd76669fc36f77 | [
"MIT"
] | permissive | bhanderson/pbnh | 67a4132adf366dafda3d01cfcfae92f14d84266c | 59bcb27de1a2300f14476349f3182c651a8f88a1 | refs/heads/master | 2022-11-05T13:45:17.674023 | 2022-10-24T23:21:24 | 2022-10-24T23:21:24 | 55,452,403 | 17 | 10 | MIT | 2022-10-24T23:21:25 | 2016-04-04T23:21:09 | JavaScript | UTF-8 | Python | false | false | 580 | py | import yaml
import copy
DEFAULTS = {
"server": {
"bind_ip": "0.0.0.0",
"bind_port": 5001,
"debug": True,
},
"database": {
"dbname": "pastedb",
"dialect": "sqlite",
"driver": None,
"host": None,
"... | [
"bryce.handerson@isilon.com"
] | bryce.handerson@isilon.com |
dada702324b30a4d4a00d067c7b3c97d8b05129b | b8ef1a5cd3856a8e9134c3313a4e23522f199df7 | /Baekjoon/1966_프린터 큐/1966_프린터 큐.py | 73d38dbd9d6bdf4902738765108954a7e7151128 | [] | no_license | scl2589/Algorithm_problem_solving | 910623d9675ae0219320abfd1fefc7d576027544 | 80db697cdd0180a7d4dbcfae4944d4a54191bddf | refs/heads/master | 2023-07-29T10:56:38.225206 | 2021-09-11T13:50:46 | 2021-09-11T13:50:46 | 235,363,353 | 0 | 0 | null | 2021-03-04T15:39:41 | 2020-01-21T14:36:41 | Python | UTF-8 | Python | false | false | 548 | py | from collections import deque
tc = int(input())
for _ in range(tc):
N, M = map(int, input().split())
impt = list(map(int, input().split()))
q = deque()
for idx, value in enumerate(impt):
q.append([idx, value])
count = 0
while True:
max_num = sorted(q, key = lambda x: x[1], ... | [
"chaelinshin96@gmail.com"
] | chaelinshin96@gmail.com |
68a88475ce22d1c7e3b750255bbf7cee712a0ee7 | e8d927d593e2d8d08004e12ec11988062b9df8b3 | /typeidea/blog/adminx.py | d5363e831143e4fac4e100c666967e13751ed032 | [] | no_license | choupihuan/typeidea | 9c4f6a90dfb53f94dcaeb15e5e6e915f9f9e0ee6 | f8e13b1e4afd0f67bf365bdbb04e35cc4f56a0da | refs/heads/master | 2020-06-05T19:51:29.757681 | 2019-06-29T11:32:46 | 2019-06-29T11:32:46 | 192,530,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,567 | py | import xadmin
from django.urls import reverse
from django.utils.html import format_html
from django.contrib.admin.models import LogEntry
from xadmin.layout import Row,Fieldset,Container
from xadmin.filters import manager
from xadmin.filters import RelatedFieldListFilter
from .models import Post,Category,Tag
from .adm... | [
"1193496683@qq.com"
] | 1193496683@qq.com |
fc07829f755d7e6cdcfbb45f1595dfd39618bdaa | 6d69b249a81e076d79787dd08eb8957908052052 | /libs/parse/sections/grouper_mixins/blocks.py | 154423ab5e2c3ebe6544db079d4af4ebccbedda5 | [] | no_license | 2vitalik/wiktionary | 02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b | 8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa | refs/heads/master | 2023-02-06T11:28:41.554604 | 2023-02-05T22:49:01 | 2023-02-05T22:49:01 | 121,025,447 | 7 | 2 | null | 2021-10-13T17:36:32 | 2018-02-10T15:06:24 | Lua | UTF-8 | Python | false | false | 486 | py | from libs.parse.groupers.sections.blocks.any_blocks import AnyBlocksGrouper
from libs.parse.groupers.sections.blocks.blocks import BlocksGrouper
from libs.parse.sections.grouper_mixins.sub_blocks import SubBlocksGroupersMixin
from libs.parse.utils.decorators import parsed
class BlocksGroupersMixin(SubBlocksGroupersMi... | [
"vitaliy.lyapota@anvileight.com"
] | vitaliy.lyapota@anvileight.com |
55579000cd5ed23906233808f75b3a4fae18bda1 | 7e9e76ccb9a8132f875ff8e3279eeb95b4f9b424 | /houseDjango/loggings/urls.py | fbc79cdd86349e0b486fc3cb7c5f10e4b586d14a | [] | no_license | IPingStudio/houseDjango | 9f282273beb80ab4ec2e741bcba28c10c59880c5 | 55aff03fb7febb106304f4555ecdce254539cfa6 | refs/heads/master | 2023-01-13T02:04:00.362837 | 2020-11-02T02:30:37 | 2020-11-02T02:30:37 | 302,852,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """houseDjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-b... | [
"haoran201314@126.com"
] | haoran201314@126.com |
4e6dc77e570b5419eef0fc74fd16710afdfd3235 | 190d03cf370844548b9e8c89952dfbaec4d0c5c8 | /p103.py | 467aee99fa0ff340b0a00d481a047ab36a7d0d52 | [] | no_license | alainlou/leetcode | 446d101a9fd2f9eaa2229252e5909e7df36b4a74 | fe500bcb067be59aa048259e3860e9da6f98344d | refs/heads/master | 2022-10-16T12:20:44.726963 | 2022-09-18T15:29:05 | 2022-09-18T15:29:05 | 178,775,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from DS.TreeNode import TreeNode
class Solution:
def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]:
if root is None:
return []
ans = []
q = [(root, 0)]
while len(q) > 0:
curr = q.pop(0)
if len(ans) <= curr[1]:
ans.appen... | [
"az2lou@uwaterloo.ca"
] | az2lou@uwaterloo.ca |
2054a0b722aa2fa72a01cff5884700470b6bbf49 | edcccb46c663d7ef52b72c40c2b93c1f2b61c2d2 | /Sample Work/Remove Char.py | f3ddb784e1ebb06aec5b34fd384a31d52f733336 | [] | no_license | mre9798/Python_Anlin | 235292e80fe38181098706f733dba78614f38e7a | 83c1e0c994fa55e9bb8cd5de1097b2de7345813e | refs/heads/master | 2023-02-24T22:31:38.279969 | 2021-02-01T09:17:36 | 2021-02-01T09:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # Remove nth character
s = input("Enter a string : ")
pos = int(input("Enter position of character to be removed : "))
print(s[:pos-1] + s[pos:]) | [
"anlinalbert@gmail.com"
] | anlinalbert@gmail.com |
4f1cde96439f98545e5230a27a9a466a7284b8c1 | 2d39d2dbfc4d54c79899caf6fab83d23b1823b9a | /extract_info.py | f2316188355dc7286dc2172aa53a4455fba34d35 | [] | no_license | josephthurman/nyt-reviews | 77db49ab131cbbb2664a45cf4d1625b2ea79f5c8 | 15067020ecb96acfc89a2b14c38ebd3e0dbf7841 | refs/heads/master | 2020-03-24T11:51:41.936973 | 2018-10-03T19:17:44 | 2018-10-03T19:17:44 | 142,697,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,327 | py | from bs4 import BeautifulSoup
import re
import json
import os
# Some helper functions - mostly used in testing
def get_review(counter):
with open('./reviews/review' + str(counter) + '.html', 'r') as file:
parsed = BeautifulSoup(file, 'html.parser')
return(parsed)
# Extract the text of the review
def ... | [
"joethurman3@gmail.com"
] | joethurman3@gmail.com |
fcd899d0868ace0b83ecc9fb302a4fa7c51e35ea | a20707ab33beba0b0aac6401d7baf91c135af4c6 | /Lab/Notes/Embed MatPlotLib in Tkinter.py | a5538e3c87caac7cdc899dbd0792cc75179dc895 | [] | no_license | ffarassati/Metherate-Lab | 21fa34fadf165c6ba0d1862db5e4097fb047da4f | 4f34d59d9168c150f7ae578a38e8b11674275c54 | refs/heads/master | 2020-05-17T05:17:13.318713 | 2019-06-17T09:37:41 | 2019-06-17T09:37:41 | 183,529,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,885 | py | # The code for changing pages was derived from: http://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter
# License: http://creativecommons.org/licenses/by-sa/3.0/
# https://pythonprogramming.net/how-to-embed-matplotlib-graph-tkinter-gui/
import matplotlib
matplotlib.use("TkAgg")
from matplot... | [
"farshadfarassati@gmail.com"
] | farshadfarassati@gmail.com |
eabdc4dfe6fbd29641364cd7beabe54e1c5611c7 | 49facbcd74c2ca6adbca447a45e30a4190b35bc7 | /EMAN2/2.06/lib/emitem3d.py | 4fb979d45e44e783786926fe49428f77efc44768 | [] | no_license | CVL-dev/StructuralBiology | 801c37bfa5664e74c36f9f97478d59016f1f61fc | 1f1eaa42ae565c2032e245c6a874c8439d2719b9 | refs/heads/master | 2023-02-25T10:28:00.700774 | 2013-03-02T08:29:43 | 2013-03-02T08:29:43 | 5,609,380 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,273 | py | #!/usr/local/eman/2.06/Python/bin/python
# Copyright (c) 2011- Baylor College of Medicine
#
# This software is issued under a joint BSD/GNU license. You may use the
# source code in this file under either license. However, note that the
# complete EMAN2 and SPARX software packages have some GPL dependencies,
# so you a... | [
"jupiterh@vpac.org"
] | jupiterh@vpac.org |
552d7737321351084598b558d7543b946c890425 | 4f989b9e1e9c1caa70b5d013d95b95f3c3f0cb3c | /classbasedapiview/urls.py | e0fddc3de7513210995950c8b9d2832b0757ac90 | [] | no_license | vikashtiwary118/class-based-apiview | 4cdb9bc786c16d51dbc5e80060c2b92579659bea | bccaa57a8c7ca07e17402b6d9a12e7f32ba2546f | refs/heads/main | 2023-05-17T00:47:38.819526 | 2021-06-07T05:09:35 | 2021-06-07T05:09:35 | 374,537,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.contrib import admin
from django.urls import path
from api import views
urlpatterns = [
path('admin/', admin.site.urls),
path('studentapi/', views.StudentAPI.as_view()),
path('studentapi/<int:pk>', views.StudentAPI.as_view()),
]
| [
"tiwaryvikash118@gmail.com"
] | tiwaryvikash118@gmail.com |
3e7d7a968820733d5a77fff903a398968800b2e8 | 4dccaf218916f20294d2fb944c78244210636955 | /wordladder/neighbors.py | 2f39fc1064fad1452249909ac8e93418e46ab8bb | [] | no_license | aaronli39/artificial_intel | 750649495fde223fa22b83f3c82092cbb89001f4 | 3c284ac836972ec9ecc67ee10b3431bdccf4f2a3 | refs/heads/master | 2021-06-22T02:22:09.531412 | 2020-12-31T01:59:48 | 2020-12-31T01:59:48 | 168,211,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,231 | py | #! /usr/bin/python3
import sys
def comp(a, b, end):
ac, bc = 0, 0
# print(a, b)
for i in range(4):
if a[1][i] == end[i]: ac += 1
for i in range(4):
if b[1][i] == end[i]: bc += 1
if (ac + a[0]) < (bc + b[0]): return 1
elif (ac + a[0]) == (bc + b... | [
"aaronli39@gmail.com"
] | aaronli39@gmail.com |
d078bea59e3fd25f0fb187ea727e6ef3f081d3f2 | a6db31c3f9264c7b0ad5c3307dee4afd7ce689c1 | /Python/MyPythonTest/zy/com/python3/Demo003.py | f0fcd0b4de6ffc722baa962d301009f4d34b9480 | [] | no_license | aJanefish/Work | 2933fa5437b3c216ff1d76aa641af26226e5295c | 96e585d6208e9d6bab5576a25853c0fdb54fbcd8 | refs/heads/master | 2021-06-29T15:53:28.458468 | 2020-02-23T08:23:44 | 2020-02-23T08:23:44 | 141,233,308 | 0 | 0 | null | 2020-10-13T10:42:43 | 2018-07-17T04:58:08 | Python | UTF-8 | Python | false | false | 317 | py | # -*- coding: UTF-8 -*-
# Filename : test.py
# author by : www.runoob.com
# 文件操作
# 写文件
print
with open("test.txt", "wt") as out_file:
out_file.write("该文本会写入到文件中\n看到我了吧!")
# Read a file
with open("test.txt", "rt") as in_file:
text = in_file.read()
print(text)
| [
"36288075+aJanefish@users.noreply.github.com"
] | 36288075+aJanefish@users.noreply.github.com |
2e6669b326e3edda7be0bf7c377f290405bcf0c3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2671/60590/241334.py | 25e5fee553d7db62878bfa4165d65ebdfde7331c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | def cal(w):
if w==1:
return 2
if w==2:
return 3
elif w==3:
return 5
else:
w2=2
w3=3
for i in range(w-2):
temp=w2+w3
w2=w3
w3=temp
return temp
t = int(input())
for i in range(t):
w=int(input())
print(2**w-cal(w)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d3e48f69c086cadbd11c7ae49adb48301ab31324 | 62669fa98cfba28653f97adfaf169c166e02d69c | /yi_parser.py | b829e653e392286b80afb190dd2a9d2223f8e028 | [] | no_license | Kevin-Xi/Yi_Analysis_Tools | d8e7850275572bc00c59a46fe10c0ae2a584670d | 2191948795f1c6df621ec1ab535d43c35b3067d7 | refs/heads/master | 2020-04-18T11:47:18.576014 | 2013-06-05T08:26:39 | 2013-06-05T08:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | # -- coding=utf-8 -- #
"""Parser of Yi
Analyse specified Yao of a Gua
Usage:
python yi_parser.py [options]
Options:
-s ... use specified xml file
-g ... specify a Gua, between 1 and 64
-y ... specify a Yao, between 1 and 6
-a analyse all
-h show help document
Examples:
yi_parser.py -s new_yi.xml u... | [
"kevin.xgr@gmail.com"
] | kevin.xgr@gmail.com |
b5c26aa9fc4c568ff3effe6c26bb5dbcdedb889b | 9d027df3b1295ecc49be75b2902c9e0f1089405b | /ingest/stuart_lab_remove_all.py | 6594820647844b6aa97c529cc4ea3026d27fc4e6 | [
"MIT"
] | permissive | mrJeppard/clusterdb-ingest | 5e3681f0712f830e3ffd34c802cc7221d463c0d6 | f52f3ee03a1071ef15a63412e1e2085fdf74e584 | refs/heads/master | 2022-12-12T03:56:44.097278 | 2019-05-14T21:06:13 | 2019-05-14T21:06:13 | 174,733,533 | 0 | 0 | MIT | 2022-12-08T01:41:16 | 2019-03-09T18:49:35 | Python | UTF-8 | Python | false | false | 2,222 | py | """
Works with a directory of anndata objects which are the result of the stuart lab
runs from October 2018
Update the data values common across the cluster solution, such as
cluster_description, method...
To run change the DATADIR and FULLPATHDB global run and run the script from the repos venv.
python stuart_lab_a... | [
""
] | |
8c055cb19494e422d0d5bb1e656c1a374f646cbb | 6da108db00c294a55410bde285fa7851358331df | /mobycity/carpooling/forms.py | 78599ffb37b78a430fdc9db6e0e32a0c46f8eed0 | [
"MIT"
] | permissive | LucienD/Mobct | 5639eb108922dc03dd88d62b93b8eaac0c989dae | 1c8422b30c205bdb2dc21c988f74280194980ec4 | refs/heads/master | 2020-07-04T18:55:49.784534 | 2016-11-20T13:30:48 | 2016-11-20T13:30:48 | 74,147,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
from carpooling.models import Carpool
class OfferCarpoolForm(forms.ModelForm):
class Meta:
model = Carpool
fields = [
'departure_latitude',
'depa... | [
"luciendartois@gmail.com"
] | luciendartois@gmail.com |
b866f47bcedbd24a41b9e989c6316740d4e2d137 | 5b21e3b64083c5449f367a927a0f718af7a74491 | /venv/Scripts/pip3-script.py | c91dffd6ff58842f226b6cdff66d4e17ad56d2ea | [] | no_license | james-bogert/Lists_Project | ae257cd0005a081c0b89cad05c33d8f0f9fabbe6 | abf81699f126f33d60cd87e19fd619c71a8042e7 | refs/heads/master | 2020-04-08T00:46:15.953431 | 2018-11-23T18:27:48 | 2018-11-23T18:27:48 | 158,258,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!C:\Users\jjbog\Lists_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sy... | [
"james.bogert@greenwoodcollege.com"
] | james.bogert@greenwoodcollege.com |
e1267a54f015e66aaf57df060a0ebb302d36b67e | 8d4f26bccc3b016cf45e8270df617cea73d1a741 | /utils/transforms.py | 4a3b38f5fe3802f8719e83a981a8f9c1740e3a2c | [] | no_license | krylatov-pavel/aibolit-ECG | 3b6e4fc8d87ada6a615038c7fb94048570af2d43 | 27bad875981547ea93ac0088518eb29149078988 | refs/heads/master | 2022-12-26T05:49:30.827061 | 2019-08-19T10:47:20 | 2019-08-19T10:47:20 | 191,343,111 | 1 | 0 | null | 2022-12-08T05:56:08 | 2019-06-11T09:53:21 | Python | UTF-8 | Python | false | false | 631 | py | import torch
from torchvision import transforms
def squeeze(x):
return torch.squeeze(x, dim=0)
def clip_fn(min, max):
def clip(x):
x = torch.clamp(x, min, max)
return x
return clip
def scale_fn(min, max, a, b):
def scale(x):
x = ((b - a) * (x - min) / (max - min)) + a
... | [
"krylatov.pavel@gmail.com"
] | krylatov.pavel@gmail.com |
42912ac022fad380ab3b2d80fe7989268ffc6c88 | a1858b1eeef112531b52f977b644a83fc3436688 | /second/protos/train_pb2.py | d23b33889b3ebd11208cdc61c940a72a4d0ed2f7 | [] | no_license | NorthCross/CLOCs | 2086ab2fe7fdce0c93ee7f181caf1b94774506a5 | 4cef59b23990a35656853bb16c4e897164b2ef02 | refs/heads/master | 2023-08-16T08:09:42.479641 | 2021-10-25T22:47:50 | 2021-10-25T22:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,945 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: second/protos/train.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from go... | [
"pangsu0613@gmail.com"
] | pangsu0613@gmail.com |
9e81266bf495049477857e380675d6fdda9605c5 | 6d35c28f907b6ce999522ae53b98fa6ded98df6f | /server/corpsoftportal/corpsoftportal/wsgi.py | dee886c41e13032dd34908158d6bf79ad0948be8 | [] | no_license | Rassoliny/csp | 7a5f22c0b6c969ef566b1871c097aad5fc5a38d1 | 815aa0abcf0796e67ac4a81d065d4d99243881f1 | refs/heads/master | 2020-04-18T06:54:56.747455 | 2019-03-11T12:24:02 | 2019-03-11T12:24:02 | 167,342,026 | 0 | 0 | null | 2019-02-11T10:14:42 | 2019-01-24T09:38:40 | JavaScript | UTF-8 | Python | false | false | 405 | py | """
WSGI config for corpsoftportal 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"dimo120@yandex.ru"
] | dimo120@yandex.ru |
808c37dcb29ca35c6d9c2b58002ea569528d3997 | f82728b6f868a2275e63848f936d2c22354dc024 | /Data Structure/Array Or Vector/Search An Element in Sorted Array/SolutionByYashika.py | 08248acbf202fda8812505c30c4bb5b29244da21 | [
"MIT"
] | permissive | shoaibrayeen/Programmers-Community | 0b0fa4ba1427fa472126e640cda52dff3416b939 | cd0855e604cfd54101aaa9118f01a3e3b4c48c1c | refs/heads/master | 2023-03-16T03:13:48.980900 | 2023-03-12T00:25:37 | 2023-03-12T00:25:37 | 209,997,598 | 285 | 424 | MIT | 2023-03-12T00:25:38 | 2019-09-21T14:17:24 | C++ | UTF-8 | Python | false | false | 381 | py | def search(array,ele):
if len(array)==0: #if array is empty
return False
if array[0]==ele: # if ele is found at 0th index
return True
return search(array[1:],ele) # recursively search for the element in the array
size=int(input())
array=[int(i) for i in input().split()]
ele=int(input())... | [
"sharmayashika996@gmail.com"
] | sharmayashika996@gmail.com |
32e18a4664cd9782b3a51b71a5e8d6d18c54ee03 | c8705c604e9dbc50c65d157f95c42f2529354bbb | /keras_layers/keras_layer_L2Normalization.py | 3c5977e6a76ed021285bfd28c2762ba39cdd4fff | [] | no_license | toschilt/object_detection_ic | e00b45c56865273f831b29c6017e89f92e545de6 | bd2d8aa36c6734cdb21c517ff3bb47d174993663 | refs/heads/main | 2023-05-30T18:33:23.881966 | 2021-06-24T02:32:58 | 2021-06-24T02:32:58 | 342,574,861 | 0 | 0 | null | 2021-06-24T02:32:59 | 2021-02-26T12:52:28 | null | UTF-8 | Python | false | false | 2,734 | py | '''
A custom Keras layer to perform L2-normalization.
Copyright (C) 2018 Pierluigi Ferrari
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 req... | [
"lt.toschi@gmail.com"
] | lt.toschi@gmail.com |
5df906375ee0c7d24ede8dd570122ce0cbdd1251 | 9bdc5bd0b6195761fbceed17c0725bc48a5941a1 | /testing/keras_taylor_1D.py | f24a460e11be29c65a55abbe497af20fe014f122 | [] | no_license | lapsintra/htt-ml | bc6bbb12eda4a3f0abbc5c0db13940a31b667a08 | ce07cad6fcc8625b1595157de6486759b74f6d62 | refs/heads/master | 2020-04-05T16:29:29.858916 | 2018-12-04T19:32:10 | 2018-12-04T19:32:10 | 157,015,043 | 0 | 0 | null | 2018-11-10T19:38:56 | 2018-11-10T19:38:56 | null | UTF-8 | Python | false | false | 7,871 | py | #!/usr/bin/env python
import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True # disable ROOT internal argument parser
import argparse
from array import array
import yaml
import pickle
import numpy as np
import os
import sys
import matplotlib as mpl
mpl.use('Agg')
mpl.rcParams['font.size'] = 16
import matplotlib.p... | [
"stefan.wunsch@student.kit.edu"
] | stefan.wunsch@student.kit.edu |
67c5c82a547f0328a5f2785a7f49e1a9f8b45785 | 1050b277f6cb4bf4535c913dcf699c51fc705dd1 | /pysp/projects/shield/metahumans/migrations/0004_metahuman_last_update.py | e6025ee3ee97df1d184e5429f1ccd7eb01954743 | [] | no_license | joserequenaidv/my-eoi | 7d680d6a48f688867eae37c1af103a54d8cf57b9 | 019d0fffbee95372eb63c378d0c93b66b6e6fedf | refs/heads/master | 2022-12-06T19:52:29.703696 | 2020-08-12T14:27:38 | 2020-08-12T14:27:38 | 267,091,694 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.0.5 on 2020-05-04 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('metahumans', '0003_metahuman'),
]
operations = [
migrations.AddField(
model_name='metahuman',
name='last_update',
... | [
"joserequenaidv@gmail.com"
] | joserequenaidv@gmail.com |
866c1d3d680c6beedd8c74466cc4d708fc411925 | 58a392f4c4bae3fa1c99e3d081eda0701bb9c93f | /comment/migrations/0001_initial.py | 02c7a01063db0d61442f5fc9a3fe66b88b72b2b4 | [] | no_license | KD233233/kd | 84e6b60457c70b0eb603049762a3e17c808701f9 | d0c298aefdc4b0712afa27604f832459b97a8edf | refs/heads/master | 2020-05-19T07:21:08.312106 | 2019-05-05T06:03:42 | 2019-05-05T06:03:42 | 184,895,175 | 1 | 0 | null | 2019-05-04T13:09:01 | 2019-05-04T12:58:51 | null | UTF-8 | Python | false | false | 864 | py | # Generated by Django 2.1.7 on 2019-02-26 01:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0006_auto_20190226_0940'),
]
operations = [
migrations.CreateModel(
... | [
"1769895221@qq.com"
] | 1769895221@qq.com |
8a5e173f87c878730e0dfa0966878e78abf3d25e | 3e5d04efc67876ddd3cc490f4254b43d81287c69 | /task_list/urls.py | adea6b8465672d6033e912421b32e4fc5eebe08d | [] | no_license | asattelmaier/django_task_list | f7208b94fda5b5fd30e84bc175f030acea43eb78 | 0bd949a12d63e191ac097c4dd0d05115ecc478c8 | refs/heads/master | 2021-09-13T11:52:14.475084 | 2018-04-29T13:56:50 | 2018-04-29T13:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """task_list 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: path('', views.home, name='home')
Class-bas... | [
"alexander@sattelmaier.info"
] | alexander@sattelmaier.info |
fc3b822caec378c8a3defbf7471bb237e7933eb6 | bd8eb564710998df1f2d77650d357d1b3b02fbd4 | /can/bt_plugin_can.py | ea56995dcbca5f67b055e7185b770431e790c486 | [] | no_license | gpollo/babeltrace-fun-plugins | 43afd3c64004cebc6902e2f8713b3a23a980b1ea | 7145f8647db7d9662fd37ecfe5b4265654e7b7fc | refs/heads/master | 2022-02-25T17:43:51.193150 | 2019-08-16T04:34:55 | 2019-08-16T04:34:55 | 198,295,555 | 0 | 0 | null | 2019-07-22T20:14:43 | 2019-07-22T20:14:42 | null | UTF-8 | Python | false | false | 9,344 | py | import bt2
import cantools
class CANIterator(bt2._UserMessageIterator):
def __init__(self, port):
(self._events, self._trace_class, self._messages) = port.user_data
self._trace = self._trace_class()
self._stream_class = self._trace_class[0]
self._stream = self._trace.create_stream... | [
"simon.marchi@polymtl.ca"
] | simon.marchi@polymtl.ca |
635ba9cef3c47552319481c624406b556a3d4b17 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=0/params.py | aff20aa8732740d3ec888ec12ac9538f67a70364 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.570619',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 0,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
53de45efc62f9e11b91f03a858fe16a54ff85139 | bc105a7586ed67a352430563d36770078f2b3a29 | /most-recent-seasonal-spotify-playlist-generator.py | 201c6dca176ea15c06ff02e4be8530bd6769e48f | [] | no_license | neasatang/seasonal-spotify-playlist-generator | 1692957deccb56fa49c85cfe05d4416a3ce79a64 | 843a8175bf8f62294656d1da30e86f300bfd34d4 | refs/heads/master | 2023-02-08T00:55:18.594188 | 2020-12-29T16:01:11 | 2020-12-29T16:01:11 | 239,403,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | import os
import datetime
import spotipy
from spotipy.oauth2 import SpotifyOAuth
spring_months = ("02", "03", "04")
summer_months = ("05", "06", "07")
autumn_months = ("08", "09", "10")
winter_months = ("01", "11", "12")
seasons = {
"01": winter_months,
"04": spring_months,
"07": summer_months,
"10": ... | [
"tangn@tcd.ie"
] | tangn@tcd.ie |
df87989ac6e9817600210b00a6107f9f117640db | 40dc0e7a24ff1ef5fb932b44cb663acd71df31fe | /AlphaZero_Gomoku-master/human_play.py | b617f0dea3383b34bdde3cf7c28d37ce05809a08 | [
"MIT"
] | permissive | channerduan01/gomoku | 42e558528fb93bd50b585e32538e822c4a3279a9 | 0b759ab8b6633190fc205f00e34d6947ef8871bd | refs/heads/master | 2021-01-10T13:31:55.148620 | 2019-05-05T03:08:28 | 2019-05-05T03:08:28 | 50,356,694 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | # -*- coding: utf-8 -*-
"""
human VS AI models
Input your move in the format: 2,3
@author: Junxiao Song
"""
from __future__ import print_function
import pickle
from game import Board, Game
from mcts_pure import MCTSPlayer as MCTS_Pure
from mcts_alphaZero import MCTSPlayer
from policy_value_net_numpy import PolicyValu... | [
"xiuchan.dc@antfin.com"
] | xiuchan.dc@antfin.com |
6133612965233013406ba7cb943881799c725dd8 | 875c602f53b5775468e5a39161a0cf2bf3a4af53 | /pipify/ShowProxy.py | 1a8189c43ef62b8a1e97050d34e8aaa60c0641ea | [] | no_license | cjsatuforc/fusion360-kaneka | 87bf141e7e2a546a1a6b0a9e7260e51cb4a83c5b | d29037d7432be0be6fea86efabdaaf1faeb864f3 | refs/heads/master | 2020-05-03T12:29:24.776853 | 2018-02-09T19:18:26 | 2018-02-09T19:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,504 | py | # (C) Copyright 2015 by Autodesk, Inc.
# Permission to use, copy, modify, and distribute this software in
# object code form for any purpose and without fee is hereby granted,
# provided that the above copyright notice appears in all copies and
# that both that copyright notice and the limited warran... | [
"narget@umich.edu"
] | narget@umich.edu |
1b6973b7da92004e47d0485666a2fa1e91eead94 | 310bfe2d33786fb4af8ef9c74149649a6c735d34 | /cnn_processor.py | 434a6cb36151f9ca71d57f3afd22659a222e3e4a | [] | no_license | hanayashiki/FindEmotionalWords | 472e62351b86db34ffcfd8c880b2703da4f96f8b | 333affee5c61fcc074cfa2727e7616974a9aac35 | refs/heads/master | 2021-08-11T19:18:47.166614 | 2017-11-14T02:55:45 | 2017-11-14T02:55:45 | 109,950,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | import tensorflow as tf
from settings_cnn import *
import test_cnn
optimizer, losses, sigmoid_output, accuracy, one_zero = test_cnn.build()
def process(x_data):
sess = tf.Session()
saver = tf.train.Saver()
sess.run(tf.global_variables_initializer())
saver.restore(sess, model_path)
y = sess.run(on... | [
"494450105@qq.com"
] | 494450105@qq.com |
4c40cb98ca63c117e54ac2a813fc76d9104e8a5b | 88ba7e002797738d2f7496a70158931f31992e57 | /src/ANN/ANNTest.py | 560f606b973aeb3685629e144e15a1a875e68462 | [] | no_license | HUbbm409/bbm406-project-what-is-this-books-genre | 6a9464dda8ae80bf23017b2b3252cea1600ac674 | 541391f1fa11ba039374dec334161042c6315eef | refs/heads/master | 2020-04-13T06:18:43.608987 | 2019-01-18T16:44:02 | 2019-01-18T16:44:02 | 163,016,881 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,822 | py | from object_management.object_manager import ObjectManager
import keras
import gensim
import numpy as np
from sklearn.metrics import hamming_loss
from sklearn.metrics import zero_one_loss
import ast
import os
from pathlib import Path
def ConvertGenreListToVector(data):
genreTypes = {' Fiction': 0, ' Speculative fic... | [
"b21427559@cs.hacettepe.edu.tr"
] | b21427559@cs.hacettepe.edu.tr |
033a0c1772872da6d3ec1735dadf3faddd9151e8 | 9fe8442df6f27791f8798d5905969a85ae705dd4 | /Python_Stack/Django/Django_Orm/Users_Shell/Shell_App/models.py | f638bb1644c0850de0525c46a0966d2155c451dc | [] | no_license | cpugao/Python | 225493da5d1c8f146680182cd2951d81c5a087ff | 77a8d6f884543ae6679d9635a1eb96d6dda3bc10 | refs/heads/master | 2022-12-21T11:23:22.624304 | 2020-09-08T07:34:58 | 2020-09-08T07:34:58 | 293,735,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email_address = models.EmailField(max_length=255)
age = models.IntegerField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = mode... | [
"cpugao@yahoo.com"
] | cpugao@yahoo.com |
6bf0b46a1682e0078e8be749f54915500deaa131 | 81a551f87fc7ea1ce501e0f92f0bf787562299b3 | /pip_stripper/_pip_stripper.py | 3c419f84503f987c0933f8b411541416e898701b | [
"MIT"
] | permissive | jpeyret/pip-stripper | c35bd7c9fd544a6e24180e3e544c067c3e5f48f7 | bf50bf80915acfaaf501db914c26c4265bf4d6a4 | refs/heads/master | 2023-01-05T01:22:18.502356 | 2019-04-23T04:28:49 | 2019-04-23T04:28:49 | 180,931,747 | 4 | 1 | MIT | 2022-12-26T20:47:21 | 2019-04-12T04:43:22 | Python | UTF-8 | Python | false | false | 10,834 | py | # -*- coding: utf-8 -*-
"""Main module."""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""doc for _main.py - """
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
import sys
import argparse
import re
import os
import subprocess
import distutils.sysconfig as sysconfig
fr... | [
"jpeyret@gmail.com"
] | jpeyret@gmail.com |
8abbdd180f33166add8aa0e2afc8656a3e61eb68 | 198dd2fd5b2aa27b950bd5844c97a1ebdbd3af17 | /dephell/repositories/_local.py | 90ceb7d1f9c1045a3bc1c9a026ebe0a9eea2cb71 | [
"MIT"
] | permissive | espdev/dephell | 68411b20c1830836dcea0eec96a8bd15e95171d5 | 17d5604e7b443b4d58bffc635a139adb49431efc | refs/heads/master | 2020-11-26T01:05:07.580285 | 2019-12-20T14:29:07 | 2019-12-20T14:29:07 | 228,915,765 | 0 | 0 | MIT | 2019-12-18T20:24:21 | 2019-12-18T20:24:20 | null | UTF-8 | Python | false | false | 4,172 | py | # built-in
from datetime import datetime
from pathlib import Path
from typing import Optional, Tuple, Union
# app
from ..cache import RequirementsCache
from ..config import Config
from ..constants import FILES
from ..models.release import Release
from ._warehouse import WarehouseLocalRepo
from .base import Interface
... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
f7eacb3ff42e16ef6d307a110f5e395dc4aaec5a | 829dc287dbdbd1b73a65035d3be67a22ea37a140 | /test.py | 8411f87c1d6b22e3dd4402e562b56f07cf1916b7 | [] | no_license | JesseE/flask-prototype-sqldata | 24a3ef0f35dc1639b10dba1eb9ef20b9b3507f5a | e14874eea4773893b9a5130b4fd4b643ce3212e6 | refs/heads/master | 2021-01-09T20:32:47.744412 | 2016-05-31T14:59:36 | 2016-05-31T14:59:36 | 60,099,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | from app import app
import unittest
class FlaskTestCase(unittest.TestCase):
# Ensure that flask was set up correctly
def test_index(self):
#isolated test client like selenium
tester = app.test_client(self)
response = tester.get('/login', content_type='html/text')
self.assertEq... | [
"jesse@voorhoede.nl"
] | jesse@voorhoede.nl |
5b7a76806a2d1052d41fbce4748ec2feec0badda | 3873dadd6e60a426439fbfefcff084590cd39670 | /solver.py | 04f717bfbda2274a9b02cda05635305feab94052 | [] | no_license | adam-urbanczyk/Eigenvalues | 52e7a0f25501f24ee8d76f4ce2d6a49e17565813 | 5484b0be5fac95ef0a0f1f2ab9d19ddffe128e6c | refs/heads/master | 2021-01-11T21:23:49.372225 | 2016-03-22T04:46:44 | 2016-03-22T04:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,571 | py | """
Provides Solver class and other tools for solving eigenvalue problems.
Handles all adaptive cases.
"""
from dolfin import refine, CellFunction, Constant, Measure, FunctionSpace, \
TrialFunction, TestFunction, dot, assemble, dx, DirichletBC, \
grad, SLEPcEigenSolver, Function, FacetFunction, PETScMatrix, M... | [
"siudej@gmail.com"
] | siudej@gmail.com |
61f49f427b666427264c788d37ae7c6625a6b4c8 | cc3aa2b5a08416b96cc0633647f9567864c0de58 | /test/test3.py | 4904b3d4897d02086ce0982afb38c6f431168874 | [] | no_license | piixeltree/testcase_generator | 2c31be02061b3d52d729c20dce13b90d071629f9 | d1694b5799a92b2a66f6ae5423d9881c3c45dfa4 | refs/heads/master | 2020-03-10T03:23:46.548505 | 2018-04-12T11:49:08 | 2018-04-12T11:49:08 | 129,163,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | def sub(a,b):
return (a-b,4)
| [
"rlawodnr1203@gmail.com"
] | rlawodnr1203@gmail.com |
b8e64eea9a8b89c992011677975679292443dff5 | 259bf472d38d05ea86f23932789f5fb7f264df89 | /projectApps/consumers.py | ed362646e24bf9f2b8800ab761743d1a1ce6b81f | [] | no_license | andrewryan/ClassCollabs | 0fc3416e5f5fed59aae6aa2fad8a2e8373a7c74b | e73bb0164ce8e8f64f794b4fbd1509adfa09cf96 | refs/heads/master | 2021-01-20T18:04:13.536089 | 2017-07-18T22:35:27 | 2017-07-18T22:35:27 | 90,900,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import json
from channels import Group
from channels.auth import channel_session_user, channel_session_user_from_http
# When a user logs in, add them to the 'users' group,
# with their username and the value of 'is_logged_in',
# websockets have to be passed a JSON serializable message
@channel_session_user_from_http
... | [
"aryan17@mail.csuchico.edu"
] | aryan17@mail.csuchico.edu |
0e056bd4bb9433bc9d9431ddbca1ea8006b3f319 | dcb57598b4b7f9fb7a25f847574b227824b5420c | /tests/integration_tests/test_features.py | 53172ef02b0bf7875a94cad0a5af4b9fa26394f8 | [
"MIT"
] | permissive | netor27/features-webapp | 473a0f393bea5d30d654d1880869fe8daebe4c5b | 801d582975de7734c90bf0a4c95f404cbf305e86 | refs/heads/master | 2021-05-11T07:36:06.494569 | 2018-05-08T17:54:15 | 2018-05-08T17:54:15 | 118,023,763 | 0 | 2 | MIT | 2018-05-08T17:54:16 | 2018-01-18T18:48:42 | Python | UTF-8 | Python | false | false | 17,571 | py | import pytest
from unittest import TestCase
from flask import url_for, json
from datetime import date
from web.server import create_app
from web.db import db
from web.status import status
from web.models import Feature
from tests.integration_tests.post_helpers import PostHelper
class FeaturesTests(TestCase):
@... | [
"neto.r27@gmail.com"
] | neto.r27@gmail.com |
81ead41af15f2e458481b49604b4fc00b30f8ecc | 9cbd22ce203ab7f40d6e02a7ee2b565461369b45 | /bagbankde/items.py | 768a82202c55a20a6a785aed852583aebad99500 | [] | no_license | hristo-grudev/bagbankde | a506ed6af28db7ad4c609d7fbd922d5a699b64d6 | 1afcb0454b9e498c4b4eccb233b7d2aa15823513 | refs/heads/main | 2023-03-26T14:09:08.641400 | 2021-03-18T14:16:31 | 2021-03-18T14:16:31 | 349,100,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import scrapy
class BagbankdeItem(scrapy.Item):
title = scrapy.Field()
description = scrapy.Field()
date = scrapy.Field()
| [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
654213eace46387f5fd43bd5e09a377bfc08c864 | 916d152cef8955d68465e963e131e10db02e431c | /bin/count_lines.py | f3a76cbaeaa78a9165926a99eb4a4e83d20122c4 | [] | no_license | camgunz/profile | fa57f44f2f94eaee90e99249440435bbaa0f0b15 | 7ab9e02b3750096c6a46ff83a28dd9413d8a8d28 | refs/heads/master | 2021-09-26T14:12:55.968071 | 2021-09-16T15:10:44 | 2021-09-16T15:10:44 | 31,148,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python
import sys
import os.path
def main():
total = 0
for file_name in sys.argv[1:]:
if not os.path.isfile(file_name):
continue
with open(file_name, 'r') as fobj:
line_count = len([ln for ln in fobj.readlines() if ln.strip()])
print('%s: %s' ... | [
"charles.gunyon@gmail.com"
] | charles.gunyon@gmail.com |
16e773d0dc3490478889f1eef2ab3f40c45177bc | 68f119bc8d30e106df37b56993df7909ec0c95fc | /readbacks/apps/common/utils.py | 8a772b631c0e4f6fa7b0e4a540cf30b524185fed | [
"MIT"
] | permissive | argybarg/readbacks | 7b580d8a2a733b89cd03d7eb9803fbea8ce3a585 | 6b78bc3f33e53dd0850ed40d1412e355b7cd7cd6 | refs/heads/master | 2020-01-22T15:16:28.978295 | 2014-05-22T22:01:26 | 2014-05-22T22:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # https://djangosnippets.org/snippets/1259/
def truncatesmart(value, limit=80):
"""
Truncates a string after a given number of chars keeping whole words.
Usage:
{{ string|truncatesmart }}
{{ string|truncatesmart:50 }}
"""
try:
limit = int(limit)
# invalid lite... | [
"sunstance@gmail.com"
] | sunstance@gmail.com |
526d68e7367544fddb75b1feac1d125516d58c15 | 2eca0111818adce7454e76197436fa567a0ab6bd | /storefront/themed_products/migrations/0003_auto_20210114_1449.py | c47334bfb5dc7db3481a78f5d8fa49cd1326dfff | [] | no_license | jbar173/Storefront | 336eedc9b75e31e8f2f1fd0015fdcbdc10bd7467 | 0a7a9cf3fd6267fb828b1b5d2f99b8ad0794db32 | refs/heads/main | 2023-03-28T19:08:25.633081 | 2021-03-29T16:07:07 | 2021-03-29T16:07:07 | 321,958,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # Generated by Django 3.1.2 on 2021-01-14 14:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orders', '0003_auto_20210113_2056'),
('themed_products', '0002_themedbouquet_theme_name'),
]
operations = [... | [
"jb316700@gmail.com"
] | jb316700@gmail.com |
01b32f0e13acf20a01c271a146bc3a109c71506a | 0533cdcaa13edd15d60523be1c806985f2a27be3 | /life/addRestaurants.py | 523f72ba7849fd028b5157a5be5b00d20fa7c69f | [] | no_license | cs160su18/p5-junseoky21 | bfcebb141ea9501d866707939c6435506f49664c | 27a39c4cbc795e2f2e6805d9f3ae9fc78b2013c1 | refs/heads/master | 2020-03-23T11:08:27.179003 | 2018-07-22T23:19:57 | 2018-07-22T23:19:57 | 141,485,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from life.models import *
Mc = Restaurant(name="McDonalds", latitude=37.8716, longitude=-122.2727)
Mc.save()
Mc = Restaurant(name="Bongo Burger", latitude=37.8653, longitude=-122.2582)
Mc.save()
Mc = Restaurant(name="Taco Bell", latitude=37.8678, longitude=-122.2576)
Mc.save()
| [
"junseoky21@gmail.com"
] | junseoky21@gmail.com |
bcc5720fc4cdcc6f82c6aabd3852ce15ab77b4e0 | d886d3a2c1c9e117a817d60d4d29122fe49afef5 | /test/lexTests.py | 4d5cde4ff3ceea8ae499d385a879634d350fa9f5 | [
"LicenseRef-scancode-scintilla"
] | permissive | missdeer/Scintilla-iOS | e70012012af9c2a500871d59d6b52386f083983a | 956d4fb53c2ffa135648f86b0b395f51e4136448 | refs/heads/master | 2022-05-16T12:28:45.315261 | 2022-04-03T08:57:27 | 2022-04-03T08:57:27 | 178,977,537 | 0 | 0 | NOASSERTION | 2020-01-08T01:39:51 | 2019-04-02T01:47:01 | C++ | UTF-8 | Python | false | false | 3,424 | py | # -*- coding: utf-8 -*-
from __future__ import with_statement
import io, os, sys, unittest
if sys.platform == "win32":
import XiteWin as Xite
else:
import XiteQt as Xite
keywordsHTML = [
b"b body content head href html link meta "
b"name rel script strong title type xmlns",
b"function",
b"sub"
]
class TestLexer... | [
"semyonc@iMac.local"
] | semyonc@iMac.local |
0933da67fd790e5811ce8b580f16a0ab1a3f6a75 | 32bbbd6dbd100bbb9a2282f69ac3b7b34516347f | /Study/keras/keras44_cifar100_2_cnn.py | 88e3f8742ac013b4f6a6c64966e550971666ddae | [] | no_license | kimjh1753/AIA_Academy_Study | 2162d4d4f1a6b8ca1870f86d540df45a8742f359 | 6022718ae7f9e5170a19c4786d096c8042894ead | refs/heads/master | 2023-05-07T12:29:12.920693 | 2021-06-05T01:09:33 | 2021-06-05T01:09:33 | 324,136,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | # 1. 데이터
from tensorflow.keras.datasets import cifar100
(x_train, y_train), (x_test, y_test) = cifar100.load_data()
print(x_train.shape, y_train.shape) # (50000, 32, 32, 3) (50000, 1)
print(x_test.shape, y_test.shape) # (10000, 32, 32, 3) (10000, 1)
x_train = x_train.reshape(x_train.shape[0], x_train.shape[1], x_t... | [
"kimjh1753@naver.com"
] | kimjh1753@naver.com |
ca62342c43c23dfc47000c1aae015fc88579da3b | f0194c40b3e5c8b9e06eb1d70af862b6e465c9ef | /448-Find All Numbers Disappeared in an Array.py | 616ae2c65c2c73616b35eff000b90511868fd712 | [] | no_license | ElijahYG/Leetcode_Python | 842ae9db71e7f70f7398aeec427ba51706fc2b26 | 79148047b27b19f1b581dd350fb9de849877bf73 | refs/heads/master | 2021-01-11T17:59:45.779227 | 2017-03-21T16:07:18 | 2017-03-21T16:07:18 | 79,895,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | '''
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the elements of [1, n] inclusive that do not appear in this array.
Could you do it without extra space and in O(n) runtime? You may assume the returned list does not count as extra space.... | [
"627471266@qq.com"
] | 627471266@qq.com |
84cc0587d07c1b8dd4cdaa6a6736f3482679e698 | aec4dc0c6780e1dc63fb1a840541771b2931198f | /app/models/follow.py | 7a7d81cd0bdd0513286e51112a7feab36650310e | [] | no_license | dunnjm814/mySampler | e1864fa8e7407eaa31a32ceec5252840d7ad5dde | a272ed13e19a2d6593ef6a7ae6d20441d16e9546 | refs/heads/main | 2023-06-14T22:50:30.477166 | 2021-07-14T00:35:03 | 2021-07-14T00:35:03 | 343,591,654 | 8 | 0 | null | 2021-07-14T00:35:04 | 2021-03-01T23:59:18 | Python | UTF-8 | Python | false | false | 195 | py | from .db import db
follows = db.Table(
"follows",
db.Column("follower_id", db.Integer, db.ForeignKey("users.id")),
db.Column("followed_id", db.Integer, db.ForeignKey("users.id"))
)
| [
"dunnjm814@gmail.com"
] | dunnjm814@gmail.com |
066606616f939cd8455b4c5eaeb8039be54a8ed4 | c4e872fc1cbfd78006cfd6826f57b7db3d94c622 | /web/pack.py | 458c0ab36b94e98bed1c68ccfe455611c09bcad6 | [
"Apache-2.0"
] | permissive | rajeshpandit107/AccDNN | 7049eb3e14193f59f03d61fbf7d3ed7fbfb8d22b | e250a0c020d0ba84f4c4ec098d58b5d1c5fb6d10 | refs/heads/master | 2023-03-29T22:56:08.042630 | 2021-04-09T14:58:28 | 2021-04-09T14:58:28 | 255,531,572 | 0 | 1 | Apache-2.0 | 2020-04-14T06:45:03 | 2020-04-14T06:45:02 | null | UTF-8 | Python | false | false | 910 | py | #!/usr/bin/env python
from settings import *
def pack_layer_profile(layer_name, layer_type, cpf, kpf, macs, dsps, weights_num, delay, bandwidth, blks):
return {'name':layer_name, 'type':layer_type, 'cpf':cpf, 'kpf':kpf, 'macs':macs, \
'dsps':dsps, 'weights':weights_num, 'delay':delay, 'bandwidth':band... | [
"junsongw@cn.ibm.com"
] | junsongw@cn.ibm.com |
7d42995cc032265dc1da6c26ba81455cc32bcebd | c60c199410289c1d7ec4aea00833b461e1f08f88 | /.history/older-than/older/source-example/day2/user-list.py | a923e529b041db39bfa93f7bc43cb926236f86e4 | [] | no_license | ver007/pythonjumpstart | 66fb111e6af197fad3e853b2c2d712a1b57a7d59 | 5b1f52479abd07456e2da494149e491d398f3b7d | refs/heads/master | 2021-01-21T01:34:35.501870 | 2015-05-13T14:10:13 | 2015-05-13T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #!/usr/bin/env python
users = [ line.split(':')[0] for line in open('/etc/passwd') if '#' not in line and '!' in line ]
users.sort()
for (i, n) in enumerate(users):
print i, ":", n
| [
"ravi@rootcap.in"
] | ravi@rootcap.in |
b70b6252b5bca3bad1bd930541510f86d3f7360e | 167c6b1238c0e3f8f17e3659ae4e34a8dff3908d | /task1.py | bbb51409030000b6d4014178effcd77099474735 | [] | no_license | Pajke123/ORS-PA-18-Homework07 | 8345ae8758601e9b42e76f0ac324adb005802727 | fdd7c0c853f0fd70616295145e8ebef04677808f | refs/heads/master | 2020-05-21T01:02:13.703392 | 2019-04-30T12:53:10 | 2019-04-30T12:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | """
=================== TASK 1 ====================
* Name: Roll The Dice
*
* Write a script that will simulate rolling the
* dice. The script should fetch the number of times
* the dice should be "rolled" as user input.
* At the end, the script should print how many times
* each number appeared (1 - 6).
*
* Note: ... | [
"noreply@github.com"
] | Pajke123.noreply@github.com |
ea3e3e20813dd7c814e974b5e7d3ee59754282cd | 80c315a21e1b1edeab236a6f19ec06cdfc81873d | /scripts/download_mggg.py | 639054e3239bf0cb2579796c344a17b9ed819a88 | [
"MIT"
] | permissive | mcullan-redistricting/redistricting-postgis | 0bf99787decf66d19a6d41cf26f3896c4da5f62d | 7adef1c1e2060122004ad050eea3b1e89565ef45 | refs/heads/master | 2022-04-06T03:19:52.730698 | 2020-02-17T11:11:16 | 2020-02-17T11:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | from io import BytesIO
from bs4 import BeautifulSoup
import requests
import os
import pandas as pd
from constants import STATES
from zipfile import ZipFile
data_path = os.environ.get('DATA_PATH', '../data')
def download_mggg_state_zip(state_abbreviation, filepath, overwrite = False):
url = f'https://github.com/... | [
"mjcullan@gmail.com"
] | mjcullan@gmail.com |
12a717c45c8c69c635adf443185ebd07138871b6 | aa39aa66215492d85c254116045e5516c40d4b80 | /Brilliant/toy_lstm.py | f39f6268252c2b6b7ecd30b862929c8bbe6ff758 | [] | no_license | JoaoAreias/Artificial-intelligence | f7a2260ceba9a6c0bbd7d9c5db4a347c2d3a965f | 37c99d7cb094f7e084dd4a52fac2e54e02bf1473 | refs/heads/master | 2021-08-02T16:16:10.380044 | 2021-07-30T14:24:06 | 2021-07-30T14:24:06 | 152,242,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """A toy LSTM to solve
brilliant.org's challanges
[INCOMPLETE]
"""
from scipy.special import expit
import numpy as np
class LSTM(object):
def __init__(self):
self.C = None
self.h = None
def _forget_gate(self):
"""Models the output of a forget gate"""
ft = np.array([1, 0, 0.5])
return s... | [
"joaoareiasmoraes@gmail.com"
] | joaoareiasmoraes@gmail.com |
6a1e6c2874181f6c5859c830e394359834617163 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/training_doc/__init__.py | 4cb47ad014a13cc816addb240e952f246358cbea | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2011 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
# Jesús Martín <jmartin@zikzakmedia.com>
# $Id$
#
# ... | [
"geerish@omerp.net"
] | geerish@omerp.net |
550ed41dde0be83f539c8f99ae6123610cd360c3 | c424cc8b499d61da10dba06cc582d271be481b5b | /bin/pscp | c6d17e566eba1c8dfd5752cbae05cfa0e8957c5f | [] | no_license | westfly/mssh | c908e7a369bcb4f8c48975e4ae92f9a8b341df98 | 4cece9eb08c5d03a238fd55754b12e1551514bd1 | refs/heads/master | 2021-01-10T02:16:42.130330 | 2015-12-27T10:37:32 | 2015-12-27T10:37:32 | 48,640,888 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | #!/usr/bin/env python
# -*- Mode: python -*-
# Copyright (c) 2009, Andrew McNabb
# Copyright (c) 2003-2008, Brent N. Chun
"""Parallel scp to the set of nodes in hosts.txt.
For each node, we essentially do a scp [-r] local user@host:remote. This
program also uses the -q (quiet) and -C (compression) options. Note th... | [
"yweiyun@gmail.com"
] | yweiyun@gmail.com | |
6c043811b2da3f373efa06bc8156705996b15ee9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_never.py | d9002c9003bf7b8c0007df237bda667fddc3bf4d | [
"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 | 393 | py |
#calss header
class _NEVER():
def __init__(self,):
self.name = "NEVER"
self.definitions = [u'not at any time or not on any occasion: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
973325cd65d92a99bb447908d6527aa29d2f230e | b9cb9229b042be70e5c7918b9e89006bfb01d506 | /uniforms.py | b142a544242f109a0ca9fc1dd063e9b507f3c877 | [] | no_license | adibenc/sentimen-aa | d2defbc38ab785ba4b254b8b1f3aab4af9d1f887 | eb4d145fe51ec9baa59703dd643e5b432c97c7f2 | refs/heads/main | 2023-05-13T07:49:43.295866 | 2021-05-28T10:20:40 | 2021-05-28T10:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | import pandas as pd
import numpy as np
class BaseIO:
datas = {
"csv": None,
"xls": None,
"dataframe": None,
}
def __init__(self):
pass
def fromCsv(self, filename):
pass
def toCsv(self, filename):
pass
def toXls(self, filename):
... | [
"adib35785@gmail.com"
] | adib35785@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.