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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba287699cf45b5845e4ef5418bb4df38b2b91214 | fb265f7443acf7c72e3a7d95e2be5a268ecd8443 | /rcwa/test/fastRunner.py | 68958164b6b599d0dc72f99e7be7ab2fdd7527df | [
"MIT"
] | permissive | itsjmj/rcwa | 71f1bd6bfbff1bb2cc630b6b35a23d1f919c329d | a946c3819e5e52ad9c92a8a73c48360749b06196 | refs/heads/master | 2023-08-25T19:04:44.699749 | 2021-05-12T15:25:56 | 2021-05-12T15:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | """
Run all the core unit tests, not the lengthy and major integration tests
"""
import context
import unittest
import sys
import testCrystal
import testHarmonics
import testLayer
import testMaterial
import testMatrices1x1Harmonics
import testMatrices3x3Harmonics
import testNetlistParser
import testSolver1x1Harmonics
... | [
"jordan.e@berkeley.edu"
] | jordan.e@berkeley.edu |
ea8178226894384605a4056cb9263a40ae392b4f | eecd9cb2117aee5f8a41a38e07697524c5908003 | /concourse/client/api.py | 6364f9311bca6d38d5e26f4f165613ef1eb30a26 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | adracus/cc-utils | 426608fb2c7184e5f68c9073da9e7f1535e025ce | dcd1ff544d8b18a391188903789d1cac929f50f9 | refs/heads/master | 2020-04-25T23:30:25.454654 | 2019-02-27T14:31:19 | 2019-02-27T14:31:19 | 173,148,221 | 0 | 0 | Apache-2.0 | 2019-02-28T16:36:09 | 2019-02-28T16:36:09 | null | UTF-8 | Python | false | false | 8,926 | py | # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed
# under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"christian.cwienk@sap.com"
] | christian.cwienk@sap.com |
b0be373768e61a07dd665ce7b0eb613136816abd | a6dbcecdccc91f602307ab2d0ec166005a4d07dd | /env/Lib/site-packages/setuptools/msvc.py | 5979ed2de99cbf74c525d28735b05cdc666c7368 | [] | no_license | lishaojie977/hmsc | a4b95368de1ae2298ff140a5556f89fc8146b7e9 | 0ca87753d138cd0cb62bb7ba641b0dcd79b83115 | refs/heads/master | 2022-04-28T16:22:56.629037 | 2020-05-03T12:47:45 | 2020-05-03T12:47:45 | 257,158,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,844 | py | """
Improved support for Microsoft Visual C++ compilers.
Known supported compilers:
--------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Microsoft Windows SDK 6.1 (x86, x64, ia64)
Microsoft Windows SDK 7.0 (x86, x64, ia64)
Microsoft Visual C++ 10.0... | [
"1171987472@qq.com"
] | 1171987472@qq.com |
9e819a87ebc1032db2785b8533da9e1f29cd9fe5 | f62e4c46fb0f98879fb63977fa29631b02e3928c | /16 задание/РекурсФункцСТекст_005.py | 555d533ac95655abf5e3a748654d72868d9b32bc | [] | no_license | SeveralCamper/USE-2020-2021 | c34f4d7a2c3e0f51529141781f523b63242a835d | ac1122649f2fd431a91af5dda5662492e2565109 | refs/heads/master | 2023-09-03T13:36:05.822568 | 2021-10-27T12:54:10 | 2021-10-27T12:54:10 | 392,303,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Задание 16 № 9163
# Ниже на пяти языках программирования записан рекурсивный алгоритм F.
# Чему равна сумма всех чисел, напечатанных на экране при выполнении вызова F(1)?
count = 0
def F(n):
global count
count += n
print(n)
if n < 4:
F(n + 1)
F(n + 3)
print(F(1), count)
# Ответ: 25 | [
"mikha.alkhimovich@mail.ru"
] | mikha.alkhimovich@mail.ru |
0d038bc8a4bea84b0f0d51230a42d848d9d9ce14 | 5c1e5935129b4d0f5626f64bd62e3370b0553262 | /vendor/deadline/custom/plugins/GlobalJobPreLoad.py | d1287dd2131f2cf667340d1bd133e38875f5b207 | [
"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 | 6,060 | py | # -*- coding: utf-8 -*-
import os
import tempfile
import time
import subprocess
import json
import platform
from Deadline.Scripting import RepositoryUtils, FileUtils
def inject_openpype_environment(deadlinePlugin):
job = deadlinePlugin.GetJob()
job = RepositoryUtils.GetJob(job.JobId, True) # invalidates cach... | [
"petr.kalis@gmail.com"
] | petr.kalis@gmail.com |
6618cc7ee42d5c64ce1da566bff7ac57a6f4fe95 | 86317245051f5256751ca3ac186eaffccf55af52 | /src/menu.py | 9e2bc6d87931c718dff91cfadeb55fabe57dd88a | [] | no_license | SaulCastel/LFP_PROY1 | aae34f98b2e784484fb284800515e6eb1d1857bf | f27d3d7c7c6c7ba13774b4dcaaa79370cfdf65f7 | refs/heads/main | 2023-03-31T01:33:19.910787 | 2021-03-22T07:48:05 | 2021-03-22T07:48:05 | 348,588,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class Item:
def __init__(self, id:str, name:str, price:str,desc:str) -> None:
self.id = id
self.name = name
self.price = price
self.desc = desc
class Section:
def __init__(self, name:str) -> None:
self.name = name
self.items = []
def newItem(self,item:Item):... | [
"saulcastel016@gmail.com"
] | saulcastel016@gmail.com |
5e70589d8b5f904dfb860f482ccaa3caf4c7ec29 | 8685c7b28fcaf26505ec4210ff69f30ed0884d80 | /tools/c7n_gcp/c7n_gcp/actions/cscc.py | 32b0c5015f39db0b3979318624ad86139f3e2225 | [
"Apache-2.0"
] | permissive | AnatoliiHromov/cloud-custodian | 9026d490b1c8aabcdab07c5d95a3e7bdda11ce7b | 54b48040c0de8a34cea4c48209ca7e395285465b | refs/heads/master | 2022-10-13T15:56:48.654462 | 2020-06-04T16:32:25 | 2020-06-04T16:32:25 | 269,630,235 | 2 | 0 | Apache-2.0 | 2020-06-05T12:35:17 | 2020-06-05T12:35:14 | null | UTF-8 | Python | false | false | 8,032 | py | # Copyright 2018-2019 Capital One Services, LLC
#
# 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 ... | [
"noreply@github.com"
] | AnatoliiHromov.noreply@github.com |
a582113ccd4d7aff4595ecaf83c5980d1e086ed2 | ece386649b39403cbb23e4c4071178e178311343 | /blog/admin.py | 46814e609e37e1a6f18bc9b715de4f5ff9a253f8 | [] | no_license | GadinganJayHarley06/my_first_blog | c743352178f570400aa2ba256c4bec9530eb0a76 | b2e5921475c161565bc214290eacd47a237041de | refs/heads/master | 2021-09-06T01:51:10.285943 | 2018-02-01T12:31:19 | 2018-02-01T12:31:19 | 119,833,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Post
admin.site.register(Post)
| [
"jayharleygadz@gmail.com"
] | jayharleygadz@gmail.com |
c446ccc3868b590d3af20686969206a7817c1464 | a3ff213f844fa494ba2ba06d26b4e7ba77fa7a58 | /django_patterns/management/__init__.py | b9b47da6d3b268a3cc8c8f9d7cdfcbbc09ce161d | [] | no_license | monetizeio/django-patterns | f757771c46859b9157b48d0f875a397239706702 | 9b5567cbc0d4ed58a9ff074bccc9026982daf307 | refs/heads/master | 2021-01-13T01:50:56.949546 | 2013-03-19T23:23:18 | 2013-03-19T23:23:18 | 5,908,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# === django_patterns.management ------------------------------------------===
# Copyright © 2011-2012, RokuSigma Inc. and contributors. See AUTHORS for more
# details.
#
# Some rights reserved.
#
# Redistribution and use in source and binary forms of the software as well ... | [
"mark@roku-sigma.com"
] | mark@roku-sigma.com |
a387bd8541f6ae4169b7b9ac79fbcd17e4dbf771 | 84153ccd9d502d1e086000d66e58eaf756f52ed1 | /tweetme2-web/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | f499035769cb92132bf631e258809b1c8655ae7f | [
"MIT"
] | permissive | ezorfa/TweetMe | a86d6714595a1cd57054fadb62bd67d27448a995 | ff7843d79ba685265f32cab7fabb7f2336122dcc | refs/heads/master | 2022-12-14T14:57:37.897380 | 2020-08-23T21:52:08 | 2020-08-23T21:52:08 | 288,664,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
""
] | |
ac5953399a647183382fd235afa3078fcf3f2cf8 | 7c9f28e371e8dfa9290c05a48a9d924484b4b18c | /1.py | e742ff9920b98902a4a6413dc4ff9b62916929d0 | [] | no_license | Pavithralakshmi/corekata | 1f9d963da44a6fdcdedaf2e39452545f6cc52e9b | 06d1c7bba25681ce12e2ab93ce461228afb6b984 | refs/heads/master | 2021-04-30T01:53:37.414318 | 2018-10-11T17:58:39 | 2018-10-11T17:58:39 | 121,491,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | s1=input("eter anything")
s2=input("enter somthing")
print(s2)
| [
"noreply@github.com"
] | Pavithralakshmi.noreply@github.com |
9292b50897599760a3af3e865199ee693377afc0 | bca910213912e3f74e28b3da920695eabf9bab1c | /sat/list_articles_test.py | 7b6c3905d6be9e414f0bbc7044ab53b5d88b91b0 | [] | no_license | francescobenintende/hub-blog | e9f2850ad030ea3af7051d15a9ee186b770391ee | f8960f229c3806fc1c6989f3ab7b6192f46c982f | refs/heads/master | 2023-06-23T18:10:34.593326 | 2021-07-20T07:04:01 | 2021-07-20T07:04:01 | 387,029,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | from hub_blog import app
class TestListArticles:
def test_list_articles_returns_articles_with_specified_tags(self):
with app.test_client() as c:
article_to_create_one = {
'title': 'Article One',
'content': 'Lots of interesting content.',
'tags': ... | [
"francescobenintende@icloud.com"
] | francescobenintende@icloud.com |
1df2674dd840f1c05f994f93ddba2e65067ae23e | 3c639c452fac96b882fe2c26b47545079dd174ec | /RunEventNumberFilter/test/RunEventNumberFilter.py | 480e8087c369be7a4aee8a4529e23d65edb9612d | [] | no_license | cms-nd-user/RunEventNumberFilter | 84825ffdee1cd6aee5a695b21b66d84043859b41 | b47f4144a2e7a91baa726151319e090a45c5cd63 | refs/heads/master | 2021-01-21T13:08:39.958774 | 2013-08-20T16:15:36 | 2013-08-20T16:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | # Auto generated configuration file
# using:
# Revision: 1.168.2.1
# Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: SingleGammaPt35_cfi.py -s GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,RECO -n 2 --conditions FrontierConditions_GlobalTag,MC_36... | [
"slaunwhj@cern.ch"
] | slaunwhj@cern.ch |
f17124384ece9a83dcb41df9bd0ab948cf7e0c16 | 8409cbba351dc3572949e933ea2e265c44452844 | /hsn_v1/densecrf.py | ddc2fd145b1d2ef2d2d89d3e17d3ee796e8775df | [
"MIT"
] | permissive | Kitatine/hsn_v1 | ffa239659745fc11083cbc61dd5d9e0c014c7a10 | 8cc524a7932deead6ff87fc5945522cf310b9fcd | refs/heads/master | 2022-09-06T19:03:09.757180 | 2020-06-01T16:26:46 | 2020-06-01T16:26:46 | 268,572,420 | 0 | 0 | MIT | 2020-06-01T16:20:33 | 2020-06-01T16:20:32 | null | UTF-8 | Python | false | false | 2,870 | py | import os
import numpy as np
import pydensecrf.densecrf as dcrf
from pydensecrf.utils import unary_from_softmax
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
class DenseCRF:
"""Class for implementing a dense CRF"""
def __init__(self):
self.gauss_sxy = 3
self.gauss_c... | [
"ly.hc.chan@gmail.com"
] | ly.hc.chan@gmail.com |
e27268bc22f9a86622a304e5caac2b5d7ec1d426 | ac8b9ab24164f5f282e9eaad2b2453690e5871c7 | /app.py | f54b84b37867cc222edf5c1d5bbfb3047cc0d0c7 | [] | no_license | Akrosys/M1_Python_EDA | 811cad373c49fea4a007db4213188162d1e199c9 | 7b17b05c5f2afc4da8042585fb385643cb288f18 | refs/heads/master | 2023-01-30T02:21:19.783569 | 2020-12-02T15:59:53 | 2020-12-02T15:59:53 | 313,864,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from flask import Flaskr
import os
import socket
# Connect to Redis
redis = Redis(host="redis", db=0, socket_connect_timeout=2, socket_timeout=2)
app = Flask(__name__)
@app.route("/")
def hello():
try:
visites = redis.incr("compteur")
except RedisError:
visites = "<i>Erreur de connection Redi... | [
"tumasgiu@users.noreply.github.com"
] | tumasgiu@users.noreply.github.com |
38f7ec7f0bfb8a30bba8a7a34b7649c99e83b107 | f91e85aaad8cbe48c819a15fc2f7d728a1ab50a1 | /chapter21-case_study/pyimagesearch/utils/captchahelper.py | 2a7163debbb6e4c4e3cb9bbbac24500607c290f8 | [] | no_license | amuLee/StarterBundle | ac9c28cffc8494ac9957e014304bf2de8be5a6d1 | 861fe66d9bab55390c7faca5026769697fc51307 | refs/heads/master | 2020-05-23T14:05:18.849342 | 2019-05-15T09:42:34 | 2019-05-15T09:42:34 | 186,793,654 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # import the necessary packages
import imutils
import cv2
def preprocess(image, width, height):
# grab the dimensions of the image, then initialize
# the padding values
(h, w) = image.shape[:2]
# if the width is greater than the height then resize along
# the width
if w > h:
image = im... | [
"leeamu340@gmail.com"
] | leeamu340@gmail.com |
c663cfef1a695d5be22587d9ff42d87025c79fdc | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/destination_display_variant_ref.py | 3255e0537fdd4c971133e232146768cd1aa74573 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 332 | py | from dataclasses import dataclass
from .destination_display_variant_ref_structure import DestinationDisplayVariantRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class DestinationDisplayVariantRef(DestinationDisplayVariantRefStructure):
class Meta:
namespace = "http://www.netex.or... | [
"chris@komposta.net"
] | chris@komposta.net |
2c78b769a6a36326247be3501afa66070e7edcc9 | 4a4e0cc6a1fb19404e9139b77e3c1cdeb7352ee6 | /自动写诗2/write_poem.py | b86a9968067863ab8ff3af02946713525b8ad660 | [] | no_license | zouhuigang/tensorflow | 11193b4f38b24e5635bb155c81afc9e564d1adae | f9d9b4bbcb53e5eeb192740be8470dda31a34af5 | refs/heads/master | 2021-08-28T12:01:47.718920 | 2017-12-12T06:04:32 | 2017-12-12T06:04:32 | 113,291,005 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import json
import os, sys,time
import logging
import math
import numpy as np
import tensorflow as tf
from char_rnn_model import CharRNNLM,SampleType
from config_poem import config_sample
from word2vec_helper import Word2Vec
from rhyme_helper import RhymeWords
class WritePoem():
def __init__(self,args):
... | [
"952750120@qq.com"
] | 952750120@qq.com |
270526ead40fed7395ab36a2f0e5538850c9fcd5 | 43575c1324dc0760958a110d7f056bce88422a03 | /listing/arrayqueue.py | fe91f1bc669035d14da292523bec642ed81d0941 | [] | no_license | nicolas4d/Data-Structures-and-Algorithms-Using-Python | 1ffd74d26f09de2057bdc53998a56e56ed77c1de | a879ce6fd4033867783ee487d57d459b029eb5f8 | refs/heads/master | 2020-09-24T12:48:30.726766 | 2019-12-31T03:15:44 | 2019-12-31T03:15:44 | 225,761,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Implementation of the Queue ADT using a circular array.
from array import Array
class Queue :
# Creates an empty queue.
def __init__( self, maxSize ) :
self._count = 0
self._front = 0
self._back = maxSize - 1
self._qArray = Array( maxSize )
# Returns True if the queue is ... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
9a4a7f80301f045fa5e68ed1f5e0ef3af3e86480 | 00d4b8f0e974692af26da891a2ed0612d989abf0 | /script/program.py | 36fedeb83629aafae8369e4ff3dcb65972151391 | [
"MIT"
] | permissive | meteorolog90/PROGRAM | a8697d6781fb935b2b3545ef10bd2aad11e6d9df | 93ab22ef9c0cfb7cd0c833c08c5c7ed6318291ab | refs/heads/master | 2021-07-16T07:22:50.436225 | 2019-02-19T20:52:19 | 2019-02-19T20:52:19 | 147,817,658 | 0 | 1 | null | 2018-11-05T21:53:32 | 2018-09-07T12:00:53 | Python | UTF-8 | Python | false | false | 5,990 | py | #! /home/martin/anaconda3/bin/python3.6
import pandas as pd
import numpy as np
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from matplotlib.colors import BoundaryNorm
import matplotlib.pyplot as plt
from metpy.gridding.gridding_functions import interpolate, remove_nan_observations
def main ():
whi... | [
"meteorolog90@hotmail.com"
] | meteorolog90@hotmail.com |
51bc17d770c472514c34e571a0a26ef96a715551 | f9235e935286e8b1b0d86957ebf843179ee1f733 | /PasswordLocker/platform.py | 38cabbd9ae56024350f327d77848bfab89a8fcab | [] | no_license | Oladunsi/automate_the_boring_stuff | 4a37203dec24f4c898161e7e517dd02184e247ef | 72963c38b42992c83826f141b0990c1aaf1abfac | refs/heads/master | 2023-02-20T01:52:28.796959 | 2021-01-19T14:02:57 | 2021-01-19T14:02:57 | 282,612,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import csv
import pandas as pd
def platform():
UserLocker = {}
Begin = True
while Begin:
platform = input("Enter the name of the platform You want to save its' username and password!!! ").upper()
if platform != "":
UserLocker["Platform"] = platform
UserName = input(f"... | [
"noreply@github.com"
] | Oladunsi.noreply@github.com |
beebfb738ee3a7772df0488cef9794e2a300da83 | 2a197966a829ceb02f240f85d70f1c276efd91a3 | /MCP3008_VOC.py | adbd4db4c0f32e40230d0b0275e1e0704bd64273 | [] | no_license | Tinymaxi/Luftmessdaten | 16443a9e0276699569ff7a24942fa4538729a535 | 274859f0cc0758b40b2e8f0796a96699bf4ffa1e | refs/heads/master | 2020-07-13T06:17:53.996156 | 2019-08-28T20:08:33 | 2019-08-28T20:08:33 | 205,014,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3008 as MCP
import time
from time import sleep
from adafruit_mcp3xxx.analog_in import AnalogIn
#spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI)
spi = busio.SPI(clock=board.D21, MISO=board.D19, MOSI=board.D20)
cs = digitalio.Digital... | [
"noreply@github.com"
] | Tinymaxi.noreply@github.com |
03f01b12540d4dda0403bbe2e399a4ae7b21bdfd | 76caf7060397c9b697e61613a40bd4d27dd93128 | /manage.py | 9105de0fd8553cd0f7e1d10ee894681e49aaf073 | [] | no_license | balaprasadmb/Eblogger | a0bb0f894e876ca86290bb70291271f43b64c5a3 | 115f931fb55914477db142909c755fc4cb431537 | refs/heads/master | 2022-12-02T19:10:22.442511 | 2020-02-25T12:27:55 | 2020-02-25T12:27:55 | 89,342,554 | 0 | 0 | null | 2022-11-22T04:28:20 | 2017-04-25T09:29:32 | CSS | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eblogger.BootCamp.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"noreply@github.com"
] | balaprasadmb.noreply@github.com |
3a2ad1e33b7dc2a198f28492c836efb94a98b834 | 3562fa51db47b1b1e97785191f0c04644d47c283 | /python/plat3/2152.py | 62489943de0aeb7ac35dc6bf78cf5e4aa950e1b3 | [] | no_license | seono/algorithm | c74181d564525e3a0214824c4a619c51cd52a042 | 78a252b29290eaa1ea076d76cd83e5dbbb7d8d89 | refs/heads/master | 2021-07-13T07:13:41.523888 | 2021-04-24T14:05:00 | 2021-04-24T14:05:00 | 244,609,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import sys
from collections import deque
sys.setrecursionlimit(100000)
input = sys.stdin.readline
N, M, S, T = map(int,input().split())
adj = [[] for _ in range(N+1)]
for i in range(M):
s,t = map(int,input().split())
adj[s].append(t)
cnt,SN = 0,0
dfsn = [0]*(N+1)
scc_arr = []
scc_num = [0]*(N+1)
finished = [Fa... | [
"tjsh0111@gmail.com"
] | tjsh0111@gmail.com |
1523aeb6c776c3d3f4d1591ad4e5cc42e0987fcf | fe149dc01dd185f43197038c97d6cc049fb6ba68 | /blog/migrations/0004_auto_20190419_0845.py | 7b8c4632fef3d25a4ea6ad97561f8a19c285b5b1 | [] | no_license | LBarry97/mysite | eee6e0971d394cf20f75d99919e067944b5ec714 | 5715add5c362e90e731afc6544007aafdfa6e0a3 | refs/heads/master | 2020-05-02T23:10:37.837629 | 2019-04-19T09:21:36 | 2019-04-19T09:21:36 | 178,274,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # Generated by Django 2.1.7 on 2019-04-19 08:45
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('blog', '0003_bl... | [
"lansanabarry97@gmail.com"
] | lansanabarry97@gmail.com |
7968b2e1e5caed24d71f1e3153d7880c5f146136 | ea9704f1bddb32cc608525147f5d414184063de5 | /app/api/tokens.py | a98a8df86f54b70cf34ef45c2a98af54f62b59ba | [] | no_license | bastienbeurier/partners-web | f7fbcdf473873c76fe1b487e788e5c0391aef6a5 | 2903ccacd89f1c699e35df07d093cd7219ffadaf | refs/heads/master | 2022-12-13T07:52:38.645855 | 2018-12-25T10:52:03 | 2018-12-25T10:52:03 | 161,174,359 | 0 | 0 | null | 2022-12-08T01:28:19 | 2018-12-10T12:49:59 | Python | UTF-8 | Python | false | false | 495 | py | from flask import jsonify, g
from app import db
from app.api import bp
from app.api.auth import basic_auth, token_auth
@bp.route('/tokens', methods=['POST'])
@basic_auth.login_required
def get_token():
token = g.current_user.get_token()
db.session.commit()
return jsonify({'token': token})
@bp.route('/to... | [
"bastienbeurier@gmail.com"
] | bastienbeurier@gmail.com |
ed2bd9596b3c087bafd28769728ffae53934a728 | e12e1e738d06dbbcdb7f3d051614e7aa493f795d | /mysite/config/settings.py | 41635b0505022517d3d2ca9886160f51f35e9721 | [] | no_license | suhjohn/ec2-deploy-mysite | 34c13e1ae3ff33ca14a6223ee8036432ea98d460 | fb3c33cb64ecfa673f16da0385942f76bde748a1 | refs/heads/master | 2021-07-19T17:57:53.701059 | 2017-10-27T05:33:27 | 2017-10-27T05:33:27 | 108,366,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
a32df99969cc2b00821ca9dfd9e146584b61aad7 | ed63b9b615c0f1484746e87b54a0c0b233ddf5c2 | /tests/test_parser.py | 90b755aedee63b62e364f59f3cb3c53381aaf2e0 | [
"MIT"
] | permissive | timofurrer/embedeval | ae02026da6cd5601b16afe1cbb543552cbf461ac | 08a69c950c9a0ac59a8a0ca728af2627c7bcc43a | refs/heads/master | 2020-07-29T10:41:56.322842 | 2020-01-20T10:32:46 | 2020-01-20T10:32:51 | 209,766,108 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | """
embedeval
~~~~~~~~~
NLP Embedding Evaluation Tool
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import textwrap
import uuid
import numpy as np
import pytest
from embedeval.parsers.word2vec_gensim import load_embedding as gensim_load_embedding
from embe... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
331391003523c28eedd1e4d6b841574bbed2b7ce | d3eba05768f13fb77037f094c8cd5bee0a2ce920 | /python/pyclaw/geotools/most2geoclaw.py | 110907c350aefc6585d894e4ed02d90d25a31179 | [
"BSD-3-Clause"
] | permissive | geoflows/geoclaw-4.x | cb262ffcc30b483e4e1bf0ba480f43408cb1b6fd | c8879d25405017b38392aa3b1ea422ff3e3604ea | refs/heads/master | 2023-07-10T06:39:42.774585 | 2021-02-23T20:15:36 | 2021-02-23T20:15:36 | 6,094,587 | 1 | 2 | BSD-3-Clause | 2023-06-28T16:50:43 | 2012-10-05T18:18:31 | Fortran | UTF-8 | Python | false | false | 3,350 | py | """
Module for converting MOST data and output to GeoClaw format.
"""
import os, glob, re
def most2tt3(fname):
"""
Converts MOST topo file to tt3 format.
"""
f = open(fname).readlines()
mn = f[0].split()
ncols = int(mn[0])
nrows = int(mn[1])
xll = float(f[1])
dx = float(f[2]) - xl... | [
"dave.jorge@gmail.com"
] | dave.jorge@gmail.com |
1e7fd967ad595fb9792cb574c9219de21724fb93 | ac652ff7636d4c3336918d0f96aa8ea1bba3ab28 | /fastvid/posts/serializers/postmodel.py | c0152d21e28e0e4c646800e2244e7b172f680400 | [] | no_license | pn101/fastvid | eebff58e9dd6b967a52361713ed34462e0713d88 | 9f57c577c558906e3fd5c3ab44f112588ae84ed2 | refs/heads/develop | 2021-01-20T18:58:34.398325 | 2016-07-05T09:29:49 | 2016-07-05T09:29:49 | 61,545,668 | 0 | 0 | null | 2016-06-20T13:14:42 | 2016-06-20T12:22:08 | null | UTF-8 | Python | false | false | 412 | py | from rest_framework import serializers
from posts.models import Post
class PostModelSerializer(serializers.ModelSerializer):
username = serializers.CharField(source='user.username')
class Meta:
model = Post
fields = [
'pk',
'username',
'title',
... | [
"philipnam101@gmail.com"
] | philipnam101@gmail.com |
b4b13074223e847e9ab9ad0da398eb22f327322b | 5b8325ad8ec8e87fe85a74ada8f064b0a3ed8b94 | /main.py | 3d1afd8c64df97b7e9f99d3584ece9b90c09f0ec | [] | no_license | Ilyaslat/teensinAI_equipe6 | a9e48fe0a9d7ef5567c057dbf30b5fa88ed917db | 4d60eb9fffe646f759d916579e2a1dce771a3e99 | refs/heads/main | 2023-08-13T18:31:11.203045 | 2021-10-11T19:53:09 | 2021-10-11T19:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
# Define our training input and output data with type 16 bit float
# Each input maps to an output
X = tf.constant([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=tf.float16)
Y = tf.constant([[0], [1], [1], [0]], dtype=tf.float16)
# Cr... | [
"noreply@github.com"
] | Ilyaslat.noreply@github.com |
b9744336db4592f260f93b389841d5b72c0fcc0d | 960d14fb31f37adf70607e9cb0e986c7764a7bf8 | /pizza.py | 229035f4f512b90d84a0691b358e4a52b2c68c50 | [] | no_license | alexcar/PythonExercises | 7a33e47f7adbcbcb7239b138db1ef6ae04d57c2b | 5f21089b8b9758da948496acc1420869361c58c4 | refs/heads/master | 2023-07-27T01:59:16.110629 | 2021-09-15T19:13:34 | 2021-09-15T19:13:34 | 406,729,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def make_pizza(size, *toppings):
"""Summarize the pizza we are about to make"""
print(f"\nMaking a {size}-inch pizza with the following toppings:")
for topping in toppings:
print(f"- {topping}")
| [
"alexandre.carvalho@live.com"
] | alexandre.carvalho@live.com |
5dd69b1619ff38f19f642f1981ad84e205ad6583 | 49f6ecfbf4cf66b0867311ce7d4ba5f690410b2f | /greeter_client.py | bc93f9ed2c90fa240e53385b66881e941c070aaa | [] | no_license | jha8/grpc | b93d434d6c1c58517de52a4158092069cc29c900 | 0d24e265addfd25806b807c0457a275bc1805887 | refs/heads/master | 2021-09-24T15:27:00.380727 | 2018-10-10T22:25:00 | 2018-10-10T22:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Copyright 2015 gRPC 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 or agreed to in writing... | [
"joeha909@gmail.com"
] | joeha909@gmail.com |
2b2276e3dd8f08b1dbd9b020b05b911e0447b425 | ec2a196f582effd10d1f1c80a99748597371294b | /2018/cyb_notify/models/model.py | 21736203da773772afb38cd45f7f15213c62d7fc | [] | no_license | baiqianyi/starfish | 71bffd4f2718a7b50c4ff7e6d66afd18dbccff4c | 89e63a0dc06f4cb73b87fae44206cda275f12fbd | refs/heads/master | 2020-03-25T13:48:10.978468 | 2018-08-26T00:27:48 | 2018-08-26T00:27:48 | 143,843,514 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,878 | py | import datetime
import utils.email_notify as en
import pymysql
class model:
def __init__(self,log=None):
self.logger = log
self.begin_delta_time = datetime.timedelta(seconds=360)
self.std_buy = -0.826
self.std_sell = 0.37
# 0.34453064057819965, -0.58066720314595333
s... | [
"710697439@qq.com"
] | 710697439@qq.com |
813f053bea3bd35889f9553328b8c671b5afb626 | f23959561944599f02943350429eb76d8ad4cf81 | /hangman.py | b82bbc9228432b32684e559efabda769a60ab9bd | [] | no_license | yuuNishimura/hangman | 822b7df229215c6c4462bf1db775553473606e0b | 9b7f98cc6df93d9ce0fefd96916b5ed6f9ec9678 | refs/heads/master | 2023-06-17T18:11:22.030088 | 2021-07-13T09:26:07 | 2021-07-13T09:26:07 | 385,514,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import random
def hangman():
a = ["cat", "dog"]
n = random.randint(0, 1)
word = a[n]
wrong = 0
stages = ["",
"________ ",
"| | ",
"| 0 ",
"| /|\ ",
"| | ",
"| / \ ... | [
"westside020810@gmail.com"
] | westside020810@gmail.com |
6f47ad10c4d8add20d063805aae912c0a742a686 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bd_-11162/sdB_bd_-11162_lc.py | b076fadab2c00cc4cf60f263d06b3a4df11907ba | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[13.062792,-10.662778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_bd_-11162/sdB_bd_-11162_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ ==... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f5c2f6f667942466f986c459ee041e49ea69a197 | c1975972f4ebf8ce40515a0f09a6cb4aca951d94 | /venv/Scripts/easy_install-3.8-script.py | d2540252aaa23d2747328ccf4c55798dc84f918e | [] | no_license | anqier-lala/PO_001 | e30eb77b9a4be2614831b32ec47b8aa75fde87f6 | 0f0a437b2b4d1d7b393d41af1a1afcef92975d41 | refs/heads/master | 2022-07-03T19:00:51.789440 | 2020-05-19T15:29:57 | 2020-05-19T15:29:57 | 259,664,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!D:\Git_code\PO_001\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"13077313846@163.com"
] | 13077313846@163.com |
9df31fb3505037651d94f77ee635edd5db359530 | 710c6104124e57f778701291d573e746bbc559f3 | /teambuildingapp/env/bin/virtualenv | a574068755fad926eb2cb1903956c89cd0f2fa64 | [] | no_license | ckjoon/teambuilding | 711791952828529ac4c5a44d23a883ae66680836 | ee49e95e1cd56f4e7d8efbb46ab1c38b200c08a6 | refs/heads/master | 2020-04-09T13:33:33.205704 | 2016-12-04T20:20:25 | 2016-12-04T20:20:25 | 68,007,148 | 2 | 0 | null | 2016-12-04T20:20:25 | 2016-09-12T12:31:40 | HTML | UTF-8 | Python | false | false | 255 | #!/Users/JChoi/teambuilding/teambuildingapp/env/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from virtualenv import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ychoi302@gatech.edu"
] | ychoi302@gatech.edu | |
4c1f5b0e0a57e6c3f61c17a248587224aafe2656 | 9910a1e38dc02abd0e0684b83601c950598aa179 | /Bookmarks/models.py | c2045fe8ca931b508736934afbd17c660fd23bfc | [] | no_license | crispad/Bookmark-app | 2197b8bc25b927f02a7c61512203759e82e7e34b | 4430240799a0b67d7f196cf256b2a2a1676d9829 | refs/heads/master | 2020-03-21T14:18:07.095404 | 2018-06-27T07:33:36 | 2018-06-27T07:33:36 | 138,650,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User
class Bookmark(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
title = models.CharField(max_length=200)
url = models.URLField(unique=True)
created_at = models.DateTimeFi... | [
"crispad06@gmail.com"
] | crispad06@gmail.com |
a092eb7078a59ea3dcfd2d364d4380b098066ba6 | c6da89d2af85263fe73cdaa74735c95deae3e951 | /not_used/mod_fair_stochastic_dominance.py | cf2721fadb06eef2fc9fb44c976063a54ae0e97e | [] | no_license | antonm94/Fairness_in_Bandits | 7489fb97f94c1b2116756ab76f1ac705687e088d | f37960efd1ef84e5d21f9c402393851f6c050305 | refs/heads/master | 2021-09-10T21:48:21.001625 | 2018-04-02T21:46:39 | 2018-04-02T21:46:39 | 106,277,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,165 | py | import random
import numpy as np
from thompson_sampling.calc_c import c_alg2
from fairness_calc import smooth_fairness
class ModFairStochasticDominance(object):
def __init__(self, bandits, T, e1, e2, delta, lam, distance):
self.k = bandits.k
self.arm = bandits.arms
self.r_theta = bandit... | [
"manton@student.ethz.ch"
] | manton@student.ethz.ch |
32b305acaf5f83143bcdae4ddd616f2adcd7642a | 686248eaf40284ed593768057c58aeebaeae1497 | /cg.py | 9e0807e3b58cd3dd8e51a7fcd66bf9cd276a3220 | [] | no_license | chyyuu/kernel-call-graph | 76e6d3b4599886b3eac46083457fad472dc7d9a8 | 76fb610220bfae24f686f0bd37d8d806bf374548 | refs/heads/master | 2021-07-11T12:31:06.361565 | 2017-10-15T16:05:39 | 2017-10-15T16:05:39 | 106,992,794 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import networkx as nx
import matplotlib.pyplot as plt
#G=nx.path_graph(4)
#nx.write_adjlist(G, "/chycode/kernel-call-graph/g2.txt")
#G=nx.read_adjlist("/chycode/kernel-call-graph/g2.txt", create_using=nx.DiGraph())
#nx.write_adjlist(G, "/ch... | [
"yuchen@tsinghua.edu.cn"
] | yuchen@tsinghua.edu.cn |
1e3299112d0d4a422e71d7d55d2a4869b4e74dc6 | 917e376668f325c0452fe05fcf3f6348a6ac4336 | /tests/xla_interpreter_test.py | d3b758aa0cb0e09d3959f3ad74c8e0192d75cc0a | [
"Apache-2.0"
] | permissive | wusixer/jax | 5f8d78a89679db74d0d62806725cc820246d4b4e | 66de981e1dfbe04a41b2c003f171fea7bb92585f | refs/heads/main | 2023-06-15T09:10:45.599555 | 2021-07-06T01:58:11 | 2021-07-06T01:58:11 | 383,305,925 | 0 | 0 | NOASSERTION | 2021-07-06T01:32:55 | 2021-07-06T01:32:55 | null | UTF-8 | Python | false | false | 1,252 | py | # Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
b4819e1ec3e683284917e6a9291f28ae1220f9c7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DELL-NETWORKING-TC.py | a5184bbe6b70262343039230a6f6eb6c4efb5c16 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,834 | py | #
# PySNMP MIB module DELL-NETWORKING-TC (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DELL-NETWORKING-TC
# Produced by pysmi-0.3.4 at Wed May 1 12:37:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
90040b20dd66779595a0aa99340b7c09f6b8acaf | 235da299e64f217d5fc581bbe20d2020b989ea45 | /server/api/mongo/mongo.py | 5c31178c466ab317e207089a97118722ec687a55 | [] | no_license | DAWZayas-Projects/CORTINA-GUDE-JACOBO | 5f902c225e3bf78ba74758abe1c92168bca5b561 | 10c9cfd10fbbdade3a2c048c985aa289b1aa826f | refs/heads/master | 2021-01-12T01:40:13.236300 | 2017-06-19T19:38:36 | 2017-06-19T19:38:36 | 78,414,986 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from pymongo import MongoClient
try:
client = MongoClient()
db = client.AIPowerDB
print ("Connected successfully!!!")
except Exception as ex:
print ("Could not connect to MongoDB: %s" % ex)
client
| [
"jacobcg@gmail.com"
] | jacobcg@gmail.com |
a11834a8740c99d04887a515be714497458a6f92 | 33b3ab4ac3f1c4f8db6be538777a9d16c0c9045d | /textmine.py | 8f197587fa7ca7523dfaaa48ba51603e19610c63 | [
"MIT"
] | permissive | fredryce/stocker | fbe643d3406fbf63af6a13562afd8822e65e244a | 041fbe8348f7a035a607a214477cf423c4259171 | refs/heads/main | 2023-07-12T20:00:54.328703 | 2021-08-03T22:13:33 | 2021-08-03T22:13:33 | 392,459,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | import spacy
import sqlite3
import pandas as pd
import json
import robin_stocks as r
import yfinance as yf
import re, string
from os import makedirs, getcwd, path
import threading
from datetime import datetime, timedelta
#for the user, associate the user with the most recent stock he/she disccussed about
#we can use th... | [
"xwang2945@floridapoly.edu"
] | xwang2945@floridapoly.edu |
cfc2f2d584cba1ecced6cada0df5775d6baf7951 | e8b23cacc1856e87319491200c2b24778fcd6699 | /Blackjack/blackjack.py | 1cfeddf18158a678cc2bc60cf68bcf08acc53d22 | [] | no_license | ACNoonan/PythonMasterclass | 69fa204fea1588458853172483b2b85075ac9829 | 479cfb4c1bc55e4c3480b214fa4028e0f1ed9f2a | refs/heads/master | 2022-12-13T04:28:57.573020 | 2020-09-19T17:23:47 | 2020-09-19T17:23:47 | 263,746,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | import random
try:
import tkinter
except ImportError: # python 2
import Tkinter as tkinter
player_hit_count = 0
def load_images(card_images):
suits=['heart', 'club', 'diamond', 'spade']
face_cards = ['jack', 'queen', 'king']
if tkinter.TkVersion >= 8.6:
extension = 'png'
else:
... | [
"adamcnoonan@gmail.com"
] | adamcnoonan@gmail.com |
d67eb25ac2e4909f2eeb6a8ba705f13acca87cad | 9ce6a0eaba9f82d536ca4348a1594f90f5d67638 | /zException.py | 33d0d6ef5a48bf8d56b71c83d909615745a662ae | [] | no_license | Jeevankv/LearnPython | 028d57ac7b6b68d129e9769541ae509df8ef204d | 504b96795b6ccd107f0b176adc142246f9a26094 | refs/heads/master | 2022-12-21T15:53:27.669206 | 2020-09-01T10:36:38 | 2020-09-01T10:36:38 | 279,399,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #Exception Handling
a=int(input("Enter A\n"))
b=int(input("Enter B\n"))
def Divide(a,b):
try:
c=a/b
return c
except Exception as e:
print(e)
x = Divide(a, b)
print(x)
| [
"noreply@github.com"
] | Jeevankv.noreply@github.com |
71626b5ee0ccfe0ba075fb9842f193a99eeca3fa | 030b801cb9bed35be80bb305d60c155f806513a5 | /regex/regex.py | ef3129779cd88011001158299266d448c4056e85 | [] | no_license | Yerkonite/py4e | 67dea6f2843266cf789cc05ae1c9ed7f96614fae | dfaf2a8c4eaf0575762a810b79bb332128bbdef9 | refs/heads/main | 2023-01-03T17:29:40.070949 | 2020-11-02T11:29:22 | 2020-11-02T11:29:22 | 306,399,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Search for lines that start with 'X' followed by any non
# whitespace characters and ':'
# followed by a space and any number.
# The number can include a decimal.
import re
fname = input("Enter file:")
hand = open(fname)
y = []
for line in hand:
line = line.rstrip()
x = re.findall('[0-9]+', line)
if len(x... | [
"47889623+blackstar17@users.noreply.github.com"
] | 47889623+blackstar17@users.noreply.github.com |
427df9e17f2ecf2d62cae9972583d48410810886 | 46def0fe8f0c3106e7abd5675730ec1905dc3a29 | /customer_transfer/models.py | 3327a7c616316ce3f47c0e570c86c8bfa172087d | [] | no_license | PillaiManish/Bank-Website-Django- | 23c88d4e694f8534918b58ed9cf31e246acaf020 | dd63deb94b52f429a6ff3560a4d5f522e9a56c1c | refs/heads/master | 2022-11-29T04:53:17.784472 | 2020-08-17T13:33:51 | 2020-08-17T13:33:51 | 245,742,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django.db import models
# Create your models here.
class customer_transfer(models.Model):
self_userid = models.IntegerField()
to_userid = models.IntegerField()
date = models.DateField(auto_now=True)
to_amount = models.IntegerField()
def __str__(self):
return str(self.self_userid) | [
"pillaimanish00@gmail.com"
] | pillaimanish00@gmail.com |
96c4eded58823e78c863134df63303135ce70051 | 69dcbd7053449b2522448545927604cc8c8e16f7 | /exporter.py | c3ecf3da53e86efc5ada4dc01ec89350b4fb2eb8 | [] | no_license | namikiri/vk-dialogue-export | 29d701b6be086d4122d3fced8f3f6da646985746 | 0293715f73db611e2545959c9375b9b898d207cc | refs/heads/master | 2020-03-27T15:16:10.176653 | 2018-08-30T06:59:19 | 2018-08-30T06:59:19 | 146,707,475 | 1 | 0 | null | 2018-08-30T06:45:50 | 2018-08-30T06:45:50 | null | UTF-8 | Python | false | false | 15,592 | py | import os
import urllib
from progress import *
from utils import *
class ExportContext:
def __init__(self, user_fetcher, depth=0, users=None):
self.depth = depth
self.user_fetcher = user_fetcher
self.users = users if users is not None else dict()
def add_user(self, user_id, exporter=N... | [
"vtyazhelnikov@swaxis.com"
] | vtyazhelnikov@swaxis.com |
33b855bde50b1d0eaf72ec0bde4d3cd78ab60fc0 | f2a97b4077d3988e2413ec7e6406ae6a5bc41ecb | /assignment 2/wormup-2/string_match.py | 0f5e76cd9048ef3d343254ebd85a3ec18e6b6c74 | [] | no_license | Sahyoun98/CS498 | 0cdc05add4faa061d6f88d7c6b270781ecf9d81f | 073de710d75a241b021ff93c9da504c5d49b8469 | refs/heads/master | 2020-03-30T14:17:43.993681 | 2018-10-15T03:29:44 | 2018-10-15T03:29:44 | 151,308,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | def string_match(a, b):
length = len(a)
if length > len(b):
length = len(b)
x = [1 for i in range(length - 1) if a[i:i+2] == b[i:i+2]]
return len(x) | [
"hamzehsahyoun@yahoo.com"
] | hamzehsahyoun@yahoo.com |
8432bf99fe707d484f269c98c4d0077f351f625e | e931efb116e93cc2b92b472a7cf37bbf7be0598f | /DB_project/manage.py | 16f16eb5e9813dc12720e594bb6ee70b08668355 | [] | no_license | ghazalb76/DB_project | f4a2dd38c5e2be4a1ac5335ca468f0f541b08f88 | ac1edafffcc40f2779cbd0180534a22dc586d4f8 | refs/heads/master | 2021-01-04T20:23:18.186963 | 2020-02-15T16:25:09 | 2020-02-15T16:25:09 | 240,747,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | 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', 'DB_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"ghazal.b93@gmail.com"
] | ghazal.b93@gmail.com |
84d255ed685f170cc51fdbac351069866c092930 | 64740d39a04f00730ad078280ef30707bcba2129 | /blog/migrations/0004_auto_20170210_1408.py | efc9de3c452c324f5d9cbcebedd10da9b56e16be | [
"MIT"
] | permissive | sighill/blog | 1f4b4985146a7cf97ab186d23d8f14bd596e2c39 | 7ab126549398daf9dbf996a2ee9f96d7f3b44868 | refs/heads/master | 2021-01-13T17:12:00.540574 | 2017-02-20T13:18:58 | 2017-02-20T13:18:58 | 81,751,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-10 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20170130_1440'),
]
operations = [
migrations.CreateModel(
... | [
"voxclam.indes@gmail.com"
] | voxclam.indes@gmail.com |
acce8e1a21ccf28ffadc38b8002f50cdbcf6987b | afdda9b5185826747814dd82fdf74f809cfa62ef | /Python/tdw/librarian.py | ce2301ec287ecfd7eebbf45a81bb85c00ca3ed8d | [
"BSD-2-Clause"
] | permissive | lijin929/tdw | e011b831c650a383a22e7e16d934c7940416fcd0 | 957cff2b400fbd24e31bbae886c307ecb7a74cdb | refs/heads/master | 2023-08-14T22:35:29.172322 | 2021-09-14T13:52:30 | 2021-09-14T13:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,269 | py | import json
from typing import List, Dict, TypeVar, Union, Generic, Optional, Tuple
import pkg_resources
from pathlib import Path
import platform
from secrets import token_hex
class _Record:
"""
Abstract class for a metadata record.
"""
_PLATFORM = platform.system()
def __init__(s... | [
"alters@mit.edu"
] | alters@mit.edu |
7f574f502fc6e92a306eb7d28de67fe32e7f5549 | 3e3038c14e081bb110a702bcd385b54cd41a6261 | /879/879.py | f9e5434cbee5596262fbd6fb2addf7800dec5024 | [] | no_license | michael153/leetcode | 0f1535ae511f74fd60f479ed644c677de7ece1cb | 4be3b0d6892028f6abff1e0ec9c05e0b1e721c0b | refs/heads/master | 2020-07-04T09:09:12.192768 | 2019-08-13T23:35:57 | 2019-08-13T23:35:57 | 202,235,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | class Solution(object):
def profitableSchemes(self, G, P, group, profit):
"""
:type G: int
:type P: int
:type group: List[int]
:type profit: List[int]
:rtype: int
"""
mod = (10**9 + 7)
dp = [[0 for __ in range(G + 1)] for ___ in range(P+1)]
... | [
"m.wan@berkeley.edu"
] | m.wan@berkeley.edu |
304cf36358cb78ff18c9f2fa5b28c3e25c49d023 | 8b3426e770056ae7d3d946dc2dc324bbaab4391c | /collatz.py | 0b9ac12199daace07475c0a719d631f4fefff323 | [] | no_license | ctrl101/journey | 9743896ca64cf2a2913823ffab4213b4e1988b5e | 893f8ce08005c5e89f4b5ccba870f8b726ae21f8 | refs/heads/master | 2023-01-13T15:08:14.346450 | 2020-11-17T01:12:54 | 2020-11-17T01:12:54 | 313,557,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def collatz(number):
if number % 2 == 0:
print(number // 2)
elif number % 2 == 1:
print(number += 1)
try:
number = int(input("Enter number :"))
while number > 1:
collatz(number)
number = number // 2
except:
print("must be an interger")
| [
"wevans560@gmail.com"
] | wevans560@gmail.com |
01cfcefe303540943ca361d2cab65b79310ffdd5 | fb7e69d5dfe309c90b7eba06e5cfef3ecaa141a7 | /v2.0/exercise9.7.2.py | 46f4e072ff6b6e30b2f25cfa775728f2170965da | [] | no_license | ajsaule/Python | 9e74c46b8f804faaaa18c2506f01d9d09d6f7a8d | d3546001822e6a514411e5ed5369f6b2cc18cee4 | refs/heads/master | 2020-05-09T16:12:22.800696 | 2020-03-15T23:02:58 | 2020-03-15T23:02:58 | 181,262,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | file = open(input('Please type filename to open: '))
read = file.read()
count = dict()
for line in read:
if line.startswith('From'):
select = dict(str(line[34:36]))
print(count)
| [
"noreply@github.com"
] | ajsaule.noreply@github.com |
c35af357be8ae118dde3133aaaff753973cb786b | f756eedd0fd4cee9b369978d1e20287dd579e4da | /InmoovScript/services/7_Inmoov.py | ac1ef25dc0796c3cb41c2579757db642007edf0a | [] | no_license | linuxrodo/inmoov | cf02421443d6976f153a64c898e2c209e32cc246 | fe8391d6d59ccdf6bdf5b382872fdf4bf77f4b09 | refs/heads/master | 2021-01-21T09:06:52.835689 | 2017-02-23T04:07:38 | 2017-02-23T04:07:38 | 82,861,443 | 0 | 0 | null | 2017-02-22T23:05:24 | 2017-02-22T23:05:24 | null | UTF-8 | Python | false | false | 934 | py | # ##############################################################################
# INMOOV SERVICE
# ##############################################################################
# ##############################################################################
# MRL SERVICE CALL
# #############################... | [
"moz4r@free.fr"
] | moz4r@free.fr |
26413742d0a2765fe4de84c03b8f3b80530d12a0 | ba0e5bd46a81a0bbbaabc9f1bdb5ed08f04b5d1e | /boards/models.py | 6cd9eba0dbbba05989ef57081d24a9ac4eadf5a2 | [] | no_license | okok0415/Cheating_Detection | 2bdecbae289d946723269cd3cf9e47c63f9b5f14 | 4bdf63e987f32b3b511f361c6e5224da5a682205 | refs/heads/main | 2023-04-24T18:59:27.406963 | 2021-05-04T10:23:37 | 2021-05-04T10:23:37 | 353,056,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django.db import models
from users import models as user_models
class Board(models.Model):
""" Board Model Definition """
title = models.CharField(max_length=200)
content = models.TextField()
user = models.ForeignKey(
user_models.User,
on_delete=models.SET_NULL,
null=Tr... | [
"dlawjdals11@naver.com"
] | dlawjdals11@naver.com |
4c8658c14906c41768a4f2f85fcae70ef46c9d23 | c78c1919b78751e88a8fa6816c27b6b173ba245f | /06_1_loss_and_optimizer.py | 224cac213a97ce3b013893ec7525074da72eab1c | [
"MIT"
] | permissive | umit-ai/pytorchTutorial | 742055e6abccc167f3bc821e800afca34ea0e769 | aa2573f1e829e7f1201e53dbb9df351785229fac | refs/heads/master | 2022-04-21T13:53:06.504027 | 2020-04-13T17:01:38 | 2020-04-13T17:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | # 1) Design model (input, output, forward pass with different layers)
# 2) Construct loss and optimizer
# 3) Training loop
# - Forward = compute prediction and loss
# - Backward = compute gradients
# - Update weights
import torch
import torch.nn as nn
# Linear regression
# f = w * x
# here : f = 2... | [
"pythonengineerman@gmail.com"
] | pythonengineerman@gmail.com |
5d7a771e779f0b24d4bc1ae2bf01ac98e9d0c325 | 9423dd5312d6c05f61ec902a26ff627c6ef58f97 | /Python/functions/get_middle_point.py | 6d5bb3a5c5f3d271d454c9c6da74dc57df5a617c | [] | no_license | NehvedovichVlad/small_tasks | 01c093b07d521da59c559591559d61e81829df0f | 1c4085e3a2f0a4530c82f57b98f0f83b18e68567 | refs/heads/main | 2023-03-17T15:49:04.480092 | 2021-03-11T20:29:05 | 2021-03-11T20:29:05 | 308,935,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """"
Середина отрезка
Напишите функцию get_middle_point(x1, y1, x2, y2),
которая принимает в качестве аргументов координаты концов отрезка
(x_1; \, y_1)(x 1;y1) и (x_2; \, y_2)(x2;y2)
и возвращает координаты точки являющейся серединой данного отрезка.
"""
# -----------------------------------------------------------... | [
"vladislavnehvedovich@gmail.com"
] | vladislavnehvedovich@gmail.com |
a6f533ee1a748cadb33dd88731d1d874b6732849 | b138195f988aa6ce71ad35fc4d5707c2127739bb | /sesc_mate/wsgi.py | 6b7c2401184455e99900682d72ae1d9ac59abd21 | [] | no_license | WoodieDudy/SESC_MATE-backend | 46866cf449ab9b7be2401088967d593b4db396e9 | e46df5d9d6f8bca798965618963ba27a31e2dd23 | refs/heads/master | 2023-04-17T02:05:46.836769 | 2021-04-22T12:20:09 | 2021-04-22T12:20:09 | 359,822,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for sesc_mate project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"goshagks@yandex.ru"
] | goshagks@yandex.ru |
681900145067710e4f147f7537e281b59275efcb | e1a0a211adfdeaac830607ef01922ad2d7c602b5 | /cifar10.py | 0072978dc078387e4f3e6a51c60651a0d7d019ca | [] | no_license | yixu34/tftest | 7a0f294072ef491d3750917ce42afd09db561bf8 | 45efd9854faf217180350b4a9a42a2ad417e2c3d | refs/heads/master | 2022-12-09T12:38:07.948849 | 2020-08-24T00:23:08 | 2020-08-24T00:23:08 | 289,611,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import tensorflow as tf
from tensorflow.keras import layers
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.cifar10.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0
model = tf.keras.models.Sequential([
layers.Conv2D(
filters=32,
kernel_size=(3, 3),
activation='relu',
in... | [
"yixu34@gmail.com"
] | yixu34@gmail.com |
defeb5a0a197d38f8b8809a81f0557ed0285e0b3 | dcf4df0c24fb2ba4f44ccc3e625e56aeabce5d9f | /calificaciones/urls.py | 021f927d58bdbab25719afd8c89f3099886c7c26 | [] | no_license | arelyibarrrivas13/calificaciones_Django | 19f5acfe051079d86fb4194f1f2487a2cdc34ddb | ead6a96db2f838ba045bb73f2683ceb6bf04c7ac | refs/heads/master | 2022-07-29T13:43:46.827219 | 2020-06-18T01:50:29 | 2020-06-18T01:50:29 | 273,113,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """calificaciones URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"48133757+IbarraRivasArely@users.noreply.github.com"
] | 48133757+IbarraRivasArely@users.noreply.github.com |
ea844bd080f216727d29578c7e83e37d9e5000c6 | e949a970f404a501d54ec0ea5cce6a9d8b0abc3e | /10chapter13某城市财政收入影响因素分析及预测模型(未完成)/code/chapter13Adaptive_Lasso变量选择模型.py | 6df38f606feb93dbacdf4287cdd433851b38653b | [] | no_license | xuhande/Data-analysis-and-mine-using-python | 3b20a25b9fc2d88e1e29d71b38a9a7589a92ff12 | 34a97afdc60a52d4ef72c5edf6f715182ddb57f7 | refs/heads/master | 2023-09-06T06:52:05.505839 | 2019-03-31T08:32:04 | 2019-03-31T08:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """模型参数
x1:社会从业人数; x2: 在岗职工工资总额;x3: 社会消费品零售总额; x4: 城镇居民人均可支配收入
x5: 城镇居民人均消费性支出;x6: 年末总人口;x7: 全社会固定资产投资额; x8: 地区生产总值
x9: 第一产业产值; x10: 税收; x11: 居民消费价格指数;x12: 第三产业与第二产业产值比
x13:居民消费水平;y: 财政收入
"""
import pandas as pd
from sklearn.linear_model import Lasso
import numpy as np
data = pd.read_csv('../../data2/C13_data1.csv')
... | [
"bihua201402@sina.com"
] | bihua201402@sina.com |
fa81b6f980eefe4e61b156f0138eb67cf63c9040 | 34ec71e93a70c951e02f54f764ab401b9f739a70 | /FIEK-UDP/UDP_Klient.py | cab73eb248a6e06527dca912c336ca9003958618 | [] | no_license | FortesaHysenaj/Socket-Programming | b2057e66c7250cbdd69fe0d7d9a51c15e193b2b5 | 753a2a9313ff9d3796d6a30d70a923fe69b94631 | refs/heads/master | 2020-05-05T08:49:31.819994 | 2019-04-29T23:57:30 | 2019-04-29T23:57:30 | 179,879,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import socket
host = 'localhost'
port = 12000
print("----------------------------UDP KLIENTI-----------------------")
socketClient = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("Zgjedhni nje metode: \nIPADRESA\nNUMRIIPORTIT\nHOST\nBASHKETINGELLORE (+shkruaj nje fjale-fjali)\n"
"\nPRINTIMI (+shkruaj n... | [
"fortesa.hysenaj@studentet.uni-pr.edu"
] | fortesa.hysenaj@studentet.uni-pr.edu |
2c8c9cb25515b039215ca4a231c839dec248cb22 | 236e6d7c644d8e0f8c2e0e1d0bf222a31163abbb | /shop/models/user.py | 7e0ea29f83a39f9800174060bdfb42b14a90c995 | [] | no_license | itsluja/digi | 6687c91f149f4bdb15987e576c069b8851d9c715 | 047cdf40d33263c7e9b9e7b8d54bd499e339c5bd | refs/heads/main | 2023-03-15T05:45:56.020204 | 2021-03-18T19:38:42 | 2021-03-18T19:38:42 | 345,308,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from django.db import models
class User(models.Model):
name = models.CharField(max_length= 50)
active = models.BooleanField(default=True)
email = models.CharField(max_length= 100 , unique= True)
password = models.CharField(max_length= 500)
phone = models.CharField(max_length= 10)
cit... | [
"noreply@github.com"
] | itsluja.noreply@github.com |
f05dbdfaed6829910b7b2a59590a20e33ca3f67a | de3508314b95b8dff009c186c446f78c6e29458d | /crwlremoveirrelevant.py | 1f562f0fb719036ae33c375510e5704be3309f6f | [] | no_license | GithubPriya/Ache-Crawler | d5d336315ecf3b475e18cb45497d9ac4926f7ed9 | 6c7f06f0cbddb7301bba911f6847ca2ad284e9da | refs/heads/master | 2021-05-08T08:00:03.582890 | 2017-10-16T02:53:26 | 2017-10-16T02:53:26 | 106,982,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | '''
Created on Sep 11, 2017
@author: admin_home
'''
import os
import glob
f_path = raw_input('Enter path : ')
for hgx in glob.glob("*favicon*"):
os.remove(hgx)
for hgx in glob.glob("*full-frame*"):
os.remove(hgx)
for hgx in glob.glob("*eyeglasses"):
print hgx
os.remove(hgx)
| [
"noreply@github.com"
] | GithubPriya.noreply@github.com |
f266e0d0170f262603ee62eb65a42971b55eace2 | 8048df61aa0d739dcc4d3d1315e2e2b807ff8b4b | /Sorting methods/bubble sort.py | c8d577d0ffc695db0d664fb83c00d7525e5c050a | [] | no_license | Aniangelsuperbat1/Algorithms | 3e1097292edc6471e898550456ee38c7f2b7f0a2 | 6c2b853c5e1a8d86176659cf38fe2a845dd91186 | refs/heads/master | 2023-01-23T22:14:09.717974 | 2020-12-06T22:18:49 | 2020-12-06T22:18:49 | 314,376,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # Takes an un ordered list and sorts them in ascending value
# Compares two values at any given time.
# loops through lists and sorts it
# o(n*2)
def bubble_sort(list_a):
indexing_length = len(list_a) - 1
sorted = False
while not sorted:
sorted = True
for i in range(0, indexing_length):
... | [
"Zhen.Patrick@gmail.com"
] | Zhen.Patrick@gmail.com |
2324633dffd51ed394a8b21d1ac6260a2f93d21b | 598caea4a632c7fbf1598a341b192fe19329f5cc | /bi-gram/test-new.py | e6b18bf534aea2ca91c274d2e78d16ef4e51f2d9 | [] | no_license | vijaym123/EECS-337-TweetAnalysis | c8917f6ab88413e9b9b67885e9d6d2db6b68cc09 | 3cba4c16b56832f2a91e81cc022c11ae3002622e | refs/heads/master | 2020-05-22T14:34:28.410722 | 2014-02-25T19:10:13 | 2014-02-25T19:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,389 | py | import re
import json
import nltk
from nltk.corpus import wordnet as wn
from collections import defaultdict
import math
from lxml import html
import requests
import sys
import unicodedata
year = raw_input("Golden Globes year: ")
pagename = "http://www.goldenglobes.com/awards/" + year
print "\n"
page = requests.get(p... | [
"vijaym123@gmail.com"
] | vijaym123@gmail.com |
d1fc228680184699671cc79a504fe1cc836c0403 | b6efe59f3117da81a76ac634f010fd1feaeef25c | /api/make_file.py | 09e277a20223f11016c8ffc78ee3d6c3dbda55f8 | [] | no_license | kaktusss123/goods_parsing | b53e342710a1dd8d69b92d2a5f2ca9ef39e05385 | b0700e067103c2410e40331fab6ab7d449271a2b | refs/heads/master | 2021-01-08T02:38:36.686227 | 2020-02-20T13:13:44 | 2020-02-20T13:13:44 | 241,887,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | import pandas as pd
from functools import reduce
from preprocess import preprocess, Status
from json import load
def match(args):
operations = [
lambda x, y: x['match_2'] == y['match_2'],
lambda x, y: x['match_3'] == y['match_3'],
lambda x, y: ''.join(x['brand'].lower().split()) ==
... | [
"PaRoLoK123"
] | PaRoLoK123 |
8e9aecb12e6e5e2f8c0bc687ca323a81ccf17b40 | 4935e2ef7994222178f950319f9f8d3e2adfa543 | /summer/2018_07_26/4sum-ii.py | 93f49d2327c742fa53619df9e5a30f374a233dd2 | [] | no_license | shaheming/leecode | e853b59469b97ca97a5b4ecd80497b3dac3fb10f | a8b59573dc201438ebd5a5ab64e9ac61255a4abd | refs/heads/master | 2021-07-03T03:57:22.718410 | 2019-04-06T18:19:53 | 2019-04-06T18:19:53 | 140,241,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #这个问题本来是一个 O(N^4) 但是通过拆解可以拆解为两个 O(2*N^2) 的问题
class Solution:
def fourSumCount(self, A, B, C, D):
"""
:type A: List[int]
:type B: List[int]
:type C: List[int]
:type D: List[int]
:rtype: int
"""
count = 0
dicA, dicB, dicC, dicD = {}, {}, {}, {}
... | [
"shmsand@gmail.com"
] | shmsand@gmail.com |
cec69182b84e9aa6bff4f48d54f59182d811ddf5 | de847b2e9a5236887fb6a164fedc0e0c86b84e6c | /pythonturorial/workshopprograms/userinput.py | 0b0ce93aae289361bd5e6a95386c281114c27be5 | [] | no_license | raghuprasadks/pythonmicrosoftexam | 9a6bcafcdbc5bb6727278f421bb1a31dc5b7427b | 68dacab8aa98d0ff39f1f36c3ce8e666be3760a0 | refs/heads/master | 2020-09-15T02:51:06.809959 | 2020-02-12T01:18:42 | 2020-02-12T01:18:42 | 223,330,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | name = input("Enter your name")
print(type(name))
print('your name is ',name)
age = int(input("enter your age"))
print('your age is ',age)
nextyear = age +1
print('your age after one year',nextyear)
amount = float(input("Enter the payment made for purchase of fruits"))
print('float conversion',amount)
print("Enter ... | [
"prasadraghuks@gmail.com"
] | prasadraghuks@gmail.com |
ddf9ff835fbc973f18c4f56f5c0ff7440397ec56 | 2ab444e427955d3dbf1f8c0947837c7d73e66a0a | /25-刘杰-北京/第九周/datasets/__init__.py | b57add28328dba5e5f4d023c2bafaed95b186619 | [] | no_license | Yang-chen205/badou-Turing | 6bfc0a4622cb0882f89117e73e2868d40601e7ff | f2a1b2f8b6b292815d92a294d49954616d3624d5 | refs/heads/main | 2023-08-07T03:57:07.471322 | 2021-09-26T08:20:10 | 2021-09-26T08:20:10 | 380,449,981 | 1 | 0 | null | 2021-06-26T08:12:02 | 2021-06-26T08:12:02 | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
@Project :badou-Turing
@File :__init__.py.py
@Author :luigi
@Date :2021/8/31 4:18 下午
'''
| [
"86213076+luigide2020@users.noreply.github.com"
] | 86213076+luigide2020@users.noreply.github.com |
af45066f57cba7e2d31be99095220cd6aaec789a | 353e4113d9763ef04ed49de02cf16e4a25a27aed | /mysite/ads/forms.py | c1636aae456e52f70a7726abd0e06cdefe0e089d | [] | no_license | niveditaprity/Django-for-Everybody | 31ea1093b6f09a77769f05e17ae5ffa95ba449a2 | a9ce3b5a584a32790342f2c4ff53676b3112a32d | refs/heads/master | 2022-12-23T20:23:05.194503 | 2020-09-28T11:32:56 | 2020-09-28T11:32:56 | 299,275,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | from django import forms
from ads.models import Ad
from django.core.files.uploadedfile import InMemoryUploadedFile
from ads.humanize import naturalsize
# Create the form class.
class CreateForm(forms.ModelForm):
max_upload_limit = 2 * 1024 * 1024
max_upload_limit_text = naturalsize(max_upload_limit)
... | [
"niveditaprity@gmail"
] | niveditaprity@gmail |
4d7ed2a1a08f6964c45a24c6f61dfc5c70731d1c | b9de1691e91ea5dba082ae3e3bd876a6fe4a2d45 | /cogs/worksheets.py | 0dbf614affdb86f7fdd627cb046cdac9d069e887 | [
"MIT"
] | permissive | Developing-Studio/ci-Administrator | ee313758219222e6a2c338bd8d8ac018ba578871 | 087748cb73b3c0edd186f82987b4ffedbe198ac4 | refs/heads/main | 2023-02-07T10:23:06.317291 | 2020-12-28T21:58:10 | 2020-12-28T21:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | import datetime
import io
import operator
import os
import random
import re
from typing import List
from typing import Optional
from typing import Tuple
import discord
from discord.ext import commands
from discord.ext import flags
from discord.ext import tasks
from base import custom
from converters import OperationC... | [
"cyrus21337@gmail.com"
] | cyrus21337@gmail.com |
884621be26ade33f8eb4183988131399d396086b | e28ad0328a7c44573b90b613650dcdf80a99991a | /Examples/for.py | ccd20002a614e78500f5b8ed0418ebe95d7e70e4 | [] | no_license | ryankennedy712/Python | 34f3fbcff5e6b474877f08936ac746828ed03ff1 | 9282008ef949e7215d5e9bb0c948164b306a7b3b | refs/heads/master | 2020-06-11T00:14:33.494819 | 2020-03-02T00:46:59 | 2020-03-02T00:46:59 | 193,801,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #for loop
#for loops are annoying to get a hang of.
#they are more advanced while loops
#range() allows you to generate a temporary list of numbers given what you enter
#the first number is the start, the second number is the end but wont be included.
for x in range(1,10):
print(x)
| [
"34756837+ryankennedy712@users.noreply.github.com"
] | 34756837+ryankennedy712@users.noreply.github.com |
3e307d287b62bc1365c9f84b092ce3f6e3f832fb | f370072d7d07681654d4a8c06b23e6508af5679c | /untitled1.py | ce7a8aabe886fbfd4e2e10628e197dab9749f4b8 | [] | no_license | Thitsugaya1/python | 58268f3544907db3e03a06d57119437ba942bc2e | 6de59c4c576d73e8552e3bd6a74ab49fda140097 | refs/heads/master | 2021-07-15T17:46:54.608543 | 2020-07-31T17:09:43 | 2020-07-31T17:09:43 | 194,190,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 01 19:47:47 2014
@author: Toshiron
"""
Cantidad_horas = float(raw_input("cantidad de horas: "))
Cantidad_anios = float(raw_input("Edad: "))
Total_Horas = Cantidad_anios*8760
Hd = 24/Cantidad_horas
Ho_dormidas = Total_Horas/Hd
Di_dormidos = Ho_dormidas/24
Yea... | [
"noreply@github.com"
] | Thitsugaya1.noreply@github.com |
2196349d34fe90de1d957e98c7117e16312f2e30 | d5080d96e40525f6d3cbf3f97910234fb4c35ee2 | /program/classifierExp.py | 12c35c44b61ff4c502d0903d0bc4a31aaf1442f0 | [] | no_license | kojotek/contest_at_least_we_tried_public | 2e1d60ae86f3a72340495d2d8d9d8f57f37ef506 | dc9959f3aee618b7b65a9b0bd17f2499d8529b39 | refs/heads/master | 2020-06-15T05:23:02.547145 | 2016-12-10T16:30:58 | 2016-12-10T16:30:58 | 75,324,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | print(__doc__)
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model, datasets
# import some data to play with
iris = datasets.load_iris()
X = iris.data[:, :2] # we only take the first two features.
Y = iris.target
h = .02 # step size in the mesh
logreg = linear_model.LogisticRegres... | [
"dargemir@wp.pl"
] | dargemir@wp.pl |
8b89c3071d264d6ae693fe10fbb5a8f56502f10a | e51c97a79a09c3a73fb0ab7f16a9ba670538af84 | /src/vertexarea.py | 59729b0953f18ffed7ca0ec8a08aeb8291bad172 | [] | no_license | zehdeh/spheremeasurements | 90a8f49819343c2da0726f2b6f3e3a8f6d4113f3 | 6e2c6825d63553ac0c53641939aa87bbb7c432ad | refs/heads/master | 2020-05-21T14:59:10.918506 | 2017-01-13T17:08:31 | 2017-01-13T17:08:31 | 64,773,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import numpy as np
import math
from timeit import default_timer as timer
def getFaceAngles(face, vertices):
v = vertices[face]
a = np.linalg.norm(v[0] - v[1])
b = np.linalg.norm(v[1] - v[2])
c = np.linalg.norm(v[2] - v[0])
B = math.acos((a**2 + c**2 - b**2) / (2*a*c))
C = math.asin((c*math.sin(B))/b)
A = np.pi... | [
"fabianfuture@web.de"
] | fabianfuture@web.de |
ef4cf60a83f3320c1d17fdc3aa26f2e066eb5006 | d2cc300faf038c018ad6612bb93dbb5defb83e2d | /tests/test_utils.py | 4b61c414166027f3ffbfe007bf6f9802a88e6c10 | [] | no_license | paliwal90/winning_price_pred | addadeca5285b22c8ef02b2d5958177bcd22d598 | c126ac40a1ed13baabe096e5ff55072b428d1a55 | refs/heads/master | 2020-04-17T04:16:50.272407 | 2017-11-14T05:00:17 | 2017-11-14T05:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import numpy as np
from scipy.sparse import csr_matrix
from nose.tools import assert_equal, assert_true
from winning_price_pred import utils as testee
def test_add_bias():
# scipy.sparse.csr_matrix
X = csr_matrix([[1,2],[2,3],[3,4]])
got = testee.add_bias(X)
expected = csr_matrix([[1,1,2],[1,2,3],[1,... | [
"yusuke-nishioka@united.jp"
] | yusuke-nishioka@united.jp |
740e1452267d94475b889877c0ab43214417c4d9 | 7c870e0f5951becc0242eb664b855e1404246e16 | /LeetCode/76.最小覆盖子串.py | e5e4a44bd156d83322bfaac4a010f1b809883477 | [] | no_license | kobe24167/Study | 73a0dddfee4e9067c6a49d2a218f5d57086a4bd7 | 8d85d746b9e0882bfb40ada208b689178bc8f3d8 | refs/heads/master | 2022-12-24T18:28:19.129921 | 2021-06-29T01:52:21 | 2021-06-29T01:52:21 | 161,650,160 | 2 | 0 | null | 2022-12-16T09:57:04 | 2018-12-13T14:24:40 | JavaScript | UTF-8 | Python | false | false | 1,463 | py | #
# @lc app=leetcode.cn id=76 lang=python3
#
# [76] 最小覆盖子串
#
# https://leetcode-cn.com/problems/minimum-window-substring/description/
#
# algorithms
# Hard (36.06%)
# Likes: 240
# Dislikes: 0
# Total Accepted: 13.9K
# Total Submissions: 40K
# Testcase Example: '"ADOBECODEBANC"\n"ABC"'
#
# 给你一个字符串 S、一个字符串 T,请在字符串... | [
"A9A7FD10AB8FD700CAD43011EEDFB4B7@i-search.com.cn"
] | A9A7FD10AB8FD700CAD43011EEDFB4B7@i-search.com.cn |
b277bc417e82dc0347d75608d8b8bad5d11f6ae8 | ba69a96366b7b6801feac5e8716443331838662b | /easy/RemoveElement.py | 14b77e25687554aea201b298b86477e2ef57c3b3 | [] | no_license | gx20161012/leetcode | 8e3e99aecb824668e54652d608bca2137d5d47fe | 2765e846c804caf17472fe548e4246b6eff63966 | refs/heads/master | 2021-07-29T20:01:21.059713 | 2021-07-28T15:45:05 | 2021-07-28T15:45:05 | 147,936,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | class Solution:
def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: int
:rtype: int
"""
count = nums.count(val)
for i in range(count):
nums.remove(val)
return len(nums)
s = Solution()
nums = [0,1,2,2,3,0,4,2]
val = 2
pr... | [
"gaoxiang199703@hotmail.com"
] | gaoxiang199703@hotmail.com |
fdbbd3c5a74e3bde1633775550ed3c99e90b4f4b | a7063e41600a0faa85881f9a549c3e6ee84c9627 | /AWS_EMR_count_q1-1_reduce_combine.py | c655a30d713224f080b05260ada26dc52c7bfeb8 | [] | no_license | Frankie-Spencer/AWS_EMR_CC2020 | 30a8897cc83f18addb58bc870727bd2f1b662732 | a9a909b1ece32b0092c4308caae7dff85b380a27 | refs/heads/master | 2022-06-25T19:05:45.454977 | 2020-05-12T10:17:22 | 2020-05-12T10:17:22 | 263,301,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | import sys
from pyspark import SparkContext, HiveContext
sc = SparkContext()
sqlContext = HiveContext(sc)
# system input arguments needed
# e. g /dir/text.txt /dir/out 100 'reduce'
args = sys.argv
source_path, out_path, amount, process_type = args[1], args[2], args[3], args[4]
# declare removable items
# -empty stri... | [
"spen.frankie@gmail.com"
] | spen.frankie@gmail.com |
427f98bf697d88d38a96995808a89004588dba24 | a84164d6298da8788f32451bb1a876670741c533 | /mountains/apps.py | 22e1c20e670b9e48fcab310be9f49044c049a186 | [
"MIT"
] | permissive | marcelotokarnia/mountain-catalog | 0e717a5cf78c422afa60c906816067344787824e | 8d5b9591e6b24ab7305016e1df41b0dc6e933388 | refs/heads/master | 2023-03-04T20:10:07.944709 | 2022-04-11T21:24:43 | 2022-04-11T21:24:43 | 134,347,237 | 1 | 0 | MIT | 2023-03-01T23:18:07 | 2018-05-22T02:05:21 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class MountainsConfig(AppConfig):
name = 'mountains'
| [
"marcelo.tokarnia@vtex.com.br"
] | marcelo.tokarnia@vtex.com.br |
e8a926f2b15c77f420a41eec66fda7a533d53b54 | 7d07cff7e0900fecb15d433eb9962a809585447f | /hit_me_please/hitters/models.py | ab8922594a759c7f8b586d3cb1c5d6338a87c1b0 | [
"MIT"
] | permissive | kaotu/HitMePls | 4dcb5280b50333b92d29de90260457680a617cc8 | 7b105e39517300faf9ef31b455656d69746cdcef | refs/heads/master | 2022-12-10T03:30:06.488569 | 2019-06-04T02:44:04 | 2019-06-04T02:44:04 | 189,680,252 | 0 | 0 | MIT | 2022-12-09T04:42:41 | 2019-06-01T02:14:03 | JavaScript | UTF-8 | Python | false | false | 131 | py | from django.db import models
# Create your models here.
class Hitter(models.Model):
email = models.EmailField(max_length=300)
| [
"patthraporn.tu@mail.kmutt.ac.th"
] | patthraporn.tu@mail.kmutt.ac.th |
f8568e77c3e2310bd5d6c4a15288dd45bdcee7e4 | 3aaa2da49ef0f20897aa6580dc976d362d944aa8 | /parserInfor/parserInfor/settings.py | 5be1b2fbdf83292e2c4568e96ce0e2b77cdd6cc9 | [] | no_license | loyoen/parser | 8b995a70c06daba109a977ed888488a13a174e3e | 48323a01696d6cf4909fe1ca659acb825e6e2f3c | refs/heads/master | 2016-09-05T13:47:17.552809 | 2013-09-21T06:09:22 | 2013-09-21T06:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | # Django settings for parserInfor project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAM... | [
"Zenas@MICROSO-5K70BVP.(none)"
] | Zenas@MICROSO-5K70BVP.(none) |
52eeb1962ffc2f1522775ef4204b087658e06a7a | 3039e5a569ffb26ad9b3efc9b3f8f142a79ebac9 | /RaspberryPi/catkin_ws/src/rpimotor/src/drive.py.orig | 7a27d32e015652d966bc07e52c312100f8bb2f03 | [] | no_license | lbaitemple/newcar | 91eb958cb50d9490b73e0d49326b47d0453e29c3 | ed834f2fb954bf1d0fc35a1bcb613ce634040486 | refs/heads/master | 2020-03-27T00:12:01.043533 | 2019-04-17T18:59:09 | 2019-04-17T18:59:09 | 145,603,131 | 2 | 1 | null | 2019-03-30T20:15:23 | 2018-08-21T18:23:59 | C++ | UTF-8 | Python | false | false | 2,649 | orig | #!/usr/bin/env python
import sys, tty, termios, time, rospy
import RPi.GPIO as GPIO
from std_msgs.msg import String
from std_msgs.msg import Bool
from std_msgs.msg import Empty
from std_msgs.msg import Int32
from race.msg import drive_param
str_msg = Int32()
flagStop = False
#pwm_center = 15
#pwm_lowerlimit = 10
#pw... | [
"noreply@github.com"
] | lbaitemple.noreply@github.com |
c865b1ad43647c13c16878af99bfb0a29466ab5f | 266e641b716f7f13c592234f63fa5a57c1370cff | /Termo Simulations with GUI/pywalker/polar_grid_walk.py | cf164c3ef75db95e1a58e39301d6cd8bd5fa0f5d | [] | no_license | kadirberatyildirim/Some-Small-Projects | 68468d21e6f3a259925281b5494ea403b9d66091 | 9946597990c63f15f0af2d89d6eda94525c486fa | refs/heads/master | 2023-08-30T08:20:37.476328 | 2021-11-18T12:58:50 | 2021-11-18T12:58:50 | 250,818,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,609 | py | """
TO DO!
"""
import numpy as np
class random_walk_2d():
def __init__(self, steps, init_pos = (0, 0), step_size = 1):
self.steps = steps
self.path = [init_pos]
self.step_size = step_size
self.allowed_steps = ['+r', '-r', '+theta', '-theta']
self.occurences = []
se... | [
"noreply@github.com"
] | kadirberatyildirim.noreply@github.com |
0d4d2f42a60514dcf7d62b89f9738cd4d00ee8a1 | 68b95073dd0b07314fdfd0a906fd652f5f402eaf | /hog.py | 4d8954d10db373049fc9aa6ecc260eaa918698a0 | [] | no_license | suryaakella/computer-vision-moocs | 23b455d43eb1501d764178e1a0a22bc47b23cad4 | 213099e8d3e5e58feae69b045518fb9463919e60 | refs/heads/main | 2023-01-22T19:12:33.330676 | 2020-11-24T15:01:35 | 2020-11-24T15:01:35 | 315,661,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | import matplotlib.pyplot as plt
import cv2
import numpy as np
import math
def gaussian(x,y,std):
return (1/((std**2)*(2*math.pi))*np.exp(((-1*(x**2 + y**2))/2*(std**2))))
originalimg = cv2.imread('/home/surya/Documents/computer_vision/CAP5415_Fall2012_PA3_data/Seq1/0133.jpeg',0)
originalimg=cv2.resize(originalimg, ... | [
"noreply@github.com"
] | suryaakella.noreply@github.com |
4d7505d380777b2beba7bed17181483a5992b5c4 | da9b9f75a693d17102be45b88efc212ca6da4085 | /sdk/appconfiguration/azure-appconfiguration/setup.py | cbab0ebedf6658d7f5da30366ae1070a9eca46c9 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | elraikhm/azure-sdk-for-python | e1f57b2b4d8cc196fb04eb83d81022f50ff63db7 | dcb6fdd18b0d8e0f1d7b34fdf82b27a90ee8eafc | refs/heads/master | 2021-06-21T22:01:37.063647 | 2021-05-21T23:43:56 | 2021-05-21T23:43:56 | 216,855,069 | 0 | 0 | MIT | 2019-10-22T16:05:03 | 2019-10-22T16:05:02 | null | UTF-8 | Python | false | false | 3,251 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | elraikhm.noreply@github.com |
615fbeee59e36cc1c78df2d2ff2d9ed58a64158d | f555fbb80462bd5ad260256520bd324109fd5fc7 | /users/migrations/0001_initial.py | 74de2b26de2064e35d33dd7db5aa427540ec3b2c | [] | no_license | Sunki12/Accompany | 9acb4a48584eaf3693b0627676ec4fd0c3ee1b73 | 4100989cc545dc9104702d99b31d9c3c234c986c | refs/heads/master | 2020-07-10T10:43:18.918395 | 2019-08-25T04:09:51 | 2019-08-25T04:09:51 | 204,244,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,145 | py | # Generated by Django 2.2.2 on 2019-06-28 11:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Doctor',
fields=[
... | [
"1099235482@qq.com"
] | 1099235482@qq.com |
32c207f3631eab9b520c22cef2980be18016e080 | 8b7d98c5077d1607568460ce5ae8da801b11293a | /accounts/forms.py | f47b51e9149eed83879485476cefed208ceca865 | [] | no_license | Th0rn-dev/kiteupru | de0e93fd791522433e2ab34efac1e86a0cb0f613 | df240ff50f51b390f7e27ca35841c6482642d97d | refs/heads/master | 2023-05-04T13:44:05.561708 | 2021-05-30T19:01:59 | 2021-05-30T19:45:47 | 372,293,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import forms
from .models import Profile
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ('avatar',) | [
"11_ka@rambler.ru"
] | 11_ka@rambler.ru |
61acdb8d432dd34f001d2c0e97dfee241beada2b | 0bcc7dba1f5f1738f9b11a259e63edcb39795a41 | /INFO1110/Lab6/sorter.py | c8f145941317de52a6354f0f760cb64eeb835ec3 | [] | no_license | mlumsden001/University-Notes | 3704b0a0e49a24d965aa24658a607a89c1dfa7da | e0040192204360e3bd3df7087738913c7763a331 | refs/heads/master | 2021-08-15T20:19:18.527082 | 2021-03-22T05:41:11 | 2021-03-22T05:41:11 | 246,731,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | import sys
def sort(sys.argv[1]):
| [
"mlum7853@uni.sydney.edu.au"
] | mlum7853@uni.sydney.edu.au |
4cc08112be4d4b74e844373295dfe2d29f3ee2a7 | 8804e0fa548726a8683ddececa90c3d789b58a13 | /quick_tut/basic_control.py | 48facec6d17dd71eda5eb7cc44469b869d6e9b23 | [] | no_license | thienkyo/pycoding | aeea0693c99598cd7204e0afa2d4bad7f2805078 | c915dc6adc4b2d2ff17e59e9da35cf5a220508dc | refs/heads/master | 2021-01-12T08:20:05.063961 | 2016-12-14T05:47:02 | 2016-12-14T05:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # If
grade = 9
if grade >= 9:
print('Awesome')
elif grade >= 7:
print('Good')
elif grade >= 5:
print('Not bad')
else:
print('No way')
# Logical operator
if 10 > 5 or 10 < 2:
print('true')
if 10 > 5 and 10 > 2:
print('true')
if not 10 < 2:
print('true')
# For loop
for num in [1, 2, 3]:
... | [
"nguyentp2788@gmail.com"
] | nguyentp2788@gmail.com |
c74a1642bf69ff8e2f66383bd39c36cd3f74607a | c21be7fd13f55ccf884271f69314d508596047c8 | /locallibrary/locallibrary/catalog/migrations/0002_auto_20180706_1228.py | 7567ff4c0547775c6d64cfb3f0ee1115d5257abe | [] | no_license | khanguslee/django-spike | 1305fb36593651a9127f7dfaefa893217706af00 | 8656b7e9f860e2a532c8513c9161a0a768866daf | refs/heads/master | 2020-03-18T21:47:46.905558 | 2018-07-18T16:23:06 | 2018-07-18T16:23:06 | 135,303,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 2.0.7 on 2018-07-06 02:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name='data_of_birth',
... | [
"angus.lee809@gmail.com"
] | angus.lee809@gmail.com |
3541096c6c8edd5bcc12e74e32dadbffe14fcc02 | 9b452055112184e16259ba95d83e0746d9e57714 | /FennicaTrends/serious-spin-master/data/python/countRelativeWeights.py | a2fcfb623573ab41ce92ae5c1872899437f2dad3 | [
"MIT"
] | permissive | helsinkithinkcompany/wide | 9bb836f9b50a65093d32c9b2827dbbf5a7bfd42f | 637189b83499bb612fcefa94e2af88f1f920849c | refs/heads/master | 2020-03-28T17:25:38.619458 | 2018-10-30T17:40:40 | 2018-10-30T17:40:40 | 148,788,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import json, sys
from math import pow
# FILE HANDLING #
def writeJsonToFile(json_data, file_path):
try:
with open(file_path, 'w') as outfile:
json.dump(json_data, outfile)
return True
except Exception as e:
print(e)
print('Failed to dump json to file ' + file_path)
return False
def getJsonFromFile(fil... | [
"noreply@github.com"
] | helsinkithinkcompany.noreply@github.com |
21190bb8e62dd782eafae6f70363d5471f54ebd4 | 39b35326534d6efa8a60344ef59eac3d8cea562f | /crudpj/crudpj/wsgi.py | b639603353b77ea9655595ff087206ea6ebb8995 | [] | no_license | Hyo-gyeong/Django_review | 8635e8311111cab56066c6b87429c7f57c5e42c3 | 8b59d717c0c8c4404230c8eaa42e6074cacdd712 | refs/heads/master | 2021-01-03T08:32:06.706689 | 2020-08-31T04:55:59 | 2020-08-31T04:55:59 | 240,000,924 | 0 | 0 | null | 2020-08-17T19:21:30 | 2020-02-12T11:53:19 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for crudpj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"cdkrcd8@gmail.com"
] | cdkrcd8@gmail.com |
083b8cd284fd20bc221ed0ecb3cbff91911ffaeb | 73e29861ef02f3c95fbcdf095b8d539bbc5fd61f | /apps/news/serializers.py | 79c74eea0caeec78406002bf1beb61613eab759d | [] | no_license | jc5055/xfz | 8cbc6b356f5707185d09df07f9bb9d0b03593e91 | 95c275e65543b379fc6b25489c381edbc41dc034 | refs/heads/master | 2022-12-11T18:59:52.464298 | 2020-09-02T09:07:32 | 2020-09-02T09:07:32 | 289,928,051 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from rest_framework import serializers
from .models import News, NewsCategory, Comment, Banner
from apps.xfzauth.serializers import AuthSerializer
class NewsCategorySerializers(serializers.ModelSerializer):
class Meta:
model = NewsCategory
fields = ('id', 'name')
class NewsSerializer(serializers... | [
"hzjiangcong@corp.netease.com"
] | hzjiangcong@corp.netease.com |
7bc9374380a24a79542e58d5423b623c5ffdaee6 | db3ba5776866f978fc2da97c8ac99ca3488a31dc | /production/orders/urls.py | c5c086fdc9bdfb0d1247a082bf8b77cd9ec40e00 | [] | no_license | barguello/AmpersandCopy | b7c2216f2ff4530e24f91233dc8332850a375988 | cc3e20960bf057d9101c3d4f0cac1b61bdef9089 | refs/heads/master | 2021-01-10T14:03:38.315929 | 2016-02-24T03:51:59 | 2016-02-24T03:51:59 | 52,412,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.conf.urls import patterns, url, include
import views
urlpatterns = patterns('',
url(r'^$', views.OrderFilterListView.as_view(), name="order_list"),
url(r'^import/$', views.order_import.as_view(), name="temp")
)
| [
"bromero314@gmail.com"
] | bromero314@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.