blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab5f894430e4173d4f912b2ff27306986e39d566 | 146c71808bdd5fa458ef73df4a9b5837c83e779d | /tests/check_accuracy/check_accuracy_tests.py | 5bad11a87167ac8aab9336ec6f018f0846e9a884 | [
"MIT"
] | permissive | aladdinpersson/aladdin | 62cff7ed8c014db91505545986e17b85e1656f98 | 4fd92ff3b6e74761fff75b01070930c9ec6ce29f | refs/heads/main | 2023-04-15T14:41:27.236738 | 2021-04-15T10:39:11 | 2021-04-15T10:39:11 | 352,296,885 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Import folder where sorting algorithms
import sys
import unittest
import numpy as np
# For importing from different folders
# OBS: This is supposed to be done with automated testing,
# hence relative to folder we want to import from
sys.path.append("aladdin/")
# If run from local:
# sys.path.append('../../ML/algorit... | [
"aladdin.persson@hotmail.com"
] | aladdin.persson@hotmail.com |
63ccfbaa0b7c07a464cd8183391df273f7cbb8a8 | f30d84401a8ad53bb7ed2688a0ad600002b6312b | /inbuilt_module.py | 2009d561eb8f189c1253e99c006f7129d5a9b984 | [] | no_license | edmonddante125/python_class | 05b81551c6ebf7acc3bff0a9c25b492e6c2d761c | ad99f9a84b1d553dbaa785703a18221c65c20752 | refs/heads/master | 2022-04-23T20:55:22.057306 | 2020-04-19T05:47:57 | 2020-04-19T05:47:57 | 256,922,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 18 10:38:54 2020
@author: manish
"""
#webscraping
import urllib.request
urllib.request.urlopen("https://www.indeed.co.in/jobs?q=python+developer&1=Hyderabad%2C+Telangana")
print(data.read()) | [
"manishsaikris12@gmail.com"
] | manishsaikris12@gmail.com |
1b79a3126d4e62c9a1b815a8ccfb253d84753b69 | df2aec72123e616139ff5864e50bd9a6bc8b64ac | /proyecto/views.py | ca3c33da2fa297919c2bc757b0bde76b1c629cc0 | [] | no_license | rbalda/induccion2017 | fbbd726b401082c6cdce0675a6ab6a3e0c90d073 | 08cba952da3c44f409c7c426c365ccfb8509aae2 | refs/heads/master | 2021-01-19T04:44:44.452592 | 2017-04-05T17:36:13 | 2017-04-05T17:36:13 | 87,392,098 | 0 | 0 | null | 2017-04-06T06:03:59 | 2017-04-06T06:03:59 | null | UTF-8 | Python | false | false | 2,764 | py | from proyecto.serializers import UserSerializer,ProfileSerializer,AcertijoSerializer,TesoroSerializer,MedallaSerializer,FacultadSerializer,OpcionSerializer
from proyecto.forms import UserForm,ProfileForm,AcertijoForm,TesoroForm,MedallaForm,FacultadForm,OpcionForm
from proyecto.models import User,Profile,Acertijo,Tesoro... | [
"ngalvare@hotmail.com"
] | ngalvare@hotmail.com |
fe6df273d0824aeb08610dde5812f46f73da6587 | 17cb31350a9d0996e19dd111fc31980df03f82bf | /strawberryfields/devicespecs/device_specs.py | a32f9ef474ec3c53c88b0f76495cc55a33f98019 | [
"Apache-2.0"
] | permissive | zeta1999/strawberryfields | 3eee705b711bd195cc6f1510461d75f6e7d9821b | 1bf05585be3553a7bb5c2f687dc45b7a064ddb17 | refs/heads/master | 2020-06-09T02:56:19.840324 | 2019-06-21T16:50:59 | 2019-06-21T16:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,785 | py | # Copyright 2019 Xanadu Quantum Technologies 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 agre... | [
"noreply@github.com"
] | noreply@github.com |
af01f88b07e52b445a67db5324834fedfdd90840 | 0ae30f2f0fa9ac6df3ad3d2eafee0a3c5e83445b | /rllab/envs/learning_base.py | 9e46b0d2dcc2bbbcad9c1155f8e104e2c08c899a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | richa-verma/ChaserInvader | 114c1bc7e40a36358bf434aa9057c0945c176e89 | e6f63b20a13a264c3cb15c9633304f7677264dc7 | refs/heads/master | 2021-05-01T06:25:43.438745 | 2018-03-04T08:05:26 | 2018-03-04T08:05:26 | 121,142,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,392 | py | import math
import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
from rllab.spaces import Box
from rllab.envs.base import Env
from rllab.envs.base import Step
from rllab.spaces import Box
from rllab.misc.overrides import overrides
from rllab.misc import logger
#continous mountain car
#auth... | [
"sagar15056@iiitd.ac.in"
] | sagar15056@iiitd.ac.in |
7f7a6e5e0d461fb8690c5fcb3502db66bced6184 | 30fe7671b60825a909428a30e3793bdf16eaaf29 | /.metadata/.plugins/org.eclipse.core.resources/.history/ba/b0bdbe08c6f800161174a93fd5908e78 | d28f1b3c11c1df4b08726984489283823c27df6f | [] | no_license | abigdream84/PythonStudy | 0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1 | 059274d3ba6f34b62ff111cda3fb263bd6ca8bcb | refs/heads/master | 2021-01-13T04:42:04.306730 | 2017-03-03T14:54:16 | 2017-03-03T14:54:16 | 79,123,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | #!/usr/bin/env python
#coding:UTF-8
from audit_demo.utility.MySqlHelper import MySqlHelper
class g_table(object):
| [
"abigdream@hotmail.com"
] | abigdream@hotmail.com | |
2b15d4edbdaa9bd7a46091e71cc25e06ad6b5669 | 94ec31691a32b78953bc57144079cd7527240c00 | /scripts/tools/format_jsonnet.py | ddf4760342d0ae4d3c690162d12282d3f11499aa | [
"Apache-2.0"
] | permissive | realmar/Jobbernetes | c543b0a89db456997632a85b7b836fa79b1a9aeb | 1989d8f24beabb6d8a0e482bb1812db8a6015458 | refs/heads/main | 2023-06-19T03:20:05.747892 | 2021-07-14T13:41:24 | 2021-07-14T13:41:24 | 356,053,263 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python3
import __init__
from itertools import chain
from pathlib import Path
from lib import run_shell_print, SPECS_DIR, K3D_VOLUMES_PATH
if __name__ == "__main__":
command = "jsonnetfmt --indent 2 --max-blank-lines 2 --sort-imports --string-style s --comment-style s -i {}"
for file in chain(P... | [
"anastassios.martakos@outlook.com"
] | anastassios.martakos@outlook.com |
1cbeaf068eba123dc4966e2c3b506aa29148b80b | 3ae62276c9aad8b9612d3073679b5cf3cb695e38 | /easyleetcode/leetcodes/Leetcode_105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.py | 1485bb44b74ef3a8f62d1d7d1e19faff930fb29d | [
"Apache-2.0"
] | permissive | gongtian1234/easy_leetcode | bc0b33c3c4f61d58a6111d76707903efe0510cb4 | d2b8eb5d2cafc71ee1ca633ce489c1a52bcc39ce | refs/heads/master | 2022-11-16T17:48:33.596752 | 2020-07-13T02:55:03 | 2020-07-13T02:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py |
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def buildTree(self, preorder, inorder):
n = len(inorder)
inOrderMap = {inorder[i]: i for i in range(n)}
return self.buildTreeUtil(preorder, i... | [
"425776024@qq.com"
] | 425776024@qq.com |
90904f213074558cd90e413783c1a851ce07f3da | 55550afe1c18aacba9a481c690755cb7395d35f1 | /Week_01/G20190343020019/LeetCode_26_0019.py | 84af779cd76ff44c31d90633db3c8cc0cfbca318 | [] | no_license | algorithm005-class02/algorithm005-class02 | eb5c0865fbb2c58362fddcd4fc8f8b9d02bb208c | 1a1abf5aabdd23755769efaa6c33579bc5b0917b | refs/heads/master | 2020-09-22T11:48:20.613692 | 2020-03-02T05:31:11 | 2020-03-02T05:31:11 | 225,177,649 | 45 | 153 | null | 2020-03-02T05:31:13 | 2019-12-01T14:47:06 | Java | UTF-8 | Python | false | false | 366 | py | class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
size = len(nums)
if size == 0:
return 0
j, pre = 1, nums[0]
for i in range(1, size):
if nums[i] != pre:
if i != j:
nums[j] = nums[i]
j += 1
... | [
"your@email.com"
] | your@email.com |
0f03a302c230541b088a7d1a1fe72c11c2e23cb3 | 473035074bd546694d5e3dbe6decb900ba79e034 | /traffic fluid simulator/backend/env_4_6/model/ExportData.py | e92e4e0140bedbeb4290ef2eb08d29b3a966c9a7 | [] | no_license | johny1614/magazyn | 35424203036191fb255c410412c195c8f41f0ba5 | a170fea3aceb20f59716a7b5088ccdcb6eea472f | refs/heads/master | 2022-03-26T01:10:04.472374 | 2019-09-19T16:34:22 | 2019-09-19T16:34:22 | 171,033,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import json
from typing import List
import attr
from numpy.core.multiarray import ndarray
from model.Net import Net
@attr.s(auto_attribs=True)
class ExportData:
learningMethod: str
learningEpochs: int
nets: List[Net]
netName: str
densityName: str
def __attrs_post_init__(self):
for net_... | [
"johny1614@gmail.com"
] | johny1614@gmail.com |
2511436d300089fc345156b39b9a4e78d798bb77 | 82243e81094429a3b4d0cbaa1179c2b9ce7eb8a6 | /basic_method.py | 877ce768a02e29e797929acbfd645f8987becece | [] | no_license | drake-young/Space_Removal_and_Replacement | 741fd0c9ca2da9bcd077f040dca937f192e21866 | 3b4e51d31967bcedb5d14985e4f079e4596d4cad | refs/heads/master | 2020-05-18T05:04:30.760047 | 2019-04-30T14:09:28 | 2019-04-30T14:09:28 | 184,193,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,616 | py | # ==================================================
# basic_method.py
# ==================================================
#
# Program: Space Removal and Replacement
# Author: Drake Young
# Date: 27 April 2018
#
# Program Description:
# The intent of this program is a simple
# proof-of-concept. The program beg... | [
"36168851+drake-young@users.noreply.github.com"
] | 36168851+drake-young@users.noreply.github.com |
a8ca657e20b911bfc85568a3275b444b0cb82e97 | 8d3855d12eca0d962dae9c4b9d57511b0a23d164 | /fundamentals/forLoopBasicII.py | b86842e4936d662235bb906f9d99a4f31ebe0bce | [] | no_license | mannyinwang/Pyhton-Stack | 75ef5d7a76143edc79c6dada2c8cad6898a1931e | 0e3500d93f5e8db8201a54617803995943e98daa | refs/heads/master | 2020-12-13T13:23:48.669837 | 2020-01-21T09:34:58 | 2020-01-21T09:34:58 | 234,430,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | # Biggie Size
def bigSize (a):
list_length = len(a)
for i in range(list_length):
if a[i] > 0:
a[i] = "big"
return a
print(bigSize([-1,3,5,-5]))
# Count Positives
def countPositive(a):
list_length = len(a)
count = 0
for i in range(list_length):
if a[i] >= 0:
... | [
"mannyinwang@gmail.com"
] | mannyinwang@gmail.com |
a2b5b6e5312b7c6de352f327289016ff2e14e11b | 71a4fe1659534092e86f19d2cd645ffa7a2dd06c | /week1b/pe1.py | f57f737502924e3e3a6f9bf71dbecd07da88f733 | [] | no_license | foenyth/ca_aitipip | e04d7bf37596f0899dee3fae23d71fcb8367829c | 49b76ca897315ff01c1b350b8604fe7c5fcb5590 | refs/heads/master | 2021-01-15T15:30:59.159198 | 2016-08-27T09:11:29 | 2016-08-27T09:11:29 | 65,615,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Compute whether an integer is even.
###################################################
# Is even formula
# Student should enter function on the next lines.
def is_even(number):
return (number % 2) == 0
###################################################
# Tests
# Student should not change this code.
def test... | [
"foenyth@gmail.com"
] | foenyth@gmail.com |
889178905a0c94d6f492f3c62559edfd6bc207fe | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_quill.py | 606bcee98c72edaf39b621ab0b0cf03cce527925 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py |
#calss header
class _QUILL():
def __init__(self,):
self.name = "QUILL"
self.definitions = [u'any of the long sharp pointed hairs on the body of a porcupine', u"a pen made from a bird's feather, used in the past"]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.speci... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b3b8f445150b5fb6c1dccd539c37ffd21cfbe811 | 8104792f0f43c89169733846ffc6fe3d374fedd8 | /data_management/delete_junk.py | ee89547d25fda1d452409565afe6a04ed2619bbc | [] | no_license | rgalvanmadrid/general | fd3e0562070b3ac24a553edba834d65c7dc041dc | 3540e38ce8421e6da12b2b9c3cbb35057fcc27b5 | refs/heads/master | 2022-06-14T07:30:09.978123 | 2022-05-13T15:29:59 | 2022-05-13T15:29:59 | 142,596,766 | 0 | 0 | null | 2019-04-22T16:18:43 | 2018-07-27T15:52:08 | Shell | UTF-8 | Python | false | false | 869 | py | '''
Script to delete "junk" files, or large files that will not be used anytime soon even if they are not junk.
'''
import glob
import os
import shutil
root_path = "/lustre/roberto/ALMA_IMF/lines/normalized"
delete_type = "*ms.split.cal"
files_to_delete = glob.glob("/".join([root_path,"science_goal*","group*","memb... | [
"robertogalvanmadrid@gmail.com"
] | robertogalvanmadrid@gmail.com |
1f521210b944fba4b071cab3142d9a054dcff27a | 07c61596c1fba2e2a7034fe5af9707794ea2e2c1 | /Hackerrank/Algorithms/The_Time_in_Words.py3 | 6a108c9d2715cc2b096f03b911b89a2ab181b31e | [] | no_license | H-Shen/Collection_of_my_coding_practice | 2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4 | 6415552d38a756c9c89de0c774799654c73073a6 | refs/heads/master | 2023-08-24T21:19:08.886667 | 2023-08-22T03:47:39 | 2023-08-22T03:47:39 | 180,731,825 | 8 | 1 | null | 2021-08-13T18:25:25 | 2019-04-11T06:48:09 | C++ | UTF-8 | Python | false | false | 983 | py3 | #!/bin/python3
import sys
table = {1:'one',2:'two',3:'three',4:'four',
5:'five',6:'six',7:'seven',8:'eight',
9:'nine',10:'ten',11:'eleven',12:'twelve',
13:'thirteen',14:'fourteen',15:'fifteen',
16:'sixteen',17:'seventeen',18:'eighteen',
19:'nineteen',20:'twenty',30:'thirt... | [
"haohu.shen@ucalgary.ca"
] | haohu.shen@ucalgary.ca |
794b3a77bc3d17bcf3abcff67fd13ef7b934a601 | 6203656b6468b9b0c5b92144b21290ff0fdfed7b | /projectr/models.py | 6f450098c852cee67e3ef44d1111fa22e84f69cf | [] | no_license | ydo30/JDDKYD | fe2e71ec3f029c5a36301193a3949ba5b23648af | c97619b086a9d9c57203f6aadfa41b01bb1bb879 | refs/heads/master | 2021-06-29T04:50:29.297153 | 2017-09-25T19:11:37 | 2017-09-25T19:11:37 | 104,789,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User, Group
from django.db.models.signals import post_save
from django.dispatch import receiver
import random, string
# ==========================================================================================... | [
"ydo30@gatech.edu"
] | ydo30@gatech.edu |
05488b74e06f143a147e1b5d9892a1eb406e1b21 | a08fc91ecafa7f2b6c8aed7e1ceb33822d4caa49 | /python/algorithms/tree/segmenttree.py | aec0172273542d5f029e5d57384084e6aba33d5d | [] | no_license | bryand1/snippets | 1fcdd4b67809aa27b58e1239d5cca22cfb962f3d | f779bf147c420996613b0778e243154cd750c3dd | refs/heads/master | 2023-01-23T18:47:07.389246 | 2020-12-31T20:10:13 | 2020-12-31T20:10:13 | 138,767,383 | 0 | 0 | null | 2023-01-19T13:02:49 | 2018-06-26T16:56:15 | Python | UTF-8 | Python | false | false | 853 | py | from sys import maxsize
minsize = -99999
def maxquery(segtree, qlo, qhi, lo, hi, pos):
if qlo <= lo and qhi >= hi:
return segtree[pos]
if qlo > hi or qhi < lo:
return minsize
mid = (lo + hi) // 2
return max(
maxquery(segtree, qlo, qhi, lo, mid, 2 * pos + 1),
maxquery(se... | [
"bryand1@gmail.com"
] | bryand1@gmail.com |
2cec811450ad60935e4c5e8b03e76ddc9f0d1a62 | ffca40812b6cdf6d2578bdad441a7df154947028 | /ca2/Testing_hand.py | 4f2749535a7ebd11c79734d943009d4b75cb1ccf | [] | no_license | satlikh/python21 | 07568d48da6e32297fd10de5b031f04dbd93b7ce | 26375f0d139a91991a13cc4efb37970461ad0466 | refs/heads/main | 2023-03-20T04:15:18.503945 | 2021-03-13T19:17:48 | 2021-03-13T19:17:48 | 335,094,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,905 | py | from cardlib import *
import pytest
def test_deck():
# Check that there's 13 cards of each suit
deck = StandardDeck()
assert len(deck.cards) == 52
cards = {'Clubs': [], 'Diamonds': [], 'Hearts': [], 'Spades': []}
for i, suit_type in enumerate(cards):
for card_type in range(13):
... | [
"obergv@student.chalmers.se"
] | obergv@student.chalmers.se |
1d41eb6ae4fc12acb15c60378e1c758be087de68 | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_ZCGG/ZX_ZCGG_SJS_SJSGG.py | 88a9dab2b0df420ba808ab19e9438d674c65ae30 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
if data.get('URL_')[-3:] == 'pdf':
data['PDF_'] = data.get('URL_')
if not data['PDF_']:
del data['PDF_']
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_ZCGG_SJS... | [
"499413642@qq.com"
] | 499413642@qq.com |
a186015bedc024774761a69cf11220b1625da282 | 01ad22f0500fb8d00120cd983166ff559c6f6238 | /Zahid_ass2_pb10.py | 7baba97e81cf6af8c08bd07b74e333ea4572f453 | [] | no_license | ZAHID-8017/Comp_Ass2 | eed4f5496224adeb358da76b174189c9998e162f | 69b5305d5654bfbe6dc26671723d0ab23360a45e | refs/heads/master | 2022-06-18T20:21:50.090993 | 2020-04-23T06:40:28 | 2020-04-23T06:40:28 | 257,973,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate
'''
Variable transformation being used here is t=z/(1+z)
thus dx/dz=1/(x^(2)*(1+z)^(2)+z^2) with boundary condition
0<=z<=infinity
'''
h = float(input("enter the step size=", ))
def func(z,x): return 1/(x**(2)*(1-z)**(2)+z**2)... | [
"noreply@github.com"
] | noreply@github.com |
5ead9fc6fe3fb783c676ead8dba80288741305d2 | e7831cdfb29d7c0867aea6e1ed95927396c9500c | /userInterface.py | 6f5178d98a23c4311339c18ecb17541249970543 | [] | no_license | derekyee97/Checkout_Simulator- | 590f4ad9f77a45ac6ffe0b2d00c09947d06be813 | e67615ce5ccf287635d8a27bce620312ac48e5bb | refs/heads/master | 2021-06-23T18:25:16.779823 | 2019-08-08T23:52:05 | 2019-08-08T23:52:05 | 150,893,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,016 | py | ##Creates connection to sqlite database
# @param None
# @return sqlite cursor
import sqlite3
def setSQLConnection():
#Add Database name
connection = sqlite3.connect("snackOverFlow.db")
cursor = connection.cursor()
return cursor
##Prints out items from proudct table
# reads ... | [
"noreply@github.com"
] | noreply@github.com |
2725023487fc23afd507ba7f21e96be58e1d8690 | 98e443f61d43206091e7e6470a46721f7282167a | /setup.py | 78c3da83d888c46bd718c298a7cb8ec949d13d2f | [
"Apache-2.0"
] | permissive | gazalpatel/topic_ai | 6951b8d78621a142177ecdaaf8084136a8fd46a9 | a84308587a914c16dc1dfb9e5de6c61121d4fce6 | refs/heads/main | 2023-04-26T02:00:54.862148 | 2021-06-03T14:12:17 | 2021-06-03T14:12:17 | 370,997,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from setuptools import setup, find_packages
with open("README.md", mode="r", encoding="utf-8") as readme_file:
readme = readme_file.read()
setup(
name="top_ai",
version="0.2021.7.1",
author="Gazal Patel",
author_email="gpatel@phigrc.com",
description="Text processing and topic extraction lib... | [
"gpatel@phigrc.com"
] | gpatel@phigrc.com |
2a88f9776fb6356dd14d00555c404bb5c8a5ab0f | 009cb5a547d4d91431225d21f490a24842e67c63 | /copy_cheat.py | c77ffb1176e91d83f1e12e8bb385b46592dbf91c | [] | no_license | don-lin/copy_cheat | 47e5e81c480e5e16ca75126bb8bd9aed1dbf9a3b | d64e705f3207623820d37b7cbb9e8f6860b26c7f | refs/heads/master | 2022-11-11T08:24:44.008118 | 2020-06-28T06:20:07 | 2020-06-28T06:20:07 | 275,519,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | #pip install pywin32 pyperclip
import win32api,time,win32con,win32clipboard
last="""hello world, this is a test content"""
def click_key(value):
print(value)
win32api.keybd_event(value, 0, 0, 0)
win32api.keybd_event(value, 0, win32con.KEYEVENTF_KEYUP, 0)
def input_str(s):
s=s.upper()
... | [
"noreply@github.com"
] | noreply@github.com |
7f9eee3b5f2344775ddcd223da083387c56563be | bd6f84956f24604fbb9e3ec9dfcb75343959c135 | /PA3/EE451-PA3/readgraph.py | 2892af87f6686437e611c5c1f7dbc03c3b4d68f9 | [] | no_license | rv-harsha/parallel-and-distributed-computation | 2918ca6e62a559f7fc6fe1236d42ff367305c4f6 | b0bbb53a1623b9a7593076c8ed6fcc3ae4d49280 | refs/heads/main | 2023-08-28T03:30:44.170296 | 2021-10-21T04:44:21 | 2021-10-21T04:44:21 | 419,580,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py |
nodes=[]
edges=[]
def checkedge(edge):
if edge in edges:
return True;
return False
def readgraph(filename):
with open(filename) as f:
rows = f.readlines()
rows = rows[4:]
for row in rows:
columns = row.split()
#print(columns[0])
#print(columns[1])
edges.append((int(columns[0]), int(columns[1])... | [
"harsha.rv67@gmail.com"
] | harsha.rv67@gmail.com |
8d55cf556ab9aa1c469f6021ac768c5c963cda4f | 0dab38e55043456b6d40b04c63a35d49999eb4bd | /classwork3sept13(finish).py | fd5c2226a1d5d9a727bc4a43e6c884113d8911b3 | [] | no_license | Dillon1john/Python | 922d47e378c36efabf4ae9dd7752318e75f69e55 | dec5d8123f51564ab3e308ad8c8bab0624c546e6 | refs/heads/master | 2020-06-15T01:51:59.591201 | 2019-07-04T06:15:27 | 2019-07-04T06:15:27 | 195,179,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | x=float(input("Enter kilometers"))
step1=x/2
step2= step1*(1/4)
total=step1+step2
print(total,"m")
| [
"noreply@github.com"
] | noreply@github.com |
f3b575a591741af71ff96affecc01aa7f7b1eeef | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/109/usersdata/188/63757/submittedfiles/av2_p3_civil.py | a916fc1a714178afe44fb0829312c99cd7cc0417 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # -*- coding: utf-8 -*-
import numpy as np
def linhas (a,m):
soma=0
for i in range(0,m.shape[1],1):
soma=soma+m[a,i]
return(soma)
def colunas (a,m):
soma=0
for i in range(0,m.shape[0],1):
soma=soma+m[i,a]
return(soma)
h=int(input("Digite a dimensão da matriz:"))
x=int(inpu... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ffcb0c922b684275e416c82190ce8ed330061603 | e9ec8382062c40bc23e8967c36b9f0860fd2fae4 | /temp.py | e329c4e75639c0bf02ee5b379caa1cd5a78c7dfe | [] | no_license | slinkoandrey/phys | 74537c9a7fdd8ce751d5d84b5db49d34f62dd25c | 2d0d85471b2e82718198f1728c562a90dc5aa9b4 | refs/heads/master | 2021-05-09T20:23:42.275748 | 2019-03-14T21:37:41 | 2019-03-14T21:37:41 | 118,689,528 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import numpy as np
import matplotlib.pyplot as plt
import statsmodels.api as sm
spots = sm.datasets.sunspots
print(spots.NOTE)
data = spots.load_pandas().data['SUNACTIVITY']
plt.plot(data)
plt.figure()
sm.graphics.tsa.plot_acf(data, lags=50, alpha=0.01)
ar = sm.tsa.ARMA(data.values, (12, 0))
model = ar.fi... | [
"noreply@github.com"
] | noreply@github.com |
9a36090e137b6c733f445cb587a0720eccd62adb | 3bb70650b4b83e4653dcc18c8233c106c7a5611a | /sale_shortcut/shortcut_getter.py | 44c35030e8a22f587ada781c66cd6059851922bb | [] | no_license | khanhlu2013/pos_connect_code | 48e736a6b1c5ca6a5c4ff39d842d8a93f66e67ef | fdf70de858c10b175832af31ecc0cf770d028396 | refs/heads/master | 2023-04-08T02:35:46.181265 | 2016-10-18T21:12:51 | 2016-10-18T21:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from sale_shortcut.models import Parent,Child
def get_shortcut(id):
return Parent.objects.prefetch_related('child_set').get(pk=id)
def get_shorcut_lst(store_id):
return Parent.objects.filter(store_id=store_id).prefetch_related('child_set') | [
"khanhlu2013@gmail.com"
] | khanhlu2013@gmail.com |
69b032c7099a9e8e353caac87a95e1e1500777ff | 2beb0e86f08de749e7eaddbf2e5ae24abb8ddff9 | /treer.py | 7c8ad9fd81e20945b6cff34fe23cc2088b43acb6 | [] | no_license | NanamiTakayama/treer | 59ea22e8d6837900cb72c6c4ad0b74e185c1cc37 | bb99bbfceda4f701d130e1777a8f09c48a75e306 | refs/heads/master | 2020-04-11T18:01:39.215498 | 2018-12-16T09:39:06 | 2018-12-16T09:39:06 | 161,983,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import datetime
import time
import subprocess
from time import sleep
cmd1 = "pwd"
cmd2 = "tree"
file = open('new.txt','a')
file.write('new file\n')
while True:
print(datetime.datetime.now())
subprocess.call(cmd1)
subprocess.call(cmd2)
sleep(20)
| [
"ns.potable@gmail.com"
] | ns.potable@gmail.com |
7cf482daf8a47cd604c5fa2b83bb75aa350f97dd | aee5f372ba1b5fbb1c8acf6080c4c86ae195c83f | /cern-stubs/lsa/client/rest/cern/api/v1/feign/__init__.pyi | 96054066f4590355d07f8781d938bb4307bcfd26 | [] | no_license | rdemaria/pjlsa | 25221ae4a4b6a4abed737a41a4cafe7376e8829f | e64589ab2203338db4253fbc05ff5131142dfd5f | refs/heads/master | 2022-09-03T13:18:05.290012 | 2022-08-16T13:45:57 | 2022-08-16T13:45:57 | 51,926,309 | 1 | 5 | null | 2019-07-11T11:50:44 | 2016-02-17T13:56:40 | Python | UTF-8 | Python | false | false | 5,523 | pyi | import cern.lsa.client.rest.api.v1.dto
import cern.lsa.client.rest.api.v1.feign
import cern.lsa.domain.cern.settings
import java.util
import typing
class IncaFeignService(cern.lsa.client.rest.api.v1.feign.FeignService):
"""
public interface IncaFeignService extends cern.lsa.client.rest.api.v1.feign.FeignServ... | [
"michi.hostettler@cern.ch"
] | michi.hostettler@cern.ch |
044aad4fa71bcd126aeaddc1ade5415f47768d7e | ab9adb7706360e349c0fec19f44bf7b7eb41c7b2 | /comments/urls.py | 31dcde2ae09b2efba9f5e172317c94aa645b8f0f | [] | no_license | dujiyuan/blogproject | b5226f9e521be5a0eed4689e7cc9f95c80fc8fd7 | 34c39b0d130e4da5fcced591543d54b86e050d15 | refs/heads/master | 2020-03-12T13:03:47.059264 | 2018-06-13T03:01:54 | 2018-06-13T03:01:54 | 130,633,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django.conf.urls import url
from . import views
app_name = 'comments'
urlpatterns = [
url(r'^conmment/post/(?P<post_pk>[0-9]+)/$',views.post_comment,name='post_comment')
] | [
"463071864@qq.com"
] | 463071864@qq.com |
d368f4a86a6510a5b4544a08552856d776373977 | 202bf6cd78eb19025aa63dea609b40903ce1a735 | /code/library_clusters.py | b159f8a7f9ca23ec704b02c9382692e2679fb567 | [
"MIT"
] | permissive | jbkinney/17_inducibility | 1e4a5943bd680252f19008fb77a0b9bb8cfbdaf6 | cb2ddf984608fba6f85c98711bce0d7e450fba0e | refs/heads/master | 2020-04-06T07:28:02.386966 | 2018-12-05T16:25:35 | 2018-12-05T16:25:35 | 157,273,701 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,247 | py | spacing_constructs={
'51.5':{'ind':'b17B7', 'null':''},
'52.5':{'ind':'b17B9', 'null':''},
'53.5':{'ind':'b17C2', 'null':''},
'54.5':{'ind':'b17C4', 'null':''},
'55.5':{'ind':'b17C6', 'null':''},
'56.5':{'ind':'b17C8', 'null':''},
'57.5':{'ind':'b17D1', 'null':''},
'58.5':{'ind':'b17D3', 'null':''},
'59.5':{'i... | [
"jkinney@cshl.edu"
] | jkinney@cshl.edu |
e95e4723eef9aab484f4fb53e4ac61f4ba72cbb9 | a283507c237802d3983ca1e5e1752299f9b5d0b7 | /python/vizu.py | 9a30e9bd3e9b404f9c61ab89ccf05ff111abbfd3 | [] | no_license | eureko/ThesisRepo | 59016ef3d58d5b6ec15dee6c8ca5012f70fa8e18 | eb922c15debd83446f7a86fd830a35c03b1bd459 | refs/heads/master | 2020-06-10T03:11:20.362518 | 2017-10-19T08:56:26 | 2017-10-19T08:56:26 | 76,110,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import numpy as np
import matplotlib.pyplot as plt
conf_arr = [[33,2,0,0,0,0,0,0,0,1,3],
[3,31,0,0,0,0,0,0,0,0,0],
[0,4,41,0,0,0,0,0,0,0,1],
[0,1,0,30,0,6,0,0,0,0,1],
[0,0,0,0,38,10,0,0,0,0,0],
[0,0,0,3,1,39,0,0,0,0,4],
[0,2,2,0,4,1... | [
"e.g.caldarola@gmail.com"
] | e.g.caldarola@gmail.com |
5b7cd1b73da7534c2ba8d6e327363de129009de5 | fe21ea819fe85dcbc2e2adb4e246693611c71380 | /manage.py | 9972677d59224764eb959f5a5b7a0398c5ff9d19 | [] | no_license | jsinghw/Bug_Tracker | bdc0c3b6c690d2e0123d23a20d932bc43fe13d12 | bd0758c0ae35d0436677d4a6f417443e5d7042bb | refs/heads/master | 2022-12-24T21:08:50.916713 | 2020-10-06T20:00:54 | 2020-10-06T20:00:54 | 265,694,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Bug_Tracker.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"jsinghw94@gmail.com"
] | jsinghw94@gmail.com |
fd34687517ec4febd82cb9e4f68edd35ab70b5e0 | cc423690d7e5c36cbca0dc4a7527b536b63bd5a2 | /numbers.py | 8481b9f39119440df818ca5c175a3b998dfbadd0 | [] | no_license | Odisssssey/py | 49e2c55395b9ad2b4b0530e894e2219bd4914faf | 94add8e694c31317914f99fff49b85941b6b6a4c | refs/heads/master | 2021-01-12T00:52:50.097817 | 2017-03-04T13:36:06 | 2017-03-04T13:36:06 | 78,310,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | i = 1
myNumber = 0
while myNumber < 1 or myNumber > 10:
myNumber = int(input('Введите число от 1 до 10: '))
number = randint(1, 10)
while number:
if myNumber == number:
print("Вы угадали! ПК загадал число", number)
break
else:
if myNumber < number:
print('ПК загадал число, больше введенного ... | [
"noreply@github.com"
] | noreply@github.com |
16199a07ec5548bf9b2b006a3514bd5f372cc9fd | 8eb7e2224cd81cd21fd5b0c4dd54abe85ba07e49 | /examples/autodetect_snmp.py | f5263fe58da8a57174eda76459460e8151f56f9a | [
"MIT"
] | permissive | ktbyers/netmiko | f8b980569fd863f0a7bfe28580366339c4bd31ec | 2e56b40ec639da130471c59dd1f3c93983471e41 | refs/heads/develop | 2023-08-30T20:33:05.554926 | 2023-08-29T21:50:45 | 2023-08-29T21:50:45 | 27,283,062 | 3,397 | 1,594 | MIT | 2023-09-04T03:04:31 | 2014-11-28T21:42:52 | Python | UTF-8 | Python | false | false | 636 | py | import sys
from getpass import getpass
from netmiko.snmp_autodetect import SNMPDetect
from netmiko import ConnectHandler
host = "cisco1.lasthop.io"
device = {"host": host, "username": "pyclass", "password": getpass()}
snmp_community = getpass("Enter SNMP community: ")
my_snmp = SNMPDetect(host, snmp_version="v2c", co... | [
"noreply@github.com"
] | noreply@github.com |
1c70c159d67344bfbfeb2cf097d7e7ee72ef07d9 | 63a5baed621ad6b8a95436dcbb2a3771cfea303f | /LABS/LAB4/stack.py | 9b3901561562449b1c9645131608d8f4385f6af0 | [] | no_license | ew0s/ITMO_Algorithms1 | b9ed21e51fc5971bdd081d1dfac13aa1dc7e0680 | cd5ecb4d3527db72ee44fdec4fd9db345c5cb55d | refs/heads/master | 2021-02-15T09:36:47.724218 | 2020-03-31T21:52:52 | 2020-03-31T21:52:52 | 244,886,294 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | stack = [0] * 1000000
fin = open("stack.in")
fout = open("stack.out", "w")
n = int(fin.readline())
top = -1
for i in range(n):
data = list(fin.readline().split())
if data[0] == "+":
top += 1
data[1] = int(data[1])
stack[top] = data[1]
else:
print(stack[top], file=fout)
... | [
"Fomesare1"
] | Fomesare1 |
71962d7e86cb76c775309a6190d8d73cdbbb4cf6 | 184bcb482ea5f0f13aa35275847b0e7dd56d8219 | /tests/test_cli.py | 75f2834a1bf6022a049f31136d917db671e85112 | [
"LPPL-1.3c",
"MIT"
] | permissive | svenkreiss/unicodeit | 643a3ead7fc69160eff82099b33c25ba5d01de28 | d7f3f0cb9b7f8c3abf8e47ea6158b2ee1f6cbf05 | refs/heads/main | 2023-08-23T07:44:45.029170 | 2023-03-12T09:21:04 | 2023-03-12T09:21:04 | 10,319,674 | 234 | 34 | NOASSERTION | 2023-07-18T22:48:57 | 2013-05-27T17:52:57 | Python | UTF-8 | Python | false | false | 1,743 | py | import subprocess
import sys
import pytest
PYTHON = 'python3' if sys.platform != 'win32' else 'python'
def test_cli_symbols1():
r = subprocess.check_output([
PYTHON, '-m', 'unicodeit.cli',
'\\Sigma'
])
print(r.decode())
assert r.decode().strip() == 'Σ'
def test_cli_symbols2():
... | [
"me@svenkreiss.com"
] | me@svenkreiss.com |
4771144c3821e2f59a6bee905ea7ac1ed4d37184 | f93e68e139b41f9544a04c5eda1384ff9ed74d07 | /46.py | 4109947069c0b4a53c228b159b47f0ce29cf6b8b | [] | no_license | c109156147/py20 | c1b24d42cd32d4cedcd4faed617fb659b5f8733a | ecb31d0fa0fe1d36aa5923e401e46fe6215b5953 | refs/heads/main | 2023-05-03T03:07:44.497761 | 2021-04-29T16:23:43 | 2021-04-29T16:23:43 | 362,872,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | list1=[]
list2=[]
n = int(input("輸入筆數n:"))
for i in range (0,n):
obj,num=input("").split(" ")
list1.append(obj)
list2.append(num)
for j in range(len(list1)):
print(str(list1[j])+"牌得到"+str(list2[j])+"面")
| [
"noreply@github.com"
] | noreply@github.com |
2bfb42342e5f1d0ab116b6a4081f0e2342f9d83f | 65ba09c7becc80f30e087671b2360cc195b1ab9c | /psql/dump1090-stream-parser-psql.py | bd9e9b10d582157449d64ecc06dae51df990582d | [] | no_license | mtigas/dump1090-stream-parser | fc367597e3a13596cac4c63c4ad7c9241e80b1b1 | 8ff038cfaf7487b6f209dfde0afb50b99ea73c42 | refs/heads/master | 2020-05-29T12:31:49.475438 | 2019-04-16T20:02:45 | 2019-04-16T20:02:45 | 56,412,903 | 13 | 1 | null | 2016-04-17T01:07:44 | 2016-04-17T01:07:43 | Python | UTF-8 | Python | false | false | 13,624 | py | #!/usr/bin/env python
# encoding: utf-8
"""
see README in this directory
"""
import socket
from decimal import Decimal
import datetime
import psycopg2
import argparse
import time
import traceback
import sys
#defaults
HOST = "localhost"
PORT = 30003
BUFFER_SIZE = 50
BATCH_SIZE = 20
CONNECT_ATTEMPT_DELAY = 1.0
#
TRANS... | [
"mike@tig.as"
] | mike@tig.as |
7d165408282b6f951470ba596061fcfd1b4c0a97 | 7eb5db9fa00df1a912bc2edd4f85199c7398f027 | /Codes/Colebrook_nomo.py | 3b82c94e17d138055b88eb66ffed38cef6fe5438 | [] | no_license | theclimb369/Culvert-Nomograph | 344b270e012819a8273cdb8a19e75df17f943c1e | fe74beebb30bb023ec27a7c0ee29cc596fd6832b | refs/heads/main | 2023-09-03T19:10:19.522469 | 2021-10-26T09:13:34 | 2021-10-26T09:13:34 | 396,614,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,378 | py | ### Usage ###
# Nomogprahs based on Colebrook White Equations
# BlackMAX PP/SewerMAX for k = 0.06 & 0.01
### Created by YW on July 21 2021 ###
### Updated on Aug 18 2021 ###
import numpy as np
from scipy import interpolate
import math
import matplotlib
matplotlib.use('Qt5Agg')
from matplotlib import pyplot as plt
f... | [
"noreply@github.com"
] | noreply@github.com |
9e76287d8b5010b56cf06f625a309aab0d1e9854 | 9164c3e1b76a12737baf96f55501e24ebf19f735 | /number13/number13/src/Mask_RCNN/mrcnn/model.py | c2a2f9da333d6daf45d81531761e215bfb6c0469 | [
"Apache-2.0",
"MIT",
"CC-BY-NC-SA-4.0",
"BSD-3-Clause"
] | permissive | chritter/SpaceNet_Off_Nadir_Solutions | b3c2ced7b521ee3cee30ca6a9e17244a5faeb876 | 2f875c0a873692912cceb5daac14eee32fc037b2 | refs/heads/master | 2020-08-07T16:19:27.093474 | 2019-10-27T20:33:49 | 2019-10-27T20:33:49 | 213,522,639 | 0 | 0 | Apache-2.0 | 2019-10-08T01:36:11 | 2019-10-08T01:36:10 | null | UTF-8 | Python | false | false | 123,898 | py | """
Mask R-CNN
The main Mask R-CNN model implemenetation.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import os
import random
import datetime
import re
import math
import logging
from collections import OrderedDict
import multiprocessing
i... | [
"nicholas.r.weir@gmail.com"
] | nicholas.r.weir@gmail.com |
a47a6018b7a2d2eccb45ce25cd36f57c5e4a641f | 6ddb489d40cecaa671bf5367bf8d4c3ccfc5e53d | /news_app/migrations/0003_auto_20210408_1316.py | 909d80825dd40bae8753591603f69a38a2cb3f6e | [] | no_license | elenghazaryan/News-App | 5790323c9dc34d1e220560e3399309b31ec1bf9b | 52df021d7d26a03eec928904926141f8cc09433d | refs/heads/master | 2023-04-07T01:34:39.904032 | 2021-04-15T13:07:03 | 2021-04-15T13:07:03 | 351,228,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # Generated by Django 3.1.7 on 2021-04-08 09:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news_app', '0002_remove_user_username'),
]
operations = [
migrations.RenameField(
model_name='c... | [
"kelen_2000@mail.ru"
] | kelen_2000@mail.ru |
cf0d6f85fb03cb3c291887f4ed66771d139d48d3 | 36dff14d4874911a5c3bcc2f9f4c9abbea428d63 | /CheckChineseName.py | 9d7d46ebf1dc015981c0aef89e7a894cbbf72674 | [] | no_license | yuhao-zhou/Chinese-student-in-class | f8c768cdc05eef08ffcc73d57008d85b4c94fdc8 | f19f99cd260be6b653275c888c1f7f495c9dc49d | refs/heads/master | 2022-11-22T07:19:35.437871 | 2020-07-28T14:57:04 | 2020-07-28T14:57:04 | 283,243,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from wikiScrap import get_surname
from bs4 import BeautifulSoup
chinese_surname = get_surname()
with open("Subject Roster_ Database Systems & Information Modelling (INFO90002_2020_SM2).html", "r", encoding='utf-8') as file:
soup = BeautifulSoup(file, 'lxml')
student_name = []
for tag in soup():
if ... | [
"noreply@github.com"
] | noreply@github.com |
646e2f533fcba1d8f9349e4a7bee479b0d7569cc | 560e7d7676f5f14b738bae660b7485653ddedb46 | /tests/TestBQS.py | c46b91700c1001bf615a6448c1de879a89fabd82 | [] | no_license | dxiao/SmootLight | 1efe3a369287f16fdf1383c9923adaffca9bbb4e | 58ec94a477f5edef0bf75a60252af96adec34d8d | refs/heads/master | 2020-12-24T22:20:06.099820 | 2011-02-19T05:38:03 | 2011-02-19T05:38:03 | 1,361,133 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import unittest
import util.BehaviorQuerySystem as bqs
from behaviors.ColorChangerBehavior import *
import util.Geo as geo
class TestBQS(unittest.TestCase):
def setUp(self):
bqs.initBQS()
b = ColorChangerBehavior({'Id': 'color','ColorList':[(255,0,0)]})
c = ColorChangerBehavior({'Id': 'color... | [
"rcoh@mit.edu"
] | rcoh@mit.edu |
9eef71a00657c2a1af55bf2727b31f1ed01a6070 | 4d254d236a6006763d71d482a6aae2609d83203d | /blog/models.py | 19ce481cc5c4adeb25ba70da7c925055423894d3 | [] | no_license | Juneju/djangosite | 95fb6bfd90d0e43aacb12cd1f360e30a0e05c39a | b6c56b0a61ef2170ad517af297e4df864a6144ba | refs/heads/master | 2020-03-18T17:51:00.742856 | 2019-01-28T05:31:41 | 2019-01-28T05:31:41 | 135,054,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Article(models.Model):
title=models.CharField(max_length=50,blank=True) #title
category=models.CharField(max_length=50,blank=True) #label
date_time=models.DateTimeField(auto_now_add=True) #time
content... | [
"noreply@github.com"
] | noreply@github.com |
7bfdbb5e6063f995eee90c58ef5f6a1f063ec21b | 447a715b552ad9351e6f0c099cb620792b5973af | /Exceptions/exceptions3.py | 85999f31f9aafeeb005ceae0798f7c8b5416740e | [] | no_license | durandv-forks/code_snippets | 57162da316f5b9568f886cf86cc9aff0914aedf4 | 2a537cb1ffab476c266211e05d79d26f4e746e21 | refs/heads/master | 2020-03-20T02:29:13.078366 | 2018-12-07T22:13:06 | 2018-12-07T22:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Define shout_echo
def shout_echo(word1, echo=1):
"""Concatenate echo copies of word1 and three
exclamation marks at the end of the string."""
# Raise an error with raise
if echo < 0:
raise("echo must be greater than 0")
# Concatenate echo copies of word1 using *: echo_word
echo_word ... | [
"victor.durand@farmacity.com.ar"
] | victor.durand@farmacity.com.ar |
875780690d038c0421c17a804f53b4c74107fe53 | 0050f01cdff48fc5ec162e0498cfc2ba2c3a1aa5 | /job_tracker_env/bin/pip-sync | 30caff343b983452c74b6fbe64c720e417186859 | [] | no_license | andrewrosario/job_tracker_backend | f327fdde9c43b23b35a4e5ce38f6c1352c009d6d | 0093199aa28924e52f188e66aae03720d11ae57e | refs/heads/master | 2021-10-08T18:20:25.053242 | 2019-12-05T20:09:31 | 2019-12-05T20:09:31 | 224,273,955 | 0 | 0 | null | 2021-09-22T18:04:12 | 2019-11-26T19:52:56 | Python | UTF-8 | Python | false | false | 308 | #!/Users/andrewrosario/Development/code/Python/job_tracker/job_tracker_backend/job_tracker_env/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from piptools.scripts.sync import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"rosario.andrew@gmail.com"
] | rosario.andrew@gmail.com | |
3ed2beb303c28748c85454eea580163c3338d096 | 3ccd3465c241071827ad98bac61f85d8405bffc9 | /test/talkytest/clients/voice/tts/test_osxsay.py | eb28c42d580273e2a2717801aba2380cd9cfccaf | [
"MIT"
] | permissive | keiffster/talk-y | a12e2590f3170af1debb4add9c27fd12adb279fa | dd2bb2a816c868770d9bec8f02ee9f2bbfcbae2a | refs/heads/master | 2021-06-25T08:32:39.020921 | 2020-02-16T17:18:45 | 2020-02-16T17:18:45 | 102,565,196 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import unittest
from talky.clients.voice.tts.osxsay import OSXSayTextToSpeach
from talky.config.sections.client.voice.voice import VoiceConfiguration
class OSXSayTextToSpeachTests(unittest.TestCase):
def test_init(self):
config = VoiceConfiguration()
tts = OSXSayTextToSpeach(config)
self... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
bfa4bc2ce6ce4fc12f63223c6419c52e683ba101 | 5682e1b9ff4d7387e69c8fcb75fda7c641e68e50 | /LeeJehwan/scraper/1.THEORY/1.6.returns.py | d080dc94f96697dc93d383af081feaeba169bac3 | [] | no_license | daehyun1023/Python | 18b68cd626f8e0f15102eec7280decd773fb84c5 | 99d3c1badd31c3aef2bc9f4fe52296768c5c117e | refs/heads/main | 2023-02-28T08:12:33.314536 | 2021-02-07T23:54:31 | 2021-02-07T23:54:31 | 332,975,801 | 1 | 0 | null | 2021-01-26T04:54:13 | 2021-01-26T04:54:13 | null | UTF-8 | Python | false | false | 69 | py | def plus(a, b):
return a + b
result = plus(2, 4)
print(result)
| [
"wpghks7@naver.com"
] | wpghks7@naver.com |
d7584bd394365c25cd5c1f4eea0f3b694108071d | 3ae1cd026faf87eef31d471f499da3ffe1cb8c2e | /PyCharm/decision_if.py | 5cc624d6a673ccdfa10e52c912598aea32d2d6f2 | [] | no_license | rohan5077/Meditab_office | 830b276268bd63aff3f77cb851014fcd297d29ab | 8714338c439b73750952e5416ab669186f7ff7dd | refs/heads/master | 2020-03-19T06:02:29.216746 | 2018-06-14T13:46:29 | 2018-06-14T13:46:29 | 135,985,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | language = 'python'
if language == 'python':
print('python')
elif language=='java':
print('Java')
else:
print('No Match')
logged_in = False
if language == 'python' or logged_in:
print('admin')
else:
print('wrong creds') | [
"rohansharma5077@gmail.com"
] | rohansharma5077@gmail.com |
28cd030174bc51a2bfd216d6a1049f4f5468cb6f | e87000043d443ef2dbe4ae2af6cb07f319ad82ac | /extra_apps/xadmin/filters.py | e51634dda6be90e83414d3382a47d5a360d7f8fb | [] | no_license | williamcullen/MXOline-github | 5891ac6493bed9e0445e1b7660850712d937f1bf | e00fd30c8239aadeb0a58bd39948a2ea5b9047f5 | refs/heads/master | 2021-01-19T12:08:02.031643 | 2017-05-05T01:51:02 | 2017-05-05T01:51:12 | 88,019,381 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 21,746 | py | from django.db import models
from django.core.exceptions import ImproperlyConfigured
from django.utils.encoding import smart_unicode
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
from django.template.loader import get_template
from django.template.context import Context
from ... | [
"williamcullen@foxmail.com"
] | williamcullen@foxmail.com |
422f776bae7562d99ebe7ce2b3159a227a5665c3 | 32c640ce93ece6c87d1ad842c1dcd4bc12cb4c26 | /src/unison/src/Unison/Target/X86/SpecsGen/input/skylake/llvm-resource-model/X86SchedSkylakeClient-parser.py | d430b5890f9840392863eb3972e00e734dc55af5 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | matsc-at-sics-se/unison | 54b225539724040b7c8089178fb1ecab0d87dbba | 8d23b73aaf8f3af5c4d86f26e0e4432d70bab564 | refs/heads/master | 2021-04-27T14:27:50.918235 | 2018-12-27T09:21:47 | 2018-12-27T09:21:47 | 122,455,374 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,487 | py | #!/usr/bin/env python
#
# Main authors:
# Jacob Kimblad <jacob.kimblad@ri.se>
#
# This file is part of Unison, see http://unison-code.github.io
#
# Copyright (c) 2018, RISE SICS AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | [
"rcas@sics.se"
] | rcas@sics.se |
af133b71314acc64bdbd6be37d282d55ba8fde6d | 5b3caf64b77161748d0929d244798a8fb914d9c5 | /Python Excel Examples/WorksheetsApiDemo/background/deleteBackground.py | e5297d90f3031e8342735c46a68eb63f86226e60 | [] | no_license | EiceblueCloud/Spire.Cloud.Excel | 0d56864991eaf8d44c38f21af70db614b1d804b7 | d9845d5cefd15a3ab408b2c9f80828a4767e2b82 | refs/heads/master | 2021-07-20T23:44:39.068568 | 2021-07-15T03:04:49 | 2021-07-15T03:04:49 | 230,225,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import spirecloudexcel
from spirecloudexcel.configuration import Configuration as ExcelConfiguration
appId = "your id"
appKey = "your key"
baseUrl="https://api.e-iceblue.cn"
configuration = ExcelConfiguration(appId, appKey,baseUrl)
api = spirecloudexcel.api.worksheets_api.WorksheetsApi(configuration)
name = ... | [
"noreply@github.com"
] | noreply@github.com |
d779f777c6f0445645db6a3c53c16ef06714f220 | fc4db75c1fc5a410c99b6e2db7fb18e78b841100 | /Lab5/myApi/logic/limiter.py | 3a6bee8a30f230256a48af4f81e29400088894be | [] | no_license | KraftUnderscore/skryptowe20 | a2e16906619210bc621e53195c09103ce404cac1 | 63b447825961f837a0bb1c184ee04c97ba854500 | refs/heads/master | 2023-03-19T23:41:37.905253 | 2021-03-08T22:38:57 | 2021-03-08T22:38:57 | 302,128,523 | 0 | 0 | null | 2021-03-08T22:38:58 | 2020-10-07T18:39:15 | null | UTF-8 | Python | false | false | 489 | py | from time import time as current_time
from logic.DataAPI.constants import MAX_REQ_PER_MINUTE, MINUTE_IN_SEC
class StaticVariables():
requests = 0
last_reset = current_time()
def can_request():
if current_time() - StaticVariables.last_reset > MINUTE_IN_SEC:
StaticVariables.requests = 0
Stat... | [
"spieta2@gmail.com"
] | spieta2@gmail.com |
b9844d14cd1c8d49e55e4db8b42c0855b6fd370a | 171f2f1cb97bd3e016e0d77ea448cdfdcd778ade | /softlearning/environments/gym/mujoco/half_cheetah.py | 669c7850071783d7ab69bb83924b9c3a56753193 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | JiazhengChai/synergyDRL | 735cff04ef26732aad5eba8019a16e43a09baac3 | c08e78e5fe39d9d46213e1bf07b8dafc2195b05a | refs/heads/master | 2022-12-13T00:26:25.990732 | 2021-07-25T12:01:09 | 2021-07-25T12:01:09 | 224,543,407 | 2 | 1 | NOASSERTION | 2022-12-08T01:50:19 | 2019-11-28T01:02:57 | Python | UTF-8 | Python | false | false | 13,056 | py | import numpy as np
from gym import utils
from gym.envs.mujoco import mujoco_env
import os
from . import path
DEFAULT_CAMERA_CONFIG = {
'distance': 4.0,
}
class HalfCheetahEnv(mujoco_env.MujocoEnv, utils.EzPickle):
def __init__(self,
xml_file='half_cheetah.xml',
forward_rewar... | [
"jaysoninsa@gmail.com"
] | jaysoninsa@gmail.com |
03d4dabb08c2218cfbc7c5a4f6dc7ad9b2a87fdf | 36d62e33b63ca629c91856ab4941245a61706bab | /omtk/managing/shotInfo.py | 93f76f6fd1b0e65c918f7967fbe7f4024c4bbcf0 | [] | no_license | Leopardob/omtk | 668386cc2f09ca7948dca2ed45faa0cb94fe88cf | 36def5207a2a70d88d0d405a5518d4fa6b8ed5ee | refs/heads/master | 2020-12-11T05:46:53.023632 | 2015-06-25T13:56:29 | 2015-06-25T13:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | from omtk.rigging.autorig import RigNode
"""
Since Pixar don't seem to want to release the OSD (Open Scene Descriptor) projet, here's my take on the matter.
data = {
"shots":[
{
"location":{
"type":"Shot",
"id":001,
"name":"shotName"
... | [
"sigmao@gmail.com"
] | sigmao@gmail.com |
192e0a22a39afd8de4675f9032f1eaadfbe026fb | 0cb064f4e2f5b27a189b3e7631bb19f7842e150b | /zvt/recorders/eastmoney/dividend_financing/spo_detail_recorder.py | 5afee75a91dc41f48230b292ccc4813ddf9fab99 | [
"MIT"
] | permissive | stellar2016/zvt | 35e514927302cffb3577f3535344e2ca55ec9abd | f6c2c05c136b14c0c0f239960f08f85bcdee7c28 | refs/heads/master | 2021-04-19T13:18:01.020365 | 2020-03-22T14:44:26 | 2020-03-22T14:44:26 | 249,607,341 | 0 | 0 | MIT | 2020-03-24T03:51:06 | 2020-03-24T03:51:05 | null | UTF-8 | Python | false | false | 2,077 | py | # -*- coding: utf-8 -*-
from zvdata.utils.pd_utils import pd_is_not_null
from zvdata.utils.time_utils import now_pd_timestamp
from zvdata.utils.utils import to_float
from zvt.api.api import get_dividend_financing, get_spo_detail
from zvt.domain import SpoDetail, DividendFinancing
from zvt.recorders.eastmoney.common imp... | [
"5533061@qq.com"
] | 5533061@qq.com |
ebe77479a6f993340f1cd08739bde04ffc75258f | 893a1151fcdeb5ad9a2219fd03cf7277b817a55e | /translate.py | 9808b2274596a13025466b1bad959f7d37c62b56 | [] | no_license | busbyjrj/translate | a818207e62e4224fd13d520b8c6a0d4581648703 | 326cdad60cb8ec9dd03c9abdb90600c8619aa98a | refs/heads/master | 2020-03-26T03:18:28.189556 | 2018-08-12T08:12:18 | 2018-08-12T08:12:18 | 144,449,079 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | import requests
import hashlib
import random
import json
import re
import sys
import time
def get_content():
'''
处理PDF文件复制后多余的换行
'''
print('请输入要翻译的内容:')
transText = ""
line = sys.stdin.readline()
while line != "#\n":
transText += line
line = sys.stdin.readline(... | [
"admin@busby.com.cn"
] | admin@busby.com.cn |
33e123b6737da78e5502366ca8247dc2a6cd8e35 | d1b3f9a802068d310fb1c1461753c6a00094f861 | /basics/class_vs_static.py | 09da26a169e5e2fa099ddb5018fa8a3fbe4a4c9f | [] | no_license | Mathanrajseenuvasan/pythonCrud_reactUi | d783897e1b2bc6671fca84968cef854939249bf3 | 45856125bfd60e0e6793a4893932e1789e833729 | refs/heads/master | 2022-10-03T10:00:56.184641 | 2020-01-20T05:15:55 | 2020-01-20T05:15:55 | 235,020,383 | 0 | 1 | null | 2022-09-16T18:16:44 | 2020-01-20T04:43:10 | Python | UTF-8 | Python | false | false | 881 | py | class Number():
def __init__(self, value):
self.value = value
@staticmethod
def sum(value1, value2):
return Number(value1+value2)
@classmethod
def zum(cls, value1, value2):
return cls(value1+value2)
def print(self):
print(str(self.value))
class Float(Number):... | [
"noreply@github.com"
] | noreply@github.com |
987eb84fbf26d29415ffd129fa743655d8efb924 | b9610a2d8fbe887d8348143758a9ae16b8760f2a | /KnOWLearn-Tool_V2/ConnectionManager.py | 116e839a50774db1a13cc43f8d8920bc94f993b2 | [] | no_license | davan690/knOWLearn-ToolV2 | 8b167b40fcd87b026313e9710c0e2bf496038f04 | 5739dc7c32446064880e7b808bad879c399cf920 | refs/heads/master | 2021-05-29T00:51:29.898742 | 2014-12-04T17:50:11 | 2014-12-04T17:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | # -*- coding: utf-8 -*-
from KnOWLearn.TermExtractor.CandidateTerms import CandidateTerms as extractTerms
from KnOWLearn.WSDisambiguator.Disambiguator import Disambiguator as disambiguateTerms
import socket
import sys
def getMDTerms(disambiguateTerms):
metadataTerms = ''
for i in range(0,disambiguateTerms.__len__... | [
"svieyra@svieyra-Latitude-E7440"
] | svieyra@svieyra-Latitude-E7440 |
9134086afe0892942ae14d735341baddd0d855b8 | 43d403057456c3c11baca210b341a5c944e0c396 | /sandbox/dkuhlman/docutils/test/DocutilsTestSupport.py | e40300984d66b98ccf531f1c454fdf5270d151e3 | [] | no_license | docutils/docutils | f6bf7265c7d84b9985acc4e5f2700f9643d0e3f0 | 3b53ded52bc439d8068b6ecb20ea0a761247e479 | refs/heads/master | 2023-08-07T17:03:26.038557 | 2022-01-16T17:57:56 | 2023-04-24T16:41:48 | 44,840,244 | 36 | 17 | null | 2023-07-23T21:42:44 | 2015-10-23T21:46:17 | Python | UTF-8 | Python | false | false | 24,423 | py | # Authors: David Goodger; Garth Kidd
# Contact: goodger@users.sourceforge.net
# Revision: $Revision$
# Date: $Date$
# Copyright: This module has been placed in the public domain.
"""
Exports the following:
:Modules:
- `statemachine` is 'docutils.statemachine'
- `nodes` is 'docutils.nodes'
- `urischemes` ... | [
"dkuhlman@929543f6-e4f2-0310-98a6-ba3bd3dd1d04"
] | dkuhlman@929543f6-e4f2-0310-98a6-ba3bd3dd1d04 |
2b226d2afb54feee4e3cdae2b5a60229a30fa896 | d503f3155dd9b5c5008008c8735f23c5199af277 | /inheritance/multiple_inheritance.py | 4bbf644127b9a3a79e4dcaa747943d386f425b35 | [] | no_license | Kev4HackPro/project_python_learn | 2fcfdc3d6f2513c99c7a90c64a522dbaca57ed4c | 521f206dbcbcc3e4c59e09bfd6ba436f72ca9f6b | refs/heads/master | 2022-11-29T05:37:31.575024 | 2020-08-14T20:15:37 | 2020-08-14T20:15:37 | 277,941,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | class Car:
def move(self):
print('Car - move()')
class Toy:
def move(self):
print('Toy - move()')
class ToyCar(Toy, Car):
"""A Toy car"""
tc = ToyCar()
tc.move()
| [
"kavitakelvin07@gamil.com"
] | kavitakelvin07@gamil.com |
dafa29da6a8e0d53fe8d347ef38b527f74b0187b | 52d833912e56f808c8e572615cbc28c3c137b226 | /Linked list/ Remove-Duplicates-from-Sorted-List.py | c7dcec1a5a05062f6a5f4135f3731051b3e8d2cf | [] | no_license | vidhi-mody/DSA | bf33cfb407152e9f134596b73adfbe4979168984 | ccc3a53bb5764f808aefe3a569564d7b4a0cc338 | refs/heads/master | 2023-05-10T05:37:39.394306 | 2021-06-10T08:01:17 | 2021-06-10T08:01:17 | 284,305,102 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # Given the head of a sorted linked list, delete all duplicates such that each element appears only once.
# Return the linked list sorted as well.
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Soluti... | [
"vidhimody6@gmail.com"
] | vidhimody6@gmail.com |
f79fb1ac50680340ecb85ed7520074385d9f59bc | abe2560a9df7d7a882d2ca484a0136f6d235edff | /atividades/roteiro6/meu_grafo.py | 35decf5bc268e99a429ce8a964b607c93a79373e | [] | no_license | joaovictornsv/teoria-dos-grafos | 33890ba14d01b7a6cbbb76cb6a06d081b0c89ae7 | 2c00f957bcae6ee56606914e47e3eede105611ac | refs/heads/main | 2023-07-30T23:03:49.751368 | 2021-09-21T21:35:05 | 2021-09-21T21:35:05 | 380,078,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | from bibgrafo.grafo_matriz_adj_dir import GrafoMatrizAdjacenciaDirecionado
from bibgrafo.grafo_exceptions import *
from copy import deepcopy
from time import sleep
class MeuGrafo(GrafoMatrizAdjacenciaDirecionado):
def clone_matriz(self):
matriz_clone = deepcopy(self.M)
return matriz_clone
def... | [
"joaovictornsv@gmail.com"
] | joaovictornsv@gmail.com |
5a4d9f72555ea7f88dad7b042b86c2ffe5a6fb8e | 33920bc6c82d8e58bb217b47020313080471d6e4 | /RowTemplate2.py | 295dff6767b54e8b641f3eb3299f1737e02bd8a9 | [] | no_license | chenghongm/OOB-ticketingSystem | 5b16ea810d55e71b82149e3203e0a96a28e68362 | 43383d5927661f206c01c83a79834664ebe2a21e | refs/heads/master | 2020-04-26T05:39:03.256153 | 2019-05-07T01:26:08 | 2019-05-07T01:26:08 | 173,341,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | from anvil import *
import stripe.checkout
import anvil.google.auth, anvil.google.drive
from anvil.google.drive import app_files
import anvil.users
import anvil.server
import anvil.tables as tables
import anvil.tables.query as q
from anvil.tables import app_tables
class RowTemplate2(RowTemplate2Template):
... | [
"noreply@github.com"
] | noreply@github.com |
aa8788f329966a2f453efcc85dcb17dc64883c53 | 443b59b399e935fd66b9de93c57dd9fa78defec5 | /public/common.py | ae599acf4e7baa88945ccdc6524b12d361d85549 | [] | no_license | dongyueqian/ApiAutoTest | 3b61a37c56c071da57a7cd0bfa9def3f6dbdb067 | 6a19d4ea4af2b0879ae75079e8b3fc520bd32213 | refs/heads/master | 2023-08-21T14:38:49.699228 | 2021-10-13T13:17:56 | 2021-10-13T13:17:56 | 415,588,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import requests
# 公用方法
def get_accesstoken():
return "1e0d9ca5-4ff3-4ce6-918d-8ba853ed6694"
def create_topics(topics_data):
url = "http://47.100.175.62:3000/api/v1/topics"
r = requests.post(url=url, json=topics_data)
return r
def topic_detail(id):
'''get /topic/:id 主题详情'''
url = "http://47.10... | [
"874974405@qq.com"
] | 874974405@qq.com |
2a99c1e567547ad471064a62fa5571a65b29f715 | 71324aca11e16d6da17b0440e72d0107f5af6e04 | /todo_vue_restful/todo_with_vue_and_restful/todo/migrations/0001_initial.py | 18a12c83dc377d8c7d800fdd1d51722e1aa0f4de | [
"MIT"
] | permissive | n3k0fi5t/Django_Tutorial | 6bad82a919d1de0162b34f4c7f753cd126b05cc3 | e3953335ca88fe22c68268fd76afb7c4f9bbb55f | refs/heads/master | 2023-02-16T07:56:56.416031 | 2021-01-11T23:17:33 | 2021-01-11T23:17:33 | 291,436,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # Generated by Django 3.1 on 2020-12-14 00:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"r05922078@ntu.edu.tw"
] | r05922078@ntu.edu.tw |
6209c7321ca355fc2465338319c0e4eb013f15dd | d15d8e89080fa4a3b91c10a3b6f6e3852b6644a9 | /cheese-py-venv/bin/pip2.7 | a5009c13e10ddda945e1ce56bf2acd5b16c6fe94 | [] | no_license | brantstuns/cheese-py | 36e19e0116fea506a9e66c91ef1a01d352fb10a9 | 7ed4bc5ad3827c00284faab2ea079678bef5cbef | refs/heads/master | 2021-04-30T22:37:35.387783 | 2016-02-22T06:57:56 | 2016-02-22T06:57:56 | 52,253,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | 7 | #!/Users/Brant/dev/cheese-py/cheese-py-venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"brantstuns@gmail.com"
] | brantstuns@gmail.com |
55011e7d72f18177422f55514b292382081f4dcd | 2caf6885511af24443e22aaa43cd679d694f6f80 | /note/my_note/first_month/day06/demo01.py | 18fab09a906c452f8cebed4af58ddeba84253c43 | [] | no_license | nandadao/Python_note | 7f9ba54a73af05c935b4f7e24cacb728859a6c69 | abddfc2e9a1704c88867cff1898c9251f59d4fb5 | refs/heads/master | 2020-11-25T18:29:50.607670 | 2019-12-19T01:28:02 | 2019-12-19T01:28:02 | 228,793,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """
猜拳
石头 剪刀
剪刀 布
布 石头
随机产生
"""
# import random
# win = ("石头剪刀", "剪刀布", "布石头")
# same = ("石头石头", "剪刀剪刀", "布布")
# choice = ("石头", "剪刀", "布")
# pc1 = choice[random.randint(0, 2)]
# # pc2 = choice[random.randint(0, 2)]
# pc2 = input("请出拳:")
# print(str(pc1)+str(pc2))
# # if str(pc1)+... | [
"1361335953@qq.com"
] | 1361335953@qq.com |
a8510ed4c832d93162788220a8e618a6ac40439c | 4a09376ef4ddd8cd5752e79bb0f3c18de6906455 | /iHubCrowdSourcing/tmpScripts/GetUniques.py | 9d7f8666fb8302f725b05fcd7aee852179ddeb03 | [] | no_license | GBelzoni/iHub | 33f36500f090fbfd962977ae266117be499b7cb5 | e816954bfca2127fdaaf750aef8b0442b287003c | refs/heads/master | 2021-01-18T14:45:09.589406 | 2013-09-06T22:52:15 | 2013-09-06T22:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | fin =open('modeltree.txt')
lines = fin.readlines()
fin.close()
fout =open('unique.txt','w')
lines2 = [ line.lower() for line in lines]
uniques = set(lines2)
print uniques
fout.writelines(uniques) | [
"patrickhcostello@gmail.com"
] | patrickhcostello@gmail.com |
405f03f5515603aa23722b6e2fe9f54458420056 | 5d3e3b9d2fb4aafb4e7c944a50fc8dae5d7c2368 | /tuner.py | 71fa466eb465eacb38678ed16c69e5b43c7218c1 | [] | no_license | johnsonc/tuner | 4bf98017de3849e8e1163a6c9156fc7c1a90b0ea | 53adf0ec527b00b78cfd5ae2bf0cbb9107400efe | refs/heads/master | 2021-07-21T02:34:06.298709 | 2017-10-29T04:41:42 | 2017-10-29T04:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | #!/usr/bin/env python3
from __future__ import print_function, division
import sys
from select import select
from array import array
import pyaudio
import numpy as np
import matplotlib.pyplot as plt
FORMAT = pyaudio.paInt16
CHUNK_SIZE = 128 # Depends on human persistence of hearing
RATE = 2048 ... | [
"praveenv253@gmail.com"
] | praveenv253@gmail.com |
9693cb56e4ed6ceaf6d46cd9253ef674ede6c153 | 786778fefd65dd171c6ce2eddebf51302925f722 | /models/test.py | 5bb3af250cdf0f5c238321caf29c6c5de6418f5d | [
"MIT"
] | permissive | Oya00Oya/PaintsPytorch | d3a90e8554361c6d3de17c05c1cc4927ac78a8e0 | 41cf321722a035101758c0717f082d71c12c6cf4 | refs/heads/master | 2020-03-25T07:51:58.191820 | 2018-03-24T07:04:13 | 2018-03-24T07:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,521 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
I2V_PATH = 'i2v.pth'
class ResNeXtBottleneck(nn.Module):
def __init__(self, in_channels=256, out_channels=256, stride=1, cardinality=32, dilate=1):
super(ResNeXtBottleneck, self).__init__()
D = ... | [
"yuanzheng.ci@gmail.com"
] | yuanzheng.ci@gmail.com |
2989c5521615440740f4bdd1b4eb7ceb64e82717 | 5d60c7c040e13d9f30d18d2aedc4b3b437008c15 | /integrated_data_processing/shared_functions/models.py | 18239a3f1455c69c775d6fbb34cc575474f05b41 | [
"MIT"
] | permissive | carola173/kafka-implementation | a59b066f51ead88b40bb44d517df38c2affca370 | a29c05f7c9ec5f4903610b077a776cf3473c2b37 | refs/heads/main | 2023-08-19T12:17:43.865054 | 2021-10-20T12:09:43 | 2021-10-20T12:09:43 | 419,306,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import datetime
import faust
from faust.models.fields import DatetimeField
class TripRecord(faust.Record):
id: int
vendor_id: int
passenger_count: int
pickup_longitude: float
pickup_latitude: float
dropoff_latitude: float
drop_longitude: float
store_and_fwd_flag: str
pickup_dateti... | [
"carola.amu@gmail.com"
] | carola.amu@gmail.com |
4c0c02e2de532e29579ebe035474430c01faea5d | fe85b3a7cad5dd3d9d08fb430f4887c5259962ed | /review_form/settings.py | e317d0c9902fdf08e8bc038a69f793affb7857e5 | [] | no_license | Aniket-Sharma/Review-System | aad72dc646cf4496706c44477b82e88f0e5b9891 | 72b32b7a0cbde50f0f3a8aa6d32b9049250d7263 | refs/heads/master | 2022-12-05T11:02:57.743129 | 2019-10-02T18:04:00 | 2019-10-02T18:04:00 | 212,013,873 | 0 | 0 | null | 2022-11-22T03:36:18 | 2019-10-01T04:41:23 | Python | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for roomswap project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"noreply@github.com"
] | noreply@github.com |
cf10c491b936df2b8ed8fb2269a9a5d76bfe085f | 99d9acdce21b3f00cfc35e344597e50986118cf6 | /train.py | f03e3fffcec53678b855b5abd66c96e9a0310e27 | [] | no_license | bigsoftcms/deepcluster-3 | d2d5639e5557089d0135ceb9ae1590600081a991 | e753d2893d60ebabc0619832fe2e90c71301bda7 | refs/heads/master | 2022-12-22T00:09:17.149801 | 2020-09-19T18:51:55 | 2020-09-19T18:51:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,270 | py | import argparse
import os
import time
import numpy as np
from sklearn.metrics.cluster import normalized_mutual_info_score
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import torchvision.transforms as transforms
import torchvi... | [
"pero356@gmail.com"
] | pero356@gmail.com |
2fe84b99d7e12b8b6f1ee597865729eae570e431 | 7e858aa71ae1ad8463b8a9a06448b29faa9eb453 | /account/urls.py | b9f8311ca34d73fe55b1eb048db67592c0c519f9 | [] | no_license | JDPatel1729/Society-Management-System-BackEnd | 74f42d88ae3478159d97314c9c33665a47892781 | b772c67fd9805f108510e63b60d733c57fbb23f5 | refs/heads/master | 2023-04-04T00:06:11.617344 | 2021-04-07T04:48:33 | 2021-04-07T04:48:33 | 352,247,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.urls import path
from .views import ledger
urlpatterns = [
path('',ledger,name='ledger_api'),
]
| [
"jdpeachblack@protonmail.com"
] | jdpeachblack@protonmail.com |
ff2d90b1f5ac7311985425547060f8d42ed0a4e2 | 86100df5db058ea25b1859b6d2d4eafef720bede | /dirWatch.py | f7e991a8815c3efb30907af01c6dd56ae91c92e1 | [] | no_license | SniPE7/MonitorPy | 1afb156d1d8185158012e54bb3c387cfde29c7cd | e3f7aa672a2909abfa080bf3db9b4ff56bd6b97e | refs/heads/master | 2020-12-24T16:42:52.899784 | 2014-12-15T11:32:58 | 2014-12-15T11:32:58 | 28,030,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
import time
from time import gmtime, strftime
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class Handler(FileSystemEventHandler):
def on_created(self, event):
print strftime("%Y-%m-%d %H:%M:%S", gmtime()), event
def o... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d54388890a5e78b747a36105e26e799f1a83ed8d | f1bccb61fe08abde483ec01aafb785a4a25ff61f | /Utils/files.py | e08cfc85272eadd94165c62e74ba511166374212 | [] | no_license | ashnaider/DifferentialEquations | 3817fc87b63bbb7d7bd7067a9a28a0e231025c15 | 53d36c2fe193285f830f47d37d8f038073d6995a | refs/heads/main | 2023-08-18T21:33:01.651376 | 2021-10-09T08:10:12 | 2021-10-09T08:10:12 | 414,854,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QInputDialog, QLineEdit, QFileDialog
from PyQt5.QtGui import QIcon
def getFileNameToSave(parent, filename):
options = QFileDialog.Options()
options |= QFileDialog.DontUseNativeDialog
actual_filename, _ = QFileDialog.getSaveFileName(pa... | [
"ash2003@ukr.net"
] | ash2003@ukr.net |
5b0c427c59c3f900fc2f681738a7253d68c9bc70 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Mastering Concurrency in Python/Chapter03/example2.py | 86fd9c8132767986c2d2392ff9d84973ea193f0b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 642 | py | # # ch3/example2.py
#
# ______ _th.. __ thread
# ____ ma__ ______ sqrt
#
# ___ is_prime x
# __ ? < 2
# print('@ is not a prime number.' ?
#
# ____ ? __ 2
# print('@ is a prime number.' ?
#
# ____ ? % 2 __ 0
# print('@ is not a prime number.' ?
#
# ____
# limit _ __. sq ? ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
fb873db4bf3aa718c82d101dda25aca24cd84ce9 | 4edadc6b0c733b208df760e8491b1f1808ed4395 | /image process/plot_loss.py | 9bdbe07e304b8e5f2c385c95b6d5b208c45e8f10 | [] | no_license | RichardcLee/Expression_Transformation | d3f8a1bd0b11071f3f085efe821fabc716e617e6 | ae849789a6c77e4cec0909c0c490305ad13ba06d | refs/heads/master | 2021-04-11T04:51:02.496921 | 2020-09-16T08:21:41 | 2020-09-16T08:21:41 | 248,993,500 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | from matplotlib import pyplot as plt
import re
plt.rcParams['font.sans-serif']=['SimHei'] # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False # 用来正常显示负号
lines = []
with open(r"C:\Users\81955\Desktop\ckpts\face\ganimation\200513_232207\logs.txt", "r+") as f:
lines = f.readlines()
# dis_fake WGAN-GP对抗损失第二项,值... | [
"0yunhow@gmail.com"
] | 0yunhow@gmail.com |
c34d8dc77d8a8ad410f2ef2a3c61cecfb5650440 | ee4e8acfe29e70598c1bcd6a3ba9ce57aaa89498 | /project1/agent.py | 294f391c6e403949ff6b0ff35fcb92ca2380b52f | [] | no_license | kushal433/motion-planning | 7684137f36624cafcc93429d72ea7a3bef2d2a67 | 976e5c4cf41e203ef932b3d1dfc5a8ed99e5b284 | refs/heads/master | 2022-12-18T16:07:37.134835 | 2020-09-15T21:59:23 | 2020-09-15T21:59:23 | 295,829,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,709 | py | # agent.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to Clemson University and the author.
#
# Author: Ioannis K... | [
"noreply@github.com"
] | noreply@github.com |
fd8d503808c9cd1b25d24b4d703e2d6833011276 | 5f358a90c01a19e3bb8b7e7f46b99dd3748e317a | /config.py | 5b62a029bd60f5461e691abec32607e788235598 | [] | no_license | iliaantonov/JestiBot | ff04d02c5186632816335a573a2a467c8fcb8241 | 1ab634dfce415672b281b5570de2dec25086c53f | refs/heads/main | 2023-01-19T20:36:58.559953 | 2020-11-27T23:58:21 | 2020-11-27T23:58:21 | 316,623,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # Токен Бота
token = '1415264147:AAGjsbQhaVoRJOG1VpC7ja4GZjADAJu_NZc'
# Выгрузка файлов, заполнение списков
# Список стикеров
stickers_file = open('stickers.txt', 'r').read().split('\n')
stickers_list = []
for line in stickers_file:
stickers_list.append(line)
# Казни
execution_urls_txt = open('ex... | [
"noreply@github.com"
] | noreply@github.com |
24d8ef27b15e6d40d065dc60f829d83782dc76e9 | 5013ea0b4548f3576ad781040d0903825005e44a | /tests/terraform/checks/resource/aws/test_WorkspaceUserVolumeEncrypted.py | 0e7153473f378e21aeed1d2ab0f7b3dc22e86ce1 | [
"Apache-2.0"
] | permissive | tronxd/checkov | a00aa29694a3788880db212c3200648c7d3ab9d1 | e7c6a829995acd5bb6f6a54e08f780d2c8163094 | refs/heads/master | 2022-11-05T14:48:36.384598 | 2021-11-09T17:51:04 | 2021-11-09T18:09:10 | 239,376,520 | 0 | 0 | Apache-2.0 | 2023-09-11T07:06:21 | 2020-02-09T21:23:48 | Python | UTF-8 | Python | false | false | 1,337 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.resource.aws.WorkspaceUserVolumeEncrypted import check
from checkov.terraform.runner import Runner
class TestWorkspaceUserVolumeEncrypted(unittest.TestCase):
def test(self):
runner = Runner()
cur... | [
"james.woolfenden@gmail.com"
] | james.woolfenden@gmail.com |
d04cecf33f57f5b0070e9c70fd72c137b1a92202 | f28d9d2e0ca7a14bf0744abb7f57413d74edb26b | /api/cwod/views.py | aaf638b263969984a7f1f4e38e333ab69c7f4320 | [] | no_license | sbma44/Capitol-Words | ea63da87e2f122e48bb1ff0ac990978d51832308 | d41e2dcd42d70ecf7e1d7b06463b46f4d7337e13 | refs/heads/master | 2021-01-17T23:14:38.140374 | 2010-12-09T17:02:53 | 2010-12-09T17:02:53 | 1,154,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | from operator import itemgetter
import sys
import os
sys.path.append(os.pardir)
from django.http import HttpResponse
from django.shortcuts import get_list_or_404
from solr.api import *
from piston.handler import BaseHandler
from piston.resource import Resource
from bioguide.models import *
class GenericHandler(Bas... | [
"bycoffe@gmail.com"
] | bycoffe@gmail.com |
7284d0ac359fe59eb9586c8162a9c0f37c534875 | 8a35e59797c8bad4d69db38ab202f8873bb9ca49 | /RUM Library/rum/Interceptor.py | cd6c81aef29cb541333515f28c605ed93befbf1e | [] | no_license | S0166251-FinalProject/RUM | 485cae7c082dae453e9c3299d4cfb13e440a42a1 | caf39e924ef75efcd9504dd2b7e824b142d0dd60 | refs/heads/master | 2021-01-10T19:43:41.210429 | 2014-12-04T12:20:32 | 2014-12-04T12:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | import types
from collections import namedtuple
class Interceptor(object):
wrappers = {}
Service = namedtuple("Service", ["Instance", "methodName"])
def __init__(self, lightWeight = True):
if lightWeight:
self.__createWrapper__ = Interceptor.__createLightWeightWrapper__... | [
"d.windhouwer@student.utwente.nl"
] | d.windhouwer@student.utwente.nl |
eeecbd2cb9ae14c3959919f4b325827fd2ffe54d | ff0fedb488ac109e0d51c6d26dc9f3b2cb680e5f | /Python_14_Sep-main/test.py | ecd9d72433057ede05e9d4ede0cddd5dd50981a9 | [] | no_license | Namita123456789/Python_14_Sep-main | b6787ee625a80a7696ebad2b77e2afc320bd5101 | 045ae26eb66d6485f100b04c384268461875abc4 | refs/heads/master | 2023-08-23T07:04:59.788863 | 2021-10-26T06:16:12 | 2021-10-26T06:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py |
count(1)
thislist.append("asdadasds")
thislist.extend(tropical)
newlist = ['hello' for x in fruits]
list1 = [10, 20, 30, 40, 50]
# start = list's size
# stop = -1
# step = -1
# reverse a list
for i in range(len(list1) - 1, -1, -2):
print(list1[i], end=" ")
# Output 50 40 30 20 10
# class ComplexNumber:
# de... | [
"namitashah42@gmail.com"
] | namitashah42@gmail.com |
a4fa5e2176aea500e21b13cbfb3acbda776ea850 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/mm/opt/src/tools/utils.py | 39eafdedf84ab82c45e868f2cc33485fc23436ca | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 15,285 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"450076077@qq.com"
] | 450076077@qq.com |
619adbc9e0846c415c923477aaeb13ecbea85612 | 3b5f8c4838b8eb7ae7c9566cd64ee8dc466b64c3 | /code/notejam/wsgi.py | a75e88f53705a4601ec4ed59399d1e5c0a91e3c4 | [
"MIT"
] | permissive | ganesh35/notejam | 10b018c847a83775c3470b086f0fd10c67b2c3b0 | 6e93c9b127ee1627e6125bcccccdad0640e4be5c | refs/heads/main | 2023-03-09T05:26:13.071265 | 2021-02-25T15:51:39 | 2021-02-25T15:51:39 | 338,671,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | """
WSGI config for notejam project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICAT... | [
"ganesh35@gmail.com"
] | ganesh35@gmail.com |
37df40f64062cc7835c3b5a154205a1ed7cd9747 | b227a0f894e23755913945976c3571c05f00b1c7 | /fbnet/train_FBnet_Se.py | 75fd208a228722971775527461028b565c187692 | [] | no_license | CuriousCat-7/NAS | 918d7379572bad31de370d12879f882dbc99570e | c47d22a52889b7f5bc2e25449590557ab53b9d66 | refs/heads/master | 2021-01-25T22:44:00.079900 | 2020-03-03T10:29:50 | 2020-03-03T10:29:50 | 243,212,262 | 0 | 0 | null | 2020-02-26T08:39:57 | 2020-02-26T08:39:56 | null | UTF-8 | Python | false | false | 3,714 | py | import os
import argparse
import sys
import logging
from time import gmtime, strftime
import time
sys.path.insert(0, '/home/zhouchangqing/mxnet/incubator-mxnet_12_26/python')
import mxnet as mx
from FBNet import FBNet
from FBNet_SE import FBNet_SE
from util import _logger, get_train_ds, _set_file, get_mnist_iter
loggin... | [
"wujunqiang@bupt.edu.cn"
] | wujunqiang@bupt.edu.cn |
4798d96033333ba5a50cb444ae683e4d1a6ee0d6 | b3839099049a5d34e14b2452c4969fd4f2a3333c | /conanfile.py | cfcf6015db568caa261688eb7d7ec15c668440cb | [
"MIT"
] | permissive | jeffw387/vkaEngine | bb71827118929ec5aaa883e7bb41bbfbf26d0e22 | 69bc21d4c10229ab823a887147cb45888d9afbaf | refs/heads/master | 2021-07-08T19:07:34.049415 | 2019-02-24T06:53:45 | 2019-02-24T06:53:45 | 144,421,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | from conans import ConanFile, CMake
class vkaEngineConan(ConanFile):
name = "vkaEngine"
versionfile = open(".version")
version = versionfile.read()
versionfile.close()
license = "MIT"
author = "Jeff Wright jeffw387@gmail.com"
url = "https://github.com/jeffw387/vkaEngine.git"
description... | [
"jeffw387@gmail.com"
] | jeffw387@gmail.com |
5c53f6b52bfd5c8e79b2bb0168bfe2d2739fa67f | 8cda31ba684002db781d6b5af66227450de43ba8 | /biosys/settings/dev.py | a826f09c4e80365bd0f564089b43bba9b1393a34 | [] | no_license | sergedpaw/biosys | e1c1c3a3ff585ec41f4bc65f550ad117617c2ded | e1210b602cd9bcfa2a12244024a02db9a9223343 | refs/heads/master | 2021-01-02T22:16:45.463777 | 2015-04-17T08:19:25 | 2015-04-17T08:19:25 | 34,037,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from __future__ import absolute_import
import sys
from .base import *
INSTALLED_APPS += (
'django_extensions',
)
# You might want to use sqlite3 for testing in local as it's much faster.
if len(sys.argv) > 1 and 'test' in sys.argv[1]:
DATABASES = {
'default': {
'ENGINE': 'django.db.backe... | [
"sergel@dpaw.wa.gov.au"
] | sergel@dpaw.wa.gov.au |
1fb3703b0fbecdc2e464bc3c3a63822b36661a44 | 97e7984431f79e370614d7efb9b2fc20de3e066d | /scripts/detect/db/train_db.py | afc0a1abcf563eb3e014142b4b2018862ee8ee5f | [
"Apache-2.0"
] | permissive | xuncv/gluon-ocr | 5f96dcc5d2b497707fd029b0a7937ea06fb7954a | 5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40 | refs/heads/master | 2023-01-22T16:09:01.114328 | 2020-12-03T07:27:28 | 2020-12-03T07:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,092 | py | #coding=utf-8
import cv2
import os
import sys
import logging
import warnings
import time
import mxnet as mx
from mxnet import gluon
from mxnet.gluon.data import DataLoader
from gluoncv import utils as gutils
sys.path.append(os.path.expanduser('~/gluon-ocr'))
from gluonocr.model_zoo import get_db
from gluonocr.data im... | [
"448627058@qq.com"
] | 448627058@qq.com |
395326db8f49bcc62b832e19268b8b29aecfb822 | 1b8ae90527e93aab7f80ac7b908a5eefe1b1384e | /Data_Structures/queue_with_max.py | 5423249c1576b9d2c695a000e3a2f44bc7861135 | [] | no_license | Frikster/CodingNotebook | 4cbdff626e2b86fde45223775d27078291d41621 | c371cd43bcbac02cb915a9620b291d013d8fb485 | refs/heads/master | 2020-04-14T22:53:58.725429 | 2019-05-11T21:44:54 | 2019-05-11T21:44:54 | 164,182,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # Implement a queue with #enqueue and #dequeue, as well as a #max API,
# a method which returns the maximum element still in the queue. This
# is trivial to do by spending O(n) time upon dequeuing.
# Can you do it in O(1) amortized? Maybe use an auxiliary storage structure?
import pdb
import unittest
from Data_Structu... | [
"dirk.haupt@gmail.com"
] | dirk.haupt@gmail.com |
cb6578c9c54c4b19d30773f027845d26b967021a | cf7dedf604be53b2bd5749a14a83630ab0ee287d | /server.py | 06a6f4fa2009b8ca26d83db4c6e34433d8747322 | [] | no_license | jqjZhu/flask-intro | 9aa4159aabb58e4f24c3f1d0dc2e33742cbc33c5 | 62f88114171ea2d97552efb42a3c261d03daa910 | refs/heads/master | 2023-03-20T23:35:05.165849 | 2020-05-13T21:01:10 | 2020-05-13T21:01:10 | 263,742,100 | 0 | 0 | null | 2021-03-20T03:57:06 | 2020-05-13T21:00:27 | Python | UTF-8 | Python | false | false | 2,845 | py | """Greeting Flask app."""
from random import choice
from flask import Flask, request
# "__name__" is a special Python variable for the name of the current module
# Flask wants to know this to know what any imported things are relative to.
app = Flask(__name__)
AWESOMENESS = [
'awesome', 'terrific', 'fantastic',... | [
"Zqijing0815@gmail.com"
] | Zqijing0815@gmail.com |
0c6d75b18504836247f6f318140c34b34537ce19 | 300193e541e7e03dbaf2002b84bd89cef3ef99d5 | /personal.py | f82aaa4092a53069eb473abe951fa3e394883e26 | [] | no_license | geeogi/geeogi_talon | ca99e88338f2d9338bf0f9b04d911fc4b2ef6fad | 43c9aa34608aa2d5f4e12096c45332f22a32beea | refs/heads/main | 2023-01-15T06:19:19.217543 | 2020-11-23T08:20:44 | 2020-11-23T08:20:44 | 311,019,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from talon import Module, Context, actions
mod = Module()
ctx = Context()
mod.list("link", desc="common quick links")
ctx.lists['self.link'] = {
'whats app':'https://web.whatsapp.com',
'coin market cap':'https://coinmarketcap.com',
'gmail':'https://mail.google.com/mail/u/0/#inbox',
'news':'https://www.... | [
"george6bennett@gmail.com"
] | george6bennett@gmail.com |
6bbcd41880eb25da9be5cc151ebab7f50751e881 | 9045fd1d794bcb0e0cce44b0eb1c1bb8166fcf24 | /courses/urls.py | 6b213b775ac2830a606a39f1d36e0e8e090971f6 | [] | no_license | bharrison21/Fyuzed | 31428fb0e8efc0bde149da7e149966eafbb9a478 | deda76c4c6bae2178ec50b3ffebed47b928eb76d | refs/heads/master | 2023-07-19T04:21:20.403535 | 2021-09-05T18:13:18 | 2021-09-05T18:13:18 | 265,630,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from django.urls import path
#from .views import
from . import views
from .views import Listings, ViewListing
from django.views.generic.base import TemplateView
#define paths.
# When you are at '<url>/signup/', it will show SignUpView (as_view needed bc its class based)
# it's name allows it to be refere... | [
"timstauder26@gmail.com"
] | timstauder26@gmail.com |
91a0fd3c2c049c06e58486ec8a171240d7f057f8 | e748e6d96aace1c9149327f384e0de07d743715a | /challange/largestPlateau.py | 14569e16c073b32674b62202fc1a064fd2c5fbe3 | [] | no_license | jorzel/codefights | cdfc4cb32261b064ffc605bfd927bf237885b5d2 | 28b62a2ae3809f0eb487198044c0fe74be09d4e8 | refs/heads/master | 2022-04-28T06:54:26.170503 | 2022-03-23T22:22:20 | 2022-03-23T22:22:20 | 110,818,719 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | """
Your terraforming crew is busy at work on a mountaintop, but it's time to break for lunch. In order to allow everyone to have lunch together, we'd like to find a plateau on the mountain where everyone can sit.
Given a topographic map in the form of a matrix of integers map, find the area of the largest plateau.
E... | [
"jaroslaw.orzel@emplocity.pl"
] | jaroslaw.orzel@emplocity.pl |
ee60cd02829d54fe8b02d44339527c5b45fa47b4 | 2e47f91e6401eb7f36746e3078b0baac7fd4b9d1 | /silot/sspair_model.py | 3fb03a074b22eeed01b72335f81bba9b4b96c79b | [
"MIT"
] | permissive | lqiang2003cn/silot | fdf7fb9e6ed0d814fb6a9f0630cd7913478a870a | d49a41dde74db62d62bdd9ba5d35ff54c07fd9bc | refs/heads/master | 2023-01-15T19:37:37.276344 | 2020-06-18T15:28:19 | 2020-06-18T15:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,805 | py | import numpy as np
import tensorflow as tf
from collections import defaultdict
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.colors import to_rgb
from dps import cfg
from dps.utils import Param
from dps.utils.tf import RenderHook, tf_mean_sum, tf_shape
from auto_yolo.models.core... | [
"eric.crawford@mail.mcgill.ca"
] | eric.crawford@mail.mcgill.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.