blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd7d21d67afccb60b4404408de84c65409f99ebc | cc66ac8f147a698cc8e4e435dd45e5129591a6ef | /improvedKNN.py | 5440c68edbfc4a9169d9585daffd34e6c735942e | [] | no_license | PiyushNarsikar27/Improved-KNN | b07352edfac5db2d2afc3bae80c68833b670fe51 | 7ed876077bacfd5b816e0bbe706e67c150a09dd1 | refs/heads/main | 2023-03-23T16:02:23.751966 | 2021-03-14T07:27:38 | 2021-03-14T07:27:38 | 347,569,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | def takeFirst(elem):
return elem[0]
def improved_knn_predictor(xtrain,xtest,ytrain,k,num_classes):
y_pred=[]
x=0 # x indicates how many elements are processed so far
for test_point in xtest:
i=0
distances=[]
dist=[]
for train_point in xtrain: # Creating a list of distances from each of the ot... | [
"noreply@github.com"
] | noreply@github.com |
5126cfeafdad3a6bee680a4dfae4380b7bea389c | 381ba62f113dc74c4592bf4d2718cb3d1379bee1 | /Mosh/Python/Variables/constructor_exercise.py | e30232d11f3d300087b054a2e7c2bf773b14c05a | [] | no_license | MaSanTM/Mosh | 2926cfddb9cf7f0faef0ed80e55d29a9227b9a1e | 129e2f0618c2026556396734220b6d32f69acdf3 | refs/heads/main | 2023-07-22T05:31:55.159348 | 2021-09-07T21:17:52 | 2021-09-07T21:17:52 | 404,125,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | class Person:
def __init__(self, name):
self.name = name
def talk(self):
print(f"Hi, i'm {self.name}")
john = Person('SMITH John')
print(john.name)
john.talk() | [
"noreply@github.com"
] | noreply@github.com |
e4c57cda7681c361ce819236d5633e4490b6e4b7 | 86636d4fcf6eab140a0f44ef61d4d403b9d3efa1 | /P4/boards.py | 67faac8f05b1ba3946588593f3a1f36561bb7559 | [] | no_license | anshuln/CS-251 | 5d0349e03f6f06c393ce8a3015c73c739727247a | 7bd67c678388487db681ffa75396fd91471f7496 | refs/heads/master | 2020-03-25T00:50:28.233370 | 2018-08-11T10:22:04 | 2018-08-11T10:22:04 | 143,208,547 | 0 | 1 | null | 2018-08-13T18:09:14 | 2018-08-01T21:04:15 | Python | UTF-8 | Python | false | false | 347 | py | #! python3
listDict = []
file = open('students.txt', 'r')
# f __name__ == "__main__":
counter = 0
for line in file:
if counter == 0:
numStudents = int(line)
elif counter > 0 and counter <= numStudents:
[x, y] = line.split(" ")
listDict.append({int(x): int(y)})
else:
break
... | [
"yashkhem1@gmail.com"
] | yashkhem1@gmail.com |
1fa034f767ef9f88cf6992b4ac2982972c7b0b5f | ca61296e18ae834628b6a4199bbd5a9379bdeff3 | /worker/models.py | 0cd8b2b7d891bed8050b7ab22c805edc0417230a | [] | no_license | shashank-sharma/gdrs | 8979361a21a01097ca9f5a9e969c55c8548fedfa | b0cb17eade5049b5175dc78eb93b0385b72ac61a | refs/heads/master | 2020-03-29T22:41:18.934031 | 2019-01-22T15:31:31 | 2019-01-22T15:31:31 | 150,435,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | from django.db import models
from accounts.models import User
# Create your models here.
class Driver(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
driving_licence_number = models.CharField(max_length=20)
expiry_date = models.DateField()
working = models.BooleanField(default=F... | [
"shashank.sharma98@gmail.com"
] | shashank.sharma98@gmail.com |
fa57571b286048def7b562388f0f18b35d946a36 | 68e6fb66e17860638dd6fe2f06cc54c67f839d0b | /Book/ch2/linked_list.py | e77b24c59bccbd30e0f5087bf9e27181e61955be | [] | no_license | lsclike/Programming-Structure | 7ba110878fad416caf1afca052743de3180ccbd8 | 81c1c82fe0caf9be6c366b4bc66a731b42f37b94 | refs/heads/master | 2023-07-16T02:37:15.963698 | 2023-07-01T13:52:46 | 2023-07-01T13:52:46 | 167,762,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | def is_link(s):
return s == empty or (len(s) == 2 and is_link(s[1]))
def link(first, rest):
assert is_link(rest), "rest must be a linked list."
return [first, rest]
def first(s):
assert is_link(s), "first only applies to linked lists."
assert s != empty, "empty linked list has n... | [
"lsclike2016@hotmail.com"
] | lsclike2016@hotmail.com |
15c844d50da150ed209c04470a9eed2697102f41 | b42aeea5789a52b4ac00bafa37f94da3824a8664 | /snomed_utils.py | 368fdf45db88e0e5fd717f106cc8b25977431d74 | [] | no_license | MUSC-TBIC/lexicon-tools | 59b7be22b2f0635f52955068416846d801a36924 | 58686010b67e5cfad9a38c275bce56a4f85d0997 | refs/heads/stable | 2023-06-22T13:01:22.829045 | 2023-06-15T12:57:43 | 2023-06-15T12:59:34 | 203,440,672 | 3 | 0 | null | 2021-06-23T04:01:31 | 2019-08-20T19:24:28 | Python | UTF-8 | Python | false | false | 2,668 | py |
import csv
from tqdm import tqdm
import concept_mapper_utils as cm
import umls_utils as uu
def parse_snomedct_core( filename ):
concepts = {}
with open( filename , 'r' ) as fp:
snomedct_csv = csv.reader( fp , delimiter = '|' )
for row in snomedct_csv:
## SNOMED_CONCEPT_STATUS
... | [
"heiderp@musc.edu"
] | heiderp@musc.edu |
945d9be3f8c30181dec6d9d90930e60f95885cd4 | b36d169e1353752486441636255d435568ca307d | /spikeforest/forestview/spikeforest_view_launchers.py | 799752c978e88f723fc1bfd9313fe29c641c09d9 | [
"Apache-2.0"
] | permissive | alexmorley/spikeforest2 | 5d211595f744ed755eea9b9376e31ed6f9a4da12 | 859fc8b843cc7b547ab83d3e0a43bb17230d09b1 | refs/heads/master | 2020-04-23T03:40:08.076097 | 2019-06-12T08:11:06 | 2019-06-12T08:11:06 | 170,885,069 | 0 | 0 | null | 2019-02-15T15:21:47 | 2019-02-15T15:21:46 | null | UTF-8 | Python | false | false | 11,809 | py | from .spikeforest_views.currentstateview import CurrentStateView
from .spikeforest_views.recordingtableview import RecordingTableView, RecordingSelectComponent
from .spikeforest_views.aggregatedsortingresultstableview import AggregatedSortingResultsTableView
from .recording_views.electrodegeometryview import ElectrodeG... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
cf305096c429662844324796ad09b0d2a05ed8ed | 8dcb50552fa9ace220a1e283ffdd9b490cbd3e2c | /code/feature_converter.py | 1b8019bbe4fb255fc36d3259ed356c1fcd5e3902 | [
"MIT"
] | permissive | katsu1110/DataScienceComp | 00483505a3671801f8bb45db67aeb0fc5d960e73 | 86edf7cab0af372624bba7f3026a3db32e7cd1d6 | refs/heads/main | 2021-07-05T01:15:24.940683 | 2021-06-12T05:45:08 | 2021-06-12T05:45:08 | 243,942,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import PowerTransformer
# categorize features into dense or categorical
def categorize_features(df, target, cat_threshold=12):
cat_features = []
dense_features = []
for f in df.columns.values.tolist():
if f != target:
if ... | [
"kakawagu@yahoo-corp.jp"
] | kakawagu@yahoo-corp.jp |
124c2cc003bb282b7925b04f202d86175c3110a7 | 5d01c0abf77d19c224d0886c461c42dbad496171 | /python_stack/python/OOP/2_Chaining_Methods.py | c3f6540c14112cee827ca452150a1fc642ffc8f4 | [] | no_license | Jacedeuce/coding_dojo | 0c1cc1a12b422b3f79047274198fefbc0368127f | 6d1cf2d054cb2562cd5e0eb51357a32faf49ddfe | refs/heads/master | 2022-12-12T22:47:43.266440 | 2019-07-18T23:09:20 | 2019-07-18T23:09:20 | 190,056,454 | 0 | 0 | null | 2022-12-12T12:55:33 | 2019-06-03T18:05:19 | Python | UTF-8 | Python | false | false | 1,246 | py | ## I just wrote it with the methods prepared for chaining on the last assignment
class User:
def __init__(self, username, email_address):
self.name = username
self.email = email_address
self.account_balance = 0
def make_deposit(self, amount):
self.account_balance += amount
... | [
"jdhanna@gmail.com"
] | jdhanna@gmail.com |
d1be16162f4ac7c7277b10428e050b2deff850ea | ef18d99eff01a708dddfc2cbf77f68bb1d8aa889 | /python/415.add-strings.py | 0d3f611c808e58d327f44045f8c4f9a31bc6f054 | [
"MIT"
] | permissive | fengbaoheng/leetcode | 53d5b6f92f7958d551e6297f77c4edfc042a4d58 | e37535a06b0b4cb23de9a2cfa357eb689b1c06fb | refs/heads/master | 2023-07-23T11:33:42.938862 | 2023-07-08T08:43:46 | 2023-07-08T08:43:46 | 131,551,048 | 1 | 0 | MIT | 2022-11-16T02:53:49 | 2018-04-30T03:13:55 | Java | UTF-8 | Python | false | false | 1,582 | py | #
# @lc app=leetcode.cn id=415 lang=python3
#
# [415] 字符串相加
#
class Solution:
# 字符串拆分为链表或数组,逐位相加
# 直接转成数字会超出最大整数范围
def addStrings(self, num1: str, num2: str) -> str:
short_num, long_num = (num1, num2) if len(num1) < len(num2) else (num2, num1)
short_length = len(short_num)
long_leng... | [
"344092466@qq.com"
] | 344092466@qq.com |
ff82dba0faaadec9068bbc9b3ccc625a721573a6 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/gzip/GZipFileSystemFactory.pyi | 65e1831d93c9e7d26029af1620bb52a08cc18eb9 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | pyi | from typing import List
import ghidra.formats.gfilesystem
import ghidra.formats.gfilesystem.factory
import ghidra.util.task
import java.io
import java.lang
class GZipFileSystemFactory(object, ghidra.formats.gfilesystem.factory.GFileSystemFactoryWithFile, ghidra.formats.gfilesystem.factory.GFileSystemProbeBytesOnly):
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
708cfe325109af42808f25f39d043b2a0676c301 | 1dbd4d92637c80d01a1f56c62b4871c7fe22a9f0 | /analysis_scripts/1c-Plotting_patch_clamp_results.py | 34d817a659c819363eab778d74d25c11498d5c61 | [] | no_license | nmarzano/peakfinding_patchclamping_calcium-imaging | 4ecdb1b944ac7ac6b6d2d405a09a94683578ae49 | 31194e2a338f14f221e1c12917213e94261a65e5 | refs/heads/master | 2023-04-12T13:07:27.949766 | 2022-12-20T05:44:06 | 2022-12-20T05:44:06 | 580,261,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from scipy.stats import norm
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
output_dir = 'directory_to_save'
filename = 'directory/cleaned_data.csv'
major_peaks = pd.read_csv(filename, header="infer")
def plot_cells(dfs, xmin, xmax):
sns.set(style = 'ticks', font_scale = 1)
for ce... | [
"noreply@github.com"
] | noreply@github.com |
d37a305a988762a88462d72268ef5b9960e21900 | f7e9bf6fa18a41b52994b1f16fd55c4d69f33b56 | /plugins/embed_picasaweb_image/embed_picasaweb_image.py | 02b13d5d2a5d91850ad78e166be1f0e6b52a1e0a | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | siongui/userpages | 1716f2d24e52b514ea8534027cec9707783d0d47 | 494b95e61715a49dce6615103a5b19fa05f276f1 | refs/heads/master | 2023-07-01T12:52:04.813216 | 2023-06-12T16:31:25 | 2023-06-12T16:31:25 | 13,944,800 | 80 | 39 | Unlicense | 2023-08-18T03:51:40 | 2013-10-29T02:39:13 | Go | UTF-8 | Python | false | false | 1,564 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
# Creating reStructuredText Directives
# @see http://docutils.sourceforge.net/docs/howto/rst-directives.html
from docutils.parsers.rst import directives, Directive
from docutils import nodes
class embed_picasaweb_image(Directive):
required_arguments = 1
optional_ar... | [
"siongui@gmail.com"
] | siongui@gmail.com |
0e409bfcafd82eb943b72bb7ba60857882323af3 | 4273fc9019cf3f85066614ff6ac62d2fe44cd6fc | /solutions/oop/old/shapescriptparser.py | a240df4b8741d27c8a008bd9e361eac40bfc4cad | [] | no_license | jkh-code/data_science | c03cf23004a6e9e773109fdc0d56e94350ad8aad | d4d37bac4f2eb5b96593600a0c39f90c7521b434 | refs/heads/main | 2023-07-12T22:08:38.620029 | 2021-08-14T19:12:05 | 2021-08-14T19:12:05 | 395,725,301 | 0 | 0 | null | 2021-08-13T16:44:08 | 2021-08-13T16:44:07 | null | UTF-8 | Python | false | false | 3,032 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from shapes import Circle, Rectangle
from operators import UnionShape, IntersectionShape, DiffShape
from collections import OrderedDict
class ShapeScriptParser():
"""A parser for a scripting language
that would generate shapes (as objects defined in shapes.py)
... | [
"duhaimejosiah@gmail.com"
] | duhaimejosiah@gmail.com |
a83aef36ff14f7c63007b1cf8d651c30aeb8ef94 | 573f85b19a687b103bf0e70b48f1eab0fbed792a | /certbot/AliDNSCertbot.py | 716f19879cb1900387314795c22cde75a263459f | [
"Apache-2.0"
] | permissive | calllivecn/dockerbuild | 7e240326743aaf88b7adc3637c8c643a8c4b7c41 | e2c2c315677d2510f806e3dfa3fec062c58c7134 | refs/heads/master | 2023-07-23T03:27:17.378620 | 2023-03-13T04:19:54 | 2023-03-13T04:19:54 | 128,035,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,289 | py | #!/usr/bin/env python3
# coding=utf-8
# date 2019-11-20 16:34:16
# author calllivecn <c-all@qq.com>
import os
import sys
import time
import base64
import hashlib
import hmac
import logging
#import configparser
import urllib
from urllib import request
from urllib import parse
# pip install alibabacloud_alidns20150... | [
"calllivecn@outlook.com"
] | calllivecn@outlook.com |
20e5e3d3efd7b71f0d1245e11bc770db1c7e042d | 39f86d230048630cb4f45444d7c354845c285648 | /powerpc_hardware_manager/powerpc_device.py | 1b6351b272bdd6de936a4a186020fa74ab36728b | [] | no_license | hamzy/powerpc-ironic-hardware-manager | 132ea44e2ea440f4ab6cc4616860ee3f969f88a4 | edd55523335bd56d48b97f5b37b1e56087c7f6c0 | refs/heads/master | 2020-05-22T06:59:42.088955 | 2016-09-26T18:35:04 | 2016-09-26T18:35:04 | 64,872,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,024 | py | # Copyright 2016 International Business Machines
#
# 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 agre... | [
"hamzy@us.ibm.com"
] | hamzy@us.ibm.com |
7aa49d03b00df1969a441a334cfa985a4fe57e98 | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/lib/python3.6/site-packages/geometry/manifolds/tests/embedding_test.py | c6435354a8abc351527207b355f8785768e2ff0f | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 1,989 | py | # coding=utf-8
from geometry.manifolds import (SO3, SO2, R1, R2, R3, SE2, SE3, S2, S1, T1, T2,
T3, so2, so3, se2, se3, Tran3, Tran2, Tran1, tran2, tran1, tran3)
from nose.plugins.attrib import attr
def check_embed_relation_cond(A, B):
check_embed_relation_cond.description = 'Checking %s < %s' % (A, B)
msg... | [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch |
69a94fcce7180c19ab60d3cc3b9efd0c293cb623 | 8763ffa1e3319fa5cb454c4965d981a6b4784c16 | /arvan.py | c057d4bf5088d668e494ae753860d3906833a4b8 | [] | no_license | alireza-roshanasan/arvan_vod | 73d4a1f7d51b1b35cf4d9ea378c1e9a95e64ba34 | 0b553e1b4283cf608a219a333fa16344559f75f9 | refs/heads/master | 2022-12-30T06:46:38.075228 | 2020-10-16T12:33:17 | 2020-10-16T12:33:17 | 303,091,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,776 | py | import argparse
import base64
import json
import os
import magic
import requests
from dotenv import load_dotenv
from requests.models import PreparedRequest
# TODO add description for arguments
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--channel", required=True)
parser.add_argument("-m", "--mode", ... | [
"alireza.roshanasan@gmail.com"
] | alireza.roshanasan@gmail.com |
70235bf4ad6c09ac4527f137fb5253197aebb19a | 2cf46d2c5fbd886ee919f30d394aa659ec0cb955 | /spider/Storage/storage.py | fd52a4135d7180e934a564c69c4a703bcd6887ac | [] | no_license | tinice/spider | 6476496ea69ecd99ff20631faca5f0330b8a1d34 | 443745d67997f9be087473725ac06e8a5e91e043 | refs/heads/master | 2021-01-20T03:41:41.727420 | 2017-09-15T07:44:29 | 2017-09-15T07:44:29 | 101,365,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # -*- coding:utf-8 -*-
from DB import Db
db = Db()
def insertdb(sql):
'''
将数据插入数据库
:param sql: 插入数据的sql语句
:return:
'''
db.insert(sql)
def inserttxt(path, info):
'''
将数据写入txt文件
:param path: txt文件路径
:param info: 要写入文件的数据
:return:
'''
with open(p... | [
"373826647@qq.com"
] | 373826647@qq.com |
1a33f5d587a589a07b4d735a0b1ae59f57d324be | 9b91eb9e1bbd95b65452ac6dc00440e89a75232d | /basic_set.py | c2eeeaf7b35d85abb71868baf354610cf9c645a9 | [] | no_license | s00149s/Python_Basic | e376c3342cd114d641bc6e9e5a557baa7aece2a3 | c63c595001f99f32c2dfe5e2f89dfb7716de5dd4 | refs/heads/master | 2023-05-14T18:23:53.096514 | 2021-05-31T02:13:59 | 2021-05-31T02:13:59 | 368,452,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | numbers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} # 전체 집합
evens = {0, 2, 4, 6, 8} # 짝수 집합
odds = {1, 3, 5, 7, 9} # 홀수 집합
mthree = {0, 3, 6, 9} # 3의 배수의 집합
def define_set():
"""
SET 정의 연습
set() 함수
{}
"""
empty = set() # 빈 집합
print(empty, type(empty))
empty = {} # 주의 : 빈 SET가 아니라 ... | [
"s00149s@naver.com"
] | s00149s@naver.com |
cfb405b18bd216514a3de5103fa8163a50939d5d | 5b0ad97cb6924e487c0921965dacb3dd18f19a1a | /src/ImageCodec/CanonicalHuffman.py | 0a8db2c0f411f4fcc36123282293d4ad5ad153ae | [] | no_license | sinoyou/ImageProcess_and_PatternRecognition | bcde442b00a86f3dcb6c49f5f1e2857b48c41ad5 | dffee2c21ac789066a3f4ceddf69172e417f84e7 | refs/heads/master | 2023-01-28T04:24:10.700353 | 2020-11-30T05:35:55 | 2020-11-30T05:35:55 | 247,293,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,762 | py | class CanonicalHuffman:
def __init__(self, signs, sign_bit_width):
self.signs = signs
self.sign_bit_width = sign_bit_width
self.vanilla_huffman_table = dict()
self.canonical_huffman_table = dict()
# get vanilla huffman dict
self.vanilla_huffman_table = self.build_van... | [
"youzn99@qq.com"
] | youzn99@qq.com |
5162e0e76235f80446539cc0e35cdbaaad258084 | c74c714007b0ab223af61787bcfd3efb51cd313b | /sequencer_orig.py | a47b096c69e904bf435c2d0ada401821d57ac77f | [] | no_license | nonagonal/fs2017 | e3814492f3e19d82e0f8119bb2b713f9e8dce7bb | d2c850dcff59cffed8e381347ceaaa0bd95c6439 | refs/heads/master | 2021-01-19T17:17:02.195544 | 2017-04-15T02:12:56 | 2017-04-15T02:12:56 | 88,317,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,710 | py | """Drum sequencer app."""
from __future__ import print_function
#import ipdb as pdb # pylint: disable=W0611
import pygame
import os
# pylint: disable=E0611
from pygame.constants import QUIT, KEYDOWN, K_ESCAPE, USEREVENT, MOUSEBUTTONDOWN
# This is the folder where this file is, we look for resources there too
MAIN_D... | [
"jeremy@Lappykins.local"
] | jeremy@Lappykins.local |
9fbba12d321ad7bcae325cc7b8e8bc3d77faa827 | b557781831f6345f36f5d35b9c5fa6cbdb4c4815 | /billing/yup/views.py | eb97a8947f82f58dad204478f718bf8e1651efe5 | [] | no_license | komsihon/Project1 | 5c067bcc2f299a28163eccf27716ed092e070b78 | e32c481ad358c2a8af52d95a9bbc2f9faebfd703 | refs/heads/master | 2021-06-03T23:52:21.555310 | 2021-01-13T10:53:24 | 2021-01-13T10:53:24 | 98,784,648 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,108 | py | import json
import traceback
import requests
from django.conf import settings
from django.db import transaction
from django.http import HttpResponse
from django.http.response import HttpResponseRedirect
from django.shortcuts import render
from django.template.defaultfilters import slugify
from django.utils.module_load... | [
"rsihon@gmail.com"
] | rsihon@gmail.com |
c0edc0f8834f8a25754f1bca254c9c3812da98ed | ad1223cdadf0e7decce6f25a7676538389ebb505 | /Sources/__init__.py | 06a9dd8ffe260829d161c1fa1575adbff17d76fa | [] | no_license | unix1010/rsimgroup.github.io | ebe978821ab3ae46f1625f8480790688bcfddc00 | 2cfbd2732329ac424b28b706fc7906cb2b57b53d | refs/heads/master | 2020-03-18T11:37:14.983822 | 2018-05-03T20:16:49 | 2018-05-03T20:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # from . import utils
# from . import manage_main | [
"songhang2016@hotmail.com"
] | songhang2016@hotmail.com |
4bac660cb1c22d45ca836f60605cb5cb8d27d99b | 931812bda84afbd7823450eaf833deb35cc849f3 | /chainladder/methods/base.py | 5f44a384e053ebc3220cfe7e644ca8a6f98a35bf | [
"MIT"
] | permissive | jiayiderekchen/chainladder-python | 43164a3f546d60c28da427c5e0301ca336dac62c | c7d3f4f0a5333b6bd34922cc406f252ab9c47e10 | refs/heads/master | 2020-09-04T17:15:07.885237 | 2019-07-25T01:54:49 | 2019-07-25T01:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | import numpy as np
import copy
from sklearn.base import BaseEstimator
from chainladder.tails import TailConstant
from chainladder.development import Development
from chainladder.core import IO
class MethodBase(BaseEstimator, IO):
def __init__(self):
pass
def validate_X(self, X):
obj = copy.co... | [
"jbogaardt@gmail.com"
] | jbogaardt@gmail.com |
c8aa8df708fa14ee7771650c5ffd7b543d0c78ca | c66e9277898da27d9d56fab1ac5fcdc772f57f4a | /tests/test_modeling_flax_common.py | f6737d864930434b8f8d929c30a957f20f9aae28 | [
"Apache-2.0"
] | permissive | vumichien/transformers | 47901c895cd3ce8a7c30f691dcb40bdfe7fc4030 | 75a208ef66c0176fc12a4c98922728ced5befbf9 | refs/heads/main | 2023-02-26T03:57:52.930111 | 2023-02-10T22:28:24 | 2023-02-10T22:28:24 | 238,600,337 | 1 | 0 | Apache-2.0 | 2020-02-06T03:34:11 | 2020-02-06T03:34:10 | null | UTF-8 | Python | false | false | 58,666 | py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"noreply@github.com"
] | noreply@github.com |
86c5a6de9d1a8c89705509b6f943d1dc8e51a68a | d64c8ada6b6f54662fd4846ad4d1eea51e01fe96 | /dmlab_app/task/regression/knn_regressor.py | 22ea93eb335068cd12da29d16a3a1157648c9600 | [] | no_license | lxk1997/dm-lab | be4a9ed156f5d0ec23b93c1049164c34e6b6188c | a8957f28bbe4875391977059032b4476e0eb9319 | refs/heads/master | 2023-07-14T23:53:05.740062 | 2021-09-05T12:52:24 | 2021-09-05T12:52:24 | 403,288,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,647 | py | # coding=utf-8
import json
import logging
import os
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from flask import url_for
from sklearn import metrics
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsRegressor
from ..base import Base
from ..dataset_u... | [
"xinkuan.liu@horizon.ai"
] | xinkuan.liu@horizon.ai |
3bb45f868041fdd2eef7e1579e0956513f0ae960 | 7f622971d347057bdfea90d84f6c64e4fdbee418 | /news_crawl/guardian/middlewares.py | 825f870d12cf8394663bd0ca28a00ea7c57d941d | [] | no_license | beharasatya/News_Crawler_Guardian | a29730c812562572328a40a2266bc584db9946b3 | bbd1d96989f03e49a6befdd5ac9589c0f92da648 | refs/heads/master | 2021-09-04T18:51:51.480775 | 2018-01-21T09:38:48 | 2018-01-21T09:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class GuardianSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"noreply@github.com"
] | noreply@github.com |
90a6b0bf6ba220f42d8a29c89dc93492396116ff | 350f0a5e56c83b4db157fe06137e929ab0b07f75 | /models/tf_Cifar_OC_NN_Models.py | ad5660b15bfd3541fd0a08df12d27286fc2d736d | [] | no_license | LiTangqing/Cleaned-OC-NN | 4869e2db22fae4ce9f53e296b020ac945904a617 | 4c814626f69225215d27f11e3e316a7e7b299199 | refs/heads/master | 2020-04-05T03:33:38.447519 | 2018-11-07T09:56:51 | 2018-11-07T09:56:51 | 156,519,328 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,546 | py | import time
import csv
from itertools import zip_longest
import matplotlib as plt
import tensorflow as tf
import numpy as np
import os
RANDOM_SEED = 42
g = lambda x : 1/(1 + tf.exp(-x))
def nnScore(X, w, V, g):
return tf.matmul(g((tf.matmul(X, w))), V)
def relu(x):
y = x
y[y < 0] = 0
return y
def wr... | [
"noreply@github.com"
] | noreply@github.com |
d0684e191884794bcca60c9a003d3a736017998e | f8ece22d9e9e12e2cbca56d72a6b2728ba9a275a | /polyaxon/experiments/utils.py | 50329e5e6fe312b3cb5120c878e85833117c63a9 | [
"MIT"
] | permissive | pparan/polyaxon | 8c8912f9ba724e007357efcaefeab86fec2d5630 | 423199721e90431209b00c0f76caa6b4f9aa4b24 | refs/heads/master | 2021-04-15T07:15:19.701268 | 2018-03-21T11:59:12 | 2018-03-21T11:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from experiments.models import Experiment
def is_experiment_still_running(experiment_id=None, experiment_uuid=None):
if not any([experiment_id, experiment_uuid]) or all([experiment_id, experiment_uuid]):
raise ValueE... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
cb148cc1c8ad8192978a32dd0a8c43dadbfb98c9 | 939df41eecef155bdde01d001ab25a13dc3e47a7 | /7. 문자열/7-9 크로아티아 알파벳.py | 8f2cb79d0b22ae6c0cce6f2778b4b2c6eba1b329 | [] | no_license | m16khb/Baekjoon | 533d3b7e2631cf60f2fba9fd3701c1ff66d95412 | 2f76d6ef19d05f91295b6876f9034b62183ed7be | refs/heads/master | 2020-06-21T09:29:06.690856 | 2019-09-12T11:34:04 | 2019-09-12T11:34:04 | 197,408,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | croatia_alpha = ["c=", "c-", "dz=", "d-", "lj", "nj", "s=", "z="]
voca = input()
for i in croatia_alpha:
voca = voca.replace(i, '*')
print(len(voca))
| [
"43867832+m16khb@users.noreply.github.com"
] | 43867832+m16khb@users.noreply.github.com |
231ff724f7f04714476eecaea9b9e0203ed9cc01 | ecde4736e27b275b37bf1ccd7f375e31c1faf733 | /2006old/TestScript/bin/testgameroom.py | b877fec178ee25bb962dcd667e966dd168360670 | [] | no_license | bahamut8348/xkcode | 1d85ef9b806c13af7193c9fd2281c99f174357a3 | 41665e5601d6d555ae2633ac0aa8cc1108a6b6bf | refs/heads/master | 2016-09-10T17:29:15.351377 | 2013-05-17T02:37:30 | 2013-05-17T02:37:30 | 34,992,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | import PSClient2 as PS
class PSEvent:
def OnValidateResult(self, result ):
pass
def OnCreateSessionResult(self, result):
pass
def OnConnectIS(self, bConnect, is_id, Reason, desp, pislist):
pass
def OnAreaListRecv(self, Result, AreaID, areaList):
pass
def OnRegisterResult(self, errors, names):
... | [
"netmud@gmail.com@3d467911-a1bc-f432-5061-063988b6f25e"
] | netmud@gmail.com@3d467911-a1bc-f432-5061-063988b6f25e |
0dc4ec6f3ce082513e780ac20a9984667130b011 | efe1928f5f3a38e37e6127c38f3ddab4f3953b41 | /artifacts/frozen_models/tf_run_const_folding.py | f9d7a069be842244a314a72c2d58d5cd8fefc680 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | xiezhq-hermann/nnfusion | 8cdf0b6d03b6a43a781caa061e0b7b3e4caed45e | 1b2c23b0732bee295e37b990811719e0c4c6e993 | refs/heads/osdi20_artifact | 2023-01-19T06:25:09.755500 | 2020-09-05T09:49:54 | 2020-09-05T09:49:54 | 293,049,048 | 0 | 0 | MIT | 2020-09-23T07:43:08 | 2020-09-05T10:01:08 | null | UTF-8 | Python | false | false | 3,062 | py | #!/usr/bin/env python3
import tensorflow as tf
import os, sys
import argparse
import numpy as np
from tensorflow.python.framework import graph_util
from tensorflow.python.framework import graph_io
from tensorflow.core.framework.tensor_pb2 import TensorProto
from tensorflow.core.framework.tensor_shape_pb2 import TensorS... | [
"Wenxiang.Hu@microsoft.com"
] | Wenxiang.Hu@microsoft.com |
ebccd5c718ea4837e92d374872257d1bf7b56b4b | 18f865a906e817b62560404355f6dbbdde171cc8 | /codewars.com/python/kyu_7/baby_shark_lyrics_generator.py | 3e7c67fb936e1040401f3889fb24a809509f7558 | [] | no_license | Mietunteol/playground | fdfeffb2c78a37d902094ace36f2f75ef25bdb99 | 0c87c215deb32581b12d2481164d2832880ed10a | refs/heads/master | 2020-07-07T03:42:58.898415 | 2019-10-02T12:24:02 | 2019-10-02T12:24:02 | 203,234,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # https://www.codewars.com/kata/baby-shark-lyrics-generator
import base64
import zlib
def baby_shark_lyrics():
# EASY
return zlib.decompress(base64.b64decode(
'eJxzSkyqVCjOSCzK1lFIyc/HhrmcqK5Gkcs3PzeXoAaaKFLk'
'cklMSSGogyaKFLncixLzUnITCemhoTKoGwqI00UbZYpcPqkl6'
'sUK6fkKGaV5Jbh10VCZIldQ... | [
"mietunteol@protonmail.com"
] | mietunteol@protonmail.com |
018b478deaa34ef7036f428aa0a5ce8e3ee99722 | 7f3112bd1cb6d5831370f01db1bf4ef7b9d6aee6 | /selenium/test_search_in_python_org_search.py | 43a2016183284cf053b611255f753820858169f3 | [] | no_license | insta-code1/Python-Unittests | f8a2138ae457756d8897594eaa2745a40f908a7e | 84d62edce5b929b1822d4d7a92c7edf3003ddf07 | refs/heads/master | 2020-12-25T14:59:08.705048 | 2016-09-04T12:11:22 | 2016-09-04T12:11:22 | 67,342,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
def test_search_in_python_org(self):
driver = self.driver
driver.get("http://www.python.org")
... | [
"eoinkane1@gmail.com"
] | eoinkane1@gmail.com |
8f20ae93a9a65dd48cd7f1faaa5b414c39f8fd57 | 0b8a060fdd29cd19857f61afe1853a4791953de2 | /src/tickets/forms.py | 0faa66e5f33b9a8ddb5cac0f169ad2795c5a76b5 | [] | no_license | nazarja/issue-tracker | ad5e4679567378977842150f6cbef2426c549128 | a8e9939b6b590fc2affe02684264fad1c5e9b8cd | refs/heads/master | 2023-04-14T22:54:51.881294 | 2023-04-08T17:52:16 | 2023-04-08T17:52:16 | 192,345,371 | 5 | 4 | null | 2023-04-08T17:53:16 | 2019-06-17T12:45:30 | HTML | UTF-8 | Python | false | false | 506 | py | from django import forms
from .models import Ticket
class TicketForm(forms.ModelForm):
"""
inherits from ticket modal to create a form,
most fields are left out and fields saved on the view / serializer
description field needs a custom textarea field
"""
description = forms.CharField(max_lengt... | [
"mail.seanmurphy@gmail.com"
] | mail.seanmurphy@gmail.com |
398d673931c3682dd400519627ba080e730d4991 | 3e2d30b169ae706a159f29833e3ef3860249695d | /documentation/cmdPlot.py | 33529aad1a71f8d83c6389051b603c792fee4d47 | [] | no_license | robbyHuelsi/VolksbotLineDetection | e36d5051cb922b36c1f40f9225f48c5aedd0be62 | 1c084bb488193cc49523e34d6b0d36f46c47ff51 | refs/heads/master | 2020-03-11T14:17:52.174465 | 2018-09-12T17:00:41 | 2018-09-12T17:00:41 | 130,049,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,254 | py | import os
import sys
import matplotlib.pyplot as plt
import itertools
from datetime import datetime
from builtins import str
from _ast import Str
sys.path.append("../train")
import inputFunctions as ifu
def plotCmd(imgAndCmdList):
start = 100
end = 126
# sort by dateTime
#imgAndCmdList = sorted(... | [
"robert@huelsi.de"
] | robert@huelsi.de |
d4af463e395f99b77dfd5bb09f2291a4f5e5cd4c | 85c8d2290b33c26fa73f0d3901f8f6dea6d907c1 | /Crear_Muchos_Rectangulos.py | 9a0fd7cdcf2c23d3f9a1f2727595cef0e1580239 | [] | no_license | cristianpl1996/Pygame | 2e6fd8b0700643f8e9a830fd724b2f884f4dca71 | 8c892335b7467d38d8bcece972850e2a9adda0c1 | refs/heads/master | 2020-03-25T12:46:46.851347 | 2018-07-29T19:16:29 | 2018-07-29T19:16:29 | 143,793,091 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import pygame, sys, random
from pygame.locals import *
def main():
pygame.init()
pantalla = pygame.display.set_mode((480,500))
pygame.display.set_caption("Crear Muchos Rectangulos")
reloj=pygame.time.Clock()
listarec=[]
for x in xrange(15):
w=random.randrange(15,45)
h=random.randrange(20,60)
x=random.rand... | [
"c.patino@utp.edu.co"
] | c.patino@utp.edu.co |
6a55569a68376c6732e321f34aada25ef8180167 | 7e5fd224594e90ebf9f235e8e996387f308d3c6a | /engine.py | 6c0fa738c37916117a5458aa318795c0094b201f | [] | no_license | aditya-singh-07/ecommerce | 649e75dc844d5783bd5cedffe7862e0902a983a3 | 43cd0e4cc63ad28cb3b15b5bd51f639a265c8713 | refs/heads/master | 2023-05-02T19:27:12.279069 | 2021-05-28T16:44:56 | 2021-05-28T16:44:56 | 371,301,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import pandas as pd
def get_recommendations(id):
orders = pd.read_csv("data/OrderProduct.csv")
orders_for_product = orders[orders.product_id == id].order_id.unique();
relevant_orders = orders[orders.order_id.isin(orders_for_product)]
accompanying_products_by_order = relevant_orders[r... | [
"adityakusumlata@gmail.com"
] | adityakusumlata@gmail.com |
f4ee36d85f337be493ffa614eb246403c3fd37ca | 2bd4392a0929bf294df65bf45338d62e22474a25 | /expenses/utils.py | 07e29fb03ca4ec007e93ca6c77e29ab631a28c23 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | DjangoGworls/django-expenses | c5c7825017884be1bd53d5d19ee15acfb7bafbbd | 60f2c20c21a9f01d7efa169b501e3beb361795d1 | refs/heads/master | 2023-01-30T01:20:45.723489 | 2020-11-07T11:13:03 | 2020-11-07T11:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | # Django-Expenses
# Copyright © 2018-2020, Chris Warrick.
# All rights reserved.
# See /LICENSE for licensing information.
"""Assorted Expenses utilities."""
import babel.numbers
import datetime
import decimal
import iso8601
import itertools
import typing
from django.utils import timezone
from django.conf import sett... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
9812d4b96bf0a572295fd6c0ddb188d7e8343f0e | ae3e23956d8d831a6934570fc8ff3ec1218a8934 | /hwk10_leapfrog.py | 5f7d38024a53fa21522608e51b08a552391f59f9 | [] | no_license | Kay-Towner/Homework10 | 04cecd1686ff15543d858cb5e3f5a6a5336b2e94 | 2451c2b15ad9acaef9521e8da7ab330aa2ad1449 | refs/heads/main | 2023-04-10T12:15:51.209962 | 2021-04-15T02:02:53 | 2021-04-15T02:02:53 | 357,039,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | #By Kay Towner
import math
import numpy as np
import matplotlib.pyplot as plt
def dif(t=None, h=None, x=None, dxdt=None, d2 = None):
"""Differential equation to solve.
d2=leapfrogmethod, dxdt=thederivative=0"""
return d2 - (dxdt)**2 + x + 5
def frog(t=None, h=None, x=None, f=None):
"Lea... | [
"noreply@github.com"
] | noreply@github.com |
fcdcbb3dc629b15123b24d968288cd160f889ebb | b2cc8bb4c41b58ee039ed0d8518089029203b3e7 | /WebFrame/WebFrame.py | adbd18da71524c75689d4b346235ceaad012cdef | [] | no_license | bigtaylor1989/HttPServer | 75ebc1b1320e2024a38a93db5a12e9b046ffccb7 | 0824767f93465b41b126170bdc606f426805b712 | refs/heads/master | 2020-03-30T06:25:35.572693 | 2018-09-29T12:14:01 | 2018-09-29T12:14:01 | 150,860,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #coding=utf-8
from socket import *
from setting import *
import time
from urls import *
from views import *
class Application(object):
def __init__(self):
self.sockfd = socket()
self.sockfd.setsockopt(SOL_SOCKET,SO_REUSEADDR,1)
self.sockfd.bind(frame_addr)
def start(self):
sel... | [
"Lvze@tedu.cn"
] | Lvze@tedu.cn |
6bcac4d4c723244550d2e9fabe534d8c2f66cfab | 4d24bafa0f9ed31a566774bdc055cff52057d13b | /Ngram_model.py | 54fc4519e6d53a70f7905714d626a7207ea2d329 | [] | no_license | saviono/DH-202-Languague-Model | c00c118555dcfe0a47e0733fa818988bfdba57de | 6d7856c43a0631f119b67499d668c994c7f30a37 | refs/heads/master | 2022-12-14T10:17:28.113851 | 2020-09-03T12:15:23 | 2020-09-03T12:15:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | import json
import os
from nltk import trigrams
from collections import defaultdict
import random
import settings
import pandas as pd
def create_trigram_model():
path = settings.ngram_dir
if not os.path.isdir(path):
os.mkdir(path)
if os.path.exists(settings.ngram_model):
return
print('... | [
"savion.o@gmail.com"
] | savion.o@gmail.com |
0f86bc2bb49aeaa1ea80641c646f9bb2d8c08163 | be9d900c1c4971d7fb3647ba39802ea1c63a0e7d | /baithicuoiki.1.1.py | 122965e30eb08c1b3858e871858dc09d61b3e170 | [] | no_license | leduykhanh2001/KTPMUD_DV18CLC_18H1040047 | 1c7e2c8e52cb70b463f3d2c4c3298c4f6ca6a04b | 4e6981791abca202b32061234b1894ed94c84cbb | refs/heads/main | 2023-05-12T21:43:59.783862 | 2021-05-25T01:41:14 | 2021-05-25T01:41:14 | 370,515,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | class complex:
def __init__(self,complex_real,complex_image,complex_module):
def complex_reals(self,complex_real):
self.complex_real = complex_real
def complex_images(self,complex):
self.complex_image = complex_image
def complex_modules(self,complex_modul... | [
"noreply@github.com"
] | noreply@github.com |
ad2d90a9cf6d6441b52603caf380efc303fd6b5f | 1e697c49666a2098534098808916351f7faf6d7d | /shop/models.py | 4c9a77c58bd74df3e2e346f2cfa9ee38f782c8f5 | [] | no_license | MunifMutasim/3-2-Term-Project | 507520f0c9341feeaf110163b356ad203fed8702 | 09cc4d7ea8124410b3e1527c0fda31409573ad5d | refs/heads/master | 2020-06-06T00:26:13.995447 | 2019-06-18T17:46:38 | 2019-06-18T17:46:38 | 192,586,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from django.db import models
from django.core.urlresolvers import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=50)
slug = models.SlugField(max_length=50, unique=True)
class Meta:
ordering = ['name',]
verbose_name = 'category'
verbose_name_plural = 'categ... | [
"smdmunif@gmail.com"
] | smdmunif@gmail.com |
7fd5cc644f629a66b0a37d3708a60aaa3f549445 | 155d61e41047acdab1f8b9a11953caf29e314e0f | /CameraCalibration.py | 8db4e2da7262a1dd29f01d0518e4457ffc77ef52 | [] | no_license | mgrddsj/MEMS-OpenCV | 9a2439882e7c74f939373355f504eadd0179d7a5 | 2b6f875868911e5c306debe7ce30290cd0a9548e | refs/heads/master | 2023-05-05T19:01:16.318549 | 2021-05-28T06:57:13 | 2021-05-28T06:57:13 | 353,624,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,889 | py | from functools import partial
import cv2
import streamlit as st
import numpy as np
import glob
import multiprocessing
import time
import stqdm
from PIL import Image
def processImages(file_path, CHESSBOARD, criteria, objpoints, imgpoints, objp):
image = cv2.imread(file_path)
gray = cv2.cvtColor(image, cv2.COL... | [
"Jesse_Xu@live.com"
] | Jesse_Xu@live.com |
7d92eb6ee7101e674096f4e620feb32b4175097d | 6dd64f2b04a1796fb7683d24bc7cb8102b3470e9 | /python文件/python文件—读取方法.py | c06734222e5b043f0f3325b0a17462224a1df56e | [] | no_license | lsifang/python | f616c5ee344cf5f6bd9c7522a8a615a0357febf1 | 69df369c0aa76097b22905ffc8b07ddb14db5f9f | refs/heads/master | 2021-04-03T04:23:32.059614 | 2018-03-09T01:57:47 | 2018-03-09T01:57:47 | 124,472,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #===========读方法=============#
# 1、read(【字节数】) 全部读取(默认全部)注意(字节数也包括换行或者制表符)
# 2、f.readline() 每次读取一行(从当前的位置读取一行)
# 3、f.readlines() 全部读取并把每一行(或者说是按照换行符进行处理后的一段)当作一个元素存入一个列表
# 注意:文件就是一个迭代器,怪不得也是指针型的遍历,每次操作都会移动指针的位置
f=open('b.txt','r')
# t=f.read(9)
# print(f.tell())
# print(t)
# f.close()
# f.seek(9)
# x=f.readline()
# y=... | [
"524582427@qq.com"
] | 524582427@qq.com |
93e37e4ebcfacf110e0d4f0aa79aa17c43a9e7d0 | bb95fa976a779819d8ea9f9e1968098aef9dfb5a | /src/lib/bindings/python/setup.py | 078f2cee2db60ac44a51d9f9d5766cbb4fb8ebfc | [
"WTFPL"
] | permissive | andrew-stevenson-sociomantic/faup | 4f0067cab93b7d84bf02d14cc02e94d69a0ce840 | 88dbbe2378552c9753b4f1e938663484909a4940 | refs/heads/master | 2020-06-12T07:27:39.411297 | 2019-03-23T15:46:40 | 2019-03-23T15:46:40 | 194,232,443 | 0 | 0 | WTFPL | 2019-06-28T07:57:04 | 2019-06-28T07:57:04 | null | UTF-8 | Python | false | false | 258 | py | from setuptools import setup
setup(
name='pyfaup',
version = '1.0',
description='Python bindings for the faup library',
author='Sebastien Tricaud',
author_email='sebastien@honeynet.org',
packages = ['pyfaup'],
use_2to3 = True,
)
| [
"sebastien.tricaud@gmail.com"
] | sebastien.tricaud@gmail.com |
1ad1162ff17c839ef8ce55ab6bbee3cf0a93cf8e | 5d86a45c0120bcaffb343493fefad8cb5e3dd996 | /Preview/System/Filetools/bigpy-tree.py | 163a1aea9b12829aef707983c5cc8adac825b59c | [] | no_license | rhkzleek/PP4E | e2b2a5406930b33dd4416b517491d76f3fe479f4 | c103bcc903bbdcac614189618ab4ed59fb359045 | refs/heads/master | 2020-04-13T11:32:54.016523 | 2019-01-07T12:32:56 | 2019-01-07T12:32:56 | 163,177,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
#auther:DELL
#createTime:2018/12/24 19:29
#fileName:bigpy-tree.py.py
#tool:PyCharm
'''
TODO:找出整个目录树中最大的python源代码文件
搜索Python源代码库,利用pprint漂亮的显示结果
'''
import sys,os, pprint
trace = False
if sys.platform[:3] == 'win':
dirname = r'D:\GitHub\PP4E\Preview' #在window下可用
else:
... | [
"978415719@qq.com"
] | 978415719@qq.com |
c95a5c8502d45df00595d29173e7a01a5dc4f999 | b150dcbc12ce410fba2577ec409923120c010e31 | /autobook/serializers.py | ce53c47238ebb3dd579c528f4b37f29c107da959 | [] | no_license | KirtiKharb/Autobooking | bc10c4837d29bfdd447af4b66bb7b7af7dac2614 | 7fa6845a4c2a86438e0e481e2f3469e89447d170 | refs/heads/master | 2021-01-01T06:17:53.828428 | 2015-07-21T09:46:53 | 2015-07-21T09:46:53 | 39,436,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from django.forms import widgets
from rest_framework import serializers
from autobook.models import *
class AirlineSerializer(serializers.ModelSerializer):
class Meta:
model = Airline
fields = ('airline_id', 'airline_name')
class FlightSerializer(serializers.ModelSerializer):
class Meta:
m... | [
"kirtikharb.4@gmail.com"
] | kirtikharb.4@gmail.com |
c76f9fa47ef7d9750b71945c9a4c81a19eb15fc0 | 77c8b96d0f3c7c0a5a110d2eb3752e352bc2e162 | /examples/views/OperacoesView.py | e4e460212774ef0b47d013fc762b5fa893d19b55 | [] | no_license | liipeandre/tutorial-flask | e225dc0781ffe74e9c065c481159312d45276157 | 7457748206f3bee7af95470cd432a19240e823ef | refs/heads/main | 2023-08-13T21:29:34.497244 | 2021-10-05T15:43:46 | 2021-10-05T15:43:46 | 392,052,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from app import app
from flask import request, render_template, url_for, redirect, flash, session
# Ler um campo da request
campo = request.form.get('campo', '')
# Criar uma mensagem para exibi-la no template.
flash('Nova Messagem')
# Criar uma sessão.
session['logged'] = True
# Enviar um template (usar com o coman... | [
"andrefelipe.pereira@yahoo.com.br"
] | andrefelipe.pereira@yahoo.com.br |
748d81067ab239e7f7fe9b6000f2f94b32e04f99 | 5a74fbfb317c116a911e3e6d404ed050bdd2baab | /problems/bear.py | e43a3e4305255c5f52700ac1450f89e11c664a31 | [] | no_license | yorkypy/selise-intervie | 39571fd14efca77240ee33d2ab770c86cb9103da | 82da5fc6399652bb080cd3977d6a4c60c47db2a1 | refs/heads/master | 2023-01-23T05:14:52.903886 | 2020-12-05T10:50:53 | 2020-12-05T10:50:53 | 318,727,091 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | '''Competitive Programming'''
def bear(a,b):
ans=0
while a<=b:
a*=3;b*=2;ans+=1
return ans
#Driver Code
if __name__ == "__main__":
print(bear(1,9)) | [
"nimayonten@gmail.com"
] | nimayonten@gmail.com |
e5e8294b5d1f9dcb995f1696ac69e28901803e67 | 38c9925575815a97dd062d259160a3dd47149cb0 | /src/boletin/migrations/0001_initial.py | adc921b456a8c0947eea15b59383e5a61a05efe0 | [
"MIT"
] | permissive | wunjo/Gypsy | ec35037beaa30ca4a967eb30043e32e8f0d4c184 | 2c54214c062b84837b5334cc06e4f205ef015434 | refs/heads/master | 2021-01-22T09:17:30.132706 | 2017-01-24T14:16:39 | 2017-01-24T14:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-06 14:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Regist... | [
"benticarlos@gmail.com"
] | benticarlos@gmail.com |
68579e6e8e06ae4012f7f6ce8dc97fd210b66e9b | fc8622157720e65cbda419d9d76d5d2197bcb382 | /lcvSearch/wsgi.py | b41fdd66da6a04636d70fcecbd629495215269a1 | [] | no_license | Geronimomiao/lcvSearch | c653a5d7ed0447fcab75745a409ca26ba1c5480d | 7c94be9feeff4fca344d497f13ce5c4a93930975 | refs/heads/master | 2020-04-17T10:10:54.454690 | 2019-01-20T04:16:31 | 2019-01-20T04:16:31 | 166,490,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for lcvSearch 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"1030057982@qq.com"
] | 1030057982@qq.com |
3b37848f68add020cd5d254cdc317cb60dc17c29 | ba6105cbef80245d6a19215d343b2a7890a30271 | /Unit 4- Data Structures/Ch 4.4- File Input and Output/Coding Problem 4.4.3.py | de5b01a50ecb947c881ef7f789133b04c345edd6 | [] | no_license | pyl135/Introduction-to-Computing-using-Python | a9a3674cd9088d50c9eef0f46ac6da5f084f9a2e | 92e94ce2d7a23a45fa00a2907f69682e25e6ed48 | refs/heads/master | 2021-04-12T10:43:33.757692 | 2018-03-30T07:07:08 | 2018-03-30T07:07:08 | 126,672,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #Write a function called "reader" that reads in a ".cs1301"
#file described in the previous problem. The function should
#return a list of tuples representing the lines in the file like so:
#
#[(line_1_number, line_1_assignment_name, line_1_grade, line_1_total, line_1_weight),
#(line_2_number, line_2_assignment_name... | [
"noreply@github.com"
] | noreply@github.com |
d5a85d36ce2ff99febea077850ade131d8763db9 | 83c6891e8fcde4a33ad7d0c1d7ac8436079556db | /rowingconditions/plotlydash/dashboard.py | 9792be013aa7e17108e46c190558433433e7fb3a | [] | no_license | zkilburn86/rowing-conditions | d2b8bc1c57b8ab97d86b23bc08132ae00aba7426 | 19634d83ddfb03c06035013f96a9336b0690da9f | refs/heads/master | 2022-10-01T10:38:39.736524 | 2020-06-07T13:35:17 | 2020-06-07T13:35:17 | 269,249,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
import plotly.graph_objects as go
from rowingconditions.resources.arkansas_data import last_30_days
df = last_30_days()
def create_dashboard(server):
dash_app = dash.Dash(server=server,
... | [
"zachkilburn@Zach-Kilburns-MacBook-Pro.local"
] | zachkilburn@Zach-Kilburns-MacBook-Pro.local |
c24bd142a33242ce550b621b5f054a0ae066ddc7 | f8faa223d8ba64caab5a732bc6d1d9a944b62aa7 | /tests/integration/loss/test_multi_op.py | 01ec80e9fdb4dfb7ee583f90ff5518ad7e4e45ab | [
"BSD-3-Clause"
] | permissive | pystiche/pystiche | 2f53e26f38b7fe96ec29259a084ba8ab2c2a9d36 | 71217c24557dfba05da5795547bf6f3034e7c66f | refs/heads/main | 2023-04-13T04:01:40.275142 | 2022-03-18T21:59:12 | 2022-03-18T21:59:12 | 208,798,287 | 138 | 36 | BSD-3-Clause | 2023-04-11T12:31:29 | 2019-09-16T12:49:12 | Python | UTF-8 | Python | false | false | 3,016 | py | import pytorch_testing_utils as ptu
import torch
from torch import nn
import pystiche
from pystiche import enc, loss, ops
from tests.asserts import assert_named_modules_identical
from tests.utils import suppress_deprecation_warning
@suppress_deprecation_warning
def test_MultiOperatorLoss():
class TestOperator(... | [
"noreply@github.com"
] | noreply@github.com |
15cfb6b1f6bcf67247dbc1632662dc3b164d8bba | 72e5ab95d0e63c9f4ffcb2e1537cbf050400382a | /sudoku/main-script.py | 2eb1a6ce542d22ab1d3e8586a923a1ea3ec15c63 | [] | no_license | divyansh-gaur/Automation | 905b2c74b4f5750742f9e3b7f987a41e575a242e | d3112239b01829893af26d3afc603dce7f60a94b | refs/heads/main | 2023-03-30T17:11:03.521231 | 2021-03-30T09:59:34 | 2021-03-30T09:59:34 | 352,947,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,251 | py | # import necessary libraries
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from pyautogui im... | [
"68742658+divyansh-gaur@users.noreply.github.com"
] | 68742658+divyansh-gaur@users.noreply.github.com |
3869b5dfe0c1d52b3ad24506b1770db5c4ac8044 | db98c27fd25542e0e341f6acf32162564ea77312 | /animalgogo/animalgogo/wsgi.py | aa8cc78a6c3fb016aec4f2a85d0717b70c4c4971 | [] | no_license | ShaunaMack/go-fund-she | d652bce061ac836d1c5e80d6c0d5f761853b2cd2 | c4705093bbec81f21f2ecd08596db7611dbaca35 | refs/heads/main | 2023-08-24T09:52:51.673728 | 2021-09-25T01:46:52 | 2021-09-25T01:46:52 | 405,237,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for animalgogo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"shaunakatemack@gmail.com"
] | shaunakatemack@gmail.com |
4e97f20afd5476a92d425462b32e3b8dbd42c3a8 | d4e6160ca6131c0f8681749cc23f2ccef86c1367 | /test_cap.py | 8c8cadc0bc95309d5ce821dd0dacd9a1fb787b54 | [] | no_license | jennifercliu/pythonBootCamp2020 | 56cfa740b3b8a60966564997a2783d82b1721765 | 4cee94478216bb635d677323ddf1b6280ce8380b | refs/heads/main | 2023-04-26T17:47:21.715391 | 2021-05-20T01:31:50 | 2021-05-20T01:31:50 | 323,473,154 | 1 | 0 | null | 2021-05-20T01:31:51 | 2020-12-21T23:41:00 | Jupyter Notebook | UTF-8 | Python | false | false | 346 | py | import unittest
import cap
class TestCap(unittest.TestCase):
def test_one_word(self):
text = 'python'
result = cap.cap_text(text)
self.assertEqual(result, 'Python')
def test_multiple_words(self):
text = 'monty python'
result = cap.cap_text(text)
self.assertEqual(result, 'Monty Python')
if __name__=='_... | [
"jennifercliu94@gmail.com"
] | jennifercliu94@gmail.com |
4da25535cadb102bd8f51971ed39cb23a040407d | 0f152b4bcd3a901d69b230bc8499c84edc9565c9 | /eatsmart/eatsmart/wsgi.py | 3ae72e18daeea82a4d6a9834832ee623cb03e5cb | [] | no_license | Kyoud/Django | 2042bc1d8df9261ddfcd3ba56d7416c77461bb12 | 334d8fd4db49d154d58962ad1a199c5ece14e9a7 | refs/heads/master | 2021-01-13T03:26:52.857446 | 2016-12-28T17:15:34 | 2016-12-28T17:15:34 | 77,548,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for eatsmart 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"hollenbeckjn@gmail.com"
] | hollenbeckjn@gmail.com |
ce842671e59252a6925bc1c003e6d86e44fc1c98 | 1e2244b3f706642c25a4be1d7fb8c69c2c025975 | /job/admin.py | a3edbcc7790e829a975ebb0de54becf0749b2218 | [] | no_license | Mahmoud-m-bahget/django-job-board | 59e78476b6178ab37753d627204133257f63b04b | 55cd5c2c98c9afba2d54ad4462765e75ab49caec | refs/heads/master | 2022-11-30T11:54:43.470987 | 2020-08-08T20:18:11 | 2020-08-08T20:18:11 | 284,384,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from django.contrib import admin
from .models import Job , Category , Apply
# Register your models here.
admin.site.register(Job)
admin.site.register(Apply)
admin.site.register(Category) | [
"mahmoodbebo.mb@gmail.com"
] | mahmoodbebo.mb@gmail.com |
d20ce66c888253d4220e2251912e787e94f914e6 | e17c8f129a81b0ff056e7149dc202303e0588aa0 | /abp_app/myapp.py | d79d9667946159d1eda711723aaebd0f2f8a2673 | [] | no_license | CONDUITlab/abp | da58a5fe9bc369b92561534bfdc3188b70f39a74 | f78d1a4ff8617b73a3af6ee21b28d2491b78bcf3 | refs/heads/master | 2021-09-16T04:21:14.592984 | 2018-06-16T09:41:03 | 2018-06-16T09:41:03 | 105,927,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import pandas as pd
import numpy as np
from bokeh.models import ColumnDataSource, TapTool
from bokeh.plotting import figure
from bokeh.layouts import row
#from bokeh.plotting import show
from bokeh.io import curdoc
# data for plot 2
df2 = pd.DataFrame({"A" : np.linspace(10, 20, 10),
"B" : np.linspa... | [
"stephen@peterkins.ca"
] | stephen@peterkins.ca |
2591cc81fd5627fc8a9f64a4682768c4fd98f5ce | 90c4326a1adc57476aea35ec18ba35f303765065 | /Stack.py | 4141878319d12f05cd69321beed2ddce74bb1a08 | [] | no_license | shyamsundar7897/Automata | d09b4695fc9292a867d6eaece89a4e28268e4632 | 32d47484b108cd04434b77ab395e26c68c19e591 | refs/heads/master | 2020-03-17T16:23:28.773729 | 2018-05-17T02:40:46 | 2018-05-17T02:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class Stack:
# Stack item for expression conversion
def __init__(self):
# Constructor for Stack
self.stack = []
self.top = -1
def push(self, val):
# Push item into stack
self.top += 1
self.stack.append(val)
def pop(self):
# Return item from stack
if self.top < 0:
raise Exception('Sta... | [
"noreply@github.com"
] | noreply@github.com |
3ae5a44b48257791e208650dc401ec8f6fbc5c64 | 6842e3fe3b21215859df6a61fddfd7a9b65b1ce3 | /Simple Server-Client/client.py | cb265c912446b8dfaac2dc18b9add077cbd6a891 | [] | no_license | SiriK404/Python-Socket-Programming | bc47c90ddb480787e6f9b35c7ccd393c27f93016 | 0c70ce0e8eae29a69ad8e4d6db972fdc4e56a4a2 | refs/heads/master | 2020-11-26T04:45:00.503136 | 2019-12-26T07:08:30 | 2019-12-26T07:08:30 | 228,966,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python3
import socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((socket.gethostname(),4444))
s.send(bytes("I am CLIENt",'utf-8'))
msg=s.recv(1024)
s.close()
print(msg.decode('utf-8')) | [
"noreply@github.com"
] | noreply@github.com |
b0cd844306784feeb3f0c8b18593d18f729e49f3 | 45b54b5063a548861a7971635679776dc13e5299 | /bidnet.py | 5164ee1ace7090f524a774070290513201425161 | [] | no_license | samsmusa/python-scraping | eb39274628f798c62e8099a40f5c1783b48d8bb4 | b5788aac42652e59302ebf3dc6276f7ddcfa2bc9 | refs/heads/main | 2023-06-11T06:30:16.944977 | 2021-07-01T16:43:33 | 2021-07-01T16:43:33 | 382,097,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import requests
from tqdm import tqdm
from bs4 import BeautifulSoup
import pandas as pd
headers1 = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36', "Upgrade-Insecure-Requests": "1","DNT": "1","Accept": "text/html,application/xhtml+xml,a... | [
"noreply@github.com"
] | noreply@github.com |
482a9c23b8b78c4c068f2a92b69400934aa9d8fd | 5f06ea565f6d0d555a0034de591c1948b925a7e7 | /blog/views.py | 1cae3ad2d74213e99b7c23fb9a3da2f424d190bb | [] | no_license | cement-hools/blog_by_molchanov | 82ef3385080320b74a1cd9c4c21446d8f0ae60e4 | da0a4c2c083c5c1da0d720a631ae1253792b32be | refs/heads/main | 2023-03-30T08:51:41.100697 | 2021-03-28T02:09:49 | 2021-03-28T02:09:49 | 350,162,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.paginator import Paginator
from django.db.models import Q
from django.shortcuts import render
from django.views.generic import View
from blog.forms import TagForm, PostForm
from blog.models import Post, Tag
from blog.utils import (ObjectDetailM... | [
"cement-fan@ya.ru"
] | cement-fan@ya.ru |
42306033a281b6350238b5fff7ae7cdab26766e9 | 23e21d8b3dca4991a2fcb8b708779a4e7b6c056d | /expenses/migrations/0001_initial.py | f24e5606dcf67ccc4ae9cfc4d2577ab1e3903b5b | [] | no_license | tracepesa/tracepesa | 4a9efc05d27751a399278bf3a6510d06f8e19f1a | 094722de9d399dd765e78d39dd4355b684ef8b3a | refs/heads/master | 2021-09-24T19:16:37.419479 | 2020-02-29T09:28:44 | 2020-02-29T09:28:44 | 243,740,782 | 0 | 0 | null | 2021-09-22T18:38:56 | 2020-02-28T10:52:53 | HTML | UTF-8 | Python | false | false | 1,455 | py | # Generated by Django 3.0.3 on 2020-02-28 09:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"shirimas@gmail.com"
] | shirimas@gmail.com |
2ee92a6558dede684ac8a357377754bb9e6687bf | ae550a5e31ee6c070f903268d6b6830d352f9e4e | /addy/wsgi.py | dca5ae26616709207b33990b141f90835abfad81 | [] | no_license | Cdingram/Routing | a3af64cf1a78cae0d6bbb16491e561cacc05effd | 60b8327446d39a109a853443396536dd76ebac4d | refs/heads/master | 2021-01-11T10:15:07.039803 | 2016-11-12T20:10:20 | 2016-11-12T20:10:20 | 72,590,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | """
WSGI config for addy 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"cdingram@ualberta.ca"
] | cdingram@ualberta.ca |
47cda6e3143dfdee7192c8060a5f9cf6e5ff6ffd | 76ca62cd33781f812608b5dff989998df485566c | /multiplication_of_numbers.py | aa36a305e265041b7b7e94bf86a4ba6ce6cdd520 | [] | no_license | VictoriaKolesnyk/newrepository | 6cc55e2f2d485e4bdca1b7af4a4333ca82358843 | 799f41c3f6065061cd1bbc7cdea1e1bb9b5e018d | refs/heads/master | 2022-12-02T20:40:07.983725 | 2020-08-25T19:33:00 | 2020-08-25T19:33:00 | 289,306,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | def multiplication_of_number(number):
s = str(number)
res = sum([int(el) * idx for idx, el in enumerate(s, 1)])
return( res )
number =int(input('please enter a number '))
print(multiplication_of_number(number)) | [
"a.vika787@gmail.com"
] | a.vika787@gmail.com |
9e17efeaae7712f632dfc951b8c4faccf09300ea | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /EventFilter/Cosmics/python/__init__.py | 8de5e10f583a8354f7bdce130bf75b64b564ba0f | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/EventFilter/Cosmics/',1)[0])+'/cfipython/slc6_amd64_gcc480/EventFilter/Cosmics')
| [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
fe045577682f1f630883572c9a3b3c893c5aa70f | 6591209f10b83bd617a0f577ba659cb91f2b2ac2 | /04_data structures/03_list.py | 59e1de4b10b2f009afdb050dc02e94ff567483be | [] | no_license | gabrielsule/cursopython | 94c834462b1f1e371ad1f986713773a89cec2066 | 63e62dd0a7229d4ec665fc95e50751f0d29c05c9 | refs/heads/master | 2020-05-30T12:15:31.780473 | 2019-06-01T12:18:34 | 2019-06-01T12:18:34 | 189,728,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | data = [1, 2, 3, 4, 5, 6]
# add
data.append(7)
data.insert(0, 0)
print(data)
# remove
data.pop(0)
data.remove(5)
print(data) | [
"gabrielsule@gmail.com"
] | gabrielsule@gmail.com |
4d066a1f3af37064dc6990b14a9a2e2baf54dc92 | 8f70b40ef1c657ee14accfe6e2f8b1ebb1bebb7e | /employeeform/migrations/0004_auto_20191206_1630.py | f84f3d3d85c39b082cf3985e9977f625ffe70444 | [] | no_license | TejashviVerma/School_ERP | e3d6f1aabe92167c2b55c0b1682dde505bb04edd | 11406da8b1d8701b7ea55f75c76f1cbf44a72c53 | refs/heads/master | 2023-08-03T15:10:11.481306 | 2020-09-13T18:02:40 | 2020-09-13T18:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.5 on 2019-12-06 11:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employeeform', '0003_auto_20191206_1619'),
]
operations = [
migrations.RenameField(
model_name='employeedocuments',
old_name... | [
"yashboura303@gmail.com"
] | yashboura303@gmail.com |
f7fd42324d3169ef99b480627185da8318abf978 | bd151bef8bca1eeb0c06cdc86fb3c7ef1d28954c | /venv/Scripts/pip3.8-script.py | c8fd068eb27f207d01564dcb3537c15877090cc8 | [] | no_license | ashleymazzonna/mac_changer | e7b1a273a3da79921f307fb7e2db733893a22362 | c270fa424fed0500d70707b1c6c6835f6aa4350c | refs/heads/master | 2022-05-22T22:08:37.597886 | 2020-04-25T03:03:11 | 2020-04-25T03:03:11 | 258,674,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\ashle\PycharmProjects\mac_changer\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"ashleym2910@gmail.com"
] | ashleym2910@gmail.com |
ea0d6e3a438b9ece04e26ddf4733d350905e9d39 | 45d0c1ec4f5e5ef2af3954d0c539e813081c985e | /cni/containers.py | 02cf480596cefdf24535919258dfe1d14b86c78e | [] | no_license | manotilla/manas | 2e7a6bef7abdfaf2838f979c1ae8b6260d475924 | 4683d48fa6bce2b17ba6e1c99fca7338c856cf03 | refs/heads/master | 2023-02-26T21:33:38.864838 | 2021-02-01T17:31:37 | 2021-02-01T17:31:37 | 245,846,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import docker
import logging
import os
try:
if os.environ["LOG_LEVEL"] == "DEBUG":
log_level = logging.DEBUG
else:
log_level = logging.INFO
except:
log_level = logging.INFO
logging.basicConfig(level=log_level)
class Containers(object):
def __init__(self):
self.container_client... | [
"emirozbir@kloia.com"
] | emirozbir@kloia.com |
5eee522f1c71624e222b152f905e6ca8a07c2df5 | b06bceb8fdc24e0c890fb2201c535cb660a94f86 | /pretrain_module/mbart_deprecated.py | ac4b7e85270d93661fd4ae3d1554b48ad9738826 | [
"MIT"
] | permissive | quanpn90/NMTGMinor | 7f294b40763b3f586d34ef4985799b851052f2ed | 5e1e424d0d9c2135a456e372a2ea9ee49de5bd2c | refs/heads/master | 2023-08-22T14:53:31.420276 | 2023-08-21T08:26:49 | 2023-08-21T08:26:49 | 116,663,163 | 92 | 39 | NOASSERTION | 2023-07-31T15:07:35 | 2018-01-08T10:33:56 | HTML | UTF-8 | Python | false | false | 8,832 | py | from .modeling_bart import MBartAttention
class MBartCrossAttentionSlow(MBartAttention):
def convert_fast_attention(self):
pass
def forward(
self,
hidden_states: torch.Tensor,
key_value_states: Optional[torch.Tensor] = None,
attention_mask: Optional[t... | [
"quanpn90@gmail.com"
] | quanpn90@gmail.com |
e79e058467598ed735112b6942be0f1b5e3269a6 | 5b93cdcbe4dd7e93ae3f14312c347a43953c2af4 | /ArgTest/classes/attack.py | 8f8e3117bf047c56d39b452456fef7ba2048143a | [] | no_license | mszczot/argumentationSemantics | 992941ebb8a0517195f9fb6b7f6d9e067f9839c0 | 8b205078fa015b0d03840f97969373ba88f53194 | refs/heads/master | 2021-04-27T00:24:10.966852 | 2018-03-15T21:27:42 | 2018-03-15T21:27:42 | 123,806,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | class Attack(object):
def __init__(self, attacker, attacked):
self.attacker = attacker
self.attacked = attacked
def get_set(self):
return set([self.attacker, self.attacked])
| [
"40180425@napier.ac.uk"
] | 40180425@napier.ac.uk |
6cc0b40552a7b84b67654c5343748b10becaba83 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /qbittorrent_examples/common.py | ddc95e8e8fe8667135cad88bfda306fb07fca849 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import sys
from typing import List, Dict
from pathlib import Path
# pip install tabulate
from tabulate import tabulate
# pip install python-qbittorrent
from qbittorrent import Client
from config import IP_HOST, USER, PASSWORD
sys.path.append(... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
275f8b6ac31792a9e4bb823b61366f868e45ef4e | 6397692bade269ca38ee6f8a9f8d5a87ca7e8d3f | /app/api/v2/models/meetupsmodel.py | c8a99072560efbc57e830230b247dddf8dd606de | [] | no_license | Philipotieno/Questioner-API | 2a60df5b23f6e9de5aa1f21943ac5dd17ee1c022 | 51e5f479aba526959ac0b9f512e13c11ae282287 | refs/heads/develop | 2022-12-11T04:20:39.796022 | 2019-02-15T08:28:13 | 2019-02-15T08:28:13 | 164,468,288 | 1 | 0 | null | 2022-12-08T01:31:37 | 2019-01-07T17:37:58 | Python | UTF-8 | Python | false | false | 1,839 | py | import datetime
from app.api.v2.models.db import Database
now = datetime.datetime.now()
db = Database()
cur = db.cur
class Meetup():
#meetup constructor
def __init__(self, topic, location, tags, happening_on):
self.topic = topic
self.location = location
self.tags = tags
self.h... | [
"tmitchellb007@gmail.com"
] | tmitchellb007@gmail.com |
c589a73bdb953c385df8a3734ad9b98afacc6e90 | 72839718a4b47b1babd4ad895ecd503a0a0e14d2 | /stembot/executor/ticket.py | fff953e6803693a1039328f71b3155b6a80807ac | [
"MIT"
] | permissive | phnomcobra/stembot-python | 6fb0d9a2874fc1bb8b8e5cf69e9f4d39c38dba5a | 497dd782556d62eeb9e9301f9de37332d93207d7 | refs/heads/master | 2021-06-17T10:56:33.148454 | 2021-02-23T00:58:00 | 2021-02-23T00:58:00 | 174,921,135 | 0 | 0 | MIT | 2021-02-07T03:48:14 | 2019-03-11T03:44:21 | Python | UTF-8 | Python | false | false | 13,314 | py | #!/usr/bin/python3
ASYNC_TICKET_TIMEOUT = 3600
SYNC_TICKET_TIMEOUT = 15
import traceback
from base64 import b64encode, b64decode
from time import time, sleep
from threading import Thread, Timer
from stembot.dao.ramdocument import Collection as RAMCollection
from stembot.dao.document import Collection as SQLCollecti... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
4a8b6dd2ee2549d673882e65280fb707c8b7ef9d | f588ce8fa900935e24d53887c3afa52005ff8b9c | /env/bin/pip2.7 | a80a97e5fdc58c4b1c7bb837419b40c2b42d694c | [] | no_license | ajm/tetris | 8b4ebcf50214ef849bde429ddc02fc2944f10c9b | c3a350aa93a321e69df608d1207226e84517eae5 | refs/heads/master | 2022-04-27T00:45:45.050675 | 2019-07-31T11:46:06 | 2019-07-31T11:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | 7 | #!/Users/risei/Desktop/tetrisGit/tetris/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jing.li@helsinki.fi"
] | jing.li@helsinki.fi |
bea73cbe5c0c43a72e96cbe6ea639c0aea8a8f57 | 60f1c250e2186a101917e72608e95806f66f5445 | /config.py | c1c8c0f46b70574bf6af796b677245b691eda268 | [] | no_license | AndrySar/jarvis | 19a25385652a08ff5d79ac7586a918ed65b524b3 | d062dbdb49edced94e7bd947dc3a405708518f50 | refs/heads/master | 2023-02-07T23:59:31.925605 | 2021-01-03T09:12:52 | 2021-01-03T09:12:52 | 326,367,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | TOKEN = str(os.getenv("TOKEN")) | [
"moisandrew@yandex-team.ru"
] | moisandrew@yandex-team.ru |
25911f197ae6dcc2571df0328cbe82ec80518e6e | c3c10fde2fc25317099ee9f99c4287d04e8f9ef8 | /server/packages/dbmanager/dbmanager.py | 70a88ed3a1a15287939a3e82a260007fd75e0f0b | [] | no_license | JonneDeurloo/WikiSearch | edc3968b02609635d3ee933b8b47a99389eb8ba4 | 4f368f48174bbd9ef97af1643dca4a99ac1349e9 | refs/heads/master | 2020-04-30T03:27:22.511590 | 2019-04-06T10:35:18 | 2019-04-06T10:35:18 | 176,586,576 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | """
This folder contains all the different databases.
Connection to a databse can be done by simply calling the
create_connection() function with the database name as parameter.
"""
import os
import sqlite3
from sqlite3 import Error
def create_connection(db_name):
""" Return a database connection to an SQLit... | [
"jonnemdeurloo@gmail.com"
] | jonnemdeurloo@gmail.com |
524bd89e5c1f7b8467818ce2131fcc559332c383 | b9686987198daf03eef5dd03285da58a6e847b72 | /20190910-add/add_using_zip.py | e6212a61c83131cf912ca88019923916eea53624 | [] | no_license | CompeterScience/pythonmorsels | f2646e31d3d393d37198b2e1c38bedcef75455c8 | 169b03fdac18ef5f60ca47128da50553fb4f0848 | refs/heads/master | 2022-05-23T20:04:38.097134 | 2020-04-23T21:35:37 | 2020-04-23T21:35:37 | 258,335,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | def add(m1, m2):
m3 = []
for r1,r2 in zip(m1,m2):
m3.append([c1 + c2
for c1,c2
in zip(r1,r2)])
return m3
| [
"competerscience@outlook.com"
] | competerscience@outlook.com |
8dac52cf3fed52bdd5d99dd766b36cef91ae7dc6 | 66ecea43786d6a487aa31ed5779cc8a2dd20d4fb | /assignment_3/Q4.py | f3f011fd7abedbe578a0531fba8fb2d020a45587 | [] | no_license | AndresArdila89/SCRIPTING-LANGUAGE | a18eee709b7b64927bf439f1cf4f7bceda4e8193 | 7487247ce83b17dc88427c8d8f3037edcc2907c0 | refs/heads/master | 2023-01-06T22:17:11.066584 | 2020-11-09T03:25:14 | 2020-11-09T03:25:14 | 298,015,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | '''
Question 4: Given an input string, count occurrences
of all characters within a string.
'''
string = "andres"
letterInString = {}
for i in string:
if i in letterInString:
letterInString[i] += 1
else:
letterInString[i] = 1
print(letterInString) | [
"andresardila@me.com"
] | andresardila@me.com |
93c6b0118efa5bfb83374e27dca773d5a9eaf6f8 | ff8768e9ff484c9a1392029c0d89b7d75c635109 | /w2.py | a646fbf144331bf4c158486f8ac042b7bc0b6eec | [] | no_license | shiyujiucsb/wmdnew | 77f2af4b4efc25507895d19fda6f8e87dda2d673 | 9f751202f780147fcfb6e0fb8d00ad86fa6bf152 | refs/heads/master | 2021-01-11T23:28:26.260917 | 2017-01-16T10:07:46 | 2017-01-16T10:07:46 | 78,588,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,965 | py | #start
import pdb, sys, numpy as np, pickle, multiprocessing as mp
load_file = sys.argv[1]
save_file = sys.argv[2]
with open(load_file) as f:
[X, BOW_X, y, C, words] = pickle.load(f)
n = np.shape(X)
n = n[0]
D = np.zeros((n,n))
for i in xrange(n):
bow_i = BOW_X[i]
bow_i = bow_i / np.sum(bow_i)
bow_i ... | [
"shiyu@cs.ucsb.edu"
] | shiyu@cs.ucsb.edu |
f9dddda89e769203df88f8d4b6ca71d093a8ed82 | 67ee0395522ccc13ad78012845dd8f29317905bc | /venv/bin/pip | 5324e018377757e57dc622b1e9eb542b044775f7 | [] | no_license | pawankhandal52/movie_website | 2b717942e0c689a0fa10fcd3b45f5eb7f1726262 | 6f0e668f3e99e790e9f4441c97adbb812fd72901 | refs/heads/master | 2020-03-27T10:38:56.464189 | 2018-08-29T07:28:01 | 2018-08-29T07:28:01 | 146,435,262 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 401 | #!/Users/stemdot/Desktop/movie_website/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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])
sys... | [
"pksharama@stemdot.com"
] | pksharama@stemdot.com | |
e5c0db606e3376fbcaeddcc9fd05a7df98f0dc5d | e03f5e95619f7ea81a8990371f7859064fab9987 | /regulaFalsiModificado.py | 3efd6422e8fa834f73d41e42339ac4a93d04e0a0 | [] | no_license | josera21/numericalProgramming | b4e741978ce7a625bde24b22880fea2e4f739848 | f1dc0a128f6a3806310d86b661758aa73289b259 | refs/heads/master | 2020-04-17T10:04:38.024009 | 2019-01-29T05:25:05 | 2019-01-29T05:25:05 | 166,486,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # -*- coding: utf-8 -*-
def regulaFalsiModificado(a, b, tol, n):
fa = function(a)
fb = function(b)
fc = fa
c = a
ant = float("inf") # Para la primera iteracion
i = 0
ia = 0
ib = 0
while i < n and abs(c - ant) > tol:
i += 1
ant = c
c = b - fb*((b - a) / (fb - fa))
fc = function(c)
if ((fa * fc) > 0... | [
"jochix21@gmail.com"
] | jochix21@gmail.com |
378a396c00663d3f8648e37c9914cc247a876c70 | 8759a40c90d600ffb846e491caef02389e001253 | /12.py | f321fbfd5cf6ceea6e65da1dd67a59ff3744223f | [] | no_license | e185725/opencv_practice | e9f1862d588a3084363fdb235abb6665caf9c339 | a9914fde756bdec5d8a1228409327de56ce4c647 | refs/heads/main | 2023-01-15T11:17:49.042291 | 2020-11-30T03:19:33 | 2020-11-30T03:19:33 | 317,097,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | """
モーションフィルタ
motion filter
モーションフィルタ(3x3)を実装せよ。
モーションフィルタとは対角方向の平均値を取るフィルタであり、次式で定義される。
"""
import cv2
import numpy as np
def motion_filter(img , K_size = 3):
H,W,C = img.shape
K = np.diag([1]*K_size).astype(np.float)
K /= K_size
# zero padding
pad = K_size // 2
out = np.zeros((H + ... | [
"e185725@ie.u-ryukyu.ac.jp"
] | e185725@ie.u-ryukyu.ac.jp |
c7224b78c1a6f736145512b1515152716e084fb0 | 7a63ce94e1806a959c9c445c2e0bae95afb760c8 | /tests/user/test_update_credentials.py | 0525fc1882db4236ea941f77e653a698474a366a | [
"MIT"
] | permissive | pklauke/pycamunda | 20b54ceb4a40e836148e84912afd04d78d6ba0ec | 3faac4037212df139d415ee1a54a6594ae5e9ac5 | refs/heads/master | 2023-08-18T10:23:30.503737 | 2022-04-17T18:34:40 | 2022-04-17T18:34:40 | 240,333,835 | 40 | 16 | MIT | 2023-09-12T13:29:08 | 2020-02-13T18:37:25 | Python | UTF-8 | Python | false | false | 2,128 | py | # -*- coding: utf-8 -*-
import unittest.mock
import pytest
import pycamunda.base
import pycamunda.user
import pycamunda.resource
from tests.mock import raise_requests_exception_mock, not_ok_response_mock
def test_update_credentials_params(engine_url, update_credentials_input):
update_credentials = pycamunda.us... | [
"peter.klauke@tu-dortmund.de"
] | peter.klauke@tu-dortmund.de |
7c45869cc9da04563cf20da243c4ea1b766b1fd7 | d571331f8cbcae66fdb5d9b3314d61d27b8e5cb3 | /mysite/article/migrations/0004_article_is_delete.py | 4d2989b677a114e2c34de1af25f608b32deac709 | [] | no_license | ScnuWang/Django_Bilibili | cfb066018f9a1a20bd86e7529b3ac1b093feb9ae | 495fb37e6c7139f700e1d7434c1ac29b0aa75490 | refs/heads/master | 2020-03-20T23:31:16.342638 | 2018-06-29T08:48:40 | 2018-06-29T08:48:40 | 137,850,235 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.0.6 on 2018-06-19 16:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0003_article_auther'),
]
operations = [
migrations.AddField(
model_name='article',
name='is_delete',
... | [
"scnu_wang@163.com"
] | scnu_wang@163.com |
64e74f09acb1c02d8d5aca312d0252015ccc78c5 | c1fef10413ef963abd192b6f47fd37ecd76bd22f | /source/infra/cassandra/eg_insert_gg_table3.py | e0acab1ad839b98a8c38389a2d45b5ac9aed6ffa | [] | no_license | ggopalan42/neutrino | 1793e957f770b6ca5ccd561ecd4951beb849a9b6 | 28b1c7df5bf89fa7a8834e74965607c0c283e3f4 | refs/heads/master | 2021-03-27T11:08:36.118422 | 2019-12-20T00:07:55 | 2019-12-20T00:07:55 | 123,050,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,639 | py | #! /usr/bin/env python
# Note: This script is primarily for testing insertion into a table
import os
import sys
import logging
from cassandra.cluster import Cluster
# Set logging level
logging.basicConfig(level=logging.INFO)
# Constants
HOSTNAME = '127.0.0.1' # Localhost. Later move this to a config
SYSTEM_KS... | [
"giridhara.gopalan@hpe.com"
] | giridhara.gopalan@hpe.com |
b2741fa2aa47d2ca507a4a587d78662b490be852 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/jacobi-2d/tmp_files/4634.py | 598e8470565aa941811dde2f95b33c4baece406f | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/jacobi-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/jacobi-2d/tmp_files/4634.c')
procedure('kernel_jacobi_2d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
7a281220e87feece6d79b633cfd9a907a2a6ad8b | e8493c6f2eebb021ea77f28a21fa19d84a6088cd | /four_number_game/lib/utilities.py | df345050df29c861605876f1b9043c63a3fc01ca | [] | no_license | facu077/four-number-game | 606c93b5b9397f1c0d00e6d9651f124d747dfba7 | 0ad9a7fa2789bc33842d042794a17a9bfc61ce5f | refs/heads/master | 2020-05-20T17:17:51.674634 | 2019-05-27T19:40:49 | 2019-05-27T19:40:49 | 185,685,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import random
class Comparator:
def __init__(self):
self.regular = 0
self.good = 0
def compare_numbers(self, first_number, second_number):
self.regular = 0
self.good = 0
# We are going to use lists since is more easy to manipulate
first_number_list = list(firs... | [
"facu.m077@gmail.com"
] | facu.m077@gmail.com |
71b3f01b9a0d842a63ee19689ad6994894a5ef8c | e47747c2ec6061ff19f5c4bd7ac63c2bbcfad018 | /test_bangalore_slots_finder.py | fc975e51f7a2a6f61d89ff57a744ce76f02d5707 | [] | no_license | shivamsachit/setu-api | 0ef72f890d63bc6a4e1e75c9728e66d0b2283f27 | 90df25407de04ada7f87121993ca9f875fad4a29 | refs/heads/main | 2023-06-29T12:05:52.028716 | 2021-07-31T13:49:38 | 2021-07-31T13:49:38 | 390,598,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,586 | py | '''
Tests for COVID vaccination slots finder
This module contains tests for the COVID vaccination slots finder
Contains the following classes:
TestAllSuccess:
func test_no_slots
func test_one_slot
func test_three_slots
TestSomeTimeouts:
func test_no_slots_in_successful_calls
func test_three_sl... | [
"sachit.shivam@codemonk.in"
] | sachit.shivam@codemonk.in |
1e174980b1b3e5a79f067cb43d9213b69a797af2 | 6d2bcf254d7a24f5862e0ab964a2224d092f22ab | /chap2/12.py | 730a1f6bc018a784fb7312c661ccb58e9ddb7937 | [] | no_license | Hirochon/nlp-100-nock | c97b2bf2ee9fbb66eee592701b96c7ac5024311a | 2a73e0c5f0b99227d6a9393d9691f8ec2a0e80f8 | refs/heads/main | 2023-08-29T13:44:54.185605 | 2021-11-07T17:48:13 | 2021-11-07T17:48:13 | 424,612,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import subprocess
# !cut -f 1 ./popular-names.txt > ./col1_chk.txt
# !cat ./col1_chk.txt | head -n 5
res = subprocess.check_output(["cut", "-f", "1", "../public/popular-names.txt"])
decodedRes = res.decode()
with open("../public/col1_chk.txt", "w") as f:
f.write(decodedRes)
res2 = subprocess.check_output(["cut"... | [
"heacet43@gmail.com"
] | heacet43@gmail.com |
69192c6ab4ee2b552ad6a32cd7ad4ec54844ebd7 | a4e187eb26c926a72ee260d3eb4f07a57eb31af0 | /src/aceinna/devices/openrtk/lan_provider.py | 8ea2bf70d39ddc9359b6154897157531eb45a6e2 | [
"Apache-2.0"
] | permissive | BrunoScaglione/python-openimu | 2cab6386a65dba3676b152ba4ed07e3579e47aa4 | 5653fad05b735a26c44e46c4ee023137e621e58e | refs/heads/master | 2023-06-04T08:36:30.982960 | 2021-05-07T09:09:12 | 2021-05-07T09:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,756 | py | import os
import time
import json
import datetime
import threading
import math
import re
from ..widgets import (
NTRIPClient, LanDataLogger, LanDebugDataLogger, LanRTCMDataLogger
)
from ...framework.utils import (
helper, resource
)
from ...framework.context import APP_CONTEXT
from ..base.provider_base import O... | [
"ywsong@aceinna.com"
] | ywsong@aceinna.com |
b85e6af344facb6e0df6e9ed8dff20da26f7144a | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/merge-strings-alternately.py | 107572aa3949742adfc4813ca836790e9dbcd7cc | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 471 | py | # Time: O(m + n)
# Space: O(1)
class Solution(object):
def mergeAlternately(self, word1, word2):
"""
:type word1: str
:type word2: str
:rtype: str
"""
result = []
i = 0
while i < len(word1) or i < len(word2):
if i < len(word1):
... | [
"noreply@github.com"
] | noreply@github.com |
d3d2478915380b6f8d4f5778c5babd647003d786 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_result_response.py | 89a066b6d19712691fb0599b6d0fc736ad86c3d5 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,168 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowInstanceResultResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e7d1aa876bce599d3252b04fd4e5cbed615be91c | 35b78703e93dcd621a06308ff889339a18230898 | /data/graph_loading.py | c24a902097d904cf9c67a56a9cdf487a548256c0 | [] | no_license | mbajaj01/CS534L-Social-Networks-Project | 6b22986927cef602a077acb0e26f4c6b101dfcef | 9dd8dbcf57257dba94f1390a7808f7bb63396f7e | refs/heads/master | 2020-03-21T06:44:37.286410 | 2018-01-20T16:50:47 | 2018-01-20T16:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import csv
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
csv_path = "digg_friends.csv"
csv_path = "digg_friends_pruned.csv"
csv_path = "digg_simar.csv"
def load_graph(csv_path):
G = nx.DiGraph()
with open(csv_path, "rb") as f_obj:
reader = csv.reader(f_obj)
flag=1
... | [
"simar.i3r@gmail.com"
] | simar.i3r@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.