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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11173664d5518f6141f609f431c7e0e39c8928a5 | 87e2472fdbdfd841c5e140da302a905d0a7ada58 | /Coordinator/ParseCor.py | a4dd58221d59fc21fa6462bcdf6a63c9804eb283 | [] | no_license | quanglys/BPA | 7218a4793e3ad9fe777d4dfa1ee793d3e68a5996 | f572a562fe9613e2f83b006cbc3d8ea96620dddf | refs/heads/master | 2021-01-18T20:39:24.190274 | 2017-04-03T05:40:41 | 2017-04-03T05:40:41 | 86,983,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import argparse
def createParse():
parser = argparse.ArgumentParser()
parser.add_argument('-DEBUG', dest='DEBUG', type = bool, default= False)
parser.add_argument('-ext', dest='ext', type=str, default='')
parser.add_argument('-k', dest='k', type=int, default= 4)
parser.add_argument('-ROW', dest='RO... | [
"quanglys@gmail.com"
] | quanglys@gmail.com |
a25593377ee2f85c93e81f693a02f302e5bc24a6 | b05566468ea03d79432453afe4a00ec2217b84e5 | /pytorch/evaluation.py | 569e36557d183bd94f22d6f7cf0e3be624949efe | [] | no_license | nianfudong/GCS | 3a9d474f1f76ff48305b6834287aa518f2b68d40 | 38667e4227fbdaa824cdcf02359b94e09e1112c2 | refs/heads/master | 2023-03-09T07:03:55.033178 | 2021-02-24T07:42:00 | 2021-02-24T07:42:00 | 92,651,407 | 0 | 1 | null | 2021-02-24T07:36:27 | 2017-05-28T09:20:27 | MATLAB | UTF-8 | Python | false | false | 1,546 | py | import os
import math
#inFileTruth = open('F:/wflw/WFLW_annotations/valGroundtruth.txt','r')
#inFilePred = open('F:/wflw/modelv1/results/modelmse/msepredVal.txt','r')
inFileTruth = open('F:/wflw/WFLW_annotations/testGroundtruth.txt','r')
inFilePred = open('F:/wflw/modelv1/results/modelgcs/gcswingpredTest_1... | [
"noreply@github.com"
] | nianfudong.noreply@github.com |
8f27136187598f06ad8585512871e82615f64483 | 7e87e190d917735f2e31934d7fe210ee0cd73ba2 | /src/log_manager.py | ef4ab9d6b9eb8402ef5b3bca49f3a359bf796002 | [
"MIT"
] | permissive | daruuro/instagrambot | e70db5d4aa9b257d9837711bb123fd3e3ea100f7 | e1428606bec294576482acda273129faf3a22947 | refs/heads/master | 2023-04-07T23:31:11.313746 | 2015-07-28T04:20:35 | 2015-07-28T04:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | import sys
#TODO: self manage log file
| [
"amabdalla10@gmail.com"
] | amabdalla10@gmail.com |
ab73af80761eab3522a833fbf90b61db4370b423 | 1d443a2e051e4d5e8924285148652c22c2ab55e4 | /annotationDatabase/shared/models.py | a1422f87b3032df0e2bd47e1ef9cdb50a4d7fdd2 | [] | no_license | erikwestra/ripple-annotation-database | e21ec83330c1d9b041444939d44859ae4a50d07f | a7d49d463ea97900333885dd29cb2e70c1a0fdb9 | refs/heads/master | 2021-01-01T19:02:01.020302 | 2015-02-18T03:05:44 | 2015-02-18T03:05:44 | 19,088,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | """ annotationDatabase.shared.models
This module defines the shared database modules used by the Ripple
Annotation Database.
"""
import hashlib
import uuid
from django.db import models
#############################################################################
class User(models.Model):
""" A signed-up... | [
"ewestra@gmail.com"
] | ewestra@gmail.com |
581b001c43949dbb7ebcdac5baf8d0a9a270ae0f | 17e27c3131beb91947d0246372f8810894b4e99b | /pH-array/create-pH-array-fast-384.py | 1e1e25f79beb6e539d66bd1cb1ce75584f646ff5 | [] | no_license | jhprinz/robots | b0a16a5ebcc609d6d0bd411b45706f1f702446a6 | e2e234a8198044d3d09f1ec5ed429a3bf6062616 | refs/heads/master | 2021-01-22T16:17:23.567963 | 2015-10-26T16:16:30 | 2015-10-26T16:16:30 | 24,623,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,961 | py | #!/usr/bin/env python
"""
Create pH arrays along rows of 384-well plate.
Optimized for speed.
"""
# TODO: Replace this taable with a module that computes buffer recipes automatically.
filename = 'citric-phosphate-24.txt'
infile = open(filename, 'r')
lines = infile.readlines()
infile.close()
conditions = list()
for l... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
47f59cc217b45edd370bebd08b1eb1133309fde2 | 73ea55d9e5cd1e6f17da62e204d4f719138090fa | /src.bkp/util.py | 2aefddf74d953e7c74b5dcd230cd967b80235ee5 | [
"BSD-2-Clause"
] | permissive | Rafagd/Tomiko | 32be186923a4333e496ba65c97681fc21947bd96 | fd44ce1cfe1b4571aeac81382793c7d5338d6701 | refs/heads/master | 2023-07-09T04:28:55.844270 | 2023-07-02T19:32:17 | 2023-07-02T19:32:17 | 75,745,778 | 0 | 2 | BSD-2-Clause | 2018-04-25T02:56:29 | 2016-12-06T15:43:35 | Python | UTF-8 | Python | false | false | 1,113 | py | from collections.abc import MutableSet
class classproperty(object):
def __init__(self, getter):
self.getter = getter
def __get__(self, instance, owner):
return self.getter(owner)
class ttl_set(MutableSet):
data = {}
ttl = 10
def __init__(self, values = [], ttl=10):
... | [
"rafagd@gmail.com"
] | rafagd@gmail.com |
cb15b50f01539b5d6261c95a0bd792a75da4119a | 781b9a4a1098f3ac339f97eb1a622924bcc5914d | /Exercices/S1_05_FonctionsRecursives/COURS-EMILIEN/programmes/fact_recursif_infini.py | 3efdc8470329e85417b9c2a4f1980f3da61be950 | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | e8fb053c3da847bd0a1a565902b56d45e1e3887c | refs/heads/main | 2023-08-30T21:10:56.788526 | 2023-08-30T20:17:38 | 2023-08-30T20:17:38 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | def fact_recursif(n):
return n*fact_recursif(n-1)
fact_recursif(6) | [
"emilien.durif@gmail.com"
] | emilien.durif@gmail.com |
cf389500c49895e7a7ca3d5f8f147d8b288639a5 | b73dd400937d30b29a9c48bdbd3e81c7a035d076 | /Games/Tools/Writing-Tool/test.py | 6959d2fd42039c9966c5ded87d9f5a8dfe844a5e | [] | no_license | Exodus111/Projects | 772ffbc94f4396b8afded1b6b5095f4b084fdd7a | 732853897ae0048909efba7b57ea456e6aaf9e10 | refs/heads/master | 2020-05-21T19:26:03.972178 | 2017-03-26T10:04:35 | 2017-03-26T10:04:35 | 61,034,978 | 1 | 0 | null | 2017-03-26T10:04:36 | 2016-06-13T12:36:00 | Rust | UTF-8 | Python | false | false | 117 | py |
def foo(a,b):
return a+b
mydict = {}
tupleargs = (5,5)
mydict["func"] = foo
print(mydict["func"](*tupleargs))
| [
"aurelioxxx@hotmail.com"
] | aurelioxxx@hotmail.com |
e594bac5f12675514e6e1d9ef4343c0400678389 | 67536595f3bf945965ace96e1ee432da6f797ec6 | /area/choose-area.py | 8fdbfbcd3f29d929e984f9ab6b94086db1742e44 | [] | no_license | loweffortwizard/Python-Activities | a1fe80fecfe02f217cf0b3712e60f2bc19a184b4 | 3e644c089fccc5e6308e320d314d9692c3bf48f1 | refs/heads/master | 2020-09-11T19:40:44.003429 | 2019-11-16T23:14:21 | 2019-11-16T23:14:21 | 222,170,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | '''
Expand tasks 1 & 2; write a program that asks a
user if they would like to calculate the area of a
square or a rectangle. Depending upon which choice
the user picks, the program then asks for either one
or two measurements to be entered
'''
'''
prog will calculate area of a triangle,
based on user i... | [
"noreply@github.com"
] | loweffortwizard.noreply@github.com |
498ced78e53463ef6ffb262399292c326c9d8b33 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc026/B/4966923.py | fc8d3d588929434bc763643e48d9daa1c10272ee | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import math
n = int(input())
r = [int(input()) for _ in range(n)]
pi = math.pi
r.sort(reverse=True)
R = 0
for i in range(len(r)):
if r.index(r[i])%2 == 0:
R += r[i]**2
else:
R -= r[i]**2
print(R*pi) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
a7984c6bdffc5ad0f808b6d6a088c19a2a42375e | 019214e2f5fc2345490d115db187632816b525e4 | /KB_construction/knowledge_from_structured_data/copy_CBDB_from_sqlite_to_mysql.py | fa6ba5182429d78d48078f19684f8cfc4c5d8c87 | [] | no_license | wangbq18/KBQA_on_Chronicle | 565afbad21c658492c0aea9834e94f298515a6e5 | 018c032c90307d23daae2e1bc5d16f3afaca184d | refs/heads/master | 2020-04-10T11:49:48.256025 | 2018-11-09T06:16:53 | 2018-11-09T06:16:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,542 | py | # encoding=utf-8
"""
@author: SimmerChan
@contact: 7698590@qq.com
@file: copy_CBDB_from_sqlite_to_mysql.py
@time: 2017/10/27 21:09
@desc: 将CBDB中的数据转为简体字后存入Mysql数据库中
"""
import sqlite3
import pymysql
from traditional2simple import tradition2simple
import re
import traceback
from collections import OrderedDict, d... | [
"7698590@qq.com"
] | 7698590@qq.com |
63bb8c9ff2c252b8d223665c0abcbf9b1ba3cfed | 4325b3b69555788b70c678b3e14c45d7cc68a55a | /face_recognition.py | e3991eab90216308aebdc96a607b0f8290efd024 | [] | no_license | Jappan07/Facial_Recognition_System | 1b63e1eedc302c2fca2052316c94337c09b2e80d | cc6494e9670b4c9aecc2007a0370a7c2801c714d | refs/heads/master | 2022-11-14T15:35:34.744303 | 2020-06-10T19:19:33 | 2020-06-10T19:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | import cv2
import numpy as np
import os
########## KNN CODE ############
def distance(v1, v2):
# Eucledian
return np.sqrt(((v1-v2)**2).sum())
def knn(train, test, k=5):
dist = []
for i in range(train.shape[0]):
# Get the vector and label
ix = train[i, :-1]
iy = train[i, -1]
# Compute the distance fro... | [
"jappanjeet.99@gmail.com"
] | jappanjeet.99@gmail.com |
18e9fa15b3b4b66178c5906fb12f6025d5a60cc1 | 66ab7147772963e5aed972273037715121fa4123 | /theme_hort/models/res_partner.py | b5559c3d107c8b21d1e9ab0ef71674676b0a3f04 | [] | no_license | OdooBulgaria/trust-themes | 3c5e9f460724acc634819a977d81f07f3127fdca | efeaee432ffa8464d533076b0fa6a88ae2424d32 | refs/heads/master | 2021-01-16T21:52:52.000138 | 2016-04-12T20:51:22 | 2016-04-12T20:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | # -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2016 Trustcode - www.trustcode.com.br #
# Danimar Ribeiro <danimaribeiro@gmail.com>... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
7215a16e4e6627a856c4d33235a46b86a998d951 | 6ca1ccd426079260cd69defe77ff2dda2621f994 | /core/routines/indices/colony_name_index.py | e30aee96fd2f248d45131b95eb4b75a49ba5f2eb | [] | no_license | OdysseyScorpio/GlitterBot | d7307e27b6a760f65e96b1b41b8545a3973490c3 | b9a9ef6ddda18c6eeab0401b1ec8de05d251ad22 | refs/heads/master | 2022-12-18T14:21:32.077798 | 2020-12-06T20:58:06 | 2020-12-06T20:58:06 | 253,093,614 | 0 | 0 | null | 2022-12-08T05:28:13 | 2020-04-04T20:34:06 | Python | UTF-8 | Python | false | false | 1,751 | py | from collections import Counter
from lib.database import Database
from lib.gwpcc.consts import KEY_COLONY_FULL_TEXT_INDEX, KEY_COLONY_METADATA, \
KEY_COLONY_INDEX_BY_ID
from lib.log import Logger
def update():
db = Database().connection
Logger().log.debug('Clearing existing colony name indices')
pi... | [
"martyn.robert.green@gmail.com"
] | martyn.robert.green@gmail.com |
acfbf39fbaf3c6428824f782380af0caf1c695ad | 9479b32b03d5fa5e36652854dac10670e069eca7 | /random_walks/ch2_graphs/pygal_die/die_visual.py | b72238eb8451fa8dfda15730161ccb217792150c | [] | no_license | qetennyson/maththeme_ct18 | 265c8e9d479e7f13db88f705bb0a7f30805ddccd | 1f2dc321e2a57c34ab9438e4120c01afa2ae9751 | refs/heads/master | 2020-04-08T00:53:25.208158 | 2018-12-10T21:27:49 | 2018-12-10T21:27:49 | 158,872,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from main import Die
# Create a d6
die = Die()
# Make some rolls, and store results in a list
results = []
for roll_num in range(100):
result = die.roll()
results.append(result)
print(results) | [
"quincytennyson8@gmail.com"
] | quincytennyson8@gmail.com |
a210ba0463235061902c9f2b6534784cb3e3bba1 | 2d3cbf5933567ce3c3dcb8f004f1571067742f87 | /tools/graph-convert/make-test-graph | ed77670651b53a786e66495f2c5d0a3cbf8da5d8 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | KatanaGraph/katana | 9de617944264873198ec7db5ed022d356b1a529a | 350b6606da9c52bc82ff80f64ffdde8c4bfdacce | refs/heads/master | 2022-06-24T02:50:16.426847 | 2022-03-29T12:23:22 | 2022-03-29T12:23:22 | 310,108,707 | 85 | 83 | NOASSERTION | 2023-08-09T00:07:55 | 2020-11-04T20:19:01 | C++ | UTF-8 | Python | false | false | 3,723 | #!/usr/bin/env python3
import typing, random, sys, getopt, pprint
head = '''<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
http://graphml.graphd... | [
"ddn0@users.noreply.github.com"
] | ddn0@users.noreply.github.com | |
91781dad9345e1a76f1f332e73a93b3815ff68d6 | 6986ec00b5fcd644c1ef17c40e9ea1997f1c4ebf | /setup.py | 45c985795148d311a6dc2c9605ce5d219a2a0f7a | [] | no_license | chnyangjie/wiz_ali_ecs | db3f7e2fdf11462488ceecda6389d111228bebb1 | 08d39ab6d3bab1e96d96e5bd9b92d1404a98d12a | refs/heads/master | 2023-08-30T21:30:17.971788 | 2021-10-09T06:30:52 | 2021-10-09T06:30:52 | 415,223,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='wiz-ali-ecs',
version='1.0.0',
description='wiz-ali-ecs',
long_description=long_d... | [
"yangjie@xueqiu.com"
] | yangjie@xueqiu.com |
668a92e99a99f8d68bc880947a617b6f9a4e2b82 | d24ac419bb3d78eb10e97196c7be206a90f34d2c | /CHMODHelper.py | 79d61048ca4e02960f167f1ff0f21ca672597162 | [] | no_license | AsherNoor/PyAlly | 7b89d3e58c28cc7903c7c8bc5a7dfec2da52be1d | 7412665880df1757a3f50f886a0366d22be8f930 | refs/heads/main | 2023-06-23T01:43:17.655641 | 2021-07-21T17:40:59 | 2021-07-21T17:40:59 | 363,929,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | """
--------------
| The PyAlly |
---------------
| CHMOD Helper|
---------------
"""
import _pyally_main as pyally
# ---- Defining Functions ----
# The Intro Function
def chmod_menu():
print(""""
-----------------
| CHMOD Helper |
----------------------------------------------------
| Helps... | [
"noreply@github.com"
] | AsherNoor.noreply@github.com |
74b71c6f9eed1dded2c4498fee94c29e4efddc81 | a1fde11f38a7718760b9fbbadf4dd427a13d0241 | /Python00/com/test01/type01.py | d48f53cf38b9ea9f130b84641635aff069dd5e03 | [] | no_license | moonhyeji/Python | f69d889504b8a1def95e6bd80d849514aca9cbdf | c8e143cbf79c2a38c9a7a964f231873cef361d92 | refs/heads/main | 2023-06-02T07:31:56.855243 | 2021-06-14T07:09:20 | 2021-06-14T07:09:20 | 372,847,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #number
#정수형
a = 100
print(a)
print(type(a))
print(int(9.8))
print(int(7/6))
print(int('5')+1) #<class 'float'>
#실수형
b = 123.45
print(b)
print(type(b))
print(float(4)) #4.0
print(float(3+2)) #5.0
print(type(float('1.2'))) #<class 'float'>
# 2진수, 8진수, 16진수
c = 0b1111 #바이너리
print(c)
d = 0o77 #옥탈... | [
"mhj5601@gmail.com"
] | mhj5601@gmail.com |
4ccd40c4bd69d5140f4f56aac67c8c94dca387d0 | a0b2acfb5d49da2b313fa2b8ee8eb5bdba359ced | /models/user.py | 1df44aae4589a292da389f36dc55bd6fa6d671f0 | [] | no_license | mdcravero/FastAPI-SQLAlchemy-Example | 79a9d1f242a793b5a196a72b7280d25f16abb722 | 2082ba1c5190249013078129a004d2d73c645a39 | refs/heads/main | 2023-08-29T11:06:11.034056 | 2021-11-04T15:37:21 | 2021-11-04T15:37:21 | 424,646,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from sqlalchemy import Table, Column
from sqlalchemy.sql.sqltypes import Integer, String
from config.db import meta, engine
users = Table("users", meta,
Column("id", Integer, primary_key=True),
Column("name", String(255)),
Column("email", String(255)),
Column("pa... | [
"mdcravero@gmail.com"
] | mdcravero@gmail.com |
ae97c4d6d9945a19d54b777cb5d7fdc24dcc82ad | d72b83d536a124f9de9d5ae870f38f9edfe7f531 | /PyPoll/main.py | 2c7e2b4d3854a75a10085199f33585ff333378d8 | [] | no_license | grecia1534/Python-Challenge | 52c90fe3e0191a37710439fe03d57521e375760b | 15083e61a7ed4c654a51e57f9cd75c6c999fd065 | refs/heads/master | 2022-12-03T21:35:11.503407 | 2020-08-13T14:41:49 | 2020-08-13T14:41:49 | 287,136,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | # Import CSV file
import os
import csv
# Assign file location with the pathlib library
csv_file_path = Path("python-challenge", "PyPoll", "election_data.csv")
# Declare Variables
total_votes = 0
khan_votes = 0
correy_votes = 0
li_votes = 0
otooley_votes = 0
# Open csv in default read mode with conte... | [
"noreply@github.com"
] | grecia1534.noreply@github.com |
e3c75de79ef03dfb3cffac420da401b587d9470a | 345c61e821d2b386da84875d22a3b2ccd88b9108 | /ML/DDoS_prediction_linear_regression.py | d4819e90a052152be27dfb16b44fbd241f8b820a | [] | no_license | amit1809/CMPE_272_mini_project | bb411165324d199ac702eafa37cf126831d531fe | fca025c57b029cc0bf795503a0e32d730bf64237 | refs/heads/master | 2022-06-03T20:18:25.132688 | 2020-04-27T00:49:19 | 2020-04-27T00:49:19 | 255,184,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import findspark
findspark.init('/home/aarav/Amit/SJSU/CMPE_272/mini_project/spark_setup/spark-2.4.5-bin-hadoop2.6')
# In[2]:
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
# In[4]:
data = spark.read.csv('../dataset/kaggle_small_... | [
"amitsharma1809@yahoo.com"
] | amitsharma1809@yahoo.com |
a8d5c666c135aecea542dde00f2a0ba42357d7ce | 783070b66238376d7d00c9ef56b644528ec9b8ed | /index numbering.py | 91fe56dd2b9390cd7b51f9da8d13660917601760 | [] | no_license | muhammed94munshid/code-kata-beginner-2 | 4e2edb88f904e0c221b535f48db890acdcbc22b6 | 948ecfd6a552e5dc8252f6c0068dfbd72b6609d8 | refs/heads/master | 2021-04-29T20:18:08.259392 | 2018-05-24T06:29:54 | 2018-05-24T06:29:54 | 121,594,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | a = [2,1,3,4]
for idx, val in enumerate(a):
print(idx, val)
| [
"noreply@github.com"
] | muhammed94munshid.noreply@github.com |
c397938205740b3cb75505b0afe70b317a4d9e7e | 0b08faea1f02f153815672f9862f734cba9e254e | /netrep/conv_layers.py | 2dc743cdf0cec687cb93f08ff59a801a321c7a4c | [] | no_license | robot-ai-machinelearning/netrep | d3a9003f9652394107696d9a524a2a8ff38cdf93 | 775be8de79e76fb1f0388da55d560808a8f4d50c | refs/heads/main | 2023-04-04T01:15:03.628464 | 2021-04-13T16:24:04 | 2021-04-13T16:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | import numpy as np
import itertools
from netrep.validation import check_equal_shapes
from tqdm import tqdm
def convolve_metric(metric, X, Y):
"""
Computes representation metric between convolutional layers,
convolving activations with boundary conditions.
Parameters
----------
metric : Metric... | [
"alex.h.willia@gmail.com"
] | alex.h.willia@gmail.com |
70ba6e86892477c6ddef73f412d46549962df3c3 | d1319156173d34de58a4e1ad93fbe1d320b47978 | /diabetes_detection/programs/store_v11/controler.py | 17f000a0fbc880684ba5670cc7013c8e7ab8be11 | [] | no_license | mzminhaz5683/early-prediction_of_diabetes_using_ann_and_machine_learning | 545e6cc325f1ab876586a72b2106933230b84d06 | 4a2f7729aff19c2eca497f9a3aabd4facd13cc75 | refs/heads/master | 2023-05-11T21:17:36.552446 | 2023-05-02T12:28:31 | 2023-05-02T12:28:31 | 308,662,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | all = 0 #0/1
####################################################################################################
# file handling
####################################################################################################
file_description = 0 #0/1
save_column_name = 0 #0/1
sav... | [
"mz.minhaz5683@gmail.com"
] | mz.minhaz5683@gmail.com |
417369e8c19b91a7e99753191883b4f726ae0e9c | e95fedca6baf7027593c96bc86f2c2780a41d9d1 | /.history/score_sinko_20200614175203.py | 4f47234de231b111dd0dbb02c007078e2bb7a6a6 | [] | no_license | jeongeonp/SinK-DaT | 1769258b02196b666bcc12e81b4e1ac88e7f2f90 | fd48080b57bc30d9fb62491e06db144ce1f0f4e1 | refs/heads/master | 2023-01-02T19:51:44.534677 | 2020-10-30T09:33:04 | 2020-10-30T09:33:04 | 271,836,598 | 1 | 0 | null | 2020-10-07T07:26:57 | 2020-06-12T15:54:48 | Python | UTF-8 | Python | false | false | 1,972 | py | import nltk, re, pprint
from nltk.tokenize import word_tokenize
from urllib import request
from bs4 import BeautifulSoup
import pickle
ROOT_URL = "http://korlex.pusan.ac.kr/search/WebApplication2/KorLex_SearchPage.aspx"
# def fetch_option_data(symbol, datadate, expiration_date):
# response = requests.get(ROOT_U... | [
"minarainbow@kaist.ac.kr"
] | minarainbow@kaist.ac.kr |
dfe08c9a17f106ce6328a75afa8fd1b37c5400f6 | 72a97182e131ddf1863a9b2fc06e908f3cdcbdba | /python/concurrency/asyn_requests/asynrequests01.py | 148adfe0acfc14772f7aba313566f0cbdd12e589 | [
"MIT"
] | permissive | cuongnb14/cookbook | d07beaf55fec896041451394ba593d6ee8244cbe | e4cadc329ead0780d46f0aa22a421d2c765d1039 | refs/heads/master | 2020-05-21T23:31:44.214451 | 2020-05-01T14:16:58 | 2020-05-01T14:16:58 | 65,518,104 | 0 | 2 | null | 2017-06-21T11:25:32 | 2016-08-12T02:51:17 | Jupyter Notebook | UTF-8 | Python | false | false | 521 | py | from concurrent.futures import ProcessPoolExecutor
from requests import Session
from requests_futures.sessions import FuturesSession
def callback(future):
print(type(future))
response = future.result()
print(response.json()["args"])
session = FuturesSession(executor=ProcessPoolExecutor(max_workers=10),
... | [
"cuongnb14@gmail.com"
] | cuongnb14@gmail.com |
8007a0e1e22c93246d4438e85bedb1bffaa7ac7e | d681e088b554a8697d5d3231173a9c800760780f | /ex021.py | 568b9e02bef01866c96a90acba565bc6b3781d5c | [] | no_license | thiagocosta-dev/Atividades-Python-CursoEmVideo | 0870ef5b0d97dd8d9bc4fe30def66bb8b05c2abf | 4dfeab066ecbe8eb5789965d878db58487e3fdbe | refs/heads/main | 2023-04-15T00:00:15.225495 | 2021-04-10T00:59:07 | 2021-04-10T00:59:07 | 353,154,646 | 0 | 0 | null | 2021-03-31T13:34:01 | 2021-03-30T22:11:57 | Python | UTF-8 | Python | false | false | 241 | py | '''
DESAFIO 021
Faça um programa em Python que abra e reproduza um arquivo mp3.
'''
import pygame
pygame.init()
pygame.mixer.music.load('')
pygame.mixer.music.play()
pygame.event.wait()
''' Não leu o arquivo mp3 corrigir depois
'''
| [
"noreply@github.com"
] | thiagocosta-dev.noreply@github.com |
a1a316fe037f35b388273f7f75c79d3a3a287dde | 01dc7ee49e22bd919952779d3eb4f2796eee7dd7 | /month.py | c2faf965e0c71377f659e730b3405c0406de8438 | [] | no_license | bobbyesh/budget | c2c5a7fa170defc81ef1e53b9cb0e7a8dba0914c | c1e55ecca48701b7a815718194731c42bf165dec | refs/heads/master | 2020-03-13T18:01:29.114820 | 2018-04-30T01:30:16 | 2018-04-30T01:30:16 | 131,228,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | import datetime
import copy
class Month:
def __init__(self, month, year):
self.month = month
self.year = year
self.datetime = datetime.datetime(year, month, 1)
def __str__(self):
return self.datetime.strftime('%b %Y')
def __repr__(self):
return str(self)
def ... | [
"eshleman@pdx.edu"
] | eshleman@pdx.edu |
f41cfc7242aa91f4fa20d4f79abbb7d7c4ca20d2 | bfa3c9a29ce4199dd35e2e8da0877755430506d9 | /DjangoAPI/EmployeeApp/migrations/0001_initial.py | 679e552a2fd5560e91a2d7c55398184884941075 | [] | no_license | ykt27/HR2_Project | 6f46730e8c4022b4fa8d270810297cb492c05519 | 7ed17faaf33f0882d936a025e2df920e539df96c | refs/heads/master | 2023-06-11T02:59:59.864694 | 2021-07-03T15:44:14 | 2021-07-03T15:44:14 | 374,412,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,303 | py | # Generated by Django 3.2 on 2021-06-06 11:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(... | [
"yaredtefera206@gmail.com"
] | yaredtefera206@gmail.com |
9445e355726ba5bcde92702c64a225d414b23225 | bec7ec738d78be94a84d443c2dd2fd86258ed3a7 | /invsolve/__init__.py | 949a4f845c8b70742a3a535391947cf2d8398f5a | [
"MIT"
] | permissive | danassutula/model_parameter_inference | 95070cdbadf24052dc2a873005b7ae9afc8b3ede | 4ee415f181e815085660dfe722bd861c99da0cd9 | refs/heads/master | 2021-08-09T01:07:50.400590 | 2020-07-20T13:44:49 | 2020-07-20T13:44:49 | 204,201,824 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
from . import config
from . import functions
from . import invsolve
from . import measure
from . import project
from . import utility
from .invsolve import InverseSolver
from .invsolve import InverseSolverBasic
# Get configured logger
logger = config.logger
| [
"sutula.danas@gmail.com"
] | sutula.danas@gmail.com |
e1a5d93d5c03eb755c17953e6d16479525e318c3 | 77c190314ed9c4e186c15d18894fea8352da161e | /Pbank/src/model.py | c35314e03a814e4338cf96426b36046c06ab8f23 | [] | no_license | Alleinx/Widget | 9d0d13e4c6aa8b55d13244cce881dd84a1644c95 | 0c115ef94be435e1465ea8366f5128cee7124dc4 | refs/heads/master | 2022-01-18T16:50:37.527926 | 2022-01-08T20:18:36 | 2022-01-08T20:18:36 | 174,493,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,282 | py | import data_util as dao
class Project(object):
'''
abc class, used to define a general interface for Project
'''
def __init__(self, name: str, description: str):
self.name: str = name
self.description: str = description
self._bills: list = []
# use to store a snapshoo... | [
"l630003061@mail.uic.edu.hk"
] | l630003061@mail.uic.edu.hk |
6a03a29e3040057e1b145f4ad72f5afc6f054504 | 680b17844c73ddf165414bfe6678131d0830ca7c | /Processing/Sketches/Noise_2D/Noise_2D.pyde | 7da8b6eb0ac5ee632327801154611005fe07dae7 | [] | no_license | vishangshah/Archive | a5a3ad66a9e34aba4289b59da927cc7773bf3cc1 | e871e76a5011b88dff03b5c62753237d5a90ac5d | refs/heads/master | 2020-03-19T22:42:03.208521 | 2018-06-11T21:04:16 | 2018-06-11T21:04:16 | 136,978,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | pyde |
# Nature of Code
# 2D Perlin Noise
x = 0
y = 0
xoff = 0.0
yoff = 0.0
size(600,600)
loadPixels()
for x in range(0, width):
yoff = 0.0
for y in range(0, height):
bright = float(map(noise(xoff, yoff), 0, 1, 0, 255))
pixels[x+y * width] = color(bright)
yoff += 0.01
... | [
"noreply@github.com"
] | vishangshah.noreply@github.com |
77bb596361645a9ae90378e7bb3ae955df9e48b5 | f38180bcf74d794b31ad100d07564986a41cff87 | /src_layout/src/mypackage/subpackage_a/__init__.py | d9a8c258fae0cb7d4e61fb285af8c0a9f8979c55 | [] | no_license | willprice/pytest-coverage-examples | 51a4ba3daabf8c7426dee2b6a92ea8e8669e46bf | ae591f2017fa8dd9807a93d393db170526d262de | refs/heads/master | 2020-04-14T22:24:32.406073 | 2019-01-05T09:22:21 | 2019-01-05T09:22:21 | 164,161,342 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from .module_a import a
| [
"will.price94@gmail.com"
] | will.price94@gmail.com |
3694520e27f74361826be8a154921b0637dab620 | 6c59dc1951eb099ee8228d813b3ceba9125af7a4 | /sources/train_light2.py | 624c5dfc204ef6e51ae0de94f4e46abf6dc293e5 | [] | no_license | alxshine/notice_me_senpai | 09e524343d7a2a7d8dca6c07e918a054d5fadee3 | 70ee3b4f1139efffef8e4b1792a5896fd65fc6ad | refs/heads/master | 2021-09-10T03:05:09.544088 | 2018-03-20T20:54:49 | 2018-03-20T20:54:49 | 115,210,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,671 | py | import sys
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
def weighted_loss(logits, labels, num_classes, head=None):
with tf.name_scope('loss_1'):
logits = tf.reshape(logits, (-1, num_classes))
epsilon = tf.constant(value=1e-10)
logits = logits + epsilon
... | [
"stephanie.autherith@student.uibk.ac.at"
] | stephanie.autherith@student.uibk.ac.at |
a83a2734bba442edff8190aaf67269d44ff2bc71 | 55887401e4bb082dcc40bed7e585cd10adf1b37e | /ugv/script/move_circle_server.py | 90c962744ed153ef540f426c88ebebd5fd324ad0 | [] | no_license | ajay2810/ugv | b2f7fa7078aa3c81f4e53a3ca99d066ce6256557 | 1809e93459cea97b8db181b66ac3c58d5a410a9b | refs/heads/master | 2020-12-14T01:26:14.865780 | 2020-01-17T16:48:57 | 2020-01-17T16:48:57 | 234,591,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
import rospy
from ugv.srv import *
from geometry_msgs.msg import Twist
PI = 3.1415926535897
def handle_move_circle(req):
pub = rospy.Publisher('/cmd_vel',Twist, queue_size = 10)
vel_msg = Twist()
speed = req.s
radius = req.r
vel_msg.linear.x = speed
vel_msg.linear.y = 0
vel_msg.linear.z... | [
"noreply@github.com"
] | ajay2810.noreply@github.com |
c467c50821869c7e41b81df3df09888967cfbd6d | 3938fb52e6150ab9a7c04081f01b4dc93d892ba5 | /projectTeam/services/teamservice.py | bc9b95914abdb0ae3bb2a86e1f6406cf01d405b1 | [] | no_license | flsyaoair/guiren | 7675bfc897fb4ebdcccb6e31568cdaa8fd51847e | 1910be9b359f07538fb54e7849cdd039bad4a0da | refs/heads/master | 2016-09-06T05:26:43.722215 | 2015-05-10T08:13:07 | 2015-05-10T08:13:07 | 31,943,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # -*- coding: UTF-8 -*-
from projectTeam.models import UserProfile,database
from projectTeam.models.userprofile import UserStatus
from sqlalchemy.sql.elements import not_
from projectTeam.models.member import Member
from projectTeam.services import userservice, projectservice, mailservice
from projectTeam.powe... | [
"fls@csst.com"
] | fls@csst.com |
aa7c961a91809ac1640e616e5b27f0c73d8d214b | e16dd8206e51f9952877d2bb83d8893adb239e65 | /example/pcf8591_temp_5v.py | 84ce6e26c6508c7e0e763ac4bc57403b28cbde30 | [] | no_license | devdio/raspi-example | 20bbccd6ccbdd83773d1b143b238dccb57f8482d | f6fde3c29fc7907c7f8b6b2179fae8b109374088 | refs/heads/master | 2020-04-16T18:14:52.875695 | 2019-01-16T06:55:29 | 2019-01-16T06:55:29 | 165,810,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
import smbus
import time
address = 0x48
A0 = 0x40
A1 = 0x41
A2 = 0x42
A3 = 0x43
bus = smbus.SMBus(1)
while True:
bus.write_byte(address,A0)
value = bus.read_byte(address)
aout = value*3.3/255
#5v
aout = aout*2
print("AOUT:%1.3f TEMP:%d" %(aout, aout*100))
time.slee... | [
"iamtopaz@gmail.com"
] | iamtopaz@gmail.com |
b836fb5c5bb4a87dec7cd18c8caddcd9b08b5d1c | 1fb2c8ccfee70d141924c9b77cf98e46af2e5112 | /desktop/core/ext-py/cx_Oracle-6.4.1/samples/PLSQLCollection.py | 97ebdfdeb3f991d92709091257db7232e1f5ca51 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | criteo-forks/hue | bcfa215e654c72eb4bd0a40bfbddcd63b51d30cd | 752b305d2f336974a2e5c2294f146e338fdd3edf | refs/heads/release-4.11.0-criteo | 2023-09-01T11:53:48.372630 | 2023-08-09T14:55:05 | 2023-08-09T14:55:05 | 170,473,946 | 2 | 6 | Apache-2.0 | 2023-09-07T08:32:40 | 2019-02-13T08:54:33 | Python | UTF-8 | Python | false | false | 1,367 | py | #------------------------------------------------------------------------------
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# PL... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
e7010eb0ec3612d5ff2545497bc07acfc5f826a8 | acb232098753214ccee894e5dc909c3f9075aa1b | /Back_end(Python,SQL)/src/main/execution.py | 62485f6bc254cdf134619283d9668ebbbb5912a9 | [] | no_license | Balaji4397/Singlestop-Application | f26146526d21b9ba350220421e2f5d81e8b4dc6f | c544d799ecb7c27474e17781497533de23a71819 | refs/heads/main | 2022-12-24T09:26:13.805138 | 2020-10-07T08:46:44 | 2020-10-07T08:46:44 | 301,973,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # import sys,os.path
# sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__)),'main'))
from connection import connect_DB
class execution(connect_DB):
def __init__(self):
"""Establish database connection"""
super().__init__()
self.mycursor = self.conn.cursor()
... | [
"balaji.a.arunachalam@accenture.com"
] | balaji.a.arunachalam@accenture.com |
648b292243859193447a8ccb29d8118e0b264689 | 187634d7ab397c584f99644dadcae0c6022208f1 | /Daphne/word2vec-nlp-tutorial/main/CNN.py | 18f78bd38ca6f9371186c14f4f5dbc5a0a4c8bb7 | [] | no_license | jguti21/Kaggle | 3fbecbc57b32366132cb063d41c8041e9b91ea30 | 7762c0709382fbd1fb8771278be550b5a4d54496 | refs/heads/master | 2021-08-10T11:39:18.117542 | 2020-08-12T14:48:32 | 2020-08-12T14:48:32 | 211,645,658 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,727 | py | import os
os.chdir("C:/Users/daphn/Documents/Kaggle/word2vec-nlp-tutorial")
import pandas as pd
train = pd.read_csv("data/labeledTrainData.tsv", header=0,
delimiter="\t", quoting=3)
# Add the extra data
extra = pd.read_csv('data/extradata.csv',
encoding="latin-1")
extra = extra... | [
"daphne.aurouet@gmail.com"
] | daphne.aurouet@gmail.com |
848ffc2a07ccec2f5c3ea110fe29732f4cf1c6d6 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/abc/abc_abstractproperty_rw_deco.py | 03ad06129d6e94565992e68b63a5f0ee11503bc5 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
import abc
class Base(object):
__metaclass__ = abc.ABCMeta
@abc.abstractproperty
def value(self):
return 'Should never see this'
@value.setter
def value(self, newvalue):
return
class Implementation(Base):
_value = 'Default value'
@property
... | [
"350840291@qq.com"
] | 350840291@qq.com |
de4adada837f7a051656dc8fa8d52f87ebd17d35 | c8d4e73901ed6ae6670d94d0c4d3c4f828a1293b | /venv/Scripts/qiniupy-script.py | b923ca076bbcaa68571e68f79336fe2773763d74 | [] | no_license | a2395299624/danibbs | c43591eae06ea3314c9e1a8c10de8ca4229dff4c | 28150f67bc9c801bdd57ac531d1bc12df58f736a | refs/heads/master | 2022-07-19T04:10:31.576997 | 2020-05-15T16:34:06 | 2020-05-15T16:34:06 | 264,239,758 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 415 | py | #!F:\Á·Ï°ÏîÄ¿\BSSÂÛ̳\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'qiniu==7.2.8','console_scripts','qiniupy'
__requires__ = 'qiniu==7.2.8'
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.ex... | [
"2395299624@qq.com"
] | 2395299624@qq.com |
c70efa89b88a7dbf20fe99858b4f08ca22d415c5 | 8e7a2b9efbc0d25111f01f4cddb781961032685a | /python-1025/spider/20180122/program/count_words.py | e525a169b86df878f815e31a52019faf1ddbbc5a | [] | no_license | Dituohgasirre/python | e044aa2e1fb2233b6ccd59701b834ab01e4e24c2 | 05f036d2723f75cd89e4412aaed7ee0ba5d3a502 | refs/heads/master | 2023-06-03T13:50:18.641433 | 2021-06-17T10:23:40 | 2021-06-17T10:23:40 | 366,942,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # 二十一、从wikipedia.org 获取Unix的解释页面,按以下要求写一个脚本
#
# 计算出该页面中出现次数最多的10个英文单词,写成一个脚本
import re
import requests
def count_words(words):
res = {}
for word in words:
res[word] = res.get(word, 0) + 1
return res
def sort_words(words_count):
return sorted(words_count.items(), key=lambda x: x[1], reverse=... | [
"linfeiji4729289@126.com"
] | linfeiji4729289@126.com |
7fefe4623630146e254d408deef9f9690a88617d | f99523da17e00531464dd7a1f9ebeee5230b31b4 | /src/custom_range.py | e8df421062d69259de2e7293ae48adfcf7c28b02 | [] | no_license | wazeem27/learn_python | 7d5e579847c5f0244607ef87d7b9c00ac5a43eee | 504117c5e31fdc3a607ba03a06cf56ae78cb42ec | refs/heads/master | 2021-03-21T01:06:04.618871 | 2020-05-20T09:15:35 | 2020-05-20T09:15:35 | 247,250,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """Custom range"""
class MyRange:
def __init__(self, start, end, step=1):
self.value = start
self.start = start
self.end = end
self.step = step
self._ok = True
self.__validate()
def __iter__(self):
return self
def __next__(self):
if se... | [
"wazeem27@gmail.com"
] | wazeem27@gmail.com |
6f8859acb994cee06b7008118063b2ab54d7fa3d | 1875c16dee46ab528b5a227c09c5743d8d10e982 | /pyacs/gts/Sgts_methods/frame.py | d8e1a7be230a456908093ee78436d63313befd75 | [] | no_license | CorentinPeutin/pyacs | 56a8d2b3941bb7f921c447167c40d89157a502ed | c82aecd2c95a5d635170ed6750131cb49e28e570 | refs/heads/main | 2023-04-16T13:41:53.042830 | 2021-05-03T14:56:28 | 2021-05-03T14:56:28 | 363,963,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | ###################################################################
def frame(self,frame=None,euler=None,w=None,verbose=False):
###################################################################
"""
Rotates the time series according to an Euler pole.
User must provide either frame, euler or w.
... | [
"noreply@github.com"
] | CorentinPeutin.noreply@github.com |
89951f9437e4b2416e6850b4e761b90f18b32759 | b4afa58299ceea4e46cb212634638b0bced1f3cb | /python_data.py | 3d9a2e813c859995dc0792348c7d71e785585c78 | [] | no_license | uncleguanghui/tesla_route_planning | 17bceb4df9c770d8e2e7f533817b26bc91b50056 | a29fd82bff836719c35030df32a9225cc76dfe32 | refs/heads/master | 2022-10-31T18:46:27.764787 | 2020-06-15T02:00:38 | 2020-06-15T02:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,993 | py | locations = [
["Albany_NY", 42.710356, -73.819109, 131.0],["Edison_NJ", 40.544595, -74.334113, 159.0],["Dayton_OH", 39.858702, -84.277027, 133.0],["Boise_ID", 43.592251, -116.27942, 143.0],["Lumberton_NC", 34.667629, -79.002343, 105.0],["Albuquerque_NM", 35.108486, -106.612804, 175.0],["Newark_DE", 39.662265, -75.69202... | [
"cpd@Chinmays-MBP.fios-router.home"
] | cpd@Chinmays-MBP.fios-router.home |
f7bb7ab366a5e55809506a53c69ce6a612561a69 | 540c4a2efb0c5f5f59df4b8a94c7f30dd8f4a53d | /example2.py | ec7203d8b408777c42c3b025fa2f6fb46cff57d1 | [
"MIT"
] | permissive | salisu14/learn-python-programming | 797ea3ab79530602b90f861bcab6988c779c5172 | a1d3d8206850199d8fab1321a432bd3f1fc0a6a1 | refs/heads/main | 2023-04-03T22:21:50.522192 | 2021-04-19T14:25:25 | 2021-04-19T14:25:25 | 359,467,267 | 2 | 0 | MIT | 2021-04-19T13:20:35 | 2021-04-19T13:20:35 | null | UTF-8 | Python | false | false | 1,275 | py | #!bin/usr/env python3
def fBank(bvn, bankName):
f = bankName.pop(0)
print(f'{f} BVN')
print(bvn)
def accBank(bvn, bankName):
a = bankName.pop(1)
print(f'{a} BVN')
print(bvn)
def gtBank(bvn, bankName):
g = bankName.pop(2)
print(f'{g} BVN')
print(bvn)
def zBank(bvn, bankName):
... | [
"ibrahimsafiyan@yahoo.com"
] | ibrahimsafiyan@yahoo.com |
57cc0303090d481fbda65739352c2411e2351acf | 0473e3da4a0eeabbc9832fc5ca622b45ea5bbea4 | /teste_2.py | 141e0daa2be4007dad0e548a0c6f324dba97a15e | [] | no_license | diegojsk/MAP3121-Numerico-EP1-2019 | e5228baae9650ce46f94c561d5857bcf4f945e50 | 58cff9508b6c52febf4ca2ca51cd00121b2a7b01 | refs/heads/master | 2022-08-31T13:55:16.605436 | 2022-07-23T21:36:14 | 2022-07-23T21:36:14 | 183,908,832 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from main import resolver_sist
import numpy as np
A = np.array([[3/10, 3/5, 0],
[1/2, 0, 1],
[4/10, 4/5, 0]])
W = np.array([[3/5, 0],
[0, 1],
[4/5, 0]])
H = np.array([[1/2, 1, 0],
[1/2, 0, 1]])
np.set_printoptions(precision=3, suppress=True)
... | [
"felipegmelo@usp.br"
] | felipegmelo@usp.br |
f32275c28250460f83bc6676890ce5333979af5a | 7c148402e01212b59540568a9767607c13ec891d | /pages/chat_page.py | 2209d2713d2ddaac2e3ebb8fad855a1c5aa64337 | [] | no_license | timbortnik/behave_web | 63994c7e8855fa1efddbd7204615330aaf3ee3de | d9133d57d4142e1a5247d0d380539949a16fe53d | refs/heads/master | 2021-01-18T18:26:03.566837 | 2018-03-06T12:09:37 | 2018-03-06T12:09:37 | 41,996,054 | 3 | 5 | null | 2018-03-06T12:09:38 | 2015-09-06T09:05:42 | Python | UTF-8 | Python | false | false | 1,455 | py | # -*- coding: UTF-8 -*-
from .base_page import Page
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import os
import random
class ChatPage(Page):
"""
Chat page
"""
url = '/chat'
unique_n... | [
"noreply@github.com"
] | timbortnik.noreply@github.com |
0692580528c7b459ca232a659b3932db1c8dd6ed | ead0ab89d5c54695d747245812d239aac73c5861 | /extractEntities.py | 2d806249fedbf8c1fd0389edeca5a4b7b7a8d89c | [
"Apache-2.0"
] | permissive | dtu-02819-projects-fall2014/02819 | 8ec506b4a2525e83eabaddcc257894c1ad2b624b | 871eea7cd059b0b9d01290c05046741d5c8f5399 | refs/heads/master | 2021-01-15T09:04:01.201050 | 2014-11-30T23:31:27 | 2014-11-30T23:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | # -*- coding: utf-8 -*-
"""
Module for gathering papers entities from WikiLit and storing them to DB
for later processing.
"""
from gensim import corpora, models
from urllib import urlopen
import csv
import nltk.corpus
import mongo_db
def extract_entities():
"""Reads the webpage, extracts paper entities as a lis... | [
"psyllost@gmail.com"
] | psyllost@gmail.com |
276ad906e5d0cc17b394f8c5b51dd12e5735ddab | 25f2cf8702238374f7ddcc2dbedc072f34eafe0b | /week1/practicial1/problem4.py | c77e12c339fd2a968f4d0a1f91ae2572ec5650ff | [] | no_license | tigranmovsisyan123/introtopython | 40c53e649341173651e6139cca6c3b59d495eceb | e7a03036834aea76aa92ab9daa6e162a4b88e075 | refs/heads/master | 2020-08-26T16:13:48.260647 | 2019-12-14T12:18:17 | 2019-12-14T12:18:17 | 216,320,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | #Problem 4
ab=3
ac=4
bc=(ab**2 + ac**2)**0.5
print("the hypotenuse of triagnle abc =",bc) | [
"arm27102@mail.ru"
] | arm27102@mail.ru |
e16bb6db37f6de30ff19ed00ae5f7977cf184ca5 | 4138aa9600dbf1e3294fdae9171c40be1e4a3435 | /utils/box_utils.py | 1d25675139d8ea162c38fd3d18ee5a4776f3dd41 | [
"Apache-2.0"
] | permissive | jtpils/single-network-panoptic-segmentation | 5b1c5a9bfcc673ce8b3e56c18f5727d303764550 | 891f13b8bca0f41e298900fe1c73bc3035caef5d | refs/heads/master | 2020-12-01T22:05:36.768028 | 2019-06-07T13:56:17 | 2019-06-07T13:56:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,289 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"d.c.d.geus@student.tue.nl"
] | d.c.d.geus@student.tue.nl |
9d9569b8ca91fd527549be789e0a61897ebfbf90 | a3ce3c594ee51a6fc8b58bf92337cba136d145d9 | /hetero_teleop_twist/teleop_twist_keyboard.py | 51b6b1fd164c68a5bbb945773127765ee70c07b3 | [] | no_license | MonsterMaster007/hetero-system | be09f976280a6fdcd6be34d9e65122ff00b927a6 | 2b11142b7918da33b02327ef9161c8588a8e1a91 | refs/heads/master | 2022-11-17T12:48:47.037264 | 2020-07-21T13:29:09 | 2020-07-21T13:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,898 | py | #!/usr/bin/env python
from __future__ import print_function
import threading
import roslib; roslib.load_manifest('teleop_twist_keyboard')
import rospy
from geometry_msgs.msg import Twist
import sys, select, termios, tty
msg = """
Reading from the keyboard and Publishing to Twist!
---------------------------
Movi... | [
"zhijun_lyu@163.com"
] | zhijun_lyu@163.com |
f7f9bb59e970cedcf8c9e2df930779fa407845fb | dee1c7a882cc64e300079c5936ae24a9f0c00883 | /safer.py | c384ed737ab140f33d38d1535945a9b32dfbf19e | [
"MIT"
] | permissive | jayd2446/safer | a33460c425056fad5e0681ba0c28328465a47c95 | 7d641741c87fce24e489daed5e3ca045d313d01a | refs/heads/master | 2022-04-21T07:06:14.152109 | 2020-04-19T17:19:02 | 2020-04-19T17:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | # -*- coding: utf-8 -*-
"""
✏️safer: a safer file writer ✏️
-------------------------------
No more partial writes or corruption! ``safer`` writes a whole file or
nothing.
``safer.writer()`` and ``safer.printer()`` are context managers that open a
file for writing or printing: if an Exception is raised, then the orig... | [
"tom@swirly.com"
] | tom@swirly.com |
766117b27177f267b4fa4d5a9383a0ba83bfff65 | cbf044cc969826c544e413943c37408ec913c3f7 | /game.py | eaa455b8556e8cae752abc32c7cff55d882de9a0 | [] | no_license | jessapp/guessing-game | ed30ee55173d26e4237fbe73afae5694d9d06c1a | 18ca2068a6f9bf6a1eb7cbd178e8d73b05e608fb | refs/heads/master | 2021-04-29T02:48:33.439288 | 2017-01-03T23:49:12 | 2017-01-03T23:49:12 | 78,051,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # Put your code here
from random import randint
print "Hello! What's your name?"
name = raw_input("> ")
play_again = True
best_score = 100
while play_again == True:
number = randint(1, 100)
print "%s, I'm thinking of a number between 1 and 100. \nTry to guess my number." % (name)
num_guesses = 0
... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
59b097fed4b070a9ac55dd082bbc48b565900828 | ceb5a20968cc5698ae5c49b18fa881511219553b | /net.py | 77ada951333c57a5696822cc3ed7b64ce0251cf1 | [] | no_license | teju85/capsnet | 37d7d48c1f808d612f657085203cfe0025dcd2f3 | 49d242eb3358d18bd5959cda13fd89f7624eb1a2 | refs/heads/master | 2021-01-24T02:34:43.731878 | 2018-04-27T16:24:32 | 2018-04-27T16:24:32 | 122,854,433 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,588 | py | #!/usr/bin/env python
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torchvision.datasets import MNIST, CIFAR10
from torchvision.transforms import ToTensor
from torch.autograd import Variable
from torch.autograd impor... | [
"rao.thejaswi@gmail.com"
] | rao.thejaswi@gmail.com |
3fb08eaf53531d5b3136f276a073e1ebba731c66 | b38dea8822f021824be40412c2a54794afc877d7 | /tests/test_collection_manager.py | 99d0e6b586fd58de15e5131ecda5a8d8bad54f9a | [] | no_license | alixaxel/kvlite | 1f47679a61406d55d779d78ffa1d10d330adc20d | 400ea9c6813d6a70f848147c669d2e9bb02002c1 | refs/heads/master | 2021-01-18T08:47:18.230763 | 2013-04-21T06:54:10 | 2013-04-21T06:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | import sys
if '' not in sys.path:
sys.path.append('')
import unittest
from kvlite import CollectionManager
class KvliteCollectionManagerTests(unittest.TestCase):
def test_wrong_uri(self):
URI = None
self.assertRaises(RuntimeError, CollectionManager, URI)
def test_mysql_manager(... | [
"ownport@gmail.com"
] | ownport@gmail.com |
3e57601ccc89b25441772e567a75e48ff6bea6dd | 615b3d65acdcebe557b2b03ca1b661db40bffcdd | /TitanicBinaryClassifier.py | d8a50fa7acb232a57b48851f4e1a65e00255601d | [
"MIT"
] | permissive | psengupta1973/MachineLearning_py | c210a3cae70a5a7aef184a73d48d43b8640dcb56 | 98dfda55693353e641ed150b66fcab8170593c8b | refs/heads/master | 2020-03-23T18:10:39.515883 | 2018-12-06T09:17:32 | 2018-12-06T09:17:32 | 141,893,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,189 | py | # Using Logistic Regression for binary classification of Titanic passengers in categories of Survived (1) or not (0)
# based on input features e.g. Pclass,Sex,Age,SibSp,Parch,Fare,Cabin and Embarked etc.
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import warnings
warnings.filterwarni... | [
"noreply@github.com"
] | psengupta1973.noreply@github.com |
327f38630fcf0d0b156f9b662c837293bff9d49b | 0d49e8bfc6cf4bd390b5aa3103d6cb780305a09a | /analysis.py | 64c35320313fa5be3df7653887216f217c40e772 | [] | no_license | djlee9812/basketball-shot | 6b5faec6288194a9c587cf99804dee445910e227 | 7ae26b14be7ce0353c955fc3830e73b888815c83 | refs/heads/master | 2022-09-22T23:48:54.591415 | 2020-06-07T03:18:02 | 2020-06-07T03:18:02 | 266,488,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle, Circle
from mpl_toolkits.mplot3d import Axes3D
import mpl_toolkits.mplot3d.art3d as art3d
from multiprocessing import Pool
from simulate import Ball
from multiprocessing import Pool
import time
import os
plt.style.use('seaborn'... | [
"dongjoon.wow@gmail.com"
] | dongjoon.wow@gmail.com |
5d0a3052244721daea9285d697ee1ef8a39f1b90 | dd792d3b72583eb87b713049e60e281a4185a3ba | /models/docker/eDN/model/run_model.py | 19f73d3bd0fd3e24ed285b2ae97a325749743daf | [
"MIT"
] | permissive | TsotsosLab/SMILER | 59b9c3f5b7a7d9109924d4bce6d3edb5d03222e8 | 427ce783a4477db550dd8fe064a38e3b71db346e | refs/heads/master | 2023-07-22T18:39:26.495739 | 2022-11-25T21:35:07 | 2022-11-25T21:35:07 | 162,616,795 | 41 | 19 | NOASSERTION | 2023-07-06T21:37:59 | 2018-12-20T18:32:31 | MATLAB | UTF-8 | Python | false | false | 1,465 | py | #!/usr/bin/env python
import os
import pickle
import numpy as np
from scipy import misc, ndimage
from eDNSalModel import EDNSaliencyModel
from liblinearutil import load_model
from smiler_tools.runner import run_model
os.environ['GLOG_minloglevel'] = '3' # Suppress logging.
if __name__ == "__main__":
desc_fil... | [
"tkunic@rocketmail.com"
] | tkunic@rocketmail.com |
0029f4576ea567e6e2b893539535522728b4bab9 | f3c09c5059ae7f228dc07e64dbc256c290a65bcf | /backend/src/lectures/models.py | 425c7925c215729fb042ba620f3760bc96c3e2cb | [] | no_license | Rados13/Hall-of-Fame | a1005295d2c846fc6a7a6c61efc0abc455db0617 | 41ae774fa80311fde152a6b9e6b0675690ac7b3e | refs/heads/master | 2023-01-12T20:56:31.453275 | 2021-02-04T08:27:49 | 2021-02-04T08:27:49 | 246,289,430 | 1 | 1 | null | 2023-01-05T19:38:42 | 2020-03-10T12:01:50 | Python | UTF-8 | Python | false | false | 681 | py | from HallOfFame.settings import AUTH_USER_MODEL
from djongo import models
from django import forms
class Lecture(models.Model):
lecture = models.ForeignKey(AUTH_USER_MODEL, models.PROTECT, blank=False, null=False)
main_lecture = models.BooleanField(default=True)
objects = models.DjongoManager()
# def... | [
"radoslawszuma@gmail.com"
] | radoslawszuma@gmail.com |
e27582701ca561e08b0957f378b19cb2d02a55b7 | 4167af383bd1f8bc7807435d0f877027e21015e2 | /OnlineShopping/design/models.py | e14077342e47cba1fe6d6250350887c66df0aab3 | [] | no_license | papry/shop | 1bfa15dd6455b9d474e263661d58016da2d3e0c8 | e009025bbbb2d5a12526f807e37bedbcc384e79d | refs/heads/master | 2020-06-16T11:42:49.421777 | 2019-07-11T17:12:37 | 2019-07-11T17:12:37 | 195,559,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from django.db import models
from django.db import models
class category(models.Model):
Category_name=models.CharField(max_length=250,default="")
class Supplier(models.Model):
Supplier_name = models.CharField(max_length=250, default="")
Address = models.CharField(max_length=250, default="")
Phone_no ... | [
"52271203+papry@users.noreply.github.com"
] | 52271203+papry@users.noreply.github.com |
d4d2e535b3c074389af1df2de93a66c43c2933d7 | 7eed34bb9d3054cec1135f07caf5ba3b9098b177 | /logging/LogWithWarning.py | 6e37221d99c35dcb38dc25da5178558b8ff34aad | [] | no_license | Rocia/Learning-python | 108ede736e245d427c8c09e8a9c258356d876c50 | 46985466130b62a4c8df0fa61a3e7e91bd370d48 | refs/heads/master | 2020-12-30T22:36:03.705676 | 2018-10-30T01:37:42 | 2018-10-30T01:37:42 | 80,645,173 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import logging
import sys
LEVELS = {'debug': logging.DEBUG,
'info': logging.INFO,
'warning': logging.WARNING,
'error': logging.ERROR,
'critical': logging.CRITICAL}
if len(sys.argv) > 1:
level_name = sys.argv[1]
level = LEVELS.get(level_name, logging.NOTSET)
logging.... | [
"rocia.fernandes@gmail.com"
] | rocia.fernandes@gmail.com |
c26461e3c73ec95c419007538058e74fa9a1bb53 | 7f59e2c4e771c19378e9839406c220d3985e7efe | /python-daemon/marvin_python_daemon/management/engine.py | 799c3a1fd75de86cf7a48aab538f9e000281cd6c | [
"Apache-2.0"
] | permissive | apache/incubator-marvin | c6ff32d50eb01ccd84266587d79f562a9e371496 | 58fdccf2e677041a13966ddbdd96d484edf3b474 | refs/heads/develop | 2023-08-30T12:46:56.973102 | 2022-11-18T15:27:52 | 2022-11-18T15:27:52 | 148,087,939 | 112 | 77 | Apache-2.0 | 2023-03-07T05:45:59 | 2018-09-10T02:27:54 | Jupyter Notebook | UTF-8 | Python | false | false | 8,874 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright [2020] [Apache Software Foundation]
#
# 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
#
# Unl... | [
"cardosolucas61.lcs@gmail.com"
] | cardosolucas61.lcs@gmail.com |
a1c9c5f9f613b30cfd954f6e409d7d177b5624dc | fb9430533beaac089c86643978aba2b9a3520940 | /api/scrapy/migrations/0004_auto_20190620_2004.py | 5865e4ae284344a713011aec7ca67c167bafa19e | [] | no_license | danielaguiladev/sistemasDistribuidos | 3eaf0209192ba2c7e5b4f7afac596dd51d81408b | b5bd2d285f74f263a18ca764ed1afbdc54e77474 | refs/heads/master | 2022-12-10T10:52:26.103099 | 2019-06-23T20:47:16 | 2019-06-23T20:47:16 | 188,890,763 | 0 | 0 | null | 2022-09-23T22:24:32 | 2019-05-27T18:21:49 | Python | UTF-8 | Python | false | false | 379 | py | # Generated by Django 2.1.9 on 2019-06-20 20:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scrapy', '0003_pagina_rank'),
]
operations = [
migrations.AlterField(
model_name='pagina',
name='titulo',
... | [
"sandro.oliveira@hotmart.com"
] | sandro.oliveira@hotmart.com |
63458ff3643479aa3802996a82f4d552211d7544 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /500. Keyboard Row.py | f6a10f1aceaf75210657ff71c086096061726f32 | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | def sol (words) :
rows = ['qwertyuiop','asdfghjkl','zxcvbnm']
op = []
for i in words :
curWord = i.lower()
for curRow in rows :
# print(curWord,curRow)
isAns = True
for curChr in curWord :
# print(curChr,end= ' ')
if curChr ... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
c5520f29f722d2f60680f169174492076f580824 | 898eb5f4d2511901e4a8db27ef2940f92033f065 | /1/mass_sanity.py | 90a51acf25bce15d5911e1750ce01c33ea4fb1f8 | [
"MIT"
] | permissive | Migelo/mpa_garching | b4e15a824be1a13c247848e0d73439ee2d599470 | 86d0eacb7ae4bbf0f382002d94610f799dd73b62 | refs/heads/master | 2023-07-25T15:39:34.985620 | 2023-07-18T14:14:50 | 2023-07-18T14:14:50 | 95,018,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import numpy as np
import matplotlib.pyplot as plt
import pygad as pg
from scipy import stats
import glob
from multiprocessing import Pool
import utils
s, h, g = pg.prepare_zoom('/ptmp/mpa/naab/REFINED/M1196/SF_X/4x-2phase/out/snap_M1196_4x_470', gas_trace='/u/mihac/data/M1196/4x-2phase/gastrace_disc', star_form=None)... | [
"miha@filetki.si"
] | miha@filetki.si |
96e37625042374b17555deb0b7701d1fb33ae61a | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_sdk/public/platform-tools/systrace/catapult/common/py_utils/py_utils/refactor/__init__.py | 9ba7aafe94dcee9e282650b09f8042e0de2c7d04 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 134 | py | ../../../../../../../../../../../.cipd/pkgs/82/_current/platform-tools/systrace/catapult/common/py_utils/py_utils/refactor/__init__.py | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
fa37911eb19ad739ecb1ecc4d559184d9b828cb4 | 3de5038f4998c493a1f5cc058fb359c36c019936 | /Test/SQL.py | 2f11a97d95b751fc16a5de9c3225ce5f2dd6d58d | [] | no_license | vivek-gour/MyProjects | 880158d7c5ca040c41e5e565f082b64b66d4dbba | e3106b09cf9b27672c2ca212c4ce014beac4585b | refs/heads/master | 2021-05-29T16:57:33.453304 | 2015-09-07T06:25:03 | 2015-09-07T06:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | __author__ = 'vivek.gour'
import pymssql
conn = pymssql.connect(server='175.41.138.226:3784', user='CEVA_READER', password='fe3A7deF4889a', database='live_billingrating', as_dict=True)
cursor = conn.cursor()
cursor.execute("Select top 10 * from invoicebilling")
row = cursor.fetchone()
while row:
print "Invoice... | [
"vivek.gour@searce.com"
] | vivek.gour@searce.com |
5a39ecc8039d63fdab59f78bc1b8d36960daf619 | e066cb735cb7bcfa539999b8451f9015659a4926 | /Mobile Embedded/Source_code/camera.py | 0d7eea1b421973760bb501e8e301cdad2035614a | [] | no_license | DazhiLi-hub/Dazhi-Project | 4eef060f1d08278c7fec74dc2b9f773fbee75308 | 68f191832384dfb8e7b5b2a23d186c1d5956dc28 | refs/heads/master | 2023-07-19T08:41:02.785586 | 2021-09-08T07:46:39 | 2021-09-08T07:46:39 | 240,947,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | from Tkinter import *
import time
from picamera import PiCamera
from picamera.array import PiRGBArray
import cv2
from PIL import Image,ImageTk
def camera_setup():
camera=PiCamera()
camera.resolution=(640,480)
camera.framerate=30
rawCapture=PiRGBArray(camera,size=(640,480))
time.sleep(0.1)
'''
for f... | [
"61103944+DazhiLi-hub@users.noreply.github.com"
] | 61103944+DazhiLi-hub@users.noreply.github.com |
b6ed7de6e924c9d26f8715f9c246bbccdd0fbd09 | 6ff85b80c6fe1b3ad5416a304b93551a5e80de10 | /Python/Algorithm/LoopExit.py | 0a1375af2ad8e2890c7bd7c2d0fc4444e93de2e4 | [
"MIT"
] | permissive | maniero/SOpt | c600cc2333e0a47ce013be3516bbb8080502ff2a | 5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3 | refs/heads/master | 2023-08-10T16:48:46.058739 | 2023-08-10T13:42:17 | 2023-08-10T13:42:17 | 78,631,930 | 1,002 | 136 | MIT | 2023-01-28T12:10:01 | 2017-01-11T11:19:24 | C# | UTF-8 | Python | false | false | 190 | py | cont = 0
n = 0
total = 0
while True:
n = int(input("Digite 999 para parar"))
if n == 999: break
cont += 1
total += n
print(total)
#https://pt.stackoverflow.com/q/350241/101
| [
"noreply@github.com"
] | maniero.noreply@github.com |
e839214c1b0de2c25b6aa79840b0d97e371c5ea9 | 765831c8fd7599ec55e445a29effef4520e082e2 | /store/migrations/0001_initial.py | 46626fddd80734d5750e9ab81980a9b32f9ed12d | [] | no_license | naborit/coviessentials | 4f0b2e850febe2fcee5d8eece0eb19c5b0a41301 | 98bbd0de26d4840bdbe44f462b2f614965029d82 | refs/heads/master | 2023-06-18T22:49:05.161911 | 2021-07-24T17:38:47 | 2021-07-24T17:38:47 | 389,159,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Generated by Django 3.2.4 on 2021-06-20 09:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', m... | [
"naboritdutta007@gmail.com"
] | naboritdutta007@gmail.com |
a60d2141b736e4debbe112d48f950d21a12ece63 | 011b1f69d6d4b6cd6a837da9b35d85f09fcc3b9c | /build/catkin_generated/order_packages.py | 8cb9af5fb6790b1365684594a35668d4dccba209 | [] | no_license | Young-Geo/Car | 53b6494aee3959588aa0222e27d9abbd40889d81 | 2cdfc8b5c92a9767a96980d209af92f3f877071e | refs/heads/master | 2021-09-04T00:27:46.027369 | 2018-01-13T08:38:13 | 2018-01-13T08:38:13 | 108,971,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/pi/Car/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/pi/Car/devel;/opt/ros/indigo".split(';') if "/home/pi/Car/devel;/opt/ros... | [
"anxan524@126.com"
] | anxan524@126.com |
9593d313764adf2c2a0ed60d41f1b809b0f8cd12 | 7b03ef2c0ee7aefbb6d8243340e0b2f12e3f6126 | /ex13.py | 4e3adc4375f7282fe69ba2144bdc519a52475f0d | [] | no_license | mrama030/Learning_Python_Exercises | d6211bf2c38b11f490c7e361dbaa376771fbad72 | e95653db7d269191a5763ed50105303a77dfab32 | refs/heads/master | 2020-04-21T14:19:10.366350 | 2019-02-08T16:06:49 | 2019-02-08T16:06:49 | 169,630,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from sys import argv
script, first, second, third = argv
print "The script is called: ", script
print "The first variable is: ", first
print "The second variable is: ", second
print "The third variable is: ", third
# Call script with 3 parameters:
# python ex13.py stuff things orange | [
"mrama030@uottawa.ca"
] | mrama030@uottawa.ca |
4ddc2772953e6d92e6c4584b63b9aa0456c129f0 | 1755cc4bc27a0b75165e8d643d91cc9b45a17aef | /ex1/ex1.py | 25dace0ad18049e48578dc938916b176d9004c6a | [] | no_license | andrealmar/learn-python-the-hard-way | dcd2635e430474ab20dd79501dc458e649eb29b8 | 85d76c3365ababab0000169f2bfab7fcf7a344a6 | refs/heads/master | 2021-01-13T12:07:28.023870 | 2017-02-10T19:31:04 | 2017-02-10T19:31:04 | 78,069,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
print "Hello World"
print "Hello Again"
print "I like typing this"
print "This is fun"
print 'Yay! Printing'
print "I'd much better rather you 'not'."
print 'i "said" do not touch this.'
print "testando utf 8 ççççc'áááééé"
| [
"andre@y7mail.com"
] | andre@y7mail.com |
0f48852b0884b2321c31d1598a0b4376351ddbcf | e483b0515cca39f4ddac19645f03fc1695d1939f | /google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py | e3d64431e4f6d39ec6700f77f73964e16f721547 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | BrunoWMello/google-ads-python | 0af63d2ca273eee96efd8a33252d27112c049442 | 9b074a037d10f0c1208a00d5d41a8e5e25405f28 | refs/heads/master | 2020-05-27T04:37:47.669144 | 2019-05-24T17:07:31 | 2019-05-24T17:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 16,567 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/services/customer_client_link_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message ... | [
"noreply@github.com"
] | BrunoWMello.noreply@github.com |
a51eb96b25d9042539d8720c01a2f9e03183ed1d | 3b89e48ba2a7288026d13cea7aaf897f9e1ab22f | /youtube/index/views.py | 4867b08379eaf9e6b6e9892e7c4e592acc2db39e | [] | no_license | b11901/Youtube_Notes | 50aeb0a5183e76405eac0037994978ae6293d4e4 | ef78c87e8c71273a048ae29ea5d47719f5870391 | refs/heads/master | 2022-04-23T12:09:20.950145 | 2020-04-15T08:28:17 | 2020-04-15T08:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | from django.shortcuts import render,HttpResponseRedirect,redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from index.models import Notes,Liked
# Create your views here.
def index(request):
return render(request,'index/index.html')
def search(request):
... | [
"noreply@github.com"
] | b11901.noreply@github.com |
b30402b9452fc6e2688da5103fc27f0989c3529a | 43575c1324dc0760958a110d7f056bce88422a03 | /listing/Removing a node from a linked list using a tail reference.py | 68fcf477889f50bd34e9026ec5c371e1463fe53e | [] | no_license | nicolas4d/Data-Structures-and-Algorithms-Using-Python | 1ffd74d26f09de2057bdc53998a56e56ed77c1de | a879ce6fd4033867783ee487d57d459b029eb5f8 | refs/heads/master | 2020-09-24T12:48:30.726766 | 2019-12-31T03:15:44 | 2019-12-31T03:15:44 | 225,761,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Given the head and tail references, removes a target from a linked list.
predNode = None
curNode = head
while curNode is not None and curNode.data != target :
predNode = curNode
curNode = curNode.next
if curNode is not None :
if curNode is head :
head = curNode.next
else :
predNode.n... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
7b22e507c17e21f41fde1bc26f2020162a415d67 | 14f880edf737b9c0e4bdc23de71d23ad5d5650c4 | /Kalman_Filter.py | 281eecef177eefbe12dfea8153b17eca74942eaf | [] | no_license | moralesarias94/AIRobotics | ce686b853a63b1e2cf694eba3e395799d546fed2 | 89777245ce12112f7ff608a17b62a3d92c8de3c7 | refs/heads/master | 2020-12-13T07:08:03.435625 | 2017-03-09T18:21:39 | 2017-03-09T18:21:39 | 83,629,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,373 | py | # Write a function 'kalman_filter' that implements a multi-
# dimensional Kalman Filter for the example given
from math import *
class matrix:
# implements basic operations of a matrix class
def __init__(self, value):
self.value = value
self.dimx = len(value)
self.dimy = len(... | [
"moralesarias94@gmail.com"
] | moralesarias94@gmail.com |
ac52f423008777fa7ade108342ad39c8e7a59772 | 634f86d2e9a534566b4e120c986c079ffb246804 | /relevate_web_app/apps/api/urls.py | 09f6d94f65240a4222f3e69397e76e21bdac5e4b | [] | no_license | jhock/Relevate | dcbb32a11c44766a55291dec1ed8b1f68fb32236 | 8296c49dfa8771b47965c24b6b49a2b6e8ace6cf | refs/heads/master | 2023-01-19T14:13:56.756661 | 2019-08-12T22:19:02 | 2019-08-12T22:19:02 | 105,825,724 | 1 | 0 | null | 2023-01-13T22:30:25 | 2017-10-04T22:31:12 | JavaScript | UTF-8 | Python | false | false | 210 | py | from django.conf.urls import url, include
from .views.feed_view import FeedView
urlpatterns = [
url(r'^post-feeds/$', FeedView.as_view()),
url(r'^post-feeds/(?P<feed_index>[0-9]+)/$', FeedView.as_view()),
] | [
"joshua.a.hock@gmail.com"
] | joshua.a.hock@gmail.com |
86a8f212e08c881bf5a6eab8dd112c2593d3e0c6 | 470fb2e2b02881c029ed6c50368936cc2e4826c8 | /sorting_iterative.py | d6e6d0b09f460a1ce536d333d182d610c79e760d | [] | no_license | asha952/sorting | 0ace7346241f3affec9def9a5dffec60de285607 | 1f2d942942ebb9c73edca6f118df7112d98cacd0 | refs/heads/main | 2023-01-30T07:29:38.873438 | 2020-12-10T00:18:26 | 2020-12-10T00:18:26 | 308,815,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | #!python
sorted_list = [1, 2, 3, 4, 5]
unsorted_list = [4, 1, 5, 3, 2]
zeroes_list = [0, 0, 0]
def is_sorted(items):
"""Return a boolean indicating whether given items are in sorted order.
TODO: Running time: ??? Why and under what conditions?
TODO: Memory usage: ??? Why and under what conditions?
""... | [
"noreply@github.com"
] | asha952.noreply@github.com |
daa019c6d9b925790a732b23389802cbe1adc9a2 | d9ae8abae85a36934f69659bea698f658578dbba | /worldmodel/agent/ActorCritic.py | fbc9d733262947c578dbfad1a5107fa459c21120 | [] | no_license | mahkons/WorldModel | d2dc56da36dcd7edbf45362510805526e37e0dae | c15bc0df4fc4e2c2ea92154943c510efaafeb858 | refs/heads/master | 2020-09-24T01:40:49.375248 | 2020-01-27T12:04:59 | 2020-01-27T12:04:59 | 225,631,975 | 0 | 0 | null | 2020-01-27T12:05:00 | 2019-12-03T13:53:02 | Python | UTF-8 | Python | false | false | 5,375 | py | import numpy as np
import torch
import torch.nn as nn
import torchvision.transforms as T
import torch.nn.functional as F
from worldmodel.agent.ReplayMemory import Transition
from workflow.params import GAMMA, TAU, BATCH_SIZE, PRIORITY_DECR, MIN_MEMORY
class Actor(nn.Module):
def __init__(self, state_sz, action_s... | [
"mah.kons@gmail.com"
] | mah.kons@gmail.com |
fd58ffa80be6039c1aeff77f5eeb8a77075dacfa | b3f5c18efe5aed5f3daeb0991d092263ea080a44 | /final.py | bb3bef880557ba6751fa182beaf464728f617646 | [] | no_license | Polestar574/class107dhruv | fb5b661e72c3207aa6a718404d84ac589f939dda | 0cb906e6f280bbc15be2b81c1d052fa2b7bfa77d | refs/heads/main | 2023-07-24T17:34:35.268982 | 2021-09-09T10:59:03 | 2021-09-09T10:59:03 | 404,686,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import pandas as pd
import csv
import plotly.graph_objects as go
df=pd.read_csv("data.csv")
student_df=df.loc[df['student_id']=="TRL_987"]
print(student_df.groupby("level")["attempt"].mean())
fig=go.Figure(go.Bar(
x=student_df.groupby("level")["attempt"].mean(),
y=['Level 1','Level 2','Level 3',... | [
"noreply@github.com"
] | Polestar574.noreply@github.com |
78c8f872dc05c84e31c46f7701ce9411d0144b6f | b18aec8b07131e93b2618e96bc5dfd6ba8e6cd62 | /by_isp_coverage/parsers/flynet_parser.py | 11e3a2e2afbe9f3a3b185b82fee27d5619febf8e | [
"MIT"
] | permissive | MrLokans/isp-coverage-map | f7f5e4a4fbbfc79d301b81538f33e9084aa182a8 | 9dc5157e778fcff6d8b502e44a0707f0b96a54d3 | refs/heads/master | 2020-05-21T20:46:38.571080 | 2016-10-21T16:30:42 | 2016-10-21T16:30:42 | 60,363,672 | 1 | 2 | null | 2016-10-21T16:27:33 | 2016-06-03T16:54:59 | HTML | UTF-8 | Python | false | false | 3,602 | py | import time
import grequests
from by_isp_coverage.parsers.base import BaseParser
from by_isp_coverage.connection import Connection
STREET_ID_REGEX = r"this,\"(?P<_id>\d+)\""
class FlynetParser(BaseParser):
PARSER_NAME = "flynet"
PARSER_URL = "https://flynet.by"
def __init__(self, coordinate_obtainer=... | [
"trikster1911@gmail.com"
] | trikster1911@gmail.com |
b045ee0d46d32f91ed11af104ded569a3ab680c8 | 9a0a39437158bb3c875deefff46b75e44f6002c4 | /modules/site_info.py | 765b2b40d5fe02464e79f9cf07c064029d8274fe | [] | no_license | maryam98/Pedgene | fba67c213b9b7dfd26075cbe76cb8378415e11ef | a116dad27989f434edc8b46f6bdf5e23517ca332 | refs/heads/main | 2023-03-05T21:10:56.149332 | 2021-02-14T16:59:22 | 2021-02-14T16:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import builtwith
def Fetch_info(domain,GREEN):
res = builtwith.builtwith("http://"+domain)
for i in res :
print(f"{GREEN} {i}",res[i]) | [
"noreply@github.com"
] | maryam98.noreply@github.com |
c32069fe3308a420538cc2ddf69ade490f2b9409 | 764c34ee4728dd39f7ace474e14d1d8d5a55efd1 | /main.py | 2987e3d9b6dd8e10771f43abd82a41e605124013 | [] | no_license | JoshiRah/floof_analyzis | d2efdaf2ea440a2a25225ad7258855bab2ca83ce | 811c71c55de967c09b6ac5c8418fcd21d40b9843 | refs/heads/master | 2023-03-17T07:38:16.194548 | 2021-03-07T16:45:40 | 2021-03-07T16:45:40 | 345,399,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import requests
import matplotlib.pyplot as plt
rounds = 10
floofs = []
floofNames = []
for i in range(123):
floofNames.append('')
a = 0
b = 1
for i in range(123):
floofNames[a] = b
b += 1
a += 1
for i in range(123):
floofs.append(0)
for i in range(rounds):
response = requests.get("htt... | [
"joshua.rahmlow@gmail.com"
] | joshua.rahmlow@gmail.com |
286e976e365502aef139c46909861245e0c587ff | b29359b1e4cdc9492e11e85f46d967739f4810fd | /app_final.py | 9cea417118187aaf8633341a10d0d9b561b6e02d | [] | no_license | pavankm96/Streamlit-Model-Deployment | decc62f31e78f68aacda75c58d64026afccfbb12 | 73284beeabd1779fbf0d7dbd920c85cbec497d8e | refs/heads/main | 2023-06-20T04:10:50.216120 | 2021-07-20T01:51:28 | 2021-07-20T01:51:28 | 387,637,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,224 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 23 14:40:02 2021
@author: Aravind
"""
import streamlit as st
from PIL import Image
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
import pickle
from textblob im... | [
"noreply@github.com"
] | pavankm96.noreply@github.com |
6ea61955b09ac51df0e86c28f926d3e2aa4ed6ac | b87ab91f3626dd244cb528e54132e7966a5dbe1f | /lab7/main.py | 38acb98c4b3463b3d973f7532936a8e4b589dafa | [] | no_license | paekva/ML | b20100d6af6059d0b02b68139f6cd5aefad19ef3 | fea1bc58e0d088d556b6f60198143d5b3492b8a0 | refs/heads/master | 2021-04-07T15:09:25.129874 | 2020-04-04T16:11:45 | 2020-04-04T16:11:45 | 248,685,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import numpy
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers.embeddings import Embedding
from keras.preprocessing import sequence
import draw
from keras.datasets import imdb
top_words = 5000
(X_train, y_train), (X_test, y... | [
"paekva@yandex.ru"
] | paekva@yandex.ru |
f8b8f5593741a9bd06cc06e4cd1d04bf154a9f0a | 0f6250f164177cafe2f990dc07732d2dfd9a2888 | /Homework 1/.history/codinghwq2_20210602130053.py | 64427409dec736e7bb3bf5d4ae130852f1ad856a | [] | no_license | Dustyik/AI-sem8 | 42f1f233671752c139e1d98f2b98717c6264933d | fae83d8003312a9eaf78322ce5d8efef8ee293ef | refs/heads/main | 2023-07-02T02:34:16.429629 | 2021-08-01T10:25:11 | 2021-08-01T10:25:11 | 372,744,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | #flight search engine
#flight - starting city + time
#city - strings and time
#1. Good choice of state - Current City and Current Time
from search import Problem, breadth_first_search
class Flight:
def __init__(self, start_city, start_time, end_city, end_time):
self.start_city = start_city
self... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
ddeea5f69f707a1666beff0ad4724ca510765f27 | d21ca4cc1727875ac2bd2b83d96d03236c2e90e6 | /lncrnadbtable/cms_plugins.py | 06fc749af974950b8dbdf442ffdb15d10ed7d9b2 | [] | no_license | bluecerebudgerigar/lncrnadb-table | 61356054a9e6a960c1d4356d38783e88ddbba3b6 | 5306694cf339361c0b1ca277213a8e4caba25d47 | refs/heads/master | 2016-09-10T03:59:02.773858 | 2014-04-14T15:06:46 | 2014-04-14T15:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,774 | py | from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from models import Annotation, Expression, Species, Literature, Nomenclature, Sequences, Associatedcomp
from forms import AnnotationForm, ExpressionF... | [
"bluecerebudgerigar@gmail.com"
] | bluecerebudgerigar@gmail.com |
25992b96b12a2511eca80384eee352c586c60f3f | 77b717487523312623e158dba52bb2c61b18b6c3 | /workshops/25_query_service_main.py | 19b19b3e60517268f374a9a0a1c3bc2d8c102652 | [] | no_license | jakubbujny/docker-workshops | f9b917a39f6db95c7ea89cdbf649f894e4395d2b | 3e46d4fe4d2b01b3ed20c0a3e6fcaa58d99c9e5d | refs/heads/master | 2021-07-24T04:27:39.739700 | 2017-11-05T13:53:40 | 2017-11-05T13:53:40 | 108,516,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import pika
import json
import os
import sys
import time
from pymongo import MongoClient
import flask
import pprint
#We need mongo connection here
#We need query endpoint here
| [
"jakub.bujny@ac-project.net"
] | jakub.bujny@ac-project.net |
f6d2f3c15738863e04e5a411298efee81f3bb8fa | d8b7436e85e43163759a4482b5cde547c1f09dd1 | /services/svc_topic.py | d1bba218c1e76b7bd13b7ccb630b4b6ef81e4bef | [] | no_license | ujued/witalk | 1bb3379a04b21cdc2083dadd9695b43b5e299e4a | 4f19d3b13aa42a332d4ad838170d11e4e40e532b | refs/heads/master | 2021-01-24T21:35:48.475088 | 2018-04-04T01:42:14 | 2018-04-04T01:42:14 | 123,273,164 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from flask import current_app, session
from threading import current_thread
def price(id):
column(id, 'price')[0]
def column(column_name, id):
conn = current_app.connections[current_thread()]
c_row = conn.execute('select %s from topic where id=%d' % (column_name, id)).first()
if c_row:
return c_row
else:
retu... | [
"ujued@qq.com"
] | ujued@qq.com |
e67b09956c5110bda1d7cc018446ff7e6b008a33 | c046e4c4c010f4845acd8f527f4eb89347d9b035 | /tests/test_extraneous_whitespace.py | 003c3b181fe83108a1a71f9941bb6e20c5594e9f | [
"MIT"
] | permissive | sturmianseq/krllint | 7ad1d6e0febf081682e8b1d6608a81f86789931f | 2f9376cdae14c201364d9c31b4c19a8ff2f708d2 | refs/heads/master | 2022-01-10T15:03:20.755423 | 2019-03-02T16:42:25 | 2019-03-02T16:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | # -*- coding: utf-8 -*-
from unittest import TestCase
from importlib import reload
from krllint import config
from krllint.reporter import Category, MemoryReporter
from krllint.linter import _create_arg_parser, Linter
class ExtraneousWhiteSpaceTestCase(TestCase):
TEST_INPUT = ["foo bar\n"]
FIXED_INPUT = ["f... | [
"d4nuu8@gmail.com"
] | d4nuu8@gmail.com |
161794d774b8032d4ea9f5efe224e3dc64eb9229 | a85357e58f8a598a997ddea78fd9d81b02fa8f79 | /ring0/pwnage/tool.py | c988726b11315d18d046f241b812d879482900e8 | [] | no_license | 0xchase/ctfs | edcfc266c5535deebcb037f8f726e1ebd4e7aff0 | 49be9404299400c855996a43cc9b87ce70b70138 | refs/heads/master | 2022-09-08T17:57:39.488841 | 2022-09-06T13:31:03 | 2022-09-06T13:31:03 | 189,076,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #!/usr/bin/python3
Make fuzz script that automatically finds length. Also contains various shellcodes. Can encode for bad characters
| [
"chasekanipe@gmail.com"
] | chasekanipe@gmail.com |
2ae5fbee0abe004c9dfb14725c6701764d2373e9 | fbf352b3701607c24d2c49d16712bce9213d3926 | /supper/models.py | 633126a31dc6ce6533535965556b022c53d7da8c | [] | no_license | roussieau/Treasury | 8bb1e5473459b762d2f362323c5b66ca544da3c2 | e98443b72061fdaf76da0f84ebf2b4d6700b708a | refs/heads/master | 2020-03-27T18:09:02.336036 | 2019-12-28T12:02:06 | 2019-12-28T12:02:06 | 146,901,586 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.db import models
from django.core.validators import MinValueValidator
# Create your models here.
class Day(models.Model):
date = models.DateField()
week = models.IntegerField(default=0)
visible = models.BooleanField(default=False)
def __str__(self):
return 'S{} - {: %d/%m/%y}'.form... | [
"julian.roussieau@student.uclouvain.be"
] | julian.roussieau@student.uclouvain.be |
14bbb84f7da9c9815b81361b1dd37edb29746f63 | 2dbc9f6a98c097ef205ca9f014608f57df16e0f2 | /pyyincheng/自动化运维/day1/3.morefiledircmp/2.filescmp.py | 2ae84820500907bd7d0d90672fa9e37fc36989a8 | [] | no_license | qqzmr/pynumbertheory | 59500c50c15f0f7f668be550458e0e6c8f29e254 | 29e83e678379d86db551c205462260b41aa26160 | refs/heads/master | 2021-06-29T00:15:45.199916 | 2020-09-22T07:58:12 | 2020-09-22T07:58:12 | 157,073,353 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import filecmp
import os
#cmpfiles可以对比文件,不可以对比文件夹,第一个列表相等,第二个列表不等
print(filecmp.cmpfiles("./cyzonespider1","./cyzonespider2",
os.listdir("./cyzonespider1")))
print(filecmp.cmpfiles("./cyzonespider1","./cyzonespider2",
['1.txt', 'scrapy.cfg', 'starts.py']))
| [
"379896832@qq.com"
] | 379896832@qq.com |
8675870657f4e23e740fd364aea0913844121570 | 3f8f986ce8de3fc378655c71f46e25ac5dac33cd | /obywatele/migrations/0030_uzytkownik_phone.py | f5a790bea7a778138fe31e09af6d3556a5af6692 | [
"MIT"
] | permissive | soma115/wikikracja | ffdc97ec4b3f72c981c1d3cbe0108673797e5a0e | ff9530e4ab7b38623c097deb2beb120211fcd950 | refs/heads/master | 2023-07-24T15:46:31.284999 | 2023-07-06T17:03:40 | 2023-07-06T17:03:40 | 176,117,874 | 5 | 2 | MIT | 2023-07-06T17:03:41 | 2019-03-17T15:05:20 | JavaScript | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.1.12 on 2021-09-11 18:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('obywatele', '0029_auto_20210821_2201'),
]
operations = [
migrations.AddField(
model_name='uzytkownik',
name='phone'... | [
"robert.fialek@gmail.com"
] | robert.fialek@gmail.com |
d68d2bde985e9616226335ff5e0881a34fbb535d | 9d2a06bdf5228edffc789e4112e2b41517e5df7c | /foe/views.py | c862a24ce29b33821dbdea9da77bcf49e1c45405 | [] | no_license | JosmanPS/FOE-app | db985b023e07655d94eb7eb76c96642ef01610fe | 157a567f91ec01f67bcbebe5c05159ea44319ad0 | refs/heads/master | 2020-06-06T19:13:35.463567 | 2015-07-23T22:25:52 | 2015-07-23T22:25:52 | 39,058,892 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,409 | py | # -*- coding: utf-8 -*-
from django.shortcuts import redirect, render, render_to_response, render, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from .forms import *
from .models import *
from django.utils.text import slugify
#
# FOE, main sit... | [
"josman@localhost.localdomain"
] | josman@localhost.localdomain |
0dc321c6cd6f8c7a77bbd827084f09160d9bd5ca | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/HaydeeTools/HaydeeNodeMat.py | 18962c5bc62d268ca0be953b091ad844fedf5d4e | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,738 | py | # -*- coding: utf-8 -*-
# <pep8 compliant>
import bpy
import os
from mathutils import Vector
#Nodes Layout
NODE_FRAME = 'NodeFrame'
#Nodes Shaders
BSDF_DIFFUSE_NODE = 'ShaderNodeBsdfDiffuse'
BSDF_EMISSION_NODE = 'ShaderNodeEmission'
BSDF_GLOSSY_NODE = 'ShaderNodeBsdfGlossy'
PRINCIPLED_SHADER_NODE = 'Sh... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.