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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2374beb6c85a9a76648f371f7c054394f971a644 | cb6af06aa8d1d04cf912f8e0ce059e1b38354fde | /general/apps.py | 0a63481c6ee47baace478f8c322634277cfe1e19 | [] | no_license | derogg1991/CMDB | d90403a53a19a31727bfd63bf55428f2e448a12c | c5fde5a37132dd5520a32bff4e90d1fa63cfa734 | refs/heads/master | 2020-04-02T20:34:42.576431 | 2019-01-07T09:26:56 | 2019-01-07T09:26:56 | 154,772,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.apps import AppConfig
class GeneralConfig(AppConfig):
name = 'general'
verbose_name = '通用'
| [
"derogg1991@gmail.com"
] | derogg1991@gmail.com |
8af57e7ba06ece00e227464da13627d61ea4e041 | c5f8f7bc1cdf05ab816ac17b0170f8a1ff86ff53 | /python/simpleReadline/main.py | bda0ba74cc4815794d96fac5be48a6756d728e2e | [] | no_license | lros/rda | 9b8036ca5998d10ea320535a2e6fe9ca6ea7ca6e | 4c5a27e54445f37f0e25b5883b0009a08e1c7712 | refs/heads/master | 2021-01-17T07:10:38.285749 | 2016-05-31T03:45:38 | 2016-05-31T03:45:38 | 12,476,400 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Simplified version of Python readline module that does not require the
# GNU readline package (which is available only on Linux).
# This Python module implements two key features:
# 1. Tab completion
# 2. History
# The history is optionally persistent in a file.
# Tab completion optionally includes identifiers fro... | [
"sclark724@gmail.com"
] | sclark724@gmail.com |
f4476ad1cff0d97701afa2544924788af2b900f8 | fb909b0716f62ae118afa7d505cbcbd28f62bc63 | /main/migrations/0066_auto_20200911_1141.py | 1d62edbe74183d9bf7fcc2d790cd66555eadc459 | [] | no_license | dkalola/JustAsk-Final | a5b951462cd3c88eb84320bb8fcf10c32f959090 | c2e7c2ffae4d3c2d870d5ba5348a6bae62db5319 | refs/heads/main | 2023-05-24T16:02:17.425251 | 2021-06-16T19:33:52 | 2021-06-16T19:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | # Generated by Django 3.1.1 on 2020-09-11 11:41
import datetime
from django.db import migrations, models
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('main', '0065_auto_20200906_1119'),
]
operations = [
migrations.AlterField(
model_name='ebo... | [
"divyanshukalola88@gmail.com"
] | divyanshukalola88@gmail.com |
3024834057b6bffb97f68853d275971dfdcb5d78 | 56c23dfabac2b6cdcecfc20f6cc1e53d0041fd7a | /stanCode projects/popularity_name_search_system/babynames.py | a96812b406548096a99f6a2b7b3bfe25882f0a0a | [
"MIT"
] | permissive | rogerchang910/stanCode-projects | 174144bcb67b5e141f7acc320e5a14027134bc2a | 92beb09b23a40c09a093dfad80837d97a90c8e3a | refs/heads/main | 2022-12-30T10:11:23.402634 | 2020-10-19T07:57:46 | 2020-10-19T07:57:46 | 303,656,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,415 | py | """
File: babynames.py
Name: Roger(Yu-Ming) Chang
-----------------------------------------------------
SC101 Baby Names Project
Adapted from Nick Parlante's Baby Names assignment by
Jerry Liao.
-----------------------------------------------------
This python file is to build several functions and create
a python dict... | [
"noreply@github.com"
] | rogerchang910.noreply@github.com |
229bde7a28f796c2b05d06510b721e757b2aa411 | 1fbf09a5127a87434c8cfe7131f4b5879966cf04 | /web/dashboard/controller/project.py | d96b19e04ea25e26e2855f477d372df8b086c182 | [
"MIT"
] | permissive | pombredanne/Kunlun-M | cb0495c583e6ae39e168e96341f4fd2cb01d30ae | ab3b3cc843edee6a558a485d89daf944d8fd7f8e | refs/heads/master | 2023-08-23T05:58:12.433991 | 2021-09-30T10:04:04 | 2021-09-30T10:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,965 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: LoRexxar
@contact: lorexxar@gmail.com
@file: project.py
@time: 2021/7/20 15:50
@desc:
'''
import re
import ast
from django.contrib.auth.decorators import login_required
from django.http import JsonResponse, HttpResponseNotFound
from django.views.generic import Te... | [
"lorexxar@gmail.com"
] | lorexxar@gmail.com |
1810aa37912ac37bb9d5123d8a114c813bb5d85e | 52fc1808a1eb342a08fe402e668c2045a1f9febd | /saber.py | e452a0768bec0e5476483450606a9381a19de42d | [] | no_license | BoiseStateAutomationClub/AutomationClub | c9eb91ae4a70be0d5861adbe831090f6868bcd52 | 912848f908e7665a324eb656defd44d9cc9d78a1 | refs/heads/master | 2021-04-15T03:46:25.990411 | 2018-07-15T23:26:14 | 2018-07-15T23:26:14 | 126,913,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from pysabertooth import Sabertooth
saber = Sabertooth('/dev/serial0',baudrate=115200,address=125,timeout=0.1)
saber.drive(1,50)
saber.drive(2,-75)
| [
"alexmussell@gmail.com"
] | alexmussell@gmail.com |
c22925ad34757142231db2f60b884b3ca8820a8b | 8eab24418af4c8915a332b1f8c5e4fc857628b18 | /day_1/listdir_ex5.py | 993a4b088619750b08b772f8dbb3b96f4fcc5d98 | [] | no_license | dsklopp/python_class | 94d9a62a6a6d262d0a26467ba4f9161010bb4d51 | bb6143576adf7743e43c816f9331ea4b30da2d73 | refs/heads/master | 2016-09-11T12:49:19.075545 | 2014-06-12T14:38:51 | 2014-06-12T14:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import os,sys
if len(sys.argv) > 1:
os.chdir(sys.argv[1])
files=os.listdir(".")
for afile in files:
if afile.startswith("file."):
file_no=afile[5:]
if len(file_no) == 1:
digit="00"+ file_no # 001
elif len(file_no)== 2:
digit="0" + file_no # 010
elif len(file_no) == 3:
... | [
"dsklopp@gmail.com"
] | dsklopp@gmail.com |
a54ee60048f664f87ad665f65457b1ccf4497053 | fcd18384606ad0cb7419c7385ff9646fa63c7c31 | /day3.py | 61c852ea1490c4853f0b7c222eae0793dbb772df | [] | no_license | Wellwick/AdventOfCode2020 | a3e171ea9eeb2b280a88ec78ea50f913fb511df5 | 8bafebdbc12b8415da566bad2bd6816a132d87f5 | refs/heads/master | 2023-02-01T15:12:15.339982 | 2020-12-17T14:38:11 | 2020-12-17T14:38:11 | 317,620,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # Does part 1 and 2!
inputs = []
with open("inputs/day3.input", "r") as i_file:
inputs = i_file.readlines()
# We're getting a bunch of newlines at the end of each line
map = []
for i in inputs:
map += [i.strip()]
# We could make classes which return true for tree, false for empty, but let's
# b... | [
"michael.boyle@autodesk.com"
] | michael.boyle@autodesk.com |
0ef10254fbdabb6e7fe8d80b3d482b026df6db59 | 55892efb295a7f2faa8b50e0a3079b4e5c62587a | /thick_barbell/settings.py | f8020ee0bd4abb9ccd9ebd1e75cdb11c266d881e | [] | no_license | azimny86/Thick-Barbell1 | 1b674ab7b5fe19f49fd40911f08c83332fb601f6 | 03ac6f333c470e85842974c05b224ded36d0ee88 | refs/heads/main | 2023-08-24T10:29:48.109273 | 2021-10-13T11:25:19 | 2021-10-13T11:25:19 | 412,230,259 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | """
Django settings for thick_barbell project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from p... | [
"azimny86@gmail.com"
] | azimny86@gmail.com |
1863ed33c75a4114a986b15983e8039d257910f5 | a80943c82d8723e49f1f88cec90a41051c54b949 | /chloe/plots.py | 916fcbf5d1cd5bc6274cbbab0cf77c197c9302fa | [] | no_license | munozchris/jacc | decaebec6ed5da0305c16a252138cc79ba0aafaa | f6ea8316c69a8b30f4d77f0f14ae4a9f6613c584 | refs/heads/master | 2021-01-11T17:11:40.468185 | 2017-03-14T20:40:12 | 2017-03-14T20:40:12 | 79,737,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,349 | py | import sqlite3
import matplotlib.pyplot as plt
import numpy as np
# Helper functions to determine if a departmnent is in a table:
def is_dept_in_ex(c, dept):
depts_in_ex = c.execute("SELECT DISTINCT Dept FROM e_xTA;").fetchall()
depts_in_ex = [entry[0] for entry in depts_in_ex]
if dept in depts_in_ex:... | [
"amr@cs.uchicago.edu"
] | amr@cs.uchicago.edu |
71129ccf4d7c4c9abc25071b57f797dae7f50228 | 3aeab4f3a442b186e042325df76b3f34916852cd | /src/commons/views.py | e60b4fec3965dfd497525bd0c8a680ca5e1a959c | [] | no_license | marcioinfo/reviews | 4d690d7102474688137c59ce0cb83a68adffe8de | 3d55e9b9d84bc944db7254ac229e0ba80634c574 | refs/heads/master | 2022-06-03T12:59:23.636548 | 2019-11-26T13:21:13 | 2019-11-26T13:21:13 | 222,530,589 | 0 | 0 | null | 2019-11-18T19:46:50 | 2019-11-18T19:45:32 | Python | UTF-8 | Python | false | false | 1,529 | py | # THIRD PARTY IMPORTS
from rest_framework.views import APIView
from django.contrib.auth.models import User
# PROJECT IMPORTS
from commons import exceptions
#from commons import exceptions
from authentication.services import AuthenticationServices
#from authentication.services import AuthenticationServices
class Cus... | [
"marcioinfo.correa@gmail.com"
] | marcioinfo.correa@gmail.com |
606b8ca46b5d83f1cf877de3f7c597a4ed281927 | 28dcf73b1f31aa4cbce3f96121e068efa87d8769 | /mount-pp | 0f933045b5fa612a724b66aca20154eaa4ec00b9 | [] | no_license | megacoder/mount-pp | e1faac5e6aa84f07c47780164a2977ce4b821b5d | 2a07bdf389d62ba7281dc107e0caee3b0995df30 | refs/heads/master | 2021-01-25T00:56:17.159682 | 2017-06-18T16:41:37 | 2017-06-18T16:41:37 | 94,700,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | #!/usr/bin/python
# Print /etf/fstab getting the fields as close to their intended columns as may
# be. Long fields push the remainder of the line over as little as is possible
# so that the columns come nearer to alignment.
import os
def pad(parts,cols):
s = ""
while len(parts) > 0:
c = cols.pop(0)
... | [
"Oldest.Software.Guy@gmail.com"
] | Oldest.Software.Guy@gmail.com | |
abf1af7ecf2a32b6a43a8befe1c0c7f05827072e | 2f3960422d08af95bf67c9057b83244540be51e9 | /transformer_tf/Transformer.py | 3770aeca1afbf23d880663bb7f1c7c30fc57fffe | [] | no_license | FreeFlyXiaoMa/text_classify_base_model3 | 2d4eb8f392a4e38bd62f15f45cf29f7bf4546e96 | a6b91b557fa307b685d077dd32609f5d83db487a | refs/heads/master | 2020-11-28T16:18:40.007655 | 2019-12-24T03:50:54 | 2019-12-24T03:50:54 | 229,865,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,770 | py | import tensorflow as tf
import math
import numpy as np
from tensorflow.python.ops import array_ops
class Muti_head_Attention(object):
def __init__(self, max_length, num_classes, vocab_size, embedding_size, hidden_num, num_blocks, num_heads):
# placeholders for input output and dropout
self.input_... | [
"2429825530@qq.com"
] | 2429825530@qq.com |
179efb6dc7e69f13add2b48bd48138775e9b3571 | 79e45a6e4846927da432087aba845036b11c5622 | /PROD/bin/MarketData/Daily/DUSTdailyOHLC_withvol.py | ffea6ec37568125022acaf737d97cd3ed1ed8540 | [] | no_license | mjserpico/Scarlett-Trading | cba2bcfaacf886b9d851d978683b4ce641c8f6ad | 9778717393dbb0818ee026356996d1806345a6c2 | refs/heads/master | 2020-03-21T21:39:51.108503 | 2019-05-09T02:06:26 | 2019-05-09T02:06:26 | 139,076,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,169 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 08 09:16:43 2017
@author: Michael
"""
import mysql.connector
from ib.opt import Connection
from ib.ext.Contract import Contract
import time
import logging
import datetime
import datalink #universal logins for environment
import math
Flag = 0
CCY1 = "DU"
CCY2 = "ST"
Table... | [
"mjserpico@gmail.com"
] | mjserpico@gmail.com |
e98a3f63200d83d60e2c0f781f28dda84c30a26a | e150a99684c449e11dc9979f2a80abcd0acb27ae | /prelabs/Prelab02/ioTasks.py | 39e90b4145483eca64e5509735e0586da4acbb26 | [] | no_license | MorrisHsia/ECE364-python-bash-shell | fe3c22b6841be9c437af6de65d2844bc6fc21071 | 2ca4bc91df595b10f245a1e9467d2e05dc0ad1af | refs/heads/main | 2023-03-14T11:59:25.291237 | 2021-03-08T03:17:28 | 2021-03-08T03:17:28 | 345,515,617 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py | #! /usr/bin/env python
#######################################################
# Author: Tsung Lin Hsia
# email: thsia@purdue.edu
# ID: ee364g21
# Date: 01/15/2019
#######################################################
import os
import sys
# Module level Variables. (Write this stat... | [
"noreply@github.com"
] | MorrisHsia.noreply@github.com |
b3ad9085d450b0be9e16f6a891885dfb9b831d08 | d9be34d92ec5bfec5756d5310c2e34226d726cb4 | /nn/mnist_loader.py | 611bbf70f967542ec27724a4dfa39e3107c7a9a6 | [] | no_license | Oldpan/manim | 43119e4cf0b2d7c17affd66d1f64ce7a6c3bce81 | ac079f182a977bf0d830ab7647971b67cf9e5160 | refs/heads/master | 2021-07-20T11:23:45.752896 | 2017-10-27T22:12:29 | 2017-10-27T22:12:29 | 108,652,804 | 1 | 0 | null | 2017-10-28T13:47:39 | 2017-10-28T13:47:39 | null | UTF-8 | Python | false | false | 3,532 | py | """
mnist_loader
~~~~~~~~~~~~
A library to load the MNIST image data. For details of the data
structures that are returned, see the doc strings for ``load_data``
and ``load_data_wrapper``. In practice, ``load_data_wrapper`` is the
function usually called by our neural network code.
"""
#### Libraries
# S... | [
"grantsanderson7@gmail.com"
] | grantsanderson7@gmail.com |
78e78913ef96cbe4198de937b77a26b9c81e87bd | 6ae18002762f6b578560c5763bf05198d20ac43b | /whats_your_name.py | f8fb4543dee2ed779a8db9d5cd3c99985777ed65 | [] | no_license | Souravvk18/Python-Tutorials | 5093d65f708d0df67f10f99a9b85a567da0f7424 | 224b5050f6d8edc8d4e6399ed91bb665691c6b89 | refs/heads/master | 2023-07-03T18:20:36.881799 | 2021-08-04T06:44:29 | 2021-08-04T06:44:29 | 388,396,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def print_full_name(a, b):
print('Hello'+' '+a+' '+b+'!'+' '+'You just delved into python'+'.') | [
"souravlakshan6@gmail.com"
] | souravlakshan6@gmail.com |
9822128d048432a0a887770ad6757bcefc3d287d | 7b6313d1c4e0e8a5bf34fc8ac163ad446bc69354 | /python/[hackerrank]Minimum Height Triangle.py | 7f3143c59379db448635a1872d49f9dacbc86239 | [] | no_license | menuka-maharjan/competitive_programming | c6032ae3ddcbc974e0e62744989a2aefa30864b2 | 22d0cea0f96d8bd6dc4d81b146ba20ea627022dd | refs/heads/master | 2023-05-01T05:23:09.641733 | 2021-05-23T16:22:21 | 2021-05-23T16:22:21 | 332,250,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/bin/python3
import sys
import math
def lowestTriangle(base, area):
x=math.ceil((2*area)/base)
return x
# Complete this function
base, area = input().strip().split(' ')
base, area = [int(base), int(area)]
height = lowestTriangle(base, area)
print(height)
| [
"maharjanmenuka8@gmail.com"
] | maharjanmenuka8@gmail.com |
70524268a8513ee28ba8c529abac584e1da23674 | c5c3ee2ac4393e7bdbf61f32677221bef5523973 | /src/jk_asyncio_logging/AsyncioMulticastLogger.py | 268925e318a8be94b847fbb09df74c97c6f773e7 | [
"Apache-2.0"
] | permissive | jkpubsrc/python-module-jk-asyncio-logging | 249960382c61353bc0809b77e30312779d3482f2 | 97b6ca79f8f11353c4b554875e353535d1bbf6fc | refs/heads/master | 2022-10-02T03:10:18.771557 | 2020-01-20T18:38:41 | 2020-01-20T18:38:41 | 235,171,209 | 0 | 1 | null | 2022-09-03T13:55:36 | 2020-01-20T18:37:53 | Python | UTF-8 | Python | false | false | 863 | py |
import jk_logging
from .AsyncioLogWrapper import AsyncioLogWrapper
class AsyncioMulticastLogger(AsyncioLogWrapper):
@staticmethod
def create(*argv):
loggers = []
for l in argv:
if isinstance(l, AsyncioLogWrapper):
loggers.append(l._l)
else:
assert isinstance(l, jk_logging.AbstractLogger)
... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
097070139417fc16e5f2a0c6fdef23fc212ec909 | 4f906856e07f82f5d14ddabfd3c00c491d4ce8c8 | /diagonal.py | db6d178b8c7d3c44671efdabeb8c983b76e18130 | [] | no_license | SoliareofAstora/NumericMethods | d4ce4d6559b9f0fbad72082ca2f2197ea3c1d349 | 6696a07d0ae45a6f18a44c1257f5631ab78bd859 | refs/heads/master | 2021-09-05T11:10:18.370598 | 2018-01-26T20:05:56 | 2018-01-26T20:05:56 | 112,853,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 2 21:02:09 2017
@author: SoliareOfAstora
"""
import numpy as np
class Diagonal:
x = np.array([])
row = 0
def setNumbers(self, rownumber, vector):
self.x = vector
self.row = rownumber
def getNumber(self, rownumber):
temp = rownum... | [
"piotr1kucharski@gmail.com"
] | piotr1kucharski@gmail.com |
3701af3c5aa78ba520a3a4fd09bf90eda20f534d | f7c009ef99cd805c774d883dcb3609c8187dae75 | /bubble_sort.py | 5677f356a44c7459b8e3bf4dd50b5ae456c3216a | [] | no_license | Anu1996rag/Algorithms | 8289ca1fd9327d564dfb6a6ceec42f972257e935 | 3bf20004a42cc09f604d2141954680de3439538c | refs/heads/master | 2021-12-24T13:58:31.851649 | 2021-10-12T02:53:22 | 2021-10-12T02:53:22 | 231,182,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | def bubble_sort(arr):
n = len(arr)
for i in range(0, n - 1):
swapped = False
for j in range(0, n - i - 1):
if arr[j] > arr[j + 1]:
arr[j], arr[j + 1] = arr[j + 1], arr[j]
swapped = True
if not swapped:
break
return arr
a = [3... | [
"anuragpatils1996@gmail.com"
] | anuragpatils1996@gmail.com |
216c5b1b3a0a8f7e6817f114a95c54b37c974700 | f222202da3ad7d9f897608363c4f6ad18ccb6238 | /srm693/triangle_easy.py | 5653185d846f7f345f2925e924e89c84de93c355 | [] | no_license | antontomusiak/TopCoder | fbc510b53bd2f201443f3846a7143db752116094 | 124d8426c9faeedc787ce0fa9643a6e80828126e | refs/heads/master | 2020-08-22T11:31:23.436037 | 2019-10-20T16:08:42 | 2019-10-20T16:08:42 | 216,384,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | class TriangleEasy:
def find(self, n, x, y):
g = [[False for j in range(n)] for i in range(n)]
for i in range(len(x)):
g[x[i]][y[i]] = True
g[y[i]][x[i]] = True
res = 3
for i in range(n):
for j in range(i+1, n):
for k in range(j+1, n):
connected = 0
if g[i][j]: connected += 1
if ... | [
"noreply@github.com"
] | antontomusiak.noreply@github.com |
74da43d943824f403bfbc1574bb761a092614292 | aa767379b2ef99642a1eddadc48438844a3f9b76 | /haxecleanup/common.py | 8315323c05c0b90dab95827db2d598c5a6e1648e | [] | no_license | DoclerLabs/Undebt-UniTest-converting-AS3-to-Haxe | 336253f2546f3b68cb0b583a21bb771d1e0e9812 | d550fadc2a6bc5f5ccb3839cd98afdf40b031725 | refs/heads/master | 2020-12-24T12:12:31.139089 | 2016-11-07T12:26:07 | 2016-11-07T12:26:07 | 73,069,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from pyparsing import Keyword
from pyparsing import SkipTo
from undebt.cmd.logger import log
from undebt.pattern.common import LPAREN
from undebt.pattern.common import RPAREN
from unde... | [
"stepan.vyterna@gmail.com"
] | stepan.vyterna@gmail.com |
c9559a8b576c76a9430b39c8fa258346be60f87c | 6ff002de02c737db8ca7b907a8e1b50e3139024b | /metrics/metrics.py | ed73c8c829a6318f54863aaeb582c9fa05aac8a4 | [] | no_license | JoseLGomez/CNN_framework_PyTorch | 6f43928ac122c9c78ceaffc084c3db105ae5a2c1 | 1f3deeb6d64843107188d105b5ea6e0798f81a48 | refs/heads/master | 2021-05-10T18:11:21.653057 | 2018-02-08T07:42:13 | 2018-02-08T07:42:13 | 118,625,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | import os
from math import ceil
import numpy as np
import torch
import torch.nn.functional as F
from torch import nn
from torch.autograd import Variable
import sys
def _fast_hist(label_pred, label_true, num_classes):
mask = (label_true >= 0) & (label_true < num_classes)
hist = np.bincount(
num_classes... | [
"gvillalonga@cvc.uab.es"
] | gvillalonga@cvc.uab.es |
25b74e239ea33c4f95a5a9e3af28b4ae11b3f352 | 3c00534e9554eeae59d4d0a17e1f06ef8fd3a1f6 | /bgt_payroll/wizard/slip_report.py | 27b9bf10bc9734f3f9b194ad5e74d20b320ecc10 | [] | no_license | bambangbc/HRIS-YT---ODOO-10 | 26524eed207d535aa1ae071a4bc0d1c994778bb0 | f5e3e983f244bc57ffda175d3178fc1c4c74dab0 | refs/heads/main | 2023-06-28T00:06:47.834302 | 2021-07-16T06:22:27 | 2021-07-16T06:22:27 | 386,532,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93,108 | py | # -*- coding: utf-8 -*-
# @Author: xrix
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the ... | [
"87510026+bambangbc@users.noreply.github.com"
] | 87510026+bambangbc@users.noreply.github.com |
b7bb6f433a614f530de7f24c83596e5d1d083e36 | 84f1fea102aeb2d324e8ad3908e1765d04a0a730 | /emails/migrations/0002_sentemail_transaction_event.py | 367b922c18a634054c774c56a9edd85a29f73e26 | [
"Apache-2.0"
] | permissive | Natsoye/explorer | c205f8eb8d08705c2c4ee4ee45c28f7d0a534b10 | 638c70204d6001d9c5c56701917a6273a02c90cf | refs/heads/master | 2021-08-30T10:42:56.371192 | 2021-08-17T15:43:04 | 2021-08-17T15:43:04 | 181,131,891 | 2 | 0 | Apache-2.0 | 2021-08-17T15:43:05 | 2019-04-13T06:43:15 | Python | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('emails', '0001_initial'),
('transactions', '0001_initial'),
]
operations = [
migrations.AddField(
model_... | [
"mflaxman@gmail.com"
] | mflaxman@gmail.com |
7ff9408dd67efb5e19493bdf1a3062ef1c11f42f | 453d83e4a0c40d3b545c9f391e5aef7b3e52eda5 | /Q1.py | 302da56bcf9d10a544ec2afdbd2eabfd978f4a51 | [] | no_license | Aasdeep/Test | 253d14019a9d7b74e930c3d15c2e301c92b7a989 | 6d55eb9ec1cd1b63786d2d4233fb4a40125a9cf8 | refs/heads/main | 2023-01-23T00:02:46.840047 | 2020-11-13T10:58:28 | 2020-11-13T10:58:28 | 312,550,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | import pandas as pd
import numpy as np
import sys
def normalized_matrix(filename):
'''To normalize each of the values in the csv file'''
dataset = pd.read_csv(filename) #loading the csv file into dataset
attributes = dataset.iloc[:,1:].values #keeping the attributes of the dataset in a different varaiable... | [
"aasdeepsingh17@gmail.com"
] | aasdeepsingh17@gmail.com |
181307d16f17f8e6f9ce7810bd4e20fcbfcc2b9b | 17ac5451a684ef7ceb05531830631c6008d41347 | /Stack and Queue/Stack.py | 769b33c944bfd1898cf3505fad319b8fe130bebf | [] | no_license | neeraj1bh/Data-Structures-Algorithms | f1d50f6066d5de3e1eff114a437a88ee65e8de6a | ffae883e9277b51976a447368aa3aaed2a3ad325 | refs/heads/master | 2020-12-19T18:17:37.290150 | 2020-03-11T17:54:54 | 2020-03-11T17:54:54 | 235,812,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | class EmptyStackError(Exception):
pass
class Stack:
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def size(self):
return len(self.items)
def push(self, item):
self.items.append(item)
def pop(self):
if self.is_empty(... | [
"neeraj1bh@gmail.com"
] | neeraj1bh@gmail.com |
16ddc7ae6c87de1a8063e42a34d0a94fa0d71ab1 | 4e7d6dced349c2c3a5ec09f8eca7dd8f70564467 | /pool.py | ec24bd20146fde313626544ed146c84bbadeeefb | [] | no_license | VB6Hobbyst7/gmsh_scripts | c0a0baec0ae1b6be6d085d2d4fb7cc9479ced765 | 28029c52f0a82d5f1deff24d0858f2ae3690f358 | refs/heads/master | 2022-12-28T18:58:26.359184 | 2019-10-18T17:48:00 | 2019-10-18T17:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | import json
from complex import Complex
from complex_primitive import ComplexPrimitive
from divided_cylinder import DividedCylinder
from matrix import Matrix
from cylinder import Cylinder
from support import check_file
class Pool(Complex):
"""
Matrix structure of Complex objects
"""
def __init__(sel... | [
"bra@ibrae.ac.ru"
] | bra@ibrae.ac.ru |
fb6d9adf18bd2639ec500f4b40a5b86cb6d22047 | 65120ec2a6c4d5552cbac993808d9a5fae72d60c | /final-calculator.py | 5209556649d5a7fedf1314c5095d545d78292c37 | [] | no_license | Math69lyon/Epitech_coding_academy | fa9de3ca3f4513e0720beecbcfaea3afcfee3f9d | 80f35e7bf78a42bb9753517f8fe0207331ebe4b5 | refs/heads/master | 2022-04-27T13:52:43.377821 | 2020-04-22T13:24:28 | 2020-04-22T13:24:28 | 257,892,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,478 | py | #!/usr/bin/env python3
from tkinter import *
import math
window = Tk()
window.title("CALCULATRICE")
window.geometry("525x400")
window.configure(background="#c1b7b0")
button_color=("lightblue")
largeur = 10
hauteur = 3
ops = {
"*": (lambda a, b: a * b),
"/": (lambda a, b: a / b),
"-": (lambda a, b: a - b),
... | [
"noreply@github.com"
] | Math69lyon.noreply@github.com |
28af2e56ac4f77f2fa99d0efb8a0ca4a81013aae | 26c7e107ec619d8891dde765ba715ae845cda699 | /algorithms/MultilayerPerceptron.py | 9662d2843d83bb1f3a3c9eb38bf5aabdda33e399 | [] | no_license | cipriancus/checkThat-2019-UAICS | 73e45991d2f253a211d2579553a46731843e2b2b | 5493c0cb58d3a8cc423e87259d1a11581d065b72 | refs/heads/master | 2022-08-01T03:25:24.762163 | 2020-05-15T09:55:55 | 2020-05-15T09:55:55 | 249,636,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from pyspark.ml import Pipeline
from pyspark.ml.feature import HashingTF, IDF, StopWordsRemover
from pyspark.ml.feature import Tokenizer
from pyspark.ml.classification import MultilayerPerceptronClassifier
class MPClassifier(object):
def __init__(self, data):
self.tokenizer = Tokenizer(inputCol="text", o... | [
"cipriancus@gmail.com"
] | cipriancus@gmail.com |
4b4b5d0c7b1faee950bee5284213bd7125db5dea | 5cf8ace5b3576b5cf32995ec2954a21a4873f9fe | /gpsfun/gpsfun/DjHDGutils/megatestrunner.py | 5a5df160bf0d2178ac832df538393d5053ffaf76 | [
"BSD-3-Clause"
] | permissive | rishinkaku/gpsfun | 23898b22f2d4046ab56fb9e120ff5e7d4abea225 | ea1a94619bac3c3922b17ee0396c0b35d25d1fcf | refs/heads/main | 2023-06-01T19:04:39.221376 | 2021-06-11T19:30:47 | 2021-06-11T19:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | #!/usr/bin/python
import unittest
from django.test.simple import DjangoTestSuiteRunner
class MegaTestSuiteRunner(DjangoTestSuiteRunner):
""" works like standart django test suite runner.
Addition:
Testcases with true EXISTING_DB attr run on working database.
All other testcases exec... | [
"kostin@ua2web.com"
] | kostin@ua2web.com |
b579fafb520c67f2f8a7754378a7d77105b66e5a | 199f62f5403d3e439a0ae6fbd5c62a19128256e0 | /challenges/hashmap-tree-intersection/hashmap_tree_intersection/hashtable.py | 9f486a78677a9cbba35d9b01ccb482a7c4daebc7 | [
"MIT"
] | permissive | odai1990/data-structures-and-algorithms | af1eae747499bcc6c04415eae9c639436c4e0246 | fde43d7bdb241f6ef8de7018edab7e741b65cf77 | refs/heads/main | 2023-07-04T02:47:30.798531 | 2021-08-05T15:15:01 | 2021-08-05T15:15:01 | 358,676,763 | 0 | 0 | MIT | 2021-05-04T09:54:03 | 2021-04-16T17:43:33 | JavaScript | UTF-8 | Python | false | false | 575 | py | from hashmap_tree_intersection.linked_list import LinkedList
class HashTable:
def __init__(self,size):
self.size=size
self.map=[None]*size
def hash(self,key):
sum_of_ascii=0
for ch in key:
sum_of_ascii+= ord(ch)
temp_value = sum_of_ascii*19
hashed_k... | [
"odai22odai78@gmail.com"
] | odai22odai78@gmail.com |
ee950b3986dfc67d84d4a8a1a013efa56e985e3a | 9c7797a0cc7f3488d30a19bcbc0bd9d43668021f | /backend/contactsAPI.py | 52df3071dfe361e901e32a5771a5311f8f2708d1 | [] | no_license | bcdasilv/my-contacts-backend | 96424de4947ef70b5fa4f956533141b2e4478dca | e96ada7f541ebfc6e195ee7988681cf0a37a1315 | refs/heads/master | 2022-10-14T13:58:20.892420 | 2020-05-19T03:14:03 | 2020-05-19T03:14:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | from flask import Flask, Response
from flask import request
from flask import jsonify
from flask_cors import CORS
import random
import string
from database import User, Contacts
app = Flask(__name__)
# CORS stands for Cross Origin Requests.
CORS(app) # Here we'll allow requests coming from any domain. Not recommende... | [
"baileywickham@gmail.com"
] | baileywickham@gmail.com |
8dbfcfab6fdd34079b0975e4973fe5f14c3f3d57 | 2cc48f190536c8e6fc80a0646107a6be1fed20c0 | /myvenv/Scripts/django-admin.py | d51ea5ce43dfb940a1d58b101d39c2f83fc50ad5 | [] | no_license | agatawojtas/My-first-blog | f4952c479ef9d877103181de23dfaa9e076dd277 | e9b22a64e571ac0ac639526208a9d18683d98d73 | refs/heads/master | 2020-03-19T16:17:28.543607 | 2018-06-09T14:48:27 | 2018-06-09T14:48:27 | 136,709,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!c:\users\agata\djangogirls\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"agattawojtas@gmail.com"
] | agattawojtas@gmail.com |
e08d3e3779e75b1c76e59be8ac90edd7793825b1 | 6ee00fa0c116c697ed1840e129d97380c183b1e4 | /PaginationDemoFBVFolder/PaginationDemoFBVFolder/PageFBVProject/PageFBVProject/urls.py | e060abe76a2c133710f2d03a6641e54ba301be84 | [] | no_license | poonampatil26/Pagination-FBV | ab24ae780c6da0880754f5f7c2b2300bb70d8f53 | 47ea83df87734914035c9f652b91c1f1e4e59d40 | refs/heads/main | 2023-08-02T09:56:26.311391 | 2021-09-19T14:19:16 | 2021-09-19T14:19:16 | 408,145,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """PageFBVProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"poonampatil900@gmail.com"
] | poonampatil900@gmail.com |
d6cfbd76a3fdbf59869fa3c44935823a5b1d04e7 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /162_3.py | a5d822d8c80608bdbd14448d50c484cc6169f703 | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
# @Time : 2021-03-12 10:16
# @Author : zxl
# @FileName: 162_3.py
class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
i = 0
j = len(nums)-1
while i<=j:
if i==j:
... | [
"791057615@qq.com"
] | 791057615@qq.com |
f6bd8a6f62a7a43c131c70f831861995b02990a5 | 427b02ad0649b4f9a0897b97e9d23e7f510800d0 | /src/DeepDeterministicPolicyGradients/dataset/RLdataset.py | 65b4e0f864810f0d738ef3185d5335da3a1987e2 | [
"MIT"
] | permissive | RahulSajnani/Reinforcement-learning | 8312dc1453944dbd55776b8cd66e7a1093c56b74 | 007c985173a80548636313d32cb8c1e0e4ad5612 | refs/heads/main | 2023-05-01T18:46:54.988745 | 2021-05-16T20:06:25 | 2021-05-16T20:06:25 | 324,405,097 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py |
from collections import deque, namedtuple
from torch.utils.data import DataLoader
from torch.utils.data.dataset import IterableDataset
from typing import List, Tuple
import numpy as np
# Named tuple for storing experience steps gathered in training
Experience = namedtuple('Experience', field_names=['state', 'action',... | [
"rahulsajnani2010@hotmail.com"
] | rahulsajnani2010@hotmail.com |
851e384fda359ccf94fda0ea42fca93a306ac30e | 4744458daef53d006d8a594dae0b949e361090a9 | /lib/apex/apex/pyprof/prof/usage.py | 549a7d8b807a0a89cc5a87ed275a7340a1f89fa7 | [
"BSD-3-Clause"
] | permissive | jiangyuefeng/WiFIPerson3D | 5452eeb25a6da6bcf4ccd0a3a0c2d6a57b950c9d | e0410254024e9287618e497a2921c5a106d59d73 | refs/heads/master | 2023-05-02T16:40:34.912691 | 2021-01-25T11:03:23 | 2021-01-25T11:03:23 | 330,856,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | import sys
import argparse
def parseArgs():
"""
Print usage and parse arguments.
"""
def check_cols(value):
valid = ["idx", "seq", "altseq", "tid", "layer", "trace", "dir", "sub", "mod", "op", "kernel", "params", "sil", "tc", "device", "stream", "grid", "block", "flops", "bytes"]
cols = value.split(... | [
"2464944950@qq.com"
] | 2464944950@qq.com |
b5ebcfaaa14070990a7c483c41fc28391b4d8e78 | a4fc181d20759ad7f1b077afbe772f52b786d054 | /DiveIntoDLPytorchDemos/Chapter3_DL_basics/3.12_weight-decay.py | 233abf2cd670f1f7ed50d5d1b00c5e9a2e5b597e | [] | no_license | guanguanboy/machineLearning | a2b3a7657a17d8de7dacdbdbeebade5dd03d535c | 092df185bbaf25066824a58973e4bd78cc8fff4d | refs/heads/master | 2021-06-21T22:20:30.384417 | 2021-01-01T09:18:16 | 2021-01-01T09:18:16 | 158,904,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | import torch
import torch.nn as nn
import numpy as np
import sys
import torch.utils
sys.path.append("..")
import d2lzh_pytorch as d2l
print(torch.__version__)
#高维线性回归实验
n_train, n_test, num_inputs = 20, 100, 200
true_w, true_b = torch.ones(num_inputs, 1) * 0.01, 0.05
features = torch.randn((n_train + n_test, num_i... | [
"liguanlin@orbbec.com"
] | liguanlin@orbbec.com |
592455b55bce8593c9c6de40e2c5ab30d292c7f7 | 7cce0635a50e8d2db92b7b1bf4ad49fc218fb0b8 | /郭鑫程序交接/source.code.2012.06.11/source.code/python/format_segd_header.py | ad56f33d571e2ff5c768e8e1c56fbf10091862db | [] | no_license | liquanhai/cxm-hitech-matrix428 | dcebcacea58123aabcd9541704b42b3491444220 | d06042a3de79379a77b0e4e276de42de3c1c6d23 | refs/heads/master | 2021-01-20T12:06:23.622153 | 2013-01-24T01:05:10 | 2013-01-24T01:05:10 | 54,619,320 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,487 | py | import string, sys
start_str = """ int i = 0x0;
SEGD_TRACE_HEADER_EXTENSION_x_PRIVATE_PTR ptr_p = trace_header_extended_private;
SEGD_TRACE_HEADER_EXTENSION_x_PTR ptr = trace_header_extended;
if(be_reverted_private){
"""
else_str = """ }
else{
"""
end_str = """ }"""
assign_str_1 = "ptr_p->{0... | [
"chengxianming1981@gmail.com"
] | chengxianming1981@gmail.com |
48851803546ccb9183415be908bbea74e16bf05e | 476a2b2db03772214ac3894a619600a712a41399 | /crawler/settings.py | eaff1cdb67a3efa6eb95352ffabaf6818a4f3ae7 | [
"MIT"
] | permissive | felix1m/spotify-crawler | 42615ecadbf656de22b736ea5a73313549f07b4c | 2496e3a62fabc0f7de515903070d0a981053efba | refs/heads/master | 2021-01-01T19:24:00.274395 | 2015-08-02T22:47:06 | 2015-08-02T22:47:06 | 39,686,084 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # -*- coding: utf-8 -*-
CLIENT_ID='6ed9ddb967c140239cbf6f8ee128bae1'
CLIENT_SECRET='d55c1e8a2a8940028cceca8ef2095c09'
REDIRECT_URI='http://localhost:8888/callback'
SCOPE = 'user-library-modify user-library-modify playlist-read-private playlist-modify-private playlist-modify-public'
USERNAME = '1121777861'
| [
"mueller.fe@gmail.com"
] | mueller.fe@gmail.com |
d7f837c05ba26e0c9e8112c5db6507046782745f | 7b2bc33a8575f3501fba05df86aed3844785949c | /pythonlibs/modelgrid/modelgrid/__init__.py | 4b4adef398a22161473e3cec6453ceafd32a25bb | [
"MIT"
] | permissive | liqun1981/NERSC-HYCOM-CICE | 9ef6f6411a2e9652b13af329c61f8861701c1b1a | c71e3d87473d5c3641fda37d8f9981cbfe77e728 | refs/heads/master | 2022-04-11T12:07:10.172643 | 2019-11-16T20:32:49 | 2019-11-16T22:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from grid import Proj4Grid, ConformalGrid
from confmap import ConformalMapping
| [
"vc.yumruktepe@gmail.com"
] | vc.yumruktepe@gmail.com |
3b7f88b627b03e5c2620ab2849d8f09c9fcb3f2c | 6b449da42920425cf7fcc64c9fa6c03909266662 | /skysshit/tests/test_embeds.py | 235a536a3b3ebbc7c27aa02dadee8743e6869947 | [] | no_license | skylarr1227/skiz | 647bb499e85dd46d59a758a156b64e86668af6fa | c8131193f99a3f7e80e20ac3f749770bee62ac89 | refs/heads/master | 2020-07-11T14:36:15.183412 | 2019-09-21T19:59:02 | 2019-09-21T19:59:02 | 204,570,480 | 1 | 0 | null | 2019-09-21T14:36:20 | 2019-08-26T22:12:34 | Python | UTF-8 | Python | false | false | 7,628 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from libneko.embeds import *
class DictifyMixin:
def __init__(self, *args, **kwargs):
self.i = 0
try:
super().__init__(*args, **kwargs)
except TypeError:
super().__init__()
def run(self, *args, **k... | [
"noreply@github.com"
] | skylarr1227.noreply@github.com |
8737cd2b0d8f72b063a39e23b4cb76f20b2b2e95 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/arista/eos/tests/unit/modules/network/eos/test_eos_eapi.py | a01bf1eb370a2fdae9d8734baa3d9a7804e49bea | [
"GPL-3.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 6,923 | py | # (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"sifang@cisco.com"
] | sifang@cisco.com |
a19334f1c449b0d526d1f065a06c9b9cde1c65e4 | cf101f1b638538efa926148193261afe4925cab3 | /img/Week 3/script5.py | 305951cebd7ad1bbcd92fb767f25dbe89dc6c9b8 | [] | no_license | vaib-saxena/vaib-saxena.github.io | 3249d5714c520fad126604a8e8a86cf76874c6ec | 512e2232309d5504961ae582b9ba141d30e46878 | refs/heads/master | 2022-12-11T00:44:28.857477 | 2022-11-27T12:13:39 | 2022-11-27T12:13:39 | 192,065,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import rhinoscriptsyntax as rs
import random
for c in range(20):
listofpoint=[]
for i in range(3):
x=random.uniform(-200,200)
y=random.uniform(-200,200)
z=random.uniform(-300,300)
a=rs.AddPoint(x,y,z)
rs.MoveObject(a,(random.uniform(-400,400),random.uniform(-200,200),random.uniform(-400,400)))
print a
... | [
"vaibsaxena93@gmail.com"
] | vaibsaxena93@gmail.com |
86c51ce7df8660d7720991739f19d168a936867b | ef6377447197b75ce1fd2837928ffdf26e192889 | /Requests_lianxi/test_qiyeweixin/api/tag.py | 57e71e1d50557fa08b31a8b70098804247e5fbcd | [] | no_license | fanchaoasdqwe1/PyTest_01 | a6eafccb533c337d208b78b7cd6905fff9de7ab9 | 3347876b6c8ee8df000894e64129bf86fa410bf7 | refs/heads/master | 2023-03-28T00:34:26.479335 | 2021-03-31T14:50:05 | 2021-03-31T14:50:05 | 327,633,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | import requests
from Requests_lianxi.test_qiyeweixin.api.base_api import BaseApi
from Requests_lianxi.test_qiyeweixin.api.wework import WeWork
class Tag(WeWork):
secret = "Yk-zuf3-um8wJYr0V9CwhPSRdxbf6PzpY9-pfkBSWi8"
# 获取所有标签
def get(self):
url = 'https://qyapi.weixin.qq.com/cgi-bin/externalcont... | [
"769029077@qq.com"
] | 769029077@qq.com |
3786cda539c2758029469435453faa4ddf75d5b5 | 9724c8cd81ad39f7f9a2419e2873d7d74cb10c72 | /pyabc/external/__init__.py | 2cb45567dc2210c4965c2f9d98839dbe36b6260c | [
"BSD-3-Clause"
] | permissive | ICB-DCM/pyABC | 36b7fc431fe4ba4b34d80d268603ec410aeaf918 | d1542fb201edca86369082e1fc7934995e3d03a4 | refs/heads/main | 2023-09-01T13:42:52.880878 | 2023-08-18T16:55:04 | 2023-08-18T16:55:04 | 96,995,608 | 187 | 49 | BSD-3-Clause | 2023-08-18T16:55:05 | 2017-07-12T10:30:10 | Python | UTF-8 | Python | false | false | 871 | py | """
.. _api_external:
External simulators
===================
This module can be used to easily interface pyABC with model simulations,
summary statistics calculators and distance functions written in programming
languages other than Python.
The class :class:`pyabc.external.ExternalHandler`, as well as derived
Model... | [
"noreply@github.com"
] | ICB-DCM.noreply@github.com |
c3f6ff00a01a16b4aec15ae9a9ed25d9f93b75db | e84298cebe97a418028409ba460c1dc0be21fd25 | /sisterload.py | f3996d7e1c73205fa9d42a97aa32ce829d0041f5 | [] | no_license | Jetlef/SisterLoad | c994d96d37a616babb95a2a3f60d9397998d70ff | 3ec20941ebf06ce34a4403dc81adfb8619edf53c | refs/heads/master | 2020-12-25T19:15:43.355638 | 2013-04-12T10:56:10 | 2013-04-12T10:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python
import os
def clear():
if os.name == "posix": os.system("clear")
else: os.system("cls")
command = raw_input("SisterLoad~ ")
while command != "exit":
print "HUD GOES HERE"
print "*"*22*80
command = raw_input("SisterLoad~ ")
clear() | [
"luca@iMac-di-Luca.local"
] | luca@iMac-di-Luca.local |
2936f8324096feb98f39411c15bce1a2e66e3521 | 0423a4354155b3d1b3981abfd58bbd1abfdc07de | /customdashboard/views.py | f7f6b0a5a43f5957901e4701f8acffd669796cbb | [] | no_license | toladata-ce/TolaActivity | 7cc2d0d9d5077cb082d464dc23fb8366a51f4d64 | 8a2d763e0c757c4d7547e7a2cd17fbb7dd880bfc | refs/heads/master | 2021-09-17T06:30:32.668525 | 2018-06-28T15:46:22 | 2018-06-28T15:46:22 | 103,903,777 | 2 | 0 | null | 2018-06-28T15:46:23 | 2017-09-18T06:55:44 | Python | UTF-8 | Python | false | false | 26,797 | py | from django.views.generic.list import ListView
from django.http import HttpResponse
from django.shortcuts import render
from workflow.models import WorkflowLevel2, WorkflowLevel1, SiteProfile,Country, TolaSites
from customdashboard.models import JupyterNotebooks
from formlibrary.models import TrainingAttendance, Distr... | [
"noreply@github.com"
] | toladata-ce.noreply@github.com |
f8f6c560af57cbf61a38d972855a3a4233da4ed2 | 3dc6a841ce46e37ae49aad26dae479ab23fcd951 | /customized.py | 8633f2dbfdf8e2f93cd259be39db4aa6233c3a43 | [] | no_license | SeanMelody/python-password-generator | ded205103ebcb3167fc67dbc9cffefb6d84ee93e | ac7e606c4a4e493c10e3e78610a19f7b8f2942a3 | refs/heads/main | 2023-05-06T09:06:05.991633 | 2021-05-28T22:34:59 | 2021-05-28T22:34:59 | 371,557,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import random
import string
characters = ""
# capsCar = string.ascii_letters
capsCar = string.ascii_uppercase
specialCar = [",", "-", "!", "@", "#", "$", "&"]
numberCar = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
length = int(input("How long would you like your password?: "))
caps = input(
"Would you l... | [
"seandmelody@gmail.com"
] | seandmelody@gmail.com |
fb3c572463a2d0d63d7c3ccf7b78cf070b687087 | a7d6e250ecb407fe27ebd50b5fc87a339491be06 | /service_area/forms.py | 1b1deebd617e2d3cf5ec799ad90c7686901f1f07 | [] | no_license | mingfeng/samap | ce51f447c96372f75a13321bcdd5f6dc5a3117c5 | f8b843a7f75e8057e3019fac1dd362346cfbe098 | refs/heads/master | 2020-03-23T20:50:03.048464 | 2018-08-23T17:06:59 | 2018-08-23T17:18:43 | 142,065,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from django import forms
from django.conf import settings
from django.contrib.gis.geos import Point
from django.contrib.gis.gdal import SpatialReference, SRSException
class ServiceAreaForm(forms.Form):
location = forms.CharField()
distance = forms.FloatField(min_value=0)
srs = forms.CharField()
def c... | [
"mfdevworld@gmail.com"
] | mfdevworld@gmail.com |
0a792293e4a77a07abaf9f4e415181af5f8c98e6 | 0a2f79a4338615113abf34dbd027d6bec762c981 | /tries.py | 066636c52b3e15a0e99ff4763be6533413bc7248 | [] | no_license | SmithChen-364/learngit | d56220cb5902b30b7832f3cdeb4d429c58583d1c | b5202a269d06d745477c146bf0379a5f16a6b585 | refs/heads/master | 2020-06-20T12:11:19.678310 | 2019-08-06T07:47:29 | 2019-08-06T07:47:29 | 197,118,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | #tries for search words
#tries类
class tries:
#根节点root
root=None
#添加方法
def add(self,word):
#如果没有根节点,则将第一个单词的第一个字符添加为根节点,
#如果有根节点,从第一个字符开始添加节点
if(not self.root):
self.root=self.add_element(word,0,self.root)
self.root.parentNode=self.triesNode("root")
... | [
"you@example.com"
] | you@example.com |
46bb51490ebff49d214f39c06b122e5380a53c96 | cdc36e2178e5613ec7dbde4ac4dab8b1c83a0301 | /learning_site/venv/lib/python2.7/site-packages/google_compute_engine/metadata_watcher.py | c24ac81d7741753a5457fd426ddd10a393bb6a07 | [] | no_license | stephen279/learning_site_project | 1519f587e3daf4f71b415e8b6f89744a1b8fcc31 | 2d70c282f50c046158877f81df49253e16f00e52 | refs/heads/master | 2023-01-10T01:02:41.972990 | 2018-03-20T19:08:10 | 2018-03-20T19:08:10 | 85,703,449 | 0 | 1 | null | 2022-07-06T19:45:18 | 2017-03-21T13:11:39 | Python | UTF-8 | Python | false | false | 7,364 | py | #!/usr/bin/python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"stephenholland279@msn.com"
] | stephenholland279@msn.com |
1f86627758048720cf0ace6eb7d2dd45f66cc0ef | c8ac0119f06aad2360a82be4c14a14d564c0261d | /main/run_test.py | 1f16b12c6aee20524a7d4aa853eab234bee131e2 | [] | no_license | BaiYaoIsland/NLX_TEAMALL_INTERFACE | b4a6d20683bc441c142730c8ea111551c9cd27b1 | 818bd4075f2cbb7a60d74064121fe93a86777b71 | refs/heads/master | 2020-07-05T06:03:33.909749 | 2019-08-18T11:00:24 | 2019-08-18T11:00:24 | 202,547,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | # coding:utf-8
from base.runmethod import RunMethod
from data.get_data import GetData
from util.common_util import CommonUtil
from data.dependent_data import DependentData
from util.send_email import SendEmail
import HTMLTestRunner
from log.user_log import UserLog
logger = UserLog().get_log()
class RunTest... | [
"5zhishi20xb@sina.com"
] | 5zhishi20xb@sina.com |
30a61d31abd4ae7c19afeb6c9bf02cb104b70bf1 | 4a948a38a8291fbb7bdf2b4b58739b364add7cc1 | /test_database.py | 3ec142bcbf495d1de074cab9b80209b5f42a973d | [
"MIT"
] | permissive | akitanak/tus-sample | f8b7d0d1277c2041daafb89998627d4743daa494 | 6c2b7d7084387dbf2e2fa7507e18fcae1c396af3 | refs/heads/master | 2022-12-09T15:06:49.431841 | 2019-07-21T22:36:49 | 2019-07-21T22:38:35 | 189,846,083 | 0 | 0 | MIT | 2022-12-08T05:14:23 | 2019-06-02T12:52:10 | Python | UTF-8 | Python | false | false | 1,651 | py | import pytest
from database import Database
@pytest.fixture
def database():
return Database()
def test_add_uploads_save_new_upload_data(database):
upload_length = 100
metadata = {
'key1': 'value1',
'key2': 'value2'
}
upload_concat = 'partial'
data = database.add_uploads(upl... | [
"akihito_tanaka@me.com"
] | akihito_tanaka@me.com |
e14073fe089fb089b1ffd4715e4332b9685f3cd9 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/database/mongodb/build/lib.linux-x86_64-2.7/gridfs/grid_file.py | e5df5e42b479eedfdbf642e1d7f90b7f48d2075b | [
"Apache-2.0"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 24,948 | py | # Copyright 2009-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
6497c191d192cb0725b81862d4fff0d3b8e6c824 | 5c1e5935129b4d0f5626f64bd62e3370b0553262 | /openpype/settings/entities/list_entity.py | c6155b78f8d9f09056fe7454d0edca180480bd03 | [
"MIT"
] | permissive | dangerstudios/OpenPype | c72f9d6d3a4a964697fa77712c116cfd2949b696 | f82ed5e127340e852a7517ff1e13e2524ee6e704 | refs/heads/main | 2023-04-21T00:25:02.364398 | 2021-04-13T22:10:36 | 2021-04-13T22:10:36 | 362,811,887 | 0 | 0 | null | 2021-04-29T12:35:54 | 2021-04-29T12:35:53 | null | UTF-8 | Python | false | false | 14,725 | py | import copy
from . import (
BaseEntity,
EndpointEntity
)
from .lib import (
NOT_SET,
OverrideState
)
from .exceptions import (
DefaultsNotDefined,
StudioDefaultsNotDefined,
EntitySchemaError
)
class ListEntity(EndpointEntity):
schema_types = ["list"]
_default_label_wrap = {
... | [
"jakub.trllo@gmail.com"
] | jakub.trllo@gmail.com |
725b6c1e229d728030f45cb8f870e06dccdb758e | 44607c5bbcf5132a95e0de6ab352562158f99874 | /connectedness/dataset.py | f59a8c33418be6555c8737fd361bccf4daae1795 | [
"MIT"
] | permissive | KrnTneja/My-Experiments-With-DNC | d781a0a7988a8d446137cb077653ed04bc58404c | e34be763918bf9033113ed0e8054eb0c68d5c6f0 | refs/heads/master | 2020-05-17T09:01:01.984096 | 2019-05-03T17:36:56 | 2019-05-03T17:36:56 | 183,621,768 | 0 | 1 | MIT | 2019-05-03T17:36:57 | 2019-04-26T12:07:07 | Python | UTF-8 | Python | false | false | 3,111 | py | import numpy as np
import torch as T
from torch.autograd import Variable as var
import networkx as nx
# generate number of nodes randomly between [10,25]
# generate a Gnm graph
# Check if the the graph is connected
# generate two nodes randomly
# find the shortest path between them
def get_bit_sequence(x, bits=6):
... | [
"karantaneja318@yahoo.com"
] | karantaneja318@yahoo.com |
e0875903db0c36f69dddf93a4340c5d4ecf016e0 | 2efbcc75ac0e0b0388dc50e05eb1d5cd2ae327d9 | /jiqiren/text.py | 751b0352bf7fb03ddbd281de000f93fcdbe871fe | [] | no_license | lifengywh/mygit | b38d340d0eaf04188fbb2838aae76b58e48abb86 | 987605b83e28d2a48daeb5866d53be7ab3bd333e | refs/heads/master | 2020-04-15T06:37:50.648519 | 2016-12-13T10:27:39 | 2016-12-13T10:27:39 | 34,562,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | #-*-encoding:utf-8-*-
import requests
import sys
sys.path.append("..")
import pprint
from tool_my import commen
import time
import random
import pymongo
import pprint
import requests
import math
from bs4 import BeautifulSoup
# commen.space_delete('answer_tuling_new.txt','answer_tuling.txt')
user_dict = {"lifeng200545... | [
"2271095585@qq.com"
] | 2271095585@qq.com |
0b80ce65c0fc141d50afe93732e5bb02641dcfc7 | 5ab3a6b8ea64920a99d24ed41531cf56a3f5d53a | /app.py | cd4fb90b15aacff43cdf5765e0f2d6b8e3c0d943 | [] | no_license | ElisabethHolm/TelloDrone | 3c9d7f999cbfce2c42946333e9816cc16928f2b0 | 0252b635842a15b321efc7d600a57548e255aca3 | refs/heads/master | 2023-05-07T15:09:20.828990 | 2021-06-01T16:05:32 | 2021-06-01T16:05:32 | 359,876,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | #python 3.8.10
from tello import Tello
import sys
from datetime import datetime
import time
import argparse
#cd Downloads/Coding/TelloDrone/auto_flight
#python app.py
#git push -u origin master
'''
def parse_args(args):
"""
Parses arguments.
:param args: Arguments.
:return: Parsed arguments.
"""
... | [
"elisabeth.holm.21@bishops.com"
] | elisabeth.holm.21@bishops.com |
50efae8cf3c6ae5e6053a7c24c353564133793bc | 8b7334be253552c4a2982e3022d211ad8970abf6 | /data/migrations/0053_merge_20180615_1859.py | 77b069dd59b066015e97cf4ed41046967c32178f | [
"MIT"
] | permissive | Duke-GCB/bespin-api | e5442bf66471bd9469f8094575a1efc00eafc700 | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | refs/heads/master | 2021-08-16T05:36:25.323416 | 2019-10-18T15:30:16 | 2019-10-18T15:30:16 | 69,596,994 | 0 | 3 | MIT | 2021-06-10T18:55:46 | 2016-09-29T18:41:56 | Python | UTF-8 | Python | false | false | 333 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2018-06-15 18:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('data', '0051_merge_20180615_1758'),
('data', '0052_auto_20180615_1537'),
]
operatio... | [
"johnbradley2008@gmail.com"
] | johnbradley2008@gmail.com |
dce8de867049b21d45d17ae05f6fc6605d789d27 | 6192fe0c70c253205cd827fd34a82e9211080762 | /webchat/views.py | db9aedc35b2e343a37918298d266f3764f3d6aac | [] | no_license | EcthelionF/Chatroom | 34cf45ed3b7a84004ea011eb8ed7e502a7876f39 | 24cbe60164c46a507f0ac729f2c53a6cb09a6b89 | refs/heads/master | 2021-06-16T19:48:45.511079 | 2017-05-28T10:17:48 | 2017-05-28T10:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | # -*- coding: utf-8 -*-
import json
import Queue
import time
from django.shortcuts import render
from django.views.generic.base import View
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from webchat.... | [
"yipwinghong@outlook.com"
] | yipwinghong@outlook.com |
75dca9b33013e2ffe6ceaf9593620fdf7888d4a4 | c79ddb3d77dabba4fe09ba23a43821056867042f | /movieRecommender/DAO/engineDAO.py | db08dbb2a4cf5f2b211549da24e0183a4979c2e8 | [] | no_license | Ajaypal91/Movie-Recommendation-webapp | 75a070104e08aac27f8b65894d599047bcf4525e | 7a9f087c4223610c9fe6bbb9941f388b8517f628 | refs/heads/master | 2021-01-12T09:39:44.510678 | 2018-01-13T02:07:31 | 2018-01-13T02:07:31 | 76,221,325 | 2 | 1 | null | 2018-01-13T02:07:32 | 2016-12-12T04:14:21 | Python | UTF-8 | Python | false | false | 1,611 | py | import movieRecommender.DAO as DB
#function to retrieve movies belonging to list of indexes
def getMoviesFromIndex(movieIDs) :
db = DB.getDBConnection()
quer = ''
if len(movieIDs) == 1 :
quer = 'select * from idmovietable where index = %s' % movieIDs[0]
else :
movieIDs = tuple(movieIDs... | [
"erajaypal91@gmail.com"
] | erajaypal91@gmail.com |
3c8cf23ef57c426d71261901919a61c1533391e0 | 59d2116aba1a5e24edcbcdfa6f3e6a973a8ecba7 | /service/jobservice.py | cd87567526e3fb9b99608675fd431d87788a9c78 | [] | no_license | liuwangleo/testGit | b6e09d3539ad3400093cfdb41c6f971467e91763 | 274ef1465a24ec0ff02315b4ed0d81ba48c495b3 | refs/heads/master | 2021-09-27T01:02:38.056756 | 2018-11-05T03:41:01 | 2018-11-05T03:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from dao.jobdao import JobDAO
class JobService():
'''def __init__(self):
self.__jobDAO = JobDAO() # 不是线程安全的__jobDAO 这对象没有加锁
'''
def getJobXqInfo(self):
return JobDAO().getJobXq()
def getJobCpInfo(self):
return JobDAO().getJobCp()
def getJobXsInfo(self):
return Jo... | [
"3075312534@qq.com"
] | 3075312534@qq.com |
2d6afda630fcaf11b046b7bc8f1aea4823f7bb47 | 697fb11686110f569e7f4284045049d008688221 | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/Sm6gN7BhS-h48BYanqqR8e9hKpcKaYmhkeYrr4_nJd4=/_csv.cpython-37dm-x86_64-linux-gnu.pyi | ec5834e00fd39a7fb05a5e346445653229172585 | [
"Apache-2.0"
] | permissive | andredoumad/p3env | 433c9174899f0909b149f51c3243b6fe04e076bf | a8850d06755d53eb6fedd9995091dad34f1f9ccd | refs/heads/master | 2023-02-03T20:50:07.357255 | 2020-12-23T09:15:55 | 2020-12-23T09:15:55 | 317,041,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | pyi | import builtins as _mod_builtins
class Dialect(_mod_builtins.object):
'CSV dialect\n\nThe Dialect type records CSV parsing and generation options.\n'
__class__ = Dialect
def __init__(self, *args, **kwargs):
'CSV dialect\n\nThe Dialect type records CSV parsing and generation options.\n'
pass... | [
"andre@stringkeeper.com"
] | andre@stringkeeper.com |
c9b59822130a0a25ae630975135be65c9a5141b5 | e33831bae98bfc2191b7044f6df445c5f51f1226 | /languages/python/Queue.py | debd627d733b66143b4a985f8c4623997f6bd533 | [
"BSD-3-Clause"
] | permissive | mimikaan/learntosolveit | 6dfae0bdb656d529956e5212446f431fe80d34ac | 22022a70d3405b1b9a248d35ea3f0aab4135eace | refs/heads/version1 | 2021-06-25T19:33:36.848098 | 2019-10-07T11:25:06 | 2019-10-07T11:25:06 | 101,304,652 | 0 | 0 | BSD-3-Clause | 2019-10-07T11:25:07 | 2017-08-24T14:34:26 | Java | UTF-8 | Python | false | false | 665 | py | """
Simple implementation of a Queue datastructure in Python.
"""
class Queue:
def __init__(self, items = None):
if items is None:
items = []
self.__queue = items
def __repr__(self):
return str(self.__queue)
def isempty(self):
return len(self.__queue) == 0
... | [
"orsenthil@1860ccae-0748-11de-bc6d-132d5dcf21d4"
] | orsenthil@1860ccae-0748-11de-bc6d-132d5dcf21d4 |
df98b6cceba7456b59e27d905b37b1ad32a71a0e | 236d2f99257211bbbd4bdafe95fddf7bfcb2d6e8 | /blog/views.py | 999510eb933755a9a8e24fbe26438502c866a744 | [] | no_license | vasuparikh/assign1 | 99f4bc466897d446c790513f2a1eef78eb36b2ed | 30b78e4197ec43e0eab897efc0e48eb6428493eb | refs/heads/master | 2021-05-09T05:41:12.804009 | 2018-01-29T01:45:23 | 2018-01-29T01:45:23 | 119,317,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.views.generic import ListView
from .models import Post, Comment
from .forms import EmailPostForm, CommentForm
from django.core.mail import send_mail
from taggit.models import Tag
f... | [
"vparikh@unomaha.edu"
] | vparikh@unomaha.edu |
118e4b1974f84443f4a7aff55f59536929fc7f86 | 9f3b478d39f1a8b706813c1b4993614a376a045d | /pycryptics/utils/ngrams.py | f5b4948ad7ec29d344d4bdd141514be91e173c58 | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | kod3r/cryptics | a201c62bdd2ecafee5937d2d7af9c29dcd38ec67 | 4bd17d24202b6fabce8c7ad378a61e77eb7562a7 | refs/heads/master | 2020-12-25T16:36:25.800144 | 2013-03-09T06:12:35 | 2013-03-09T06:12:35 | 10,188,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import cPickle as pickle
import os.path
INITIAL_NGRAMS = dict()
NGRAMS = dict()
i = 0
while True:
if os.path.exists('data/ngrams.%02d.pck' % i):
with open('data/initial_ngrams.%02d.pck' % i, 'rb') as f:
d = pickle.load(f)
INITIAL_NGRAMS.update(d)
with open('data/ngrams.%02d... | [
"robin.deits@gmail.com"
] | robin.deits@gmail.com |
7f95a83c43fdf2708fd750941606c18c42a90b70 | 684890a1bdb0c5c98c85f6564f52ea4dd162c0b1 | /Day-08/jagadeeshwaran.py | c1c51775a4440bc669b53cf56b784e42314c4719 | [] | no_license | Job-Colab/Coding-Preparation | eb39dc6f064a76c9ef3a0318f3612e96d6cc6459 | a0273cb0d38afbbda7b6a1f008ab812b93f09d74 | refs/heads/main | 2023-04-28T21:50:38.218873 | 2021-05-13T03:11:48 | 2021-05-13T03:11:48 | 301,300,545 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | class Solution:
def lastStoneWeight(self, stones: List[int]) -> int:
self.stones = sorted(stones)
for i in range(len(self.stones)):
try:
if(self.stones[-1] == self.stones[-2] ):
self.stones.pop()
self.stones.pop()
if... | [
"noreply@github.com"
] | Job-Colab.noreply@github.com |
d8c7eb58b1dc24797edb7fa6bcd2157b47720e59 | d65a5a51a4d2a4850f016b1a1a07da56207ed106 | /loginpass/github.py | 0c415912dee95d5554a126abb594b83805abb24c | [] | no_license | whysoserious97/Security-one-time-login | 47689892d2469b0cd1aa6a8a8928126c4dfdfc7c | 2f0c1d15eb7144a898827bd6722f5269a33ff34c | refs/heads/main | 2023-01-03T12:36:08.693358 | 2020-10-15T17:38:10 | 2020-10-15T17:38:10 | 304,314,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | def normalize_userinfo(client, data):
params = {
'sub': str(data['id']),
'name': data['name'],
'email': data.get('email'),
'preferred_username': data['login'],
'profile': data['html_url'],
'picture': data['avatar_url'],
'website': data.get('blog'),
... | [
"noreply@github.com"
] | whysoserious97.noreply@github.com |
8f2a8b1a47778e9fafd036fb9c90ce4733f8b4a4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_2_1/branyine/2016_round1B_A.py | 3a2e46214d97bb27396b00187e8aa2574f9e2376 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,790 | py | # link: https://code.google.com/codejam/contest/dashboard?c= #s=p0
import string
import time
testIndex=2
problemRoot="d:/prog/versenyek/googlejam"
problemDir="2016/round1B"
problemName="A"
inputFiles= ["-example.in", "-small.in", "-large.in"]
outputFiles=["-example.out", "-small.out", "-large.out"]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
76e7ae8e3189102c9527ecd4b8ad0f9665d4da91 | fd03e5908cb744a220a40d4cfaf4a220bed01570 | /users_trial/groups/urls.py | 09056f928b80144121e81dd8c142b4679844bbb6 | [] | no_license | navinkumar247/learningproject | 315378d34d142b3ec651f9231984927749fccf08 | a285e12fb3eeabe4a1cd91abe26c2a8f014ab96a | refs/heads/master | 2022-07-31T06:38:33.303164 | 2020-05-24T11:20:21 | 2020-05-24T11:20:21 | 265,815,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from django.urls import path,include
from . import views
app_name= 'groups'
urlpatterns = [
path('grouplist/',views.GroupList.as_view(),name='grouplist'),
path('group/<slug>/',views.GroupDetail.as_view(),name='groupdetail'),
path('creategroup/',views.CreateGroup.as_view(),name='creategroup'),
path('... | [
"navinkumar247@gmail.com"
] | navinkumar247@gmail.com |
f6d7d9d5ec362e4befe85512b86666d80eafa119 | 614486849fc9fc6959a1e3f06f4598ceec60e507 | /pyjobs/core/tests/test_apps.py | 0daf63c0c9c12c5f1b4b9d6b685ea298e7971742 | [] | no_license | it-fm/PyJobs | 899bcc65fdff6cae121b6520c833c8cbbd3521d3 | 977f0271d60012d305b7d31fc85549474dbe9fcc | refs/heads/master | 2020-06-20T08:07:41.185206 | 2019-07-11T21:42:46 | 2019-07-11T21:42:46 | 197,054,058 | 1 | 0 | null | 2019-07-15T18:46:31 | 2019-07-15T18:46:31 | null | UTF-8 | Python | false | false | 292 | py | from django.apps import apps
from django.test import TestCase
from pyjobs.core.apps import CoreConfig
class CoreConfigTest(TestCase):
def test_apps(self):
self.assertEqual(CoreConfig.name, "pyjobs.core")
self.assertEqual(apps.get_app_config("core").name, "pyjobs.core")
| [
"vinicius@bigsp.com.br"
] | vinicius@bigsp.com.br |
325d9ea1bfeb32f453f69fdbe6f3a4ee1a78e194 | 1ec579482f48c862512b07b49699140d9eec9d0d | /openCVTest2.py | 5ace26a655c73dc03e85dd12fd1d076bfb979ca7 | [] | no_license | GretaThunbergUltras/Entladen | d036a5a97cced575bc6db26a7ae382edfb413132 | ef85cc62586157394b8cd7b9a3af47d69a1dca26 | refs/heads/master | 2020-12-19T19:07:37.460160 | 2020-02-03T19:56:23 | 2020-02-03T19:56:23 | 235,824,404 | 0 | 0 | null | 2020-02-03T19:56:24 | 2020-01-23T15:29:33 | Python | UTF-8 | Python | false | false | 205 | py | import cv2
img = cv2.imread('lena.jpg', 0)
cv2.imshow('Jolo', img)
k = cv2.waitKey(0)
if k == 27:
cv2.destroyAllWindows()
elif k == ord('s'):
cv2.imwrite('lena_copy.png', img)
cv2.destroyAllWindows()
| [
"jo@gmail.com"
] | jo@gmail.com |
108a3b8aa471b952ca309c138f860da3c91af549 | f209a5462a88286fab63fa7d5cd881afbc5b5b71 | /margaritashotgun/repository.py | cc999da12bd1bad7665428a100c745efeaedf1c1 | [
"MIT"
] | permissive | toniblyx/margaritashotgun | 0505a2c4de44b94d4b5e27130bcb307a63d471d5 | 9ec1f800439cb9653a2ba9c3cadb04aa7613b365 | refs/heads/master | 2021-01-20T14:28:20.429158 | 2017-02-21T07:35:39 | 2017-02-21T07:35:39 | 82,754,239 | 1 | 0 | null | 2017-02-22T03:04:07 | 2017-02-22T03:04:07 | null | UTF-8 | Python | false | false | 14,281 | py | import gnupg
import gzip
import hashlib
import logging
import os
import requests
import time
import xmltodict
from datetime import datetime
from io import BytesIO
from margaritashotgun.exceptions import *
from prompt_toolkit import prompt
logger = logging.getLogger(__name__)
class Repository():
"""
Lime-comp... | [
"joel@ferrier.io"
] | joel@ferrier.io |
c5cc1dd7eaf84fc371110d20b2212204cc4e73b1 | 47510baab17bb33e9b88255b54f2bc97531b7e7b | /MNIST/Regression.py | e7882f4f1ba9fd40e275abf69d0da7093531952e | [] | no_license | afreeland/TensorFlow | f9a3dfb821fcec819fb305e6d89cb1194498638b | afba1840000c75f24adb2754099e1df8103a4cb3 | refs/heads/master | 2020-12-31T00:19:01.986509 | 2017-03-16T14:07:41 | 2017-03-16T14:07:41 | 85,115,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
# https://www.tensorflow.org/get_started/mnist/beginners
# This represents a placeholder that will store our vertices of a single image that we input
# Our image is stored ... | [
"AFreeland@mmhad.mmhospital.org"
] | AFreeland@mmhad.mmhospital.org |
7e44e71e032efd5f7dc7a27155411d3881d8f1b4 | d4ea11df73cc4fcc33665da20d673462c69c4bda | /recognizer_stream2.py | f59c67c55b6f932357719268673c9f210e5d8dbf | [] | no_license | ductandev/Face-Recognition_DLIB-InsightFace1 | b96eeb071d1cc1dafdb07ebe33bc8e5a2b38ab96 | d23f80e22c0cd6a5b9a87f3f928cae6b3a468498 | refs/heads/main | 2023-08-27T19:24:25.620061 | 2021-09-03T09:54:15 | 2021-09-03T09:54:15 | 402,659,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,423 | py |
import pickle
import mxnet as mx
from tensorflow.keras.models import load_model
# from mtcnn import MTCNN
from imutils import paths
from common import face_preprocess
import numpy as np
from deploy import face_model
import argparse
import time
import dlib
import cv2
import os
import facenet
import detect_face
import... | [
"nguyenductan998@gmail.com"
] | nguyenductan998@gmail.com |
6eead2339d7beb6299ea75b3f6f188d0abada27a | 180ed6c8ff26b365e56c63d878a69c2e9d9b8c54 | /code/Day_04/01_xml.py | e218c1a1a13919328e7e183d4d19d9fc0e95e7c4 | [] | no_license | archeranimesh/python_devu_in | 9af46503b07f82a137d4b820920fa72f96a5067b | 3d77e9e7b150aae15375b236e3de7f573da4bdce | refs/heads/master | 2020-06-08T21:22:24.329530 | 2019-07-14T11:22:55 | 2019-07-14T11:22:55 | 193,308,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Read from XML.
import xml.etree.ElementTree as ET
file_path = r"code/Day_04/data_files/data.xml"
f = ET.parse(file_path)
print("type(f): ", type(f))
# get the root.
root = f.getroot()
print("type(root): ", type(root))
print("---" * 30)
for i in root.iter():
print(i.tag)
print(i.text)
print("---" * 5)... | [
"animeshb@archerimagine.com"
] | animeshb@archerimagine.com |
351b29912996e8d945597f34f8b8b701162901d5 | 0f655f1824bbd8783587f957a35cce528ff4b41a | /03-DRF-LEVEL-ONE/venv/bin/django-admin.py | 836dce4e1b49dffb2a401e669d50a4743bc31ae8 | [] | no_license | zackcpetersen/DRF | 35396dc6b9fc191de57d22ccee089200f85fbbc5 | 43daa8f8444a1bcda9b2b5a0e96f6d7467f09669 | refs/heads/master | 2020-08-04T17:26:22.150387 | 2019-10-02T23:09:46 | 2019-10-02T23:09:46 | 212,216,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/Users/zachpeterson/Projects/Vue_Django/03-DRF-LEVEL-ONE/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"zackcpetersen@gmail.com"
] | zackcpetersen@gmail.com |
f179ed862201ee57632b326d1a40adac210171db | 9f56b67705bfcafef541773a4334815abbc53eb2 | /duckTyping.py | 76fc2ae66da6733ac152e4b92726acc7ae1292de | [] | no_license | sukanyabag/Object-Oriented-Programming--Python | 5527543cc89b2d8bf60173d5042bc52f9d5a98b2 | e40cbc9ec099ca8194a79e6f5c3b784c982ba931 | refs/heads/main | 2023-07-18T20:10:42.981001 | 2021-09-12T14:27:01 | 2021-09-12T14:27:01 | 370,100,780 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Python program to demonstrate
# duck typing
class Bird:
def fly(self):
print("fly with wings")
class Airplane:
def fly(self):
print("fly with fuel")
class Fish:
def swim(self):
print("fish swim in sea")
# Attributes having same name are
# considered as duck typing
fo... | [
"noreply@github.com"
] | sukanyabag.noreply@github.com |
a727112ec4da03b9e6099582828fdae48fb36ec7 | 7f1bb7461c8d80941baefbeb5ce6074058478a33 | /todoBot/types.py | e02b1cd00f5836b0c656433fc84569549b798366 | [] | no_license | lrusik/todoBot | ffe2e911fa84894d53433cfb7276639427587962 | 2ae6ad02c1f76a846fc992ff3377ab0e23a9135e | refs/heads/master | 2020-05-04T20:51:40.684947 | 2019-07-18T07:40:36 | 2019-07-18T07:40:36 | 179,454,108 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,941 | py | # -*- coding: utf-8 -*-
try:
import ujson as json
except ImportError:
import json
import six
from todoBot import util
class JsonSerializable(object):
"""
Subclasses of this class are guaranteed to be able to be converted to JSON format.
All subclasses of this class must override to_json.
""... | [
"yakushev.rusl101@gmail.com"
] | yakushev.rusl101@gmail.com |
89d363676bee6d1b2d3d8bfa6606163fdb344a24 | a9953a909566243a3d6ff382984678226728e40d | /views/json.py | d5ac4398176762aea39f5412f1076b0a02ec2167 | [] | no_license | nailgun/djcommons | 27f3a0436d0f0bb743e450b128aeca06f3acc2f7 | 8078b4200e04bba32f68e195e5a10bdf411e0f8d | refs/heads/master | 2021-01-25T12:09:13.233433 | 2009-12-08T14:39:53 | 2009-12-08T14:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from django.utils import simplejson
from django import http
def clean_query_value(value):
mapping = {
'__true__': True,
'__false__': False,
'__none__': None,
}
return mapping.get(value, value)
def default_pack(obj):
return (obj.pk, unicode(obj))
def object_list(request, queryset, pack_func=default_pack):
... | [
"nailgunster@gmail.com"
] | nailgunster@gmail.com |
c0dfd8ad42640aafa9293bf4c7772a4184ee2d3b | 7da3e8de4b1fe4ff87dc68f05384d2c8d92ccb99 | /model_validator.py | 4ebfda02cef9c3e4eaf6c9f060bd051f13450c00 | [] | no_license | haris-kekic/occupancy-prediction | 6f88eaf148de9ac22e60bff635ce463be8879845 | 365eb57c2b4eb688da7e5b93495d61cb494fac40 | refs/heads/master | 2022-12-14T12:58:21.499809 | 2020-09-15T08:02:23 | 2020-09-15T08:02:23 | 259,653,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,367 | py | # -----------------------------------------------------------
# Klasse, die es ermöglicht Modelle mit einem Datensatz zu
# tainieren und evaluieren. Dabei wird Forward-Chaining
# k-Fold Cross Validation für Zeitreihen verwendet
#
# (C) 2020 Haris Kekic, Fernuniversität in Hagen
# ---------------------------------------... | [
"haris.kekic@siemens.com"
] | haris.kekic@siemens.com |
8e8645232fa6b02d138786da3ea4323ad4a067d9 | fb580fc91e8b9bd5fe62ee30e5dd182d006dfdfd | /bin/phoneword | 94b7c9d5327bdab64164015f9a2cc00628147146 | [] | no_license | Anton1o-I/dotfiles | 66ad30dd87b09dc1ecb2af186663d573d4fdfe57 | 000a2c91c2d70b99f0b463515d56d6b52dc337d2 | refs/heads/master | 2020-09-12T18:15:54.524252 | 2019-10-04T05:33:52 | 2019-10-04T05:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | #!/usr/bin/env python3
"""
Converts words to phone numbers.
I occasionally use this to come up with mnemonic
port numbers to use for different applications.
"""
import sys
MAPPING = {
'a': 2,
'b': 2,
'c': 2,
'd': 3,
'e': 3,
'f': 3,
'g': 4,
'h': 4,
'i': 4,
'j': 5,
'k': 5,
... | [
"hello@nutty.cc"
] | hello@nutty.cc | |
083a4d4959c0e13f53c618c6d3d7c65c43e8a443 | 56832c284c45fa19ea0de80c38a432271ad6d144 | /app/health_check/blueprint.py | 36d37abafc0043c5181d4ae11e68dc003de1677e | [] | no_license | biancarosa/music-stats-api | c42bbf5395e9ace4fade1f6726ba54b893c171b9 | 6e855bab2e07f82c03b13d306f91ad427da1495a | refs/heads/master | 2022-07-11T20:34:04.568634 | 2018-01-09T16:00:15 | 2018-01-09T16:00:15 | 116,841,138 | 0 | 0 | null | 2019-06-09T03:53:59 | 2018-01-09T16:28:48 | Python | UTF-8 | Python | false | false | 415 | py | # encoding: utf-8
"""Define os blueprints para as rotas de health check"""
from flask_restful import Api
from flask import Blueprint
from .health_check import HealthCheck
def setup():
"""Retorna um blueprint para a função de health check"""
blueprint = Blueprint(
'health-check', __name__,
)
... | [
"me@biancarosa.com.br"
] | me@biancarosa.com.br |
0d37212ad0a4f29125a824731a08f3d1111d8ae1 | 30e7173cd25d0c60bf3aecb009366c375e11411a | /articulos/templatetags/dict_key.py | a9144c06451ff0fe29b455948e58eb9ca08bbdd4 | [] | no_license | arm98sub/djangoHospital | 55eb8ab437d1fb2036f55d9247d41fc577978e1e | bef771676b336d9b98f750e2e0648324cb259056 | refs/heads/master | 2023-05-17T14:39:54.510044 | 2021-06-01T23:36:06 | 2021-06-01T23:36:06 | 372,985,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.template.defaultfilters import register
@register.filter(name='dict_key')
def dict_key(d,k):
return d.get(str(k)).get('cantidad') | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
cc30e097c5a8e1be0b554cb3c5dce3428c0620e4 | 4af59c0cd941f0ebe5f0ce447a4db90914585d23 | /tensorflow_federated/python/core/impl/compiler/local_computation_factory_base.py | 9297be8cd44edaf0ccebc7d3d4ab82a6af1935f9 | [
"Apache-2.0"
] | permissive | ali-yaz/federated | bbabac58c8a5e96f95cef2b7558f61c6a8610651 | 8e3d60ae6129611b5ebf8f94755c50082d97d45a | refs/heads/master | 2023-03-10T21:19:43.160733 | 2021-02-23T09:11:10 | 2021-02-23T09:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Copyright 2021, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
58dac9d086dbc35e3e06a03f450bc12c5fdc07a8 | a783a0f294b224c59d51fdd50c9e8ff448a3f1a2 | /werobot/reply.py | bb28cc83052b41dc41797d5a7e0bfa88e933f259 | [
"MIT"
] | permissive | moonbingbing/WeRoBot | aacadb4eeb823844600e2925c13315ce59289069 | 94cdb19c06f47ea9e78953654a3277bf6ce47381 | refs/heads/master | 2020-12-25T08:43:10.893539 | 2013-03-23T06:27:15 | 2013-03-23T06:27:15 | 9,025,793 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | # -*- coding: utf-8 -*-
import time
from .messages import WeChatMessage
from .utils import isstring, to_unicode
class Article(object):
def __init__(self, title, description, img, url):
self.title = title
self.description = description
self.img = img
self.url = url
class WeChatRe... | [
"whtsky@me.com"
] | whtsky@me.com |
5d25a95bf956d2210cab76d2bd46dc9719e6b30c | e8e411a0ff1da1e0ec9350e4d1b7d24353c2c4c6 | /bytearray from list.py | 55e43aac0814529329c8032099aec479d46cdc99 | [
"MIT"
] | permissive | manand881/Python-Programs | b3333b68172d4f0d7c0757f40f1608bfc6a6523a | eb970cb1b21d4aede0102c60425eb8a1d4ac605c | refs/heads/master | 2020-03-24T22:50:25.430484 | 2019-05-17T04:57:59 | 2019-05-17T04:57:59 | 141,669,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # Create a bytearray from a list
print()
nums = [10, 20, 56, 35, 17, 99]
# Create bytearray from list of integers.
values = bytearray(nums)
for x in values: print(x)
print()
print("type of nums",type(nums))
print("type of values",type(values)) | [
"manand881@gmail.com"
] | manand881@gmail.com |
8a37d224360ce057c93ddb21fa63280c073dbd46 | c50f6fa9a15b64ce95b0deb6138caa78fddc06c8 | /howtrader/app/cta_strategy/ui/widget.py | 663354c8287d31e287a982032a408c6471ba5e58 | [
"MIT"
] | permissive | mingren1992/howtrader | ba421623c5c41a739a2b1b6d946cd4f532950499 | 9945f0ed65be86a09668fea8e8f6659be8ce4591 | refs/heads/main | 2023-02-03T14:53:36.282305 | 2020-12-17T13:34:59 | 2020-12-17T13:34:59 | 322,328,845 | 1 | 1 | MIT | 2020-12-17T15:02:57 | 2020-12-17T15:02:57 | null | UTF-8 | Python | false | false | 13,915 | py | from howtrader.event import Event, EventEngine
from howtrader.trader.engine import MainEngine
from howtrader.trader.ui import QtCore, QtGui, QtWidgets
from howtrader.trader.ui.widget import (
BaseCell,
EnumCell,
MsgCell,
TimeCell,
BaseMonitor
)
from ..base import (
APP_NAME,
EVENT_CTA_LOG,
... | [
"lin"
] | lin |
1217b1f5f691d23f891f995bc8163f304a68483d | 11f0e6122342b57c2986ef07834fbfa07450e8f4 | /08_Manejo_de_Cadenas.py | e335863e54ecc3cc2554eab2d14331f50a450a4b | [] | no_license | Aburgos86/PythonCourse | 5a4b4bf2fe8f2636da74f419a111cb3b7c2bd352 | 816be9955daea0fa118216074c7fddcb86025b33 | refs/heads/master | 2023-07-17T05:44:01.879923 | 2021-09-07T16:52:58 | 2021-09-07T16:52:58 | 404,054,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py |
# Manejo de Cadenas
# ESTILO WCODE
# Variables
# int_Nombre_variable = tipo_dato ; Variables del tipo entero
# float_Nombre_variable = tipo_dato ; Variables con decimales
# str_Nombre_variable = tipo_dato ; variables con Cadenas o caracteres
# bool_Nombre_variable = tipo_dato ; variables... | [
"corrientes1556@gmail.com"
] | corrientes1556@gmail.com |
f782078e74354ee182f30e2d720551f8c900ba4e | 16e775a4792a376c3e98176600944d71093d2537 | /miscellaneous/scripts/create_csv.py | 95f35162bf47ec643228275e9c36fca817a04a8d | [] | no_license | leequan/SceneRecognition-1 | b1a8242515bf13ed9525a1984d2d0c28844d1f62 | 016e2506e663b39cf172dbbc9aeb9918cf8f69b0 | refs/heads/master | 2020-03-24T07:08:50.723684 | 2016-02-22T09:56:09 | 2016-02-22T09:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import os
import sys
import csv
if __name__ == '__main__':
if len(sys.argv) != 2:
print "Usage: create_csv <Base Path>"
sys.exit(1)
if not os.path.exists(sys.argv[1]):
print "Base Path does not exist !"
sys.exit(1)
else:
dest = "./testing.csv"
BASE_PATH = o... | [
"johnnylinxr@gmail.com"
] | johnnylinxr@gmail.com |
ada479315bca15bc08aed6b95ba0e56a5f39ca7e | 1eadd8793a9b13bf18ea0b402d2bb4132bf001a9 | /utils.py | cd05a0997b5c35d26d6dfe39709ebcf1b0e14a65 | [] | no_license | aitirga/gda_brain_tumors | ba5656c8852a481121f4c1c16060309df9288a24 | eeaf98688f7b6d98a9046a572c16726878eed9c0 | refs/heads/main | 2023-06-29T08:11:19.712043 | 2021-07-28T19:27:28 | 2021-07-28T19:27:28 | 390,463,490 | 0 | 0 | null | 2021-08-02T16:14:44 | 2021-07-28T18:36:54 | Python | UTF-8 | Python | false | false | 152 | py | from pathlib import Path
def get_project_path():
return Path(__file__).parent
def get_config_path():
return get_project_path() / "./config"
| [
"aitirga@gmail.com"
] | aitirga@gmail.com |
72c8111dc13edddf648e5ff982461fea4a203990 | e4471bd490598ab711832b262e51df9f19624b80 | /snake/state.py | af4842ecb56df20821677d9fc66868dbd76e3a1f | [] | no_license | sracela/snake | c74729a4e89565664cd3523c98f1ae92981bb1b9 | aa234740ddd0603f41aa64a9c395eeb94ada71fc | refs/heads/master | 2022-04-15T13:26:04.515103 | 2020-04-13T21:51:45 | 2020-04-13T21:51:45 | 255,007,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from enum import Enum, auto
class State(Enum):
UP = auto()
DOWN = auto()
LEFT = auto()
RIGHT = auto() | [
"saracelalfonso@gmail.com"
] | saracelalfonso@gmail.com |
b3df16bd97fd7c39119c0201bd5aae23d5c633cf | 9e8fd74b3b41a68dfc18135978df473236a99d7c | /rtlsdr.py | 1a1e755664cb08f583a1c9f34e1b5970efec907a | [] | no_license | RobertGolosynsky/remote_scanner | b5ee5b901839258d27dddc08efd39ef71c4c29fc | 5282b85bb1d0247f4cf4b08b112dacff9ebcfa4f | refs/heads/master | 2020-04-06T12:41:18.833676 | 2019-02-06T12:54:51 | 2019-02-06T12:54:51 | 157,466,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py |
import subprocess
class RTLSDR:
def __init__(self):
pass
def scan(self, min_max_step, interval_s, time, filename):
args = ['rtl_power']
if interval_s == '0':
args.append('-1')
else:
args.append('-i')
args.append(interval_s)
args+=[
'-f',min_max_step,
'-g', '50',
'-e', '{}s'.format... | [
"robertgolosynsky@gmail.com"
] | robertgolosynsky@gmail.com |
aafafef52ce240ded25a999631cce9f2a04f002a | dcccc67690a07b4b33dea6ddb1de92c20d7a2545 | /accounts/tests/test_form.py | c475c3ade3d24bf785d279f2379792d7b30ee398 | [] | no_license | t4christ/trivial-game | b2b3601b8ca5870832395b18d6d6f486087eb2f3 | 97fc606a41882415128e2d68a572f3d4705ca70c | refs/heads/master | 2023-07-06T11:14:50.174830 | 2023-06-21T19:36:41 | 2023-06-21T19:36:41 | 190,012,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from django.test import TestCase
# Create your tests here.
import datetime
from django.utils import timezone
from accounts.forms import RegisterForm
class RegisterFormTest(TestCase):
def test_register_form_email_field_label(self):
form = RegisterForm()
self.assertTrue(form.fields['email']... | [
"bakaretemitayo7@gmail.com"
] | bakaretemitayo7@gmail.com |
bb2cac6975527c67a5ad7d92a6370d389ed2c327 | 9de729424563c580270698d019fa6b3411908b08 | /test_main_page.py | feb586766c3e1436db51933d68711a0a294635f0 | [] | no_license | lunaticusz/qa-graduation-project | 70bd004dcdc1c701e1d6cae5bfafdf44a6146813 | 4e3d3a804036525d77be839b1d86f9de752e7aab | refs/heads/master | 2022-12-10T14:16:17.632926 | 2019-12-07T08:02:03 | 2019-12-07T08:02:03 | 223,190,115 | 0 | 0 | null | 2022-12-08T01:07:13 | 2019-11-21T14:16:09 | Python | UTF-8 | Python | false | false | 1,851 | py | # Команда для запуска:
# pytest -v --tb=line --language=en test_main_page.py
# pytest -v --tb=line --language=en -m login_guest test_main_page.py
import pytest
from pages.basket_page import BasketPage
from pages.locators import MainPageLocators
from pages.login_page import LoginPage
from pages.main_page import MainPage... | [
"e.igonichkina@magdv.com"
] | e.igonichkina@magdv.com |
b7a7b83196f4c71b54bc51daa38a1d3f9f08621a | 91869585fafb6f304e734aeb265bff2ff241f09d | /venv/Scripts/autopep8-script.py | 9901f18665c6299567fec375d41917fb7698a118 | [] | no_license | sid2021/flask_blogapp | a33822103b60765bb6c57110e35fe8c9bec3d084 | c174ec39f29a86811ace7f9f43785384ef31babf | refs/heads/master | 2023-01-03T13:15:14.717506 | 2020-11-03T20:52:08 | 2020-11-03T20:52:08 | 309,800,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | #!C:\Users\Kuba\Desktop\MyProjects\flaskr-tdd\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'autopep8==1.5.4'
try:
from importlib.metadata import distribution
except ImportErr... | [
"wolanski.jakub@gmail.com"
] | wolanski.jakub@gmail.com |
10f1a3be5b390a52def7d4ea51f59d79ad5e59e7 | 2bc28309657bf3ee0d4d395486c3ae968ca35eec | /scripts/vp_individual.py | 5989f44e3480f6c3a840f09a6e27c28f3d337f7b | [] | no_license | leschultz/vp | e3d9018d4809cdd19eb2be91ddc32441294855b9 | 026d050654aa7c08026168ec4bd9bb0c148b0615 | refs/heads/master | 2020-06-30T02:23:25.183208 | 2019-08-12T11:41:03 | 2019-08-12T11:41:03 | 200,690,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from analysis_functions import vp_iterator
import argparse
import os
parser = argparse.ArgumentParser(
description='Arguments for ICO analysis'
)
parser.add_argument(
'-i',
action='store',
typ... | [
"laneenriqueschultz@gmail.com"
] | laneenriqueschultz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.