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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21ab63765addf9a377cd36f8efccad65c9aa8bba | 5cf1a6c9c5f1cb6235c8e67433d63ec7f62a0292 | /logpuzzle/logpuzzle.py~ | 35e95e9f4c9635c1504e591aa2462790c9426df6 | [
"Apache-2.0"
] | permissive | sparshpriyadarshi/google-python-exercises | 3c5664c99ebb396b391a06e3ded9f9824106205d | c31c3523afcd083ded79dd87d216760c34538a84 | refs/heads/master | 2021-11-11T09:09:32.830455 | 2017-12-05T21:51:03 | 2017-12-05T21:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import os
import re
import sys
import urllib
"""Logpuzzle exercise
Given an apache logfile, ... | [
"sparsh11194@gmail.com"
] | sparsh11194@gmail.com | |
d950a029ed1fbe2bbb26026def4d45c05ac2ac00 | 8670b4495264bf90742554f73a5d33e7b64138fd | /venv/lib/python3.8/site-packages/pymavlink/dialects/v10/ardupilotmega.py | d43e6f9e45336fce552f725b43abae230783006a | [] | no_license | BIwashi/dronekit-sitl-docker | aaa532245cc0f04bcd7dfbbf967ca754c03ea784 | 209c5a14a50efead4758a6881906862689ea1e57 | refs/heads/master | 2023-01-06T10:19:44.907874 | 2020-10-26T16:31:36 | 2020-10-26T16:31:36 | 298,338,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346,699 | py | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: ardupilotmega.xml,common.xml,uAvionix.xml,icarous.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
from __future__ import print_function
from builtins import range
from builtins import object
import struct, array, time, json... | [
"saxo-folatre1129@outlook.jp"
] | saxo-folatre1129@outlook.jp |
20eabdb496e5e0bb99f97dfe377c3c4da5527f60 | fb1d80581c4ef8c981c5abd20eda3ea989e48472 | /medicine/migrations/0013_auto_20191210_0138.py | f6262a49494adc44a4d02697d40b85e9c2e1d58b | [] | no_license | harrycode007/Online-Pharma | 49988336f8c82c9d6f913e21f5570f8f7b7c6f6d | 5f10489d08c55e9a0c3b7389ee7ad5cde7b66ea8 | refs/heads/master | 2022-07-10T12:05:46.777883 | 2020-05-20T07:09:14 | 2020-05-20T07:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # Generated by Django 2.2.1 on 2019-12-09 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medicine', '0012_auto_20191210_0134'),
]
operations = [
migrations.AlterField(
model_name='medicineordered',
name='A... | [
"1999hari@gmail.com"
] | 1999hari@gmail.com |
e4b9f8ab5bb19544e331e60d7ba9441168e86c0f | 3c9727c4b5a89684b861fa90424e43c5a914ea45 | /Production/test/get_py.py | 5234fbfb2b6066772be282bce7ee1e8393f89862 | [] | no_license | vhegde91/TreeMaker | f51b453243081ccef0cfa721468ed7f7f9ca51f2 | e9dc3e3de793250980b29bebfef9b07c78bc97f7 | refs/heads/Run2 | 2021-08-11T03:45:45.430562 | 2018-04-11T14:30:28 | 2018-04-11T14:30:28 | 78,883,127 | 0 | 0 | null | 2017-01-13T20:14:01 | 2017-01-13T20:14:01 | null | UTF-8 | Python | false | false | 6,669 | py | import re,sys,getopt,urllib2,json
from dbs.apis.dbsClient import DbsApi
from optparse import OptionParser
# Read parameters
parser = OptionParser()
parser.add_option("-d", "--dict", dest="dict", default="", help="check for samples listed in this dict (default = %default)")
parser.add_option("-p", "--py", dest="... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
230b09e8b8a16de4af9b5873a5e364a68838722f | f0ee834c8f60e5c2513ded18a48260299a80ba5d | /datatypes/q12_datatypes.py | 2aebb2d350e1d0502bc7e189f1ad041e4e2b09e4 | [] | no_license | shres-ruby/pythonassignment | 7d62bf425e463b5cc464c346b824565de25d3b07 | 189eadb5e5ae991cb3be3fab921c2f189177f059 | refs/heads/master | 2022-11-12T18:06:58.881945 | 2020-06-28T12:36:08 | 2020-06-28T12:36:08 | 275,580,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # 12. Write a Python script that takes input from the user and displays that input back in upper and lower cases.
c = input("Enter a string : ")
up = c.upper()
low = c.lower()
print(f"Upper case : {up}\nLower case : {low}") | [
"shres.ruby@gmail.com"
] | shres.ruby@gmail.com |
d6b1c2132c968c9c9d620843cf716f7edc2ef978 | 2f26cb652666310b94b3c0d0bd2e66200ce24db1 | /cinemaredux.py | 6d2e1124614596a8d49c9a652b2ed17e3aa4c873 | [] | no_license | digitaldickinson/PythonVideoprocessing | 1a0e29f90477d5bdf7dee6ffc5396c624550be96 | 630c8bf29ac69f9f413f76f97056f92b3331e81f | refs/heads/master | 2022-05-27T21:24:16.087312 | 2018-04-16T11:35:23 | 2018-04-16T11:35:23 | 129,378,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | """
A SCRIPT TO CREATE CINEMA REDUX STYLE IMAGE FROM A VIDEO FILE
Inspired by Brendan Dawes cinenmaredux work - http://www.brendandawes.com/projects/cinemaredux
"""
#import some libs to work with
import cv2 #The openCV lib to do video processing
import numpy as np #use this for arrays
import os, os.path #using this to... | [
"judgemonkey@mac.com"
] | judgemonkey@mac.com |
546f4b0a7b9e573b93414313b979be1eeb48b1b5 | b43c6c03eea348d68d6582c3594760bbe0ecaa08 | /gitlab/tests/conftest.py | 929f128062588569e26097e5ee90aebcc993b89f | [
"MIT"
] | permissive | imsardine/learning | 1b41a13a4c71c8d9cdd8bd4ba264a3407f8e05f5 | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | refs/heads/master | 2022-12-22T18:23:24.764273 | 2020-02-21T01:35:40 | 2020-02-21T01:35:40 | 24,145,674 | 0 | 0 | MIT | 2022-12-14T20:43:28 | 2014-09-17T13:24:37 | Python | UTF-8 | Python | false | false | 2,278 | py | import os
from os import path
from subprocess import Popen, PIPE
import pytest
class DataFileHelper(object):
def __init__(self, base_dir):
self._base_dir = base_dir
def abspath(self, fn):
return path.join(self._base_dir, fn)
def relpath(self, fn):
return path.relpath(self.abspath... | [
"imsardine@gmail.com"
] | imsardine@gmail.com |
d6de6dc5bc55bc7f91d52729d40f91cb11fc47c6 | 184b81559cb5ae10eeebe17c5260ff15cfce08e2 | /projeto_revendas/models.py | 32390579a0e1819ef31df57ea4003f5f9362eb85 | [] | no_license | Brcolt/revenda_carros | ba3f8cb4bd3ece480df2725a550ae2460b7d40c7 | 3e529e1e331eda16cd548b3935e199209b6fa55f | refs/heads/master | 2023-02-09T02:48:34.146971 | 2021-01-03T18:54:39 | 2021-01-03T18:54:39 | 326,478,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.db import models
from django.core.validators import MinValueValidator
from django.utils.datetime_safe import datetime
# Create your models here.
class Carro(models.Model):
modelo = models.CharField(max_length=50, null=False)
marca = models.CharField(max_length=50, null=False)
ano = models.Po... | [
"brunocolt.ufrn@gmail.com"
] | brunocolt.ufrn@gmail.com |
7a4ea8fb4fbee69b0722d5a4867d805e6c6c95da | 3d65a2d72e65083c752281368cf040ae977e4757 | /plot_scripts/plot_spagetti.py | b30fed38d6694fb61a31c8c4cb7aff780abb1d61 | [] | no_license | florisvb/OdorAnalysis | 6b4b2c32979b9139856aee20cc63c34cfe63819e | 18beae8d3c6be271f171b1c36c9fd932a8a404ba | refs/heads/master | 2020-06-03T14:48:34.962795 | 2012-10-23T22:28:21 | 2012-10-23T22:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,207 | py | #!/usr/bin/env python
import sys, os
from optparse import OptionParser
sys.path.append('../')
sys.path.append('../analysis_modules')
import flydra_analysis_tools as fat
import fly_plot_lib
fly_plot_lib.set_params.pdf()
import fly_plot_lib.plot as fpl
fad = fat.flydra_analysis_dataset
dac = fat.dataset_analysis_core
fap... | [
"florisvb@gmail.com"
] | florisvb@gmail.com |
e5f7db27e87fcf2cc39af20e1eb5c98990f5410f | dbd64d5167ac127c3d1c142e49b4b2a4043ecd7b | /confirmation.py | ad7f26bdb603d9d9b098e1ce714562b52c9abb4c | [
"MIT"
] | permissive | minMaximilian/webdev2 | 25e5f0e44ed816bfa2e0dbd9355514f7f811d287 | d8334979398ff8ec47300da9e45b2c0f62f23d55 | refs/heads/master | 2022-10-25T15:24:47.897110 | 2020-06-08T09:10:20 | 2020-06-08T09:10:20 | 270,599,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | #!/usr/bin/python3
import os
import sys
restricted = "restricted"
sys.path.append(os.path.abspath(restricted))
from cgi import FieldStorage
import pymysql as db
import passwords
from html import escape
form_data = FieldStorage()
confirm = form_data.getfirst("confirmUrl")
if not confirm:
confirm = ""
confirm = e... | [
"sebastian.8295.8295@gmail.com"
] | sebastian.8295.8295@gmail.com |
ece9158673edc340e1fa78bffe1386a47cf2f0d2 | 4e9577550faf6e2c43fc3b04913e2dc66bbc1659 | /RegExPuller/regex/string_process.py | dad516ba5e20199a5a86fed05569d2626801f268 | [] | no_license | wfearn/reg-con-proc | 300c9b3e383442d59fddcd025ee41c516ec20c98 | 4b657bd599d114063ca6552deb78f833c950fcc3 | refs/heads/master | 2020-04-12T08:03:46.601542 | 2016-10-05T23:07:08 | 2016-10-05T23:07:08 | 61,832,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | #!/usr/bin/env python
import re
class StringProcess:
def __init__(self):
#Finds all strings that begin with a section number, beginning with
#Section, or simply a number.
self.section_match = re.compile(r'((?:\A\Section\s\d+\.[\d]+)|(?:\A[\d]+\.[\d]+\s))',
flags=re.IGNOREC... | [
"wilson.fearn@gmail.com"
] | wilson.fearn@gmail.com |
5dfe888d6a2fc84bcc3698d8c94a53e631c5dbc6 | 564b3ec642ac471ed02bfee3816892342176cfb4 | /tagger/modules/recurrent.py | a35d7a16805fd97c4f5019a9ad49883f3ee09147 | [] | no_license | maning-xbmu/chinese-self-attention-srl | 7c2edffcb2b24adc806ed91408cce249a16bf078 | 0f58ec4566e3eaab62a779dda3e95a26c813ec3d | refs/heads/master | 2022-07-12T14:27:41.466568 | 2020-05-14T15:01:08 | 2020-05-14T15:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,799 | py | # coding=utf-8
# Copyright 2017-2020 The THUMT Authors
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import torch.nn as nn
import tagger.utils as utils
from tagger.modules.affine import Affine
from tagger.modules.layer_norm import LayerNorm
... | [
"976611019@qq.com"
] | 976611019@qq.com |
7c30ca77ff7ab8d16b8eccdf763b818abbd72e45 | ac810c7e637afd67cf19704a1a724eaac56fed93 | /Hackerrank_python/4.sets/30.Symmetric Difference.py | 880ecccb9397cfde54a05b96340d08a4c960acc0 | [
"MIT"
] | permissive | Kushal997-das/Hackerrank | 57e8e422d2b47d1f2f144f303a04f32ca9f6f01c | 1256268bdc818d91931605f12ea2d81a07ac263a | refs/heads/master | 2021-10-28T06:27:58.153073 | 2021-10-18T04:11:18 | 2021-10-18T04:11:18 | 298,875,299 | 41 | 8 | MIT | 2021-03-01T04:40:57 | 2020-09-26T18:26:19 | Python | UTF-8 | Python | false | false | 194 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
M=input()
x=set(map(int,input().split()))
N=input()
y=set(map(int,input().split()))
f=x^y
for i in sorted(f):
print (i)
| [
"noreply@github.com"
] | Kushal997-das.noreply@github.com |
82f7ae8a799b1f6418b9cc3009b6543768380a9c | 0e0e984ef9f8c4815e613715fe6657f60bcfd61b | /emp/models.py | af3b9dee4c4d79d436823a099aebe90797d9898a | [] | no_license | peyo-karpuzov/cv-project | 0c8cb982d81f83c75c7f249de1101246832a0876 | 7d082f8acd8035d5389077474406025f003f876a | refs/heads/master | 2020-05-26T13:01:16.395139 | 2019-05-26T09:03:45 | 2019-05-26T09:03:45 | 188,240,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.db import models
from django.contrib.auth.models import User
class JobOffer(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
company_name = models.CharField(max_length=30)
position = models.CharField(max_length=50)
starting_salary = models.PositiveIntegerField()
... | [
"peyo.karpuzov@gmail.com"
] | peyo.karpuzov@gmail.com |
9dd3c227c916b4fae2af88a5f15365217a4ad4d1 | 373cb4ff0f0af7fdb5be1aae67fdea8cedc86579 | /positional-args/calc.py | 40d7a5f9095453e1e143a0c864b3b5ec70977b58 | [] | no_license | jasonwcc/learntopython | c4205081400670e598f51f812e1834be071125cb | 7749637be9706b223320e7a807b7ff98c3199eb0 | refs/heads/main | 2023-08-16T21:23:11.222929 | 2021-09-01T09:56:53 | 2021-09-01T09:56:53 | 372,115,653 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import argparse
parser = argparse.ArgumentParser(description='Calculation')
parser.add_argument('num1', type=int, help='First number to my calculation')
parser.add_argument('num2', type=int, help='Second number to my calculation')
args = parser.parse_args()
num1 = args.num1
num2 = args.num2
| [
"jasonwcc@yahoo.com"
] | jasonwcc@yahoo.com |
46a751943f89d543f81dd8c19df208e00b649bdd | e86c0e71d4a1e5c659026b3f6845dda7c703e420 | /Data Structures/Linked Lists/doubly_linked_list.py | cbcec5c2cc22afb19cc0cc6346a40d9c350786eb | [] | no_license | YashKarnik/Python-Data-Structures-and-Algorithms | 31fd484fcb73a5305275ec2452ba5403565014c3 | 09070581219a5ca9861b145d63285a42f5804b37 | refs/heads/Main | 2023-06-02T12:46:45.234062 | 2021-06-20T20:52:52 | 2021-06-20T20:52:52 | 340,924,382 | 0 | 0 | null | 2021-02-25T19:54:44 | 2021-02-21T14:43:44 | Python | UTF-8 | Python | false | false | 1,499 | py | class Node:
def __init__(self, data=None):
self.data = data
self.next = None
self.prev = None
class DLL:
def __init__(self):
self.head = Node()
def append(self, x):
new_node = Node(x)
if(self.head.data == None):
self.head = new_nod... | [
"55018090+YashKarnik@users.noreply.github.com"
] | 55018090+YashKarnik@users.noreply.github.com |
f38046e829ead21f90db3089dc7385dc29dd748d | 3c51c6ff82ec3581bf74d6a93e72231e9ef6bef5 | /user/serializers.py | 461247a5fe7db3d2c6764000386cdcfd26178e32 | [] | no_license | gmlwndla97/Asset-Kiwoom | fede62d1c3713d4781e8d65cb267f979c4faee6c | a956fc05ce3374d7c05aab1ec7b0f8e041c90f0e | refs/heads/master | 2023-04-25T23:00:08.724943 | 2021-06-09T09:27:20 | 2021-06-09T09:27:20 | 335,189,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from rest_framework import serializers
from .models import *
class StockSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__' | [
"37864097+gmlwndla97@users.noreply.github.com"
] | 37864097+gmlwndla97@users.noreply.github.com |
faa04cf9b649637aa3a8ae10ba45572c0cbe8c45 | acd6f7ceb59b66b686e427b6cfb39d6e9d1bee32 | /ratuil/widgets/listing.py | af6dc919a6470151399370b482c0ff68e7d30ca4 | [
"MIT"
] | permissive | jmdejong/ratuil | c564b20a38eb680c7b096075ae00fc1c46b45043 | 41143d0c69c71b52170217e4952c44fac940da98 | refs/heads/master | 2021-06-26T21:46:48.800827 | 2021-01-23T13:01:07 | 2021-01-23T13:01:07 | 206,735,153 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py |
from . import Widget
from ..strwidth import strwidth, crop
class Listing(Widget):
def __init__(self, selected=0, selector_char="*", items=None):
if items is not None:
self.items = list(items)#[line.strip() for line in etree.text.splitlines() if line.strip()]
else:
self.items = []
self.selector = select... | [
"troido@protonmail.com"
] | troido@protonmail.com |
fcb806b070156928c2b03ad6d408e9055efc9a9a | 3cde5a749af89c9dc4d2aca3fb9bf7c56d9a4a7f | /website.py | 43a44ed6750624703414cd6a969170689fe73bba | [] | no_license | akrherz/kimthub | b211974c071f6ed5f2caa7349ba8ff8e2ec2f87b | 028894591841e83ddc35d2157fe4044049d20db8 | refs/heads/master | 2020-12-29T00:25:50.689178 | 2019-04-01T15:46:14 | 2019-04-01T15:46:14 | 16,999,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # website tool to configure this application
from twisted.web import resource, server
class HomePage(resource.Resource):
def __init__(self, r):
resource.Resource.__init__(self)
self.r = r
def render(self, request):
s = self.r.dumpObs()
request.setHeader('Content-Length', le... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
084af231761d48ccdf9950ed5fbab1a7a44f86ab | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjSzRZMR/YW_RZMR_SZSJ_150.py | 60204aa1a24e2cc122eacbff5931e061d9482cba | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test")
from xtp.api.xtp_test_case import xtp_test_case, Api, unittest
from service.ServiceConfig import *
from financing.service.mainService import ParmIni, serviceTest
from financing.service.QueryStkPriceQty i... | [
"418033945@qq.com"
] | 418033945@qq.com |
9ba94fdaa0336d97658bb817cac17daeacb40efa | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /zipfile1.py | 57928210c0c0f271bff15ecb5d69c931b5a2dca3 | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import os, zipfile
#打包目录为zip文件(未压缩)
def make_zip(source_dir, output_filename):
zipf = zipfile.ZipFile(output_filename, 'w')
for parent, dirnames, filenames in os.walk(source_dir):
for filename in filenames:
pathfile = os.path.join(parent, filename)
zipf.write(pathfile, filename)
... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
070ec4587529830064cb1f09a6002173f4c4b629 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /visitcountermacro/0.10/visitcounter/db/db1.py | 757b0f4fd0f6e872268d96b058d57bd53e82efa7 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | sql = ['''CREATE TABLE visit (
id integer PRIMARY KEY,
page text,
count integer
);''',
'''INSERT INTO system (name, value) VALUES ('visitcounter_version', 1);''']
def do_upgrade(cursor):
for statement in sql:
cursor.execute(statement)
| [
"Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb"
] | Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb |
b7cc2f316f58f8c410aa9035f28402e0155c148e | 774b249ab38b925741a28daf552dd71e706ccdfe | /mysite/settings.py | 32f0595591775a11fa64de72e7e14e3c787a6b1e | [] | no_license | LucieGal/mon-nouveau-blog | ab1de4b5abfac4c06baf9e123ec604ece7e3c95b | bacf1bb2325b02e4b43a0cc94d676e3f68ab3604 | refs/heads/master | 2023-01-04T21:10:17.665230 | 2020-10-18T17:36:16 | 2020-10-18T17:36:16 | 304,846,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.16.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"galea.lucie@gmail.com"
] | galea.lucie@gmail.com |
3b748842c44a85b0d6b3d7622a1cd07c132eaff4 | 9116830aa778251bcc5bee416dcebe0f46cdbc9c | /aliyun-python-sdk-release-test/aliyunsdkecs/request/v20140526/DescribeLimitationRequest.py | 13cde07f821f3d9c43ca260b78e3e24d81138b1b | [
"Apache-2.0"
] | permissive | tianxiaasa/aliyun-openapi-python-sdk | 99b94ed4fa9272bc846d5e4e85ab013bbe247b45 | 430c590633c22ea76228d0081e690185c9ad1571 | refs/heads/master | 2021-01-01T06:55:52.762015 | 2017-07-14T10:08:43 | 2017-07-14T10:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"jenkins@e010125002162.bja"
] | jenkins@e010125002162.bja |
397b05b89c59aeb232b4e7f383c73cb06250f850 | 0fcb0644430f1a67d972167c9060042156e3889e | /warcreplay.py | fc342f31a562ae975429b73358cac9d80123a626 | [
"MIT",
"ISC"
] | permissive | odie5533/WarcReplay | dc6344d5e01ab72cb8f20127148bf2dd5ea57883 | 82e46b6b86816f72398d5c2eb69668990e62ded4 | refs/heads/master | 2020-06-02T23:41:36.707950 | 2013-11-11T05:50:02 | 2013-11-11T05:50:02 | 14,255,070 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | # Copyright (c) 2013 David Bern
import argparse
from twisted.internet import reactor, protocol
from twisted.web.client import _URI
from hanzo.httptools import RequestMessage, ResponseMessage
from TwistedWebProxyServer import WebProxyServerProtocol
from warcmanager import WarcReplayHandler
def _copy... | [
"odiegit@gmail.com"
] | odiegit@gmail.com |
a22e80a8d748d74187b75b7ca9f43ed5399f0094 | 420ed6ae166e89a9915e2632af1ac341366feb00 | /dataLoader/__init__.py | 5d564aa3286b97a13f6a2a3d800db1eb269478d5 | [] | no_license | kejingjing/Detector | 0294aa73cb4ce736ea1f5554de2ae66efdd0ce70 | fb57a44b6e22afb0681c21aa4eafc6f597dc3563 | refs/heads/master | 2020-03-21T04:23:25.359928 | 2018-06-20T17:20:04 | 2018-06-20T17:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # -*- coding: utf-8 -*-
from .VocBboxDataset import VOC_BBOX_LABEL_NAMES
from .dataLoader import getVocDataLoader
| [
"mandeer163@163.com"
] | mandeer163@163.com |
148d3e817efcd11b28dcc6c13e49112239d6e335 | 39f95a7b4abe665f1b0e3a0f4b356db002ddce2e | /tests/test_exceptions.py | 3f14f4213f02a864daf23f5b39c6897b7609a298 | [
"MIT"
] | permissive | gitter-badger/tapioca-wrapper | d96a538071d44c36f93f0bbd7318510dfc9f7633 | 4e6dbd85da1a218d00f08fee84dfea29a83d61c3 | refs/heads/master | 2021-01-16T18:48:50.848519 | 2015-09-09T15:21:41 | 2015-09-09T15:21:41 | 42,362,017 | 0 | 0 | null | 2015-09-12T15:29:44 | 2015-09-12T15:29:44 | Python | UTF-8 | Python | false | false | 1,889 | py | # coding: utf-8
from __future__ import unicode_literals
import unittest
import responses
import requests
from tapioca.exceptions import (
ClientError, ServerError, ResponseProcessException)
from tests.client import TesterClient, TesterClientAdapter
class TestExceptions(unittest.TestCase):
def setUp(self... | [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
8b89589468f4d10204c42dbb6c396d9dea17db66 | 3bb4f4c802cdbdb16ce869dfcbadcfa6e393dd34 | /src/est_dir/PI_MPI.py | 13b8e40d4c81304b019e9bc466a295b6e6cc6eb2 | [
"MIT"
] | permissive | Megscammell/Estimate-of-direction-in-RSM | b5ed1b4d00ebf08e0f2d127552274d307e24c5af | 3ab2678617203a7046f61b9c38b0f4878ed336fe | refs/heads/main | 2023-04-18T03:04:50.782508 | 2022-04-20T12:31:42 | 2022-04-20T12:31:42 | 339,388,391 | 0 | 0 | MIT | 2022-07-05T17:13:04 | 2021-02-16T12:15:48 | Python | UTF-8 | Python | false | false | 14,956 | py | import numpy as np
import time
import est_dir
def compute_direction_MP(n, m, centre_point, f, func_args, no_vars, region):
"""
Compute estimate of the search direction by applying Moore-Penrose
pseudo inverse.
Parameters
----------
n : integer
Number of observations of ... | [
"scammellm@cardiff.ac.uk"
] | scammellm@cardiff.ac.uk |
4db0ac8e630e1411595e405c50925a61a43013a6 | 6d9fd1a912c07125bcc9c0d0b8fda913f142214f | /linear_model_homework_1/program/python/3.19.py | 04e097b88551bbd94014e6ee7e7eeed6d8c16740 | [] | no_license | zakizhou/linear-regression | dad6730cd3f3af7e2329da79740fc26255b70f22 | 70663cbc725d7f8ae83e440b1f4cb80ab3087868 | refs/heads/master | 2020-06-30T20:21:45.519918 | 2016-11-22T15:18:38 | 2016-11-22T15:18:38 | 74,353,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 20 21:07:42 2016
@author: Windows98
"""
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn import linear_model
dataframe = np.loadtxt("C:/linear_model/data/3.19.txt").T
dataframe... | [
"windows98@ruc.edu.cn"
] | windows98@ruc.edu.cn |
1ce8eab6442ed03dd6f60806e1900e36fe0df0d2 | 1670dca534ef4fd7e8d9ca9e6d55b5885e4071f9 | /AlgoExpert/Day2.py | 4117f3dcd99612ad1bd1b4b1307b4ac6c8d06480 | [] | no_license | Tejas1510/Pythonary | 24512a6c5abfee17457397aa37849f3a5a739002 | 55c11f74d9f540bf696acecaa78febecd14d8422 | refs/heads/master | 2022-11-23T23:27:32.219513 | 2020-08-02T17:22:17 | 2020-08-02T17:22:17 | 264,151,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #Modification of last Day Question
#Find a triplet that sum to a given value
#Brute Force approach requires o(n^3)
#We will Solve it with the help of hash map in O(n^2) approach
#This question has been asked in multiple times in most of the FANNG Company interview
def Solution(a,TargetSum):
for i in range(0... | [
"noreply@github.com"
] | Tejas1510.noreply@github.com |
bb219f4b5d7945d52abc467136cd1614c4bdbee4 | a2908938c39e1c233760eb3666089ad32f32e9dd | /ballGame.py | 9efc44ff435e8739160985091f05fcbc21c1acaf | [] | no_license | ParthSSharma/bouncyBall | 14223e80b4071d2f43581500cb025c0ccf399b28 | 7d7053ddb135dc5de51947881094c0c6c769fb79 | refs/heads/master | 2020-06-28T21:07:27.094894 | 2019-08-03T06:35:03 | 2019-08-03T06:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | import numpy as np
import cv2
from directKeys import click, queryMousePosition
import time
from PIL import ImageGrab
gameCoords = [0, 25, 500, 525]
exitGame = 0
def shootSomeBalls(screen):
global gameCoords, exitGame
state = 1
for y in range(gameCoords[1], gameCoords[3] - 25, 5):
for x in ra... | [
"53370354+ParthTatsuki@users.noreply.github.com"
] | 53370354+ParthTatsuki@users.noreply.github.com |
956d9fa0e6e3eacbff9d77dab2253bd585bbbf87 | e8d2c1f5d3d508dd9a60238ae0a5db0b584a9454 | /modules/ReplayMemory.py | 7038ddf8d5e9809aeb4e86778b8ba5b2dfd20bad | [] | no_license | WeichangWang195/Improved_3MRL | bc667eb98e186e99b21fbf2d6dfbc163480d5442 | 32a13e9333d3f891f236c76c1447fed523060150 | refs/heads/master | 2023-06-24T04:06:25.578776 | 2021-07-25T21:23:06 | 2021-07-25T21:23:06 | 362,308,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import random
from collections import namedtuple
class ReplayMemory(object):
def __init__(self, capacity):
self.capacity = capacity
self.memory = []
self.position = 0
def push(self, item):
"""Saves a transition."""
if len(self.memory) < self.capacity:
self... | [
"wwang195@hotmail.com"
] | wwang195@hotmail.com |
fdbfd91b1ecd4517cbd0450d6ef0269a24e7a240 | 579526149437ef74cd870bfbd96a06d07b1cf25e | /formula/migrations/0001_initial.py | 5bf61c8ea28d2aedf671971d4fdddcbd5b59b074 | [] | no_license | khalilashkar/scm | 22461b896c585df34c319df74688d673570ff6d6 | 31a37450c9e55c22416b1123945c38f85706b243 | refs/heads/master | 2022-12-03T15:22:22.693671 | 2020-08-17T02:13:54 | 2020-08-17T02:13:54 | 288,055,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,611 | py | # Generated by Django 3.0.4 on 2020-06-11 14:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
import formula.validators
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swapp... | [
"jh.programmer@scm.bz"
] | jh.programmer@scm.bz |
5e51e3c095bef0631ef516c25556452ebefe712a | 40175eaab5a644290979510d92e90fac5d24bf14 | /src/yass/augment/__init__.py | d29cb101c3a3b906fc6824e64e0d2e172e33dfcc | [
"Apache-2.0"
] | permissive | paninski-lab/yass | 7877716500340a81be22217df5c3380b4fcc4f0d | b18d13a69946c1fee28fbc1f67215d3a89d892af | refs/heads/master | 2022-10-08T03:33:23.887282 | 2022-09-29T14:23:22 | 2022-09-29T14:23:22 | 108,300,713 | 68 | 25 | Apache-2.0 | 2021-01-08T19:19:45 | 2017-10-25T17:10:51 | Python | UTF-8 | Python | false | false | 51 | py | from yass.augment.run import run
__all__ = ['run'] | [
"jinhyungp.lee@gmail.com"
] | jinhyungp.lee@gmail.com |
079db36b4b59f01d928e4d88533b54c93ff7df80 | e0ce33a90969747f57db754bc66072ae76ea3db2 | /user/admin.py | f03e58454c6f245b50de4fec01ac02d400f2e1be | [] | no_license | czemiello/biblioteka | f342bc998c215c3b34669dc3a2424dd4a79b4723 | 16a1860d31689f8c1cbdd5f719b047975f72ffc2 | refs/heads/master | 2021-01-11T12:01:20.177278 | 2017-01-21T10:32:26 | 2017-01-21T10:32:26 | 79,638,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from user.models import SiteUser
# Define an inline admin descriptor for Employee model
# which acts a bit like a singleton
class ... | [
"aexol@aexol.com"
] | aexol@aexol.com |
4ce317d08e1c724135be938452d22fe612cfa189 | 763a9816046bcfec4958ae593cb7cb58696b9dc8 | /rules/rnammer.smk | 981f4e9347324dd8eb8b495a112fdfd35eeffca0 | [] | no_license | davidecarlson/snakemake-trinotate | ad877563668d173e288cdb1b3b4d55a6e95bd432 | 45f7e2f92de144c10be29b47c90e1335f2f6abd7 | refs/heads/master | 2023-02-17T03:38:44.069123 | 2021-01-15T20:29:26 | 2021-01-15T20:29:26 | 280,492,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | smk | RNAMMERTRANS=config['RNAMMERTRANS']
RNAMMER=config['RNAMMER']
rule rnammer:
input:
assembly=INPUT + "/{sample}_trinity.Trinity.fasta"
output:
results=RESULTS + "/rnammer/{sample}/{sample}_trinity.Trinity.fasta.rnammer.gff"
threads:
1
params:
wrapper=RNAMMERTRANS + "/Rnam... | [
"david.carlson@stonybrook.edu"
] | david.carlson@stonybrook.edu |
b79bfa210ba5980a546701abc154cefdccc86ce5 | b607fd95712f9d6be753052db2449174b60de5e9 | /docker/features/installer/dependency_check.py | 6ea4ce53aef232d98e6d7b54377f97cb246d866b | [
"Apache-2.0"
] | permissive | krdpk17/twitter-neo4j | bb84d7bc3210587dd5df125958f8b96bc28db1ac | bb7e62743651082726db373d118dcc90cce48532 | refs/heads/master | 2021-05-19T08:24:03.772900 | 2021-04-26T07:40:06 | 2021-04-26T07:40:06 | 251,603,624 | 1 | 1 | Apache-2.0 | 2020-03-31T12:59:17 | 2020-03-31T12:59:16 | null | UTF-8 | Python | false | false | 311 | py | import pdb
import pip3
print("checking dependency and performing installation")
def install(package):
if hasattr(pip, 'main'):
pip.main(['install', package])
else:
pip._internal.main(['install', package])
install('python-dotenv')
install('oauth2')
install('py2neo')
install('retrying')
| [
"62544105+krdpk1717@users.noreply.github.com"
] | 62544105+krdpk1717@users.noreply.github.com |
4bac95965a18f0f6ed8d54cd5350c5180c7b129b | e972ebd59711a786780f4178f5b717fe245fd0a3 | /Python/11thoct-6.py | 08d9abdf498235c0a0ef9b876d6710b56b781b4e | [] | no_license | sai-varshith/make-pull-request | a46ed30803070fc28fd0b70a152779e53f98bcad | 8e1faa342fae423731090d271314cd5b9e23a9db | refs/heads/master | 2023-08-14T11:25:41.460714 | 2021-10-02T05:00:27 | 2021-10-02T05:00:27 | 412,333,564 | 3 | 0 | null | 2021-10-01T05:02:53 | 2021-10-01T05:02:52 | null | UTF-8 | Python | false | false | 314 | py |
def Fibonacci(n):
if n<=0:
print("Incorrect input")
# First Fibonacci number is 0
elif n==1:
return 0
# Second Fibonacci number is 1
elif n==2:
return 1
else:
return Fibonacci(n-1)+Fibonacci(n-2)
n=int(input("enter number of term"))
print(Fibonacci(n))
| [
"tushar2525252@gmail.com"
] | tushar2525252@gmail.com |
b9e6b4a89933c10efc3d61dd4e0bd03bc076a9b1 | d1cb5b13bf134f51cb03a292870f1486a4aab840 | /abc/160/e_.py | f64501f27f3b75a5f6d6c8965a5aa3a2119729a2 | [] | no_license | tanimutomo/atcoder | 73717646cff68b6bc3b42a0e1e3e48a1d61c2cb6 | cc270a2794aa351eedc78707db379f4f803439d6 | refs/heads/master | 2021-06-28T20:27:37.648870 | 2020-11-29T12:13:08 | 2020-11-29T12:13:08 | 193,248,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | x, y, a, b, c = map(int, input().split())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
p = sorted(p, reverse=True)[:x]
q = sorted(q, reverse=True)[:y]
r = sorted(r+p+q, reverse=True)[:x+y]
print(sum(r)) | [
"tanimutomo@gmail.com"
] | tanimutomo@gmail.com |
14f37638e65febf11f9114def8c5f318cb8713d6 | 328630193505577e71fdd52aa2b04b5f98ac338b | /src/app.py | e2e866e986b36060d928689c692f69c55f252de4 | [] | no_license | Pawel-Matuszny/flask-crud-app | 310eaf426624168af7c0d40ce87139f9d22d8ef7 | dc2bd44c76a2b56f879d0a6a7d72dae3a86d65c0 | refs/heads/master | 2023-06-30T04:02:19.410600 | 2021-07-30T11:46:43 | 2021-07-30T11:46:43 | 391,044,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | from flask import Flask, jsonify, request, make_response
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
import uuid
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
import datetime
from functools import wraps
import sentry_sdk
from sentry_sdk.integrations.f... | [
"pm@katarti.io"
] | pm@katarti.io |
f4a7e68daf70584049de24fcf0e3d0d1aa07c352 | 0ff99fc75b1f42811f72aa86f4b32d1e3f8b6b48 | /PR_inference/maskrcnn_benchmark/data/datasets/__init__.py | a9fdd2e7e4b7c500fbf9a66017cd0a5759e6581a | [
"MIT"
] | permissive | alwc/buildings2vec | f95a4468a0d5c21f2732c177474350e767d459f7 | bd5121e715bc28f6e88163f18407a762736d38d5 | refs/heads/master | 2022-04-25T05:26:50.053219 | 2020-04-28T20:49:49 | 2020-04-28T20:49:49 | 263,258,064 | 0 | 1 | null | 2020-05-12T06:57:24 | 2020-05-12T06:57:23 | null | UTF-8 | Python | false | false | 302 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .coco import COCODataset
from .voc import PascalVOCDataset
from .buildings import BuildingsDataset
from .concat_dataset import ConcatDataset
__all__ = ["COCODataset", "ConcatDataset", "PascalVOCDataset", "BuildingsDataset"]
| [
"ennauata@gmail.com"
] | ennauata@gmail.com |
4fdd0d64d5e0afc3a45079ae2b9ccd03a8bc552d | a6dafde76d4cf3408e61828acb9ba9d6200363ef | /testdir/Students.py | 6dd66075fc942ddb20e1c1bc2351f0749d65998a | [] | no_license | gubanovpm/C01-019_Gubanov_python | b55a3cb2724141450cd5d9e9834b65e711b57426 | 71795854b22e3e713ee16de695e7b7b9aa20d877 | refs/heads/main | 2023-01-31T19:09:50.436433 | 2020-12-13T22:14:45 | 2020-12-13T22:14:45 | 313,232,096 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | learners_french = input().split()
pianists = input().split()
swimmers = input().split()
A = set()
B = set()
C = set()
for x in learners_french:
A.add(x)
for x in pianists:
B.add(x)
for x in swimmers:
C.add(x)
D = set()
D = (B.intersection(C)).difference(A)
result = []
for x in D:
result.append(x)
print(*result)
... | [
"noreply@github.com"
] | gubanovpm.noreply@github.com |
75925e15b82a2124fd11f9ee64e75dec38efa6b2 | 3b7866902cba9c97998751a1bf3cac08d302031e | /Ch03/3-2.py | 35ba30f991a286d6ed4dc74a69123f1f651bfd7c | [] | no_license | tsbslteisrhy/Python | 7da07b8f5e3e10c86fd35522a3570788a9122adc | 95a6083c3d584c9df6b3bbf6c41ad33ca3419ad6 | refs/heads/master | 2022-12-22T03:05:57.696017 | 2020-09-21T08:31:03 | 2020-09-21T08:31:03 | 274,085,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | """
날짜 : 2020/06/23
이름 : 유효진
내용 : while문 실습하기 교재 p130
"""
# while
num = 1
while num < 5:
print('num이 5보다 작다.')
num = num + 1
# 1부터 10까지 합
total = 0
start = 1
while start <= 10:
total += start
start += 1
print('1부터 10까지 합 :', total)
# 리스트 합
scores = [80, 90, 92, 78, 62]
tot = i = 0
whi... | [
"tsbslteisrhy@naver.com"
] | tsbslteisrhy@naver.com |
1870dfbf850c058f2747b95d3dfcfb2717daf4ef | 2cd90c3056b5fb2031136e3d13d8aee3b52fda54 | /exevada/apps/exevada/migrations/0001_initial.py | b807af914f3e22bb74cd39d692b6d3dd754b7d67 | [
"Apache-2.0"
] | permissive | C3S-attribution-service/exevada | b706e9ac7aacfedbf78648ae437edc60be8ffb37 | db121cb61fdd82e0d767955d7df8b25cb041f05d | refs/heads/master | 2023-04-23T12:23:21.194046 | 2021-05-19T14:43:02 | 2021-05-19T14:43:02 | 269,430,055 | 2 | 0 | Apache-2.0 | 2021-05-19T14:43:02 | 2020-06-04T18:04:03 | HTML | UTF-8 | Python | false | false | 18,827 | py | # Generated by Django 3.1.1 on 2020-12-17 22:30
import django.contrib.gis.db.models.fields
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrati... | [
"g.vandenOord@gmail.com"
] | g.vandenOord@gmail.com |
64969951f65d3112409366d438d7f5d161123c2f | 1bd2d7189d6ec4b6a1289e136098e947f7fd5ca3 | /luisapi/asgi.py | fc869631afe74d2993b99aee7aa39a6ba8db07a3 | [] | no_license | Piotr1103/LUIS-API | 5590357607f903575a89a3eef4139f6b658109f2 | a16c9b6188b7ea86b1ad10bf8c69cdae5777e56b | refs/heads/main | 2023-08-01T17:47:19.157634 | 2021-09-27T11:09:15 | 2021-09-27T11:09:15 | 410,850,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for luisapi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"manjudamin@gmail.com"
] | manjudamin@gmail.com |
65001c22614b411a3aa525a2a14d83e9c74fd77f | 257192c02c6967ff08b03c124764532273f5198e | /服务器脚本(自己放服务器去)/scripts/cell/NPC.py | e51cde5e5781b50f2ae31eb19784cd1266b8c79a | [] | no_license | flodoo/kbengine_warring_upgrade | a17c8affea70a4b1718358adc7ca0574f472f01c | df6e6ede3048d509c9af0ea9f3c3974cc1908daa | refs/heads/master | 2020-05-19T20:55:46.895144 | 2015-04-10T07:39:31 | 2015-04-10T07:39:31 | 33,582,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
import random
import math
import time
import KBEngine
from KBEDebug import *
from interfaces.NPCObject import NPCObject
from interfaces.Motion import Motion
class NPC(KBEngine.Entity, NPCObject, Motion):
def __init__(self):
KBEngine.Entity.__init__(self)
NPCObject.__init__(self)
Motion._... | [
"liquidx@163.com"
] | liquidx@163.com |
673319d7217bb7d2670c787afae6d99c369506e2 | 4ff8c0b324c4447e6a777b6311c74ca21ad75cc0 | /tukutter.py | bc14a857b11e33cebd8262fac6dc471faa8a3494 | [] | no_license | Asatai95/tukutter | 58ba07e7dcde978f53b53c7e8ab71438fb335534 | e315ac17d2dc393ef1d9a3f045ec852224549b60 | refs/heads/master | 2021-04-25T12:18:47.205449 | 2018-08-17T10:20:06 | 2018-08-17T10:20:06 | 111,815,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,728 | py | import MySQLdb
import time
import os
from flask import Flask, request, render_template, redirect, make_response, send_from_directory, url_for, flash
from werkzeug import secure_filename
application = Flask(__name__)
UPLOAD_FOLDER = './static/img/'
ALLOWED_EXTENSIONS = set(['png', 'jpeg', 'gif'])
path = './static/img/... | [
"defense433@gmail.com"
] | defense433@gmail.com |
7ebaf958ee53b6084d2a254324bd9f469cfd76b0 | 3e79bfd23dd2dbfe3b057ba3a879b4a99ba7f66e | /Pizza Crust.py | 26c764309d50948a0508a59bf32e8db9c741984a | [] | no_license | parhamgh2020/kattis | 1b701d1f768e2337d2477ea12be56399b3ed1003 | 40a0969e347be3df9ab23cbb3fd8272b40ffa16f | refs/heads/main | 2023-03-19T22:51:54.643201 | 2021-03-14T09:30:59 | 2021-03-14T09:30:59 | 347,017,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from math import pi
r, c = map(int, input().split())
percentage = ((pi * (r - c) ** 2) / (pi * r ** 2)) * 100
print(percentage)
| [
"parham.ghashghaee@gmail.com"
] | parham.ghashghaee@gmail.com |
33bb2b026299cda1ef4cc5c15c5b013e87879902 | 45e65a396dc324b84a8cf602baed86353bcec5ae | /fibonacci.py | afda3b104e154766c6f2ac70db100824b4d596c5 | [] | no_license | knappeddy55/cmpt120JarosiewitzKnapp | f603d2ac6cb18be7bff4185c9cc9174bff2890d2 | 7172bce717fcba352f1d5b55769ae690770b5f82 | refs/heads/master | 2021-05-09T15:12:22.273991 | 2018-02-27T03:55:47 | 2018-02-27T03:55:47 | 119,086,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # This program will find out the nth number in the fibonacci sequence obtained by the user
def fib(n):
if (n == 1):
return 1
if (n == 2):
return 1
return fib(n-1)+ fib(n-2)
def main():
print("This program computes the nth Fibonacci number where n is a value input by the user")
... | [
"edward.jarosiewitzknap1@marist.edu"
] | edward.jarosiewitzknap1@marist.edu |
346f9be15be33ed6d7a104aea444b4a2dc9ba754 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /atcoder/abc083/c.py | 3bda8a9bf4626f9a95318a39ab49b5aaae251926 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | x,y = map(int,input().split())
ans = 0
while x<=y:
ans += 1
x *= 2
print(ans)
| [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com |
c92eb73452c18a2297bb716fa73b4aeb74d7822b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4182/codes/1644_2703.py | 494d16f9af8086445803a09cef9f1f6afbb7ded8 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | idade = int(input())
if (idade >= 18):
mensagem = "eleitor"
else:
mensagem = "nao_eleitor"
print(mensagem) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
f8346c4580ceeac53566875cd0d61c1958b8a7b8 | 720621eb58129414eb7b4717d4b2d40b04ec1f01 | /reto3.py | e26dba7a936060dd69954adf7cc17a8cda20eafe | [] | no_license | Jorgemacias91/ejercicios-python | 4a5faa826864356513b85bcfa5156a2d43c7f38e | cb7299abb7486309bd3581aae486b930b2253e3b | refs/heads/master | 2023-06-29T02:06:11.732480 | 2021-07-12T16:26:09 | 2021-07-12T16:26:09 | 385,308,244 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
n = int(input())
listas = []
for i in range(n):
valor = input().split()
listas.append(valor)
bandera = False
for i in range(len(listas)):
if(
int(listas[i][0]) >= 3
and int(listas[i][1]) >= 4
and int(listas[i][2]) <= 24
and int(listas[i][3]) <= 10
):
bandera = Tru... | [
"jmaciasvesga@gmail.com"
] | jmaciasvesga@gmail.com |
92e7c14d496c1f0fc8a4ad15849cd49159029b26 | de6207e901110ff060dec96748f2e88855388f6a | /crawler/venv/bin/pip | 93f0d5d3d77dc01a7fbfe016aa9bfb4df21af2ca | [] | no_license | arnobmonir/Local_Net_Tools | d618b77226c30d09176975f8d11b45c6e75573a0 | 12e34f6834e756081d63b476facead2d32274904 | refs/heads/master | 2020-09-11T00:11:41.039230 | 2019-11-14T12:15:12 | 2019-11-14T12:15:12 | 221,875,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | #!/root/PycharmProjects/crawler/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"aarnob.monir@gmail.com"
] | aarnob.monir@gmail.com | |
a9e42f89d227ed48a392eb63989a8e4bac736bea | fc5eb35cb7ad53730cd385be2668a375b12fc95f | /feincms_template_content/admin.py | 6bdd6c0b7d5b59cd4f9b9aaad33250f519ede99e | [
"MIT"
] | permissive | RichardOfWard/feincms-template-content | c58aca52ece1e86e54c6b58244f29198e4f8e7a0 | b8dacb29b9e16e3a9c80093c2c2db3011f6bacb5 | refs/heads/master | 2021-01-23T16:35:25.600828 | 2014-05-06T14:48:32 | 2014-05-06T14:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from feincms.admin.item_editor import FeinCMSInline
class BaseTemplateContentAdmin(FeinCMSInline):
def __init__(self, *args, **kwargs):
self.exclude = list(self.exclude or [])
if len(self.model.template_choices) <= 1:
self.exclude.append('template')
super(BaseTemplateContentAd... | [
"richard@richard.ward.name"
] | richard@richard.ward.name |
b21aab70f83a44383ba2584afdf1c8db013d0187 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/databoxedge/v20210201preview/get_role.py | 2b3f43979b4fd165e04ffde6de3dfaed95f863d9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
a0a87ff1bb1928a162d29d5c0b92860320bbc4cb | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/environments/transports/base.py | 2954e4b53ef852369ec2fb2c2b6ac7f8f8469fda | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 11,551 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
59aeeb5cfbbd52e95cf09691c8180bb4633af9c4 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /606/606.construct-string-from-binary-tree.234546044.Wrong-Answer.leetcode.py | 30bee179f09e3deb04c3c0ab49b7e971a008aac3 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | class Solution:
def tree2str(self, t):
if not t:
return ''
left = '({})'.format(self.tree2str(t.left)) if (t.left or t.right) else ''
right = '({})'.format(self.tree2str(t.right)) if t.right else ''
return '{}{}{}'.format(t.val, left, right)
def tree2str(self, t):
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
4b18745174f3d59dffd1c39b71f47792fc415a53 | 897f53f73dde4f94a4292fa826a1e65494fe082b | /Zprime_UFO/parameters.py | f7f9720f638576a45a17216edc5a41650d2f8ca1 | [] | no_license | TemplateJetSubstructure/EventGeneration | b35dc875c944d3ef067d418748830d1a524ec3ef | 5f79e735942c606a8cedcff6b2dbd4e637259ab3 | refs/heads/master | 2021-07-05T08:48:57.981621 | 2017-09-17T05:46:56 | 2017-09-17T05:46:56 | 103,061,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,019 | py | # This file was automatically created by FeynRules $Revision: 595 $
# Mathematica version: 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
# Date: Fri 27 Jul 2012 19:56:48
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec
# This is a... | [
"bnachman@cern.ch"
] | bnachman@cern.ch |
de789c3f754d85ff308906be6e264806b95ff074 | 6a25f68bd4104fb564f21bde048015aafa489bf2 | /env/bin/easy_install-3.6 | d47aeac991e2678415e06787df91510f7510876e | [] | no_license | HustleCorp/Django-Microservice | c5aa4053f1001286d395a49be03e2569103712d3 | 7e54843190c72c9f66c157b8e62b85d19f83735c | refs/heads/master | 2023-01-07T18:56:43.608124 | 2019-12-09T17:29:09 | 2019-12-09T17:29:09 | 226,013,742 | 1 | 0 | null | 2023-01-04T13:31:19 | 2019-12-05T04:09:49 | JavaScript | UTF-8 | Python | false | false | 271 | 6 | #!/home/shegerking/Desktop/django-docker/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bktotient@gmail.com"
] | bktotient@gmail.com |
71805448f7085ea893f12fd7723c5398abb76fa6 | e2ae5b6b7143987a3b8b64a4d502e89d50f807c9 | /SeparandoDigitosNum.py | 719399519490756b0af80769b724436ae570a11c | [] | no_license | welleson-lukas/python-projects | 7cc95f28a2268e7f090c073d8dd68600231bf943 | d8de21a52eb1a89e8312afc650fa3ec341bd31a2 | refs/heads/master | 2020-12-20T11:00:00.075766 | 2020-03-16T20:29:06 | 2020-03-16T20:29:06 | 236,051,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #separando digitos de numeros ate 9999
#unidades, dezenas, centenas, milhares
num = int(input('Digite o numero: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print('Analisando o número {}'.format(num))
print('Milhares {}'.format(m))
print('Centenas {}'.format(c))
print(... | [
"noreply@github.com"
] | welleson-lukas.noreply@github.com |
33d8a3f172e02a3326ddf12f3ac7502ff17d2f00 | 557c70397b350aa85933180dc3648c9be5c9db39 | /interpretNN/sequence_attribution.py | 05474583f2639e4d9a558940661f733a78f4a328 | [] | no_license | DivyanshiSrivastava/chromNN | 68e41f1489c4fcefe576c7c7e80eb6ebd600a91e | 32541b3d6cfe00972116b63dfe1f82cb099c3478 | refs/heads/master | 2020-04-19T01:33:16.879436 | 2019-01-28T01:13:27 | 2019-01-28T01:13:27 | 167,875,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | import numpy as np
from keras import backend as K
# The GradientSaliency class is modified from:
# https://github.com/experiencor/deep-viz-keras/blob/master/saliency.py
class GradientSaliency(object):
""" Compute saliency masks with gradient."""
def __init__(self, model, output_index=0):
# Define th... | [
"s.divyanshi91@gmail.com"
] | s.divyanshi91@gmail.com |
c2006c7cd89aca0775e2f8862c0c7c80d2818081 | 6ac683881a26231638ae77261bc1c2e962ed81e6 | /message/models.py | 7155156b1bd11413e82722ed09d6d44072e0ac20 | [] | no_license | tenshiPure/chat | a3deea994d106b27bdcf7c8ac6bc21987b853601 | c10489b87814033ffbd4f50d0eebc3b9e1c364d4 | refs/heads/master | 2016-09-06T02:24:40.094709 | 2014-02-06T03:37:06 | 2014-02-06T03:37:06 | 16,363,786 | 0 | 0 | null | 2016-02-20T02:14:08 | 2014-01-30T00:12:25 | Python | UTF-8 | Python | false | false | 2,828 | py | #-*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.forms import ModelForm
from django.db import models
from django.contrib.auth.models import User, Group
class UserForm(UserCreationForm):
first_name = forms.CharField(max_length = 32)
last_name =... | [
"user.ryo@gmail.com"
] | user.ryo@gmail.com |
05048d5f830df5ed0b5e43b5e6473d8c7b7d7246 | 0ff87e0a84dd8b9a198cebb59a5130fa7765b9dd | /tests/test_backtest.py | 606de235aebb5127e7941c9e643a0564ca164f4f | [
"Apache-2.0"
] | permissive | dxcv/moonshot | 470caf28cdb3bc5cd5864596e69875bf1810d05d | ca05aa347b061db05c0da221e80b125a5e9ddea1 | refs/heads/master | 2020-05-31T04:40:43.638058 | 2019-03-28T17:07:04 | 2019-03-28T17:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,137 | py | # Copyright 2018 QuantRocket LLC - 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 applicable law... | [
"brian@quantrocket.com"
] | brian@quantrocket.com |
409166fb8dd65259d5804eba3ea3d79e673f93bc | fe0e7985fb0c7d2b57dbf8e3fbe83b27b0a0cdeb | /ServiceApplication_SourceFiles/Mod_FlexmapImage.py | 08a14158f7b5d73796552db83814b39ac5ecbb9d | [
"MIT"
] | permissive | lynch829/FluoMV | 04e7516c3aa3d6ac2d485ce2d7c26abd0f1108ff | 6fc226ee0ca1427495f0ab483c63a2ca5195954e | refs/heads/master | 2022-11-23T06:04:09.812686 | 2020-08-03T15:05:22 | 2020-08-03T15:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | # -*- coding: utf-8 -*-
import numpy as np
import sys
import os
#===============================================================================================================
class FlexmapImage:
def __init__(self, thisSettingsObj):
self.Status = True
self.SettingsObj = thisSettingsObj
#--------------------... | [
"mathieu.guillot@usherbrooke.ca"
] | mathieu.guillot@usherbrooke.ca |
ee4637d7c5f80fb4a059cda9c706b0e18d4033a1 | e9b04482febf819214a81f9da051d87ece89d19f | /PythonExercicios/ex010.py | a0c9ba185f95f4e933a817d9bc4c3d1479c7dfe1 | [
"MIT"
] | permissive | ViniciusQueiros16/Python | 6a20ba9874aadec7dc90eea7cad3fcdb4a685995 | c03fd08d4c204104bf0196b0bd129427fd2067ae | refs/heads/main | 2022-12-31T07:56:59.287860 | 2020-10-11T21:40:24 | 2020-10-11T21:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import emoji
print('\033[33m=\033[m'*12,'\033[34mConversor de Moedas\033[m','\033[33m=\033[m'*12)
n = float(input('\033[1;31;43mQuanto dinheiro vc tem na carteira? R$\033[m'))
print('\033[32mCom R$\033[35m{}\033[m \033[32mvocê pode comprar US$\033[35m{:.2f}\033[m \033[32mou £\033[35m{:.2f}\033[35m'.format(n,(n/5.31), (... | [
"70244206+lordvinick@users.noreply.github.com"
] | 70244206+lordvinick@users.noreply.github.com |
f4602cd7303062ababc188c3b723277d0c1806dc | 5cd8654fd6db6789d3be0db676ab2aa73b17417d | /lab5_Conditional_GANs/parser.py | 58fe7ceec8bd1601b1430c875813137188fd3059 | [] | no_license | bhbruce/DLP_Lab | be23936d2025cf155b3a71f86303dc11853d1c29 | dd28f9cd063044757ae97819099f68f44919de44 | refs/heads/master | 2022-12-30T16:41:30.991055 | 2020-09-17T11:30:15 | 2020-09-17T11:30:15 | 296,305,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | from argparse import ArgumentParser
def argparser():
parser = ArgumentParser(description='PyTorch Conditional GAN')
parser.add_argument("--n_epochs", type=int, default=800, help="number of epochs of training")
parser.add_argument("--batch_size", type=int, default=64, help="size of the batches")
parser... | [
"bhbruce.cs07g@nctu.edu.tw"
] | bhbruce.cs07g@nctu.edu.tw |
932070d45029b0cd3513177f15e0c146af1f52d9 | 8f3d104a86a41579a2b2622081ef96c78daccd13 | /app/app.py | 48a617fadf84f73765956996cd727bb0aacfdfee | [
"MIT"
] | permissive | pgs8/IS601_Individual-Project-Web-Application-Final | 8eddd66bc4f252415ae5e840d2d6a0e4723572c5 | fa3d110bb23d1c7d6c643ea9a805ef9b2faa75c0 | refs/heads/main | 2023-03-29T19:54:19.304266 | 2021-04-02T21:31:26 | 2021-04-02T21:31:26 | 354,129,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | import simplejson as json
from flask import Flask, request, Response, redirect, render_template
from flaskext.mysql import MySQL
from pymysql.cursors import DictCursor
app = Flask(__name__)
mysql = MySQL(cursorclass=DictCursor)
app.config['MYSQL_DATABASE_HOST'] = 'db'
app.config['MYSQL_DATABASE_USER'] = 'root'
app.co... | [
"pgs8@njit.edu"
] | pgs8@njit.edu |
02a3b3e63c958d1e43cecdd81f5fcc744ec2a602 | 8219120b00d2efcfe4a8ac698001c88032c66344 | /mysite/settings.py | 2c7cb1cc4f2906772f918a218264aa285a72aafc | [] | no_license | Potusujko/my-first-blog | 0ffc81dcf1970934e2be8c94fa2a9291709cab52 | 24b376675d2a56677b890f97119d2b415596aea9 | refs/heads/master | 2020-04-27T18:13:56.595832 | 2019-03-08T15:18:45 | 2019-03-08T15:18:45 | 174,560,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
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
#... | [
"potusujko@gmail.com"
] | potusujko@gmail.com |
b2890fee28b3469e99f5ae1c676d8500ba428280 | 48d1bdfe8ef88e9e24e26f05a07b61a220fd5663 | /tests/settings.py | d264de5677cb4acca69cc9729cd414a7b2c6905b | [
"MIT"
] | permissive | dejmail/django-data-wizard | b2680cf14564e4be3d74c5e63d17060665adfb8d | cfb4d00032c73d4b55abceb542b68563f3a79a05 | refs/heads/master | 2023-05-10T20:59:46.222978 | 2022-08-18T01:37:40 | 2022-08-18T01:37:40 | 278,087,179 | 0 | 0 | MIT | 2020-07-08T12:46:19 | 2020-07-08T12:46:19 | null | UTF-8 | Python | false | false | 2,248 | py | import os
TEST_BACKEND = os.environ.get("TEST_BACKEND", "threading")
TEST_VARIANT = os.environ.get("TEST_VARIANT", "default")
WITH_WQDB = TEST_VARIANT == "wq.db"
SECRET_KEY = "1234"
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"dj... | [
"andrew@wq.io"
] | andrew@wq.io |
b00c8aa0a7d46dd26c6d293c5f9030b06975e0e7 | d532a3bf7a7c55fa6eeeaf9d959971f5cb601888 | /WebSocket_Client_Server/aes.py | 0462f78d90b199938598b2c27332dcedae703673 | [] | no_license | Kalgrand/BSI_LAB10 | 8f26b4188c973e214ec08dca5452a23fc11f396f | 74474b32db384a8b18fe7b6b407f3901ffe8592f | refs/heads/master | 2023-02-18T22:19:14.856030 | 2021-01-19T10:04:05 | 2021-01-19T10:04:05 | 330,397,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | """
Szyfrowanie tekstu przy pomocy algorytmu AES.
Autor: Maciej Milewski
Źródło algorytmu szyfrującego: https://pypi.org/project/pycrypto/
"""
from Crypto.Cipher import AES
import base64
from utils import pad, unpad, fill_to_block
def aes_encode(message, key):
""" Encrypting message using AES in CBC Mode """
... | [
"micdeg96@gmail.com"
] | micdeg96@gmail.com |
32c070a67536348307110e67ace6f37c433a186e | 811f563a43b887da1e3710df9c38f8aa64633a0b | /manage.py | 37bdb1b6a10514844ead5f83de444b5ed8d26c13 | [] | no_license | harryphelps/larder-site | 6c81702f6850bb5e30ea6f0193c0e6c08f7f40f7 | 27a201eb796d403b646d9ef730062f203b11f7de | refs/heads/main | 2023-07-18T19:21:31.820643 | 2021-09-15T07:53:24 | 2021-09-15T07:53:24 | 374,751,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "larder-project.settings")
try:
from django.core.management import execute_from_command_line
exce... | [
"harry.phelps@octoenergy.com"
] | harry.phelps@octoenergy.com |
d09afbd5633143ee0043841892906c2295c30e97 | 5edfdcc3f9fe97971a2472a3ebfe8023d5d0fefc | /api_recognition_code/base.py | 928237b2c58987601e6c4dc5ca5b3bcb4826ddcf | [] | no_license | developneed/developneed.github.io | 77613c29ba600cd25596e7362fdcb06f87c29d67 | 28301656af488bb8abb2e66feda7d22680f93f38 | refs/heads/master | 2022-12-07T07:23:07.264008 | 2020-08-31T13:20:45 | 2020-08-31T13:20:45 | 291,243,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from abc import abstractmethod
from discussion.model.base import SOPost
class SOPostAPIRecognition:
@abstractmethod
def recognize(self, post: SOPost):
return set()
class SOPostAPILinker:
def link_one(self, post: SOPost, api):
return api
def link_batch(self, post: SOPost, api):
... | [
"noreply@github.com"
] | developneed.noreply@github.com |
3620f9f21faf465bdcb55e4a4c4b67376ecf12d7 | bf6b8e95bad7cc9c527b87d405429d03cc336fa2 | /6/intro-proj1/DeHovitz-Bolton/intro-to-flask/app.py | 7d12b244908e8e27b2a4efc40e056c8753e95435 | [] | no_license | Enigmamemory/submissions | 90c75665f8d311a29c094c4e6a22a10a0893cf9f | 39d6b944ad61a78e693d564bb0ede661f9806964 | refs/heads/master | 2020-12-11T03:31:58.281197 | 2014-12-30T05:08:22 | 2014-12-30T05:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,857 | py | from flask import Flask,render_template, request
#<center>And how many words? <input type="text" name="topwords" size="5" value="50"><br>
app = Flask(__name__)
@app.route("/")
def start():
return render_template("constitutionoptions.html")
@app.route("/results", methods = ["POST", "GET"])
... | [
"adam.dehovitz@gmail.com"
] | adam.dehovitz@gmail.com |
6ce1c62e5908770f961a6f42807d4ed6711f56ab | 3cdc345a9cf34f028ce34e2a5d01a86e77b88a90 | /gevent/greentest/test_threading_2.py | 11413b663a6a6f6076906c3017ec3ffecbebb117 | [
"MIT"
] | permissive | WeilerWebServices/Reddit | 459ace5af417d7bd8b4552a3068ff64b3986a579 | b300835f5c78f83a89931cf2a1c4e9150ddb9a9c | refs/heads/master | 2023-01-01T18:25:00.196266 | 2020-10-21T12:27:25 | 2020-10-21T12:27:25 | 305,972,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,520 | py | # testing gevent's Event, Lock, RLock, Semaphore, BoundedSemaphore with standard test_threading
from __future__ import print_function
from six import xrange
setup_ = '''from gevent import monkey; monkey.patch_all()
from gevent.event import Event
from gevent.lock import RLock, Semaphore, BoundedSemaphore
from gevent.th... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
b4fea59b3b49975b22270fb41dea70e4b71350f3 | 3c4cba4eda8db2f88d3354e64abc8387bdd9e7ec | /xplan/__main__.py | 8e5f842355e84c6d7188b7af6c2eca7f048defaf | [] | no_license | shinhwagk/xplan | eb02ec715b9085c92e7fcd1276089d8b1706397c | adb5aa6079ba2f888cf8c9e6ed9081789acd3831 | refs/heads/master | 2021-07-15T11:05:07.542511 | 2020-05-18T03:12:55 | 2020-05-18T03:12:55 | 143,730,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import argparse
from xplan.display_cursor import display_cursor
parser = argparse.ArgumentParser()
parser.add_argument('-dsn', help="db name", required=True)
parser.add_argument('-sql_id', help="inst", required=True)
parser.add_argument('-child_number', help="data source", default=0)
parser.add_argument('-p... | [
"noreply@github.com"
] | shinhwagk.noreply@github.com |
3bb2a6a4dfa49763c5e062343c951512a3089e45 | 02d82acce198e1a4eb69a4d0cb1586a4c8b264a5 | /motor_controller/motor.py | 0e0db988a5d984faf312b67ecac31b3d29f1efe2 | [] | no_license | asuar078/rpi_rover | 3b70b1e90e049bb82a0d6253e23014c9b893f93f | 89db9812dc38059bb83be1a8d248c70a374873a1 | refs/heads/master | 2021-04-15T10:05:18.252797 | 2018-06-19T16:27:42 | 2018-06-19T16:27:42 | 126,905,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py |
class Motor:
pwm_pin = 0
direction_pin = 0
current_pin = 0
enc_a_pin = 0
enc_b_pin = 0
def __init__(self, pwm_pin, direction_pin, current_pin=0, enc_a_pin=0, enc_b_pin=0):
self.pwm_pin = pwm_pin
self.direction_pin = direction_pin
self.current_pin = current_pin
... | [
"arian.suarez001@gmail.com"
] | arian.suarez001@gmail.com |
3c80081c260d7cc613091294c57a8e8f35a4dd0c | bbbd25309c327ae774ddd10a92c043a88be27665 | /game/main.py | 9e75d05ee2dd4521b8c08cf2076dc96f93f9f76c | [] | no_license | Max-Joshua/Herramientas_Computacionales | b2298039f585b6d0f55ff9dbecd18e0846ab5803 | c275b056cf7cc25a3fbb9743ada7b3bc3ef39d5e | refs/heads/main | 2023-01-07T06:18:32.760318 | 2020-10-30T17:14:28 | 2020-10-30T17:14:28 | 308,102,773 | 0 | 1 | null | 2020-10-30T15:42:39 | 2020-10-28T18:12:00 | Python | UTF-8 | Python | false | false | 21,016 | py | """
thieves' hole redeem is a plataformer game, where magic and bad guys collide!
Have fun going through different dungeos to save your loved one.
thieves' hole redeem by Alejandro Fernandez del Valle Herrera, Joshua Rubén Amaya Camilo and José Emilio Derbez Safie
is licensed under CC BY 4.0. To view a copy of this l... | [
"alexplays003@gmail.com"
] | alexplays003@gmail.com |
96eb29f1e9ed92f18a7a489d10a30a6ab97eb62a | 78579b189f1afd790bce20017c273c71cfa96240 | /lev_pos_size.py | ddb12bdaf17f3f3f8842ebedc23d2cb08165d061 | [] | no_license | harrychurchley/pos_lev_calculator | 4dbc94c3b2d66cdf039cedfdbfd4d8fe41105456 | badeb54edee105e4482995ce89728e07535d627b | refs/heads/main | 2023-06-30T13:17:37.541714 | 2021-08-01T12:12:51 | 2021-08-01T12:12:51 | 390,522,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # this is a leverage and position size calculator
# import dependencies
import pandas as pd
from binance import client,
account_size = 1000
risk_pc = 2
risk_raw = account_size*(risk_pc/100)
def place_trade(coin, buy_price, take_profit, stop_loss):
invalidation = ((buy_price - stop_loss)/buy_price) * 100
... | [
"harry_churchley@live.co.uk"
] | harry_churchley@live.co.uk |
b812cb1fd735b6b63f0512a927f216cb8cb0055e | 4abfecc0722111c00cb2b2046014811d9aa37bed | /app.51.intviewQuestion.py | c3b1bee2164dc88fb8ec50946aaefd4ecf996f3f | [] | no_license | yzcali/PycharmProjects_HelloWorld | f5439a5f936f21ee01f3dcf7f3aff33432dfec91 | 8177d86b7cdc34819327c71a84654c107e032e0f | refs/heads/main | 2023-01-24T21:57:40.075679 | 2020-12-06T22:20:23 | 2020-12-06T22:20:23 | 315,055,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # question 1
# Write a function called fizz_buzz that takes a number.
# If the number is divisible by 3, it should return “Fizz”.
# If it is divisible by 5, it should return “Buzz”.
# If it is divisible by both 3 and 5, it should return “FizzBuzz”.
# Otherwise, it should return the same number.
def fizz_buzz(input):
... | [
"yaziciali694@gmail.com"
] | yaziciali694@gmail.com |
476c871aec7380602d4d54db0bccf951f511c1ea | f7098120eaff59448debbfe2191512c9a6a9c49d | /greenhouse/settings.py | 435c59dff90ac3051102bf804048ae08b4eeea5e | [] | no_license | case112/smart-greenhouse-web | 9cacb3e05d2ebc09a0ab99d04517002c0b2381be | cde35f4a59ffebc6bee4deaaf7ac4e11e1f88463 | refs/heads/master | 2023-05-28T15:56:44.618118 | 2022-04-24T10:12:26 | 2022-04-24T10:12:26 | 253,299,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | import os
from decouple import config
import dj_database_url
import dotenv
import django_heroku
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dotenv_file = os.path.join(BASE_DIR, ".env")
if os.path.isfile(dotenv_file):
dotenv.load_dotenv(dotenv_file)
SECRET_KEY = config('SECRET_KEY')
DE... | [
"case112@users.noreply.github.com"
] | case112@users.noreply.github.com |
a52e9d7aed8270a9bfd6951842c62b2ae4453cac | 3892fdc152650c1abe32e4610e2936a364afa56f | /project2/auctions/models.py | 76eb1e8846608190c7bc4a2bf856e564ba1d5f36 | [] | no_license | JosephLimWeiJie/cs50w | 0af1fc4dd05a04790bcde94072f41c668319a161 | d004fa9cf72886f25959182c717f950e10583d9b | refs/heads/master | 2022-12-29T22:06:30.457421 | 2020-10-08T17:09:37 | 2020-10-08T17:09:37 | 281,036,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
watchlist_counter = models.IntegerField(default=0)
has_won = models.BooleanField(default=False)
pass
class Listing(models.Model):
CATEGORY = (
("Men's Wear", "Men's Wear"),
("Wo... | [
"59989652+JosephLimWeiJie@users.noreply.github.com"
] | 59989652+JosephLimWeiJie@users.noreply.github.com |
c5db0d0de514c401128e8959756cdc4966c3e792 | ff0b267e3bbecf9bc1c46bdb75a42d71545d45f8 | /mluicode/FlowerClassification/iris.py | 75560ed6a5408530273cd646b7c7344ed0e05421 | [] | no_license | rupeshsm/ML_Code | 650c0590585fd52901db421b407dab1f6c5790ec | 7380a99efc7c105ea7771a40226c34571628cc70 | refs/heads/main | 2023-06-19T01:47:01.063957 | 2021-07-01T18:29:55 | 2021-07-01T18:29:55 | 380,484,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py |
import numpy as np
import pickle
import pandas as pd
df = pd.read_csv('iris.data')
X = np.array(df.iloc[:, 0:4])
y = np.array(df.iloc[:, 4:])
from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
y = le.fit_transform(y.reshape(-1))
from sklearn.model_selection import train_test_split
X_train, X_test, ... | [
"rrupesh.mishra@gmail.com"
] | rrupesh.mishra@gmail.com |
bfbdcb02acc6bbaaf28aed62a3a02c0364e3390f | 1e5f6ac1590fe64e2d5a2d8b036c0948847f668d | /codes/Module_3/lecture_14/lecture_14_1.py | 8e31229472bbd0149536f6ac5d764794c79ff078 | [] | no_license | Gedanke/Reptile_study_notes | 54a4f48820586b1784c139716c719cc9d614c91b | a9705ebc3a6f95160ad9571d48675bc59876bd32 | refs/heads/master | 2022-07-12T23:43:24.452049 | 2021-08-09T12:54:18 | 2021-08-09T12:54:18 | 247,996,275 | 5 | 1 | null | 2022-06-26T00:21:48 | 2020-03-17T14:50:42 | HTML | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
url = "https://www.baidu.com"
browse... | [
"13767927306@163.com"
] | 13767927306@163.com |
4cac7bbd91f2ee70771624bc6cc8a2c4bfff9f5f | 3ea45d6acd362a646e906eac31ab6d3ea019d727 | /qaeval/tests/scoring/scorers/lerc_test.py | cadff9977a9b00b52775e5e6b44447cb724e1300 | [
"Apache-2.0"
] | permissive | rajhans/qaeval | 9747dea5dd0a234cc3df7837d6cbc0406b5d1b03 | dd7273183dd1b2c9995115310ef041daa953ca81 | refs/heads/master | 2023-07-10T04:15:05.399369 | 2021-08-03T02:22:15 | 2021-08-03T02:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import os
import pytest
from qaeval.scoring.scorers import LERCScorer
from qaeval.tests.scoring.scorers.scorer_test import TestScorer
@pytest.mark.skipif('LERC_MODEL' not in os.environ or 'LERC_PRETRAINED' not in os.environ, reason='LERC environment variables not set')
class TestLERCScorer(TestScorer):
@classmet... | [
"danfdeutsch@gmail.com"
] | danfdeutsch@gmail.com |
14ae89f0d76dde18e5498cbc8cfee175078b9fb1 | c2aa972a4155a9d14e5208682fa4d0f1102b99d0 | /PyMailer.py | a87975d7371c52c72ce5054ae1506bb2b63b6832 | [
"MIT"
] | permissive | FrozenGirl-spd/automailer | d3500c0c788b81a80d32d715a92b365fbc6561b3 | b46e62d5ef3c48b15c681423adaf3a36158a6cd8 | refs/heads/master | 2022-05-27T06:22:16.762658 | 2020-04-28T17:53:36 | 2020-04-28T17:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import os
import smtplib # This module is defines an SMTP client session object that can be used to send mail
import imghdr #This module determines the type of image contained in a file
from email.message import EmailMessage
#Grab the credentials from Environment Variables locally stored on your system
Email_i... | [
"noreply@github.com"
] | FrozenGirl-spd.noreply@github.com |
79bef7120a9adbb9caf3a1a388176f20f58daf90 | e6572ae97327a7814a9ddd772aa2b8fc9ec0483f | /cogs/Makeemoji.py | 4a0ca81ab2254ef9adec22ddf86b6a5e79bf5a1b | [
"MIT"
] | permissive | izxxr/discord-emoji-stealer | be188010e2075a1ca82502bda97f75da786d196a | 5e34b7edac0f14cae21de2bd43c573cee0f7631f | refs/heads/main | 2023-05-06T16:18:44.278180 | 2021-05-10T09:10:41 | 2021-05-10T09:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | from discord.ext import commands
import requests
import discord
class Makeemoji(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def makeemoji(self, ctx, name, url=None):
if url:
file_request = requests.get(url)
try:
... | [
"noreply@github.com"
] | izxxr.noreply@github.com |
537d39ea66e7cc44ae00acb9282f590cf9ffb326 | ae8074a50ee666e46484e33bed7eb1cc16dfd0b8 | /notebooks/CaseStudies/executor_1.py | 04316c053eba23dd3c842d1844e318ff17f821f8 | [] | no_license | ayyogg0628/AnomalyDetection_MEAD | 72edb3c5f222c1d8c1f4fc7fc6d2ae17a757e254 | 0df68f91568726c40f5ff7309cf8f74bcc2af74e | refs/heads/master | 2023-03-18T22:22:17.045809 | 2020-07-07T23:44:59 | 2020-07-07T23:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,089 | py | import operator
import pickle
import numpy as np
import os
import sys
import time
import pprint
import inspect
from collections import OrderedDict
import matplotlib.pyplot as plt
import yaml
from sklearn.metrics import auc
import logging
import logging.handlers
import tensorflow as tf
import pandas as pd
tf.logging.set... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
daebbdca8eef6e5e32041ddcc0c62e19d77d24da | 27b9c6fd86bd1f27bb5abac66c85eaa005e928e1 | /directinfo.py | 09be6c1409c5cdda9fff2a9a5c9bcf463158e680 | [] | no_license | essefi-ahlem/web-scraping-with-BeautifulSoup | 02415e04165b4d3d7f3c241f098f966cffb243ca | c1f94b4c369312ca743dde8c7fa4165a79cfa57f | refs/heads/master | 2022-06-07T19:26:18.746611 | 2020-05-06T20:19:02 | 2020-05-06T20:19:02 | 258,362,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # -*- coding: utf-8 -*-
"""directinfo.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-cJh0axprUdwijWJ0HCRz7uN56ECBfQM
"""
#importing libraries
import bs4
from urllib.request import urlopen as req
from bs4 import BeautifulSoup as soup
import req... | [
"noreply@github.com"
] | essefi-ahlem.noreply@github.com |
150dd85450289d365d3b3802b6dc6442dc1c5738 | de9629b3afd37e9b9cf069a096129271f241d7e6 | /Code/HMM.py | 859d736321cccd60b64412b00edbd682f4c7516e | [] | no_license | GazeProject05/PythonCode | 6bc343b958acb7aa58c841b654e23fd9854f1e7e | c96f5d917308862a4a1cb695879ad0c1bac2eb8c | refs/heads/master | 2020-05-15T08:12:28.730234 | 2019-11-16T14:17:10 | 2019-11-16T14:17:10 | 182,155,622 | 0 | 0 | null | 2019-04-28T12:18:23 | 2019-04-18T20:49:23 | null | UTF-8 | Python | false | false | 12,528 | py | import pandas as pd
import numpy as np
import math as m
from scipy.stats import multivariate_normal as mn
import csv
#Reading data file
df = pd.read_excel('19Proband19.xlsx')
#Readig relevant columns of data
gazeEventData = df['GazeEventType']
b = df['PupilLeft']
leftPupilData = b.str.replace(',','.').astype(float)
... | [
"44416059+devesh1611singh@users.noreply.github.com"
] | 44416059+devesh1611singh@users.noreply.github.com |
1b11eb854f9ea3d9f3db117ffd7404cfc3d9f2d2 | 34d82d94f49e9bb228d827a4bb2aa29de1a7ffb3 | /cafe_project/content/migrations/0002_alter_meal_photo.py | 2042c69b1fbaf839856d27a84b8ff851aaaf8269 | [] | no_license | Zinko17/CafeProject | eb8504a72f8a11ba4d9d0eea2a102ddca7ac8004 | 5243aa84f138cf6f740e1e8ae4b359c058409026 | refs/heads/master | 2023-05-27T06:31:22.478258 | 2021-06-13T08:52:05 | 2021-06-13T08:52:05 | 374,962,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.2.4 on 2021-06-09 10:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='meal',
name='photo',
fiel... | [
"vovazin2@gmail.com"
] | vovazin2@gmail.com |
229358e72b33f7974234b83b16ad03b969cd8c66 | e31c3a6c866fc8537cd2ad25638bfe1b1102f53b | /danbo-backend/codes/danbo_backend/wsgi.py | b15a0aad0e7ebebc66efe13cb0ecd2ef2ac024f5 | [
"MIT"
] | permissive | StarDxxx/Software-Engineering-Project---Danbo | 8f781ce18fc63fa665bd588d30426dbe42d93115 | 2225cfe627548ba5af32b842a0bfa64d714fe777 | refs/heads/master | 2023-02-05T21:11:35.811793 | 2020-12-30T09:13:54 | 2020-12-30T09:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for danbo_backend 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"17307130121@fudan.edu.cn"
] | 17307130121@fudan.edu.cn |
e25e3fb611bdf6fa99186813f21592c175ee2b99 | 53ee800e1cd6b4cd3e834e049a74c67c5e32eaca | /conftest.py | d7d40aca37ed6a8b6431be82ec5d473360206d71 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sasobadovinac/ht | 482cd7e7c8ef351dd4bcb5bc9993ef3f74d8cab0 | de707506c00a3aefc2985008e98e9df0e7af9cb6 | refs/heads/master | 2023-02-09T04:42:11.961473 | 2023-01-23T02:21:06 | 2023-01-23T02:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import sys
import platform
is_pypy = 'PyPy' in sys.version
def pytest_ignore_collect(path):
path = str(path)
if 'manual_runner' in path or 'make_test_stubs' in path or 'plot' in path or 'prerelease' in path:
return True
if 'conf.py' in path:
return True
ver_tup = platform.python_version... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
3e457a379c73822f78cb65466214746ed00dbe11 | 7dd5e97066c15aafc3da0cf826c00df591e59342 | /adam_morrison/testFiles/genFakeData/portTest.py | 05d21eeea5f21a35ee2278d0174e464a60f578bc | [] | no_license | waggle-sensor/summer2017 | 47ac5ec21a44445bac848eb1405df2390f161482 | 4ee06ce6cc9fd9bcc3a3aba9540d37045132040b | refs/heads/master | 2021-01-01T20:37:40.583816 | 2018-03-08T19:45:27 | 2018-03-08T19:45:27 | 98,899,975 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import socket;
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('10.10.10.137',8000))
if result == 0:
print "Port is open"
else:
print "Port is not open"
| [
"adammorr@adammorr-desktop.lan"
] | adammorr@adammorr-desktop.lan |
ec3367618a33e5ef24929f6b41aaae828cb02e81 | d3e51b340a22b5924025e30f846302f62839335b | /api/models.py | 053dcf0c2f39bf5d7edf938940969b540a09faef | [] | no_license | benbryson789/drf-auth-ex | 98fff4f1a80ec54e9e8a225328139ab5b6e9dcb7 | 6a5a2b82959b2ccd14fd6e8dbf5b420f5bce81a3 | refs/heads/master | 2023-07-15T07:27:22.250314 | 2021-08-21T13:52:42 | 2021-08-21T13:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.db import models
class Advice(models.Model):
genre = models.CharField(max_length=100)
body = models.TextField()
def __str__(self):
return f"{self.genre}, {self.body[:20]}"
| [
"mowbray.chad@gmail.com"
] | mowbray.chad@gmail.com |
e9b5cf2445399642b2b7c925cbf7645c8e7e2f58 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /trinity/renderjobs.py | 394ddcb28608b85b76dfb5fc0412e2471051f7de | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\trinity\renderjobs.py
import decometaclass
from . import _trinity as trinity
class RenderJobs(object):
__cid__ = 'trinity.Tr2RenderJobs'
__metaclass__ = decometaclass.BlueWrappedMetaclass
def __init__(self):
... | [
"le02005@163.com"
] | le02005@163.com |
02bfe54d10807aad87934191d827ad29badd0bb4 | debacbb9a5c833334b36f1d89ddd3e3bce2cf054 | /ciphers/fractions/trifid.py | 81d7e3afa2ed392f533990872c57a776ff14c54d | [] | no_license | branislavblazek/projects | 35198a58afecb30988a65a84c72ebfc7d1cf871c | f028b37df5351e69abda974ea1f5ab1d0c4691f2 | refs/heads/master | 2021-12-22T01:07:13.664219 | 2021-12-14T07:15:05 | 2021-12-14T07:15:05 | 234,887,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,414 | py | from pprint import pprint
class Trifid:
def __init__(self):
self.alphabet = [chr(i+65) for i in range(26)]
self.alphabet.append('.')
self.len = len(self.alphabet)
def intersection(self, lst1, lst2):
lst3 = [value for value in lst2 if value not in lst1]
retur... | [
"branislav.blazek.bb@gmail.com"
] | branislav.blazek.bb@gmail.com |
2d29c7de460a6f7702e0e41e00c5019dfd8918a8 | 0ceb04ce763cf8b73f9b71a211990070abc1f5bb | /src/models/dataset.py | df71f2d8f3edb21d4ece1c2736dba94359979ca5 | [
"MIT"
] | permissive | fangzhimeng/MachineLearningRegressionBenchmark | e04412581ca21d82f4bbff64ba29ec9795337cac | 42a83a1261dbf6b30624e9950db5b2d297622d76 | refs/heads/main | 2023-03-21T04:57:51.633945 | 2021-01-10T20:20:24 | 2021-01-10T20:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | import copy
from pandas import DataFrame, concat
from numpy import array, ndarray
class Dataset:
_dataFrame: DataFrame
_label: str
def __init__(self, label: str, dataFrame: DataFrame):
self._dataFrame = dataFrame
self._label = label
self.prepareDataset()
def getDataset(self):... | [
"iulian.octavian.preda@gmail.com"
] | iulian.octavian.preda@gmail.com |
023d9f5a2081647f38c2abb19c67c5d07e7f1bac | fb3f2c3f83fbfe894f01ea514c760371ef05d54f | /Algorithm/chapter5/flatten.py | 0b99312d0778169c809ff206410031189ac979eb | [] | no_license | jonXue92/PythonGit | 8160220a3d51fb6a317702a2b50e8ca3306a8f0e | a9358ac79a47b3d1fd072a4af603bf07a89b1a2c | refs/heads/master | 2020-04-02T05:25:51.032912 | 2019-04-12T04:18:15 | 2019-04-12T04:18:15 | 154,076,228 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | # -*- coding: utf-8 -*-
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Flatten:
last_node = None
def flatten(self, root):
if root is None:
return
if self.last_node is not None:
self.last_node.... | [
"xzywrz@gmail.com"
] | xzywrz@gmail.com |
2eda323e1df29dba8b357199e32a196401cea08e | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_2_1_neat/16_2_1_latsyrc11235_1.py | da55e94217b12acb619e4ed1d23e38ecc1f4df14 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 2,143 | py | f = [line.rstrip() for line in open('/Users/roshil/Desktop/A-small-attempt0 (2).in')]
out = open('/Users/roshil/Desktop/out.txt','w')
out.truncate()
line = 0
testcases = int(f[line])
line += 1
for i in range(1, testcases+1):
r1 = f[line]
line += 1
r1 = r1.lower()
word = [k for k in r1]
s = []
wh... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
25facb350837f954b32639f52229de7957d57c7f | 19b857585fa6509b61b28852546db96237a9aa20 | /spider_project/baike_spider/html_parser.py | 04fd841dc1a138da6ff8ec9d78d6d8ab775e05d8 | [] | no_license | hanxueda/python | 296fbd9aba290f538d304877ade36a365e041f75 | c741f413b4e6909924bf0243e1dafc6ccc5fe2f7 | refs/heads/master | 2021-07-17T04:42:10.722626 | 2017-10-23T08:17:57 | 2017-10-23T08:17:57 | 107,843,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | import re, urllib.parse
from bs4 import BeautifulSoup
class HtmlParser():
def parse(self, page_url, html_cont):
if page_url is None or html_cont is None:
return
soup = BeautifulSoup(html_cont, 'html.parser', from_encoding='utf-8')
new_urls = self._get_new_urls(page_url, soup)
... | [
"hanxueda@qq.com"
] | hanxueda@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.