blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71ca5c7fe9b491cae71c8bcce5ad44d000311f75 | 1cf0344795731c3ea4a06c3f9776367ee6e3d91f | /other/BuckeyeProgrammingContest/booo.py | 1b51bc4ba7019b2a38481a9a5bc5578ea124a750 | [] | no_license | Alex7Li/ProgrammingContests | cf900303ef6ea34d686ea005ba810aabcc6bcc3d | cf6aa6758beb4cc5ca458fcda4ba8dd258e639c1 | refs/heads/master | 2023-03-11T04:14:49.577346 | 2023-02-24T20:48:29 | 2023-02-24T20:48:29 | 100,300,632 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print("B" + "O" * int(input())) | [
"7alex7li@gmail.com"
] | 7alex7li@gmail.com |
957af7ab98048f3fc17fd15cc756be737df7f454 | 72bf58b8366863b385aec107d5db4b651bf1526a | /analysis_pipelines/pipeliners.py | 9d361ca984e31fee33055c11bd166ff700a6639d | [] | no_license | ngleadall/programming_examples | f30029f148dd6d97715be69533890ed018bdcff8 | 742dc8678ad5348a4672e2853e01900cdcd6024c | refs/heads/master | 2021-01-10T06:22:51.581599 | 2016-02-10T22:52:55 | 2016-02-10T22:52:55 | 51,436,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # pipelining script for creation of simple bioinformat analysis pipelines.
# set __verbose_level to control detail printed to STDOUT as required.
#
# Runs commands by creating daughter processes and checking for exit status.
#
# Nicholas Gleadall - nick.gleadall@googlemail.com
import subprocess
__verbose_level = 0
... | [
"nick.gleadall@googlemail.com"
] | nick.gleadall@googlemail.com |
4ca230303453875542b953056c28f281a951c076 | ac8dc53657fb8f5e5abd6a00f196b605ad032e5f | /run_nai.py | bcac8f8cfea08dfa284fc17e5210cca7612a61ac | [
"MIT"
] | permissive | wojtekwalczak/FB_datalab | d1f105a1800484e2535708e93f6768c8daac1363 | 571de13efadb41224583df1aaadd2fba92efa497 | refs/heads/master | 2020-05-18T00:33:44.253376 | 2014-06-27T07:08:19 | 2014-06-27T07:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/env python
# -*- coding: utf-8
import sys
from lib.nai.cv import NodeAttrInferCV
if __name__ == '__main__':
z = NodeAttrInferCV()
methods = z.list_methods()
if len(sys.argv) < 2:
print 'Usage: %s <%s>' % (sys.argv[0], '|'.join(methods))
sys.exit(1)
z.register_method(sys.argv[1])
... | [
"ww@tosh.pl"
] | ww@tosh.pl |
53dc61ca8ee4c7f7a59a654bcb83f31721d9708b | c0be876bcd2a5f5a854b2f3e784ca06f2a0bd375 | /oop/class_porperty.py | 0d12950309cde9402eb698aeba6c321f4777a657 | [] | no_license | wjun7979/liaoxuefeng | f2cee7c7bdc2b85f6f184dbdc84b013906ec2cdd | 81637aae17b9f3efac3c8132dfc7b85bb6314158 | refs/heads/master | 2023-01-10T13:20:01.618163 | 2020-07-23T00:43:48 | 2020-07-23T00:43:48 | 253,358,686 | 0 | 0 | null | 2023-01-06T12:15:32 | 2020-04-06T00:18:01 | TeX | UTF-8 | Python | false | false | 763 | py | # -*- coding: utf-8 -*-
# 请利用@property给一个Screen对象加上width和height属性,以及一个只读属性resolution
class Screen(object):
@property
def width(self):
return self._width
@width.setter
def width(self, value):
self._width = value
@property
def height(self):
return self._h... | [
"wjun7979@gmail.com"
] | wjun7979@gmail.com |
6aafd571209d20f20d00c13c28a6c81f2c322441 | 00cb0d518fe3f7d7fb0e345e5b4532587574153c | /DataDriverProject/Dat_Test.py | efe21c1e304de0c19286c2076a7bf952a252497a | [] | no_license | xiaohongjun123/MyPythonCode | 3b2065eea42a3bc622acaea25da82afe0f0f1135 | 06da2035e6b4b98660c9b90c54117a78f78c411e | refs/heads/master | 2020-06-06T07:22:19.261995 | 2019-06-26T07:01:31 | 2019-06-26T07:01:31 | 192,676,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from selenium import webdriver
import unittest,time
from LogCommon import logger
import traceback
import ddt
import HTMLTestRunner
import os
from selenium.common.exceptions import NoSuchElementException
logger = logger.mylog('test').getlog()
@ddt.ddt
class TestData(unittest.TestCase):
def setUp(self):
self.... | [
"979669145@qq.com"
] | 979669145@qq.com |
7df3bcbfa42d4a7f74ba3a7e9dbcecc69c3e55eb | f88e49b5aa336cea3bfd2fa46bb23048f6bfe875 | /gaussfold/aa/asparagine.py | ac313a65d071a28e58827c86e16e2d7054d3d2ea | [] | no_license | AntoinePassemiers/GDE-GaussFold | c50a05992447f1909b3357db40620e3ede3ffc16 | 323600a75a7b97286fd66d478111140b9496b076 | refs/heads/master | 2020-05-09T23:07:11.930093 | 2019-08-15T21:19:33 | 2019-08-15T21:19:33 | 181,492,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # -*- coding: utf-8 -*-
# asparagine.py
# author : Antoine Passemiers
from gaussfold.aa.amino_acid import AminoAcid
from gaussfold.atom import Bond, Group, Carbon, Hydrogen, Oxygen, Nitrogen
class Asparagine(AminoAcid):
def __init__(self, **kwargs):
AminoAcid.__init__(self, 'ASN', 'N', **kwargs)
... | [
"apassemi@ulb.ac.be"
] | apassemi@ulb.ac.be |
8c595b965a9063c226bcba10f9c8cac6b78c0f65 | 5ba78d15c0da7ea138230fae9159fbbacde7fbac | /backslashx90/old_tests/map.py | d518f8f225f64160af68735f44fac5568bed1923 | [] | no_license | nbroeking/Basic-Python-Compiler | f8fe23bdfffc85f7142ed0dfaeca830bc25a3e69 | 8e38a1d8f389a183bf4b61a3bd554ca5320a851a | refs/heads/master | 2020-12-07T13:41:55.425269 | 2015-04-30T03:01:38 | 2015-04-30T03:01:38 | 29,210,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | def my_map(f, lst, length):
def map_p(f, lst, idx, length):
return [] if idx == length else [f(lst[idx])] + map_p(f, lst, idx+1, length)
return map_p(f, lst, 0, length)
leslie = [1,2,3,4]
def mul(x, y):
return 0 if x == 0 or y == 0 else x + mul(x, y +- 1)
new_leslie = my_map(lambda x: [mul(x,x)] ... | [
"devel@archaen"
] | devel@archaen |
69474564a18666a0963c7e33f1576ef89167c51c | f53ab7c26e342e857cbac30869b717eaf393a9cf | /music_sorter/wsgi.py | 4e149915b514000e3d94e947dadf71d6e9b534c7 | [] | no_license | KellyInnovation/music_library | 36afd8f31a5540ca59a294ef82ecd3969300c1ac | 2b427c0cb02bab92ca3489539420f2ddcf3b7a4d | refs/heads/master | 2021-01-21T23:45:47.731819 | 2016-09-20T20:15:57 | 2016-09-20T20:15:57 | 68,740,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for music_sorter 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"kelly.wright@kellyinnovation.com"
] | kelly.wright@kellyinnovation.com |
13489a250615136c22647f9c7fcdca9254946a9e | f06824390d7dc3e6e8739b962eacf583cfa2c8b2 | /Week 0/a5 - Practice.py | 20a047d2e5d8316f9a872b7e0a466f8a338b0eb7 | [] | no_license | Jobling/Coursera-Python | 0e9b6a07e2ddefed441402cbad5357b8cda64793 | 4447511a5c3bd5bea6b529609f07ab09bef18c09 | refs/heads/master | 2016-08-12T20:13:49.964191 | 2015-10-18T21:47:20 | 2015-10-18T21:47:20 | 43,599,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Compute the circumference of a circle, given the length of its radius.
###################################################
# Circle circumference formula
# Student should enter statement on the next line.
print 2 * 3.14 * 8
###################################################
# Expected output
# Student should look... | [
"tiago.jobling@gmail.com"
] | tiago.jobling@gmail.com |
3ad363f6c59cd2e4efd917af8214322fccedf9fd | a8d7c9c20075e6ab51d367d34b8209434031e075 | /recognize_faces_image.py | 301df6f4cda045effebd20c529798120c7666c18 | [] | no_license | wenhengqiu/face_recognition_resources | 762d7a80a2f006212031bdcd32be2a913d0c2dcc | 7059dac3737eb14643782420002e4a2a73a89727 | refs/heads/master | 2020-03-20T23:31:38.015257 | 2018-06-19T06:41:13 | 2018-06-19T06:41:13 | 137,850,484 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | # USAGE
# python recognize_faces_image.py --encodings encodings.pickle --image examples/example_01.png
# import the necessary packages
import face_recognition
import argparse
import pickle
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-e", "--encod... | [
"noreply@github.com"
] | noreply@github.com |
b5663981c33259a4f4d08baba8001b0fa1b293f0 | 7398cc3833cbc0ce302c13c39f7b0d6e31dda721 | /CLASS/Python_practice.py | f290a957a87b47a0bed2b9bb06763fea0a289e5b | [] | no_license | opeoje91/Election_Analysis | 19d0095ea8b33dd44b3308b253e6cf7c0138e2fb | 932c9a457c18225915923a63f5e4136b2c2ead28 | refs/heads/main | 2023-03-27T09:27:26.193147 | 2021-03-23T22:11:39 | 2021-03-23T22:11:39 | 348,795,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | #counties = ["Arapahoe","Denver","Jefferson"]
#if counties[1] == 'Denver':
# print(counties[1])
#counties = ["Arapahoe","Denver","Jefferson"]
#if counties[3] != 'Jefferson':
# print(counties[2])
##Membership and Logical Operators
counties = ["Arapahoe", "Denver", "Jefferson"]
#if "El Paso" in counties:
# print("El ... | [
"76888695+opeoje91@users.noreply.github.com"
] | 76888695+opeoje91@users.noreply.github.com |
52f9bc9a58ff7b20a5649bc9b9f31a563ab06e77 | 196fa30619180e6234e7927433b8014e6f1bb184 | /TurismMedical/afectiuni/admin.py | f664ec7478f1e34ac825bc13b6cc5a88f541bcfc | [] | no_license | CristianCondruz/TurismMedical | 30e6442cac73a19cc3fa01190f74ab5645282175 | 6a62f02759ab50b91068a5b58f68346a46ac340b | refs/heads/master | 2020-07-25T20:42:45.853945 | 2019-09-14T11:40:36 | 2019-09-14T11:40:36 | 208,418,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(StatiuniBalneare)
admin.site.register(Afectiuni)
admin.site.register(AfectiuniStatiuni)
admin.site.register(BazaTratament)
admin.site.register(ConsultatieMedicala)
admin.site.register(Cazare)
admin.site.register(Pro... | [
"cristi.condruz@gmail.com"
] | cristi.condruz@gmail.com |
191f542f46a52e8db54d09c0ba6198dd8b8432fc | 01c45c0a44478cd306ffe7e3ac254f8fe280214e | /Search.py | 01aa4dce209153be4daef66b3a505b1127c5ddd5 | [] | no_license | Elhaouri98/Article-Crawler | d02b7508540f023a94c85df08643c9d4ec16d8c5 | 8d5ef33074920616d5229f9404a58c05e8d0dec9 | refs/heads/master | 2022-10-16T17:13:25.045592 | 2020-06-07T16:41:00 | 2020-06-07T16:41:00 | 269,771,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | import tkinter as tk
from tkinter import ttk
import tkfontchooser as tkf
import pymongo
import os
import ssl
import dns
cluster = pymongo.MongoClient('mongodb+srv://user:user@cluster0-kiqxz.gcp.mongodb.net/test', 27017)
db = cluster['theguardian']
collection = db['articles']
collection.create_index([('author', 'text')... | [
"elhaouri.lahoucine@gmail.com"
] | elhaouri.lahoucine@gmail.com |
8005c05612bbec43b6ca81c5de5062dd6c6fc1ab | bc8d861814d85c240901c30ad4036611d961ffc0 | /src/dicttree/qt/log.py | 4acc51aa531ec8dafbd53ac0cffb84ad2f4eff12 | [] | no_license | chaoflow/dicttree.qt | 2178c306fcc9aea4c653c8e045c5172b702c8750 | 5652415db383ffa2ce62f068edeba1f2528354b2 | refs/heads/master | 2016-09-05T14:41:05.872310 | 2012-06-17T23:57:37 | 2012-06-17T23:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from dicttree.log import getLogger
logger = getLogger('qt')
getLogger = logger.getChild
| [
"flo@chaoflow.net"
] | flo@chaoflow.net |
7cfc5f00b47415235a0108dd8aef5bdf73c8ca66 | 723a2ee8404146edc4bcc2994496a60f3bbcfc1b | /exceptions.py | 3f65b25d31f6144293554712948a7d2f72f97a61 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | shukyp/Python-Lang | d836f909f2598d0241b3dfefed01e63bf7e8ebab | 24279f3a7446709e981ae6eea3b7bc54a833403a | refs/heads/master | 2021-05-23T13:20:13.009715 | 2020-04-14T14:44:20 | 2020-04-14T14:44:20 | 253,307,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,993 | py | #===========================================================================
# Exceptions Module
#===========================================================================
"""
# Deals with the subhect of exceptions:
# Raising, Catchingm Built-in and user exceptions
# Exception Object is... | [
"shukyp@bezeqint.net"
] | shukyp@bezeqint.net |
6617fa9ce7e7d448730be1fe578a0ecde00cd495 | 065380d2df34e635655b5ad7ba52c430063bf59c | /faceRecognition/models/nn2.py | e0c6a95a1cebf5e6e2db645fd391f0d41a34ccfb | [] | no_license | nicholaspun/IZ-Net | ace6ec23a31163eb0bb9f7a0286f98e5f12f51a7 | d76f9c567c0bd087e8cf0937b5c3ea47dabf492b | refs/heads/master | 2023-01-07T23:31:11.998391 | 2020-11-08T18:49:05 | 2020-11-08T18:52:15 | 288,926,084 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | from keras import backend as K
from keras.models import Model
from keras.layers import ZeroPadding2D, BatchNormalization, Concatenate, Conv2D, Dense, Input, MaxPool2D, Flatten, Lambda, AveragePooling2D
def l2_norm2d(x, pool_size=(2, 2), strides=None, padding='valid', data_format=None):
if strides is None:
... | [
"nicholaspun99@gmail.com"
] | nicholaspun99@gmail.com |
c813db17e0b517e6d6d3eb324d57cdbd6b573e6a | 95d0806ce766805beffba8144e4b83076b5f8b91 | /hongwai/exam/thermo+hongwai_v01_hongwai.py | 381646566d49c0ddec0464b85706d2008c0c75f5 | [] | no_license | chengw99/dell | 1f4d5a2f20f3e61208266dc4a0adc4e18cd44ff8 | 4f932c3f0d3deb545700a9616456fb0beeb733d0 | refs/heads/master | 2021-04-15T08:53:49.011550 | 2019-03-23T14:56:41 | 2019-03-23T14:56:41 | 104,961,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 14:34:03 2018
@author: DELL
"""
# 此程序根据 thermo+hongwai_v01_pic_coord.py 选出的数据范围 对红外数据进行面平均
# 因为每个时间红外数据选择的范围都不同,所以不能做批量处理
import numpy as np
import pandas as pd
ipath = r'E:\py_data\hongwai'
opath = r'E:\py_output'
data = pd.read_csv(ipath+'\\'+'one-facing south-23... | [
"951849311@qq.com"
] | 951849311@qq.com |
0737a2f6e17c65219c251686d16823aafc690950 | 414db33a43c50a500741784eea627ba98bb63e27 | /0x0B-python-input_output/3-write_file.py | ae0c2b1e364ed751046127fc160d45a253030029 | [] | no_license | rayraib/holbertonschool-higher_level_programming | 2308ea02bd7f97eae3643e3ce0a6489cc1ad9ff5 | 6b4196eb890ffcb91e541431da9f5f57c5b85d4e | refs/heads/master | 2021-09-14T09:12:26.664653 | 2018-05-11T03:23:12 | 2018-05-11T03:23:12 | 113,070,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/python3
'''write to file'''
def write_file(filename="", text=""):
'''open file to write text and return the number of bytes weritten'''
with open(filename, 'w', encoding='utf-8') as f:
return(f.write(text))
| [
"binitarai11@gmail.com"
] | binitarai11@gmail.com |
1d24e571d3b5b5e5d585925e9c05b57940e5ce84 | 91e01736514cd2836ea71fbdf8f1e80b0e544d89 | /Learning step/Kelas online/latihan/latihan object.py | ce597767ba04f72318fb540fdf605c7746a3ef47 | [] | no_license | TrishaAndalene/mySchoolProject | 3c1fe55b070bfbf1593077054e555218fa2a4bbd | ab8e2e680444eadacb9d9e58d1ec7d166963ef18 | refs/heads/master | 2022-12-01T23:08:01.336556 | 2020-08-15T03:55:24 | 2020-08-15T03:55:24 | 274,874,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class Student:
def __init__(self, name, nickname, grade, age, study):
self.name = name
self.nickname = nickname
self.grade = grade
self.age = age
self.study = study
student1 = Student('Jesse Ario', 'Jesse', 8, 14, 'IPS')
print(f"Halo ini teman saya namanya {student1.name}")
print(f"Kamu dapat memanggilnya... | [
"trishaandalene2006@gmail.com"
] | trishaandalene2006@gmail.com |
7dde55dd8412edc8773a6e87da385af3f55c7e68 | d84f858b917ace9a075902f08f7403a8c7a723ee | /tests/data/io/test_download.py | b73911d29a132073182f4ca48e5618f4ada7aa49 | [
"MIT"
] | permissive | moomoofarm1/yann | c7b153e9d6dee5c30dc2467692c9564da1615d22 | bdf04e883b1d4df462bb64eb686c948f46df4418 | refs/heads/master | 2020-12-03T21:42:36.590648 | 2019-12-26T21:15:37 | 2019-12-26T21:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | from yann.data.io.download import Downloader
class RemoteDataset:
def __init__(self, downloader: Downloader):
self.downloader = downloader
def prefetch(self, indices=None):
for n in indices:
self.downloader.enqueue(self[n][0])
def __getitem__(self, item):
return 'id', ['labels']
def test_do... | [
"michalwols@gmail.com"
] | michalwols@gmail.com |
ab3480f5c4a85d3fd72aa0503fc6bee836ca37d5 | cc8b2a5953f1d9a3d1f68ddbbf754612fd9913f7 | /supnotebook.py | 3ca3fca4437528dcdefa9247f52210a43c3c1464 | [] | no_license | SachinMaharana/superhero-notebook | fe1023ee2def71340effd9b4bbf1e3afedb841d4 | 8c523e4968d76a23b6efc57a5757d8063090396a | refs/heads/master | 2021-01-19T03:27:48.654245 | 2016-08-11T17:57:47 | 2016-08-11T17:57:47 | 65,483,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import datetime
last_id = 0
class Hero:
def __init__(self, name, place):
self.name = name
self.place = place
self.creation_date = datetime.date.today()
global last_id
last_id += 1
self.id = last_id
def match(self, filter):
return filter in self.name or f... | [
"sachin.nicky@gmail.com"
] | sachin.nicky@gmail.com |
682878908c9624f81e0c822074e0971a156d2eb3 | c20929d5279e029918e12b4ae95611f8fafc6c91 | /caffe2tf.py | b90e2899486cd6049c88e9cf94a29e9ba16bf053 | [] | no_license | ChangdeDu/fMRI_Reconstruction | c1b7959176b44536438dcc6b79728636b8f35877 | d0a0ae67a73821fadf2665745882e190f600f7bf | refs/heads/master | 2021-09-23T02:17:26.655370 | 2018-09-19T23:17:55 | 2018-09-19T23:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | try:
import caffe
except ImportError:
print("!!!! Caffe import error")
pass
import numpy as np
from collections import OrderedDict
import tensorflow as tf
import os
def save_model(deploy, model, savename):
net = caffe.Net(deploy, model, caffe.TEST)
params_ = OrderedDict()
for name, layer in ne... | [
"sreejan.kumar@yale.edu"
] | sreejan.kumar@yale.edu |
307c56653999dee4eb9b8b5df9c018dff5c640c2 | 9d2c6f64e7a302e2c2ac752329c2c0fda34bb387 | /Conf/setting.py | 3856de92c8a8f4ecea9ac3f29e655e5262e46ad9 | [] | no_license | Eternity-ZYQ/airtest_demo | 9afc672f29dcd059ac8995e7b08d96c5c2aacbc2 | 79f5029631b80c045cc4b0db3ffc0ef169b83387 | refs/heads/master | 2023-05-31T18:15:39.546984 | 2019-02-02T12:00:38 | 2019-02-02T12:00:38 | 380,183,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py |
"""
统一管理公共的库,不要添加相对路径的
"""
import os
class Setting(object):
path =os.path.dirname(os.path.abspath(os.path.dirname(__file__)))+os.sep | [
"728661182@qq.com"
] | 728661182@qq.com |
070ef5ebe9edfb309d999ffe174f5ac9667d450a | 32c8b6a398d9fb57fdb0ba5f1a646a7dea031243 | /apidemo/manage.py | 871903f7e7812f50809713231932bd387300a9f0 | [] | no_license | jungzi1/starting-django-ninja | 33dc55f125c0a0acbecc2f5a2f191b7a67eeddf1 | 14ebbe604f09cfd2d75c708a6b07e4f545b06968 | refs/heads/main | 2023-08-13T21:14:09.775583 | 2021-09-09T02:45:47 | 2021-09-09T02:45:47 | 394,198,162 | 1 | 1 | null | 2021-09-09T02:45:48 | 2021-08-09T07:44:37 | Python | UTF-8 | Python | false | false | 663 | 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', 'apidemo.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"glenn.adoc.co.kr"
] | glenn.adoc.co.kr |
e0dc310a32c7544b63a6e60330efec4214cc54b6 | 0a8ddf09317ffe4eb002e56df4e193dfcca77f0a | /NameConverter.py | 3337e131b17af9b48f518a338573532330888ca3 | [] | no_license | Jribbit/GenCyber-2016 | 1608dc91a6a1756219b73b67bbead173a903d4d1 | ccbeed59146a29eda368e064b05ae6eff31ec194 | refs/heads/master | 2021-01-20T18:27:42.056716 | 2016-07-22T15:15:16 | 2016-07-22T15:15:16 | 63,962,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 7 14:20:47 2016
@author: student
"""
def asciihex(name):
print("Hex Name: ", end="")
for x in name:
if x.isalpha() == True:
x = ord(x)
x = hex(x)
print(x, end=" ")
n = input("Name: ")
asciihex(n) | [
"noreply@github.com"
] | noreply@github.com |
a80f3367f2b74b2e587420bdc8b338247e81ce5c | 2bb997c3786efdd2fd7fd418f70be1f05b5e8f95 | /test_dataframe.py | a252964ceb7855ee7d7fbc867ed7035314d963eb | [
"MIT"
] | permissive | UWSEDS/homework-4-documentation-and-style-penguin77777 | 9e0f4f748e681193418d0756ac1689d502ba098a | 6c3fc7fbd04695e80259adac4590250dc18832e8 | refs/heads/master | 2020-09-03T04:14:19.188266 | 2019-11-06T05:18:40 | 2019-11-06T05:18:40 | 219,383,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | # coding: utf-8
'''Test Files for HW3 and modified for HW4 based on PEP8 and tested by pylint.
This file contains 11 tests.'''
import copy as cp
import pandas as pd
import numpy as np
import check_dataframe as checker
def data_downloader(name):
'''Download and load test data. It takes a string and returns a dataf... | [
"yxu666@uw.edu"
] | yxu666@uw.edu |
52fc86278c6178bed247ebe135a06ea8b9428ff7 | 0691d9503dac9a17197726e173a773ea23d39a87 | /venv/Lib/site-packages/vedo/dolfinx.py | 7c68530014a932b1ccd1e9a081d050ea74f39f36 | [] | no_license | Aigor35/Computing_exam | 643d2217bafe5acb70eb9b99b973f2bdb9d2cfa7 | 88e3474a6724dda7b53ec4f25274a78caf29751a | refs/heads/master | 2023-08-27T16:21:53.716699 | 2021-10-18T16:44:40 | 2021-10-18T16:44:40 | 376,243,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,903 | py | import vtk
from vtk.util.numpy_support import numpy_to_vtk
import numpy as np
import vedo.utils as utils
from vedo.utils import printHistogram, ProgressBar
import vedo.docs as docs
from vedo.colors import printc
import vedo.settings as settings
from vedo.settings import dataurl, embedWindow
from vedo.mesh import ... | [
"alexcolavecchia1356@gmail.com"
] | alexcolavecchia1356@gmail.com |
1418882e8157c17184e523224e2697fc905e4c6b | 41efee341cea5605549e61ea0277e592f2a308d9 | /gym website/main.py | 40c409a3f5c5c55776ec3cfad3fdfdb5e92232f0 | [] | no_license | noorshanu/gym-website | 1090d6a778e2c8fa99c3cd421cc6bdab615e7a74 | bb6fe86a3aad039a022bdd83b2577ff1f9a1c062 | refs/heads/master | 2020-08-26T19:44:13.789804 | 2019-12-08T08:42:12 | 2019-12-08T08:42:12 | 217,125,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | from flask import Flask, render_template, request,session,logging,url_for,redirect,flash
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.orm import scoped_session,sessionmaker
from passlib.hash import sha256_crypt
from flask_login import LoginManager
from flask_mail import Mail
import json
from dateti... | [
"noreply@github.com"
] | noreply@github.com |
09d0608d616c3fb1a0ec0cc817ff935fbc85a61b | 7ade5b48aa5b62594bcbd265030a2a7307ae3b2d | /kaggle_nuclei/full_image/preprocessor_gan_training.py | 4c13198bb3cd71db1428e4444639c55d1f2e7a1b | [] | no_license | SSS135/kaggle_dsbowl2018 | 9c5ca1b490bdbc806f8213c2f6564cbdf1c852d3 | 59d9eab05928178356e8bf744a67607c89f04761 | refs/heads/master | 2020-05-29T15:31:31.083189 | 2018-07-21T15:32:58 | 2018-07-21T15:32:58 | 189,217,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,003 | py | import copy
import math
import sys
import torch
import torch.nn.functional as F
import torch.utils.data
from optfn.cosine_annealing import CosineAnnealingRestartParam
from optfn.gadam import GAdam
from optfn.param_groups_getter import get_param_groups
from torch import nn
from torch.autograd import Variable
from torch... | [
"sss13594@gmail.com"
] | sss13594@gmail.com |
65897456771ac8e12d672fe22229a025e1334994 | 7ac0577053bbb8cf83a9d5feb4c7d0b325a2dd28 | /if-else.py | 6c6e42afa5f61276fe0a35efb0e528d63a64d0ba | [] | no_license | QiangBB/python_learning | 1007aa9807fbe4a7f2ddc5f843e9c3290581ef21 | 573378070b28ea057a413f75b64e56bf61b7cef9 | refs/heads/master | 2020-06-20T13:17:49.190903 | 2019-07-16T06:34:37 | 2019-07-16T06:34:37 | 197,134,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | x=1
y=2
z=0
if x<y<z:
print('x比y小,y比z大')
if x==y:
print('x与y相等')
elif x>y:
print('x大于y')
else:
print('x与y不相等')
| [
"752865241@qq.com"
] | 752865241@qq.com |
bca23f903311a368aa82760ee5be04a2b46ddd94 | dcfd89a6a8ebf3b32948dbf93e222063c223bec4 | /v2/api/utils.py | d2c3dd7fc2947f486115eb4c86ea84801e7f9616 | [] | no_license | SirYaro/kdm-manager | a19ff1d7711bc39a2de9e8f740cb03fac28a52b7 | 263d1330764b915f3acb0771e58845020cce06b2 | refs/heads/master | 2021-09-05T05:47:58.511224 | 2018-01-24T15:09:18 | 2018-01-24T15:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,189 | py | #!/usr/bin/python2.7
# general imports
from bson import json_util
from bson.objectid import ObjectId
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
import email
from email.header import Header as email_Header
from email.mime.multipart import MIMEMultipart
from email.mime.text... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
294a4d954b752e5bd46a91533b451568f6ae9649 | d546a3a1c66c4e5493c330a6f7063e1849395a54 | /app/recipe/views.py | af097beeef07d8ca34f95f1aee806e953c00e1d3 | [
"MIT"
] | permissive | masoudr/recipe-app-api | a0ef10d46d8d3310582de24e03aa2ea317945d91 | 8c397ecddd94a250d1328ec4e1a3e9d8f1d9102f | refs/heads/master | 2020-08-09T19:41:15.619271 | 2020-07-28T06:08:14 | 2020-07-28T06:08:14 | 214,157,823 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Tag, Ingredient, Recipe
from recipe ... | [
"work.rahimi@gmail.com"
] | work.rahimi@gmail.com |
fdce2f80d345ab41a55076388777658352217168 | 4d2531f7f4984109123bb70eb0ac3c8c08bb12e8 | /trash/faster_rcnn/.ipynb_checkpoints/faster_rcnn_r50_fpn_dcn_1x_trash-checkpoint.py | e845540dfb67a6500a02466dcf28428989daeb7f | [] | no_license | jhj9109/Segmentation_ObjectDetection | 0a3e8f92a90bed21a93b9c4cba7029330c1c4d2b | f40a0291b8513228be7475321ca59a1057f0aa27 | refs/heads/master | 2023-05-09T03:44:16.145448 | 2021-05-22T16:36:15 | 2021-05-22T16:36:15 | 369,830,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | _base_ = 'faster_rcnn_r50_fpn_1x_trash.py'
model = dict(
backbone=dict(
dcn=dict(type='DCN',
deform_groups=1,
fallback_on_stride=False),
stage_with_dcn=(
False, True, True, True))) | [
"jhj91_09@naver.com"
] | jhj91_09@naver.com |
6d019c12054027b3a9066f738d69ebf9cf3802d5 | 8fc7bf326f624d3bfcb45fcf5c1ff15311e5e20e | /final_project/poi_id_v1.py | c459ede18c4cd49f0ce507940f111ade04637bc7 | [] | no_license | umeshjn/IntroductionToMachineLearning-CourseWork | 45f9a3658f9c782a0d78901384eaaa22d132fd3e | ced3ddaa9aa09fa52c164cfdcd837d841262a958 | refs/heads/master | 2021-01-10T02:01:45.417296 | 2015-05-23T07:00:03 | 2015-05-23T07:00:03 | 36,111,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,014 | py | #!/usr/bin/python
import sys
import pickle
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from tester import test_classifier, dump_classifier_and_data
from sklearn import cross_validation
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_select... | [
"u.jnms08@gmail.com"
] | u.jnms08@gmail.com |
ea2782e8c450f6c5a2dc9fb342bdfef834919c34 | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /gt_order_mongodb/conf/source_getdata0417.py | 4d878aad59c7d787d1dd3cd6a30173596d185ecb | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | #ecoding=utf-8
__author__ = 'Administrator'
import sys
reload(sys)
import datetime
from dateutil.parser import parse
sys.setdefaultencoding('utf-8')
from source_mysql import *
sys.path.append('..')
from conf import *
import model
class GtOrderDao(Mysql):
def __init__(self, dbtype="local"):
Mysql.__init__(s... | [
"744996162@qq.com"
] | 744996162@qq.com |
2b9b161c731cabe1c1168f06c51e41c794d74f8e | 77336f6852a97fea47e0c8abb32596def18b7bcf | /python/基础/1.py | 09b7825505c4a1833c6311ff4136f8332098d253 | [] | no_license | KudouRan/learning | fb9d0365b53c099137ede079bed64496c3da6ccf | c72b473c450000aac1d224bc7495609b76ceddd7 | refs/heads/master | 2023-08-30T22:28:57.510587 | 2021-10-29T12:46:07 | 2021-10-29T12:46:07 | 358,523,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | # 学生类
class Student:
def __init__(self, _name, _dob, _age, _gender, _score):
self.name = _name
self.dob = _dob
self.age = _age
self.gender = _gender
self.score = _score
def top3(self):
return sorted(self.sanitize(self.score))[-3:]
def sanitize(se... | [
"catlair@qq.com"
] | catlair@qq.com |
682da22e22abb0dd5b2e1ba1b6e6268fb91c4294 | 3ba48a85bda9a07bf7a5bbbbc0b012f65164f6cf | /venv/Scripts/easy_install-script.py | 198f8454c218f567f6bca308c45f38f98d2d53d7 | [] | no_license | yekw/mystore | 6d98e7b6f254514fcf2d8ce5401e99f1aacab2d0 | b2b83b2c7b06fce526e07a1ba7067280104fc8f6 | refs/heads/master | 2020-07-21T20:56:25.531655 | 2019-09-07T14:00:14 | 2019-09-07T14:00:14 | 206,973,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!D:\PycharmCode\untitled\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?|\.exe)?$', '', sy... | [
"yekaiw@yeah.net"
] | yekaiw@yeah.net |
2dda9b4b6598c9c2003a654cb58153183ed6c3d0 | 5d0b7709f228634fb15299d0161d3639bcacb665 | /gpon-test.py | 7118acda31200feef3cee7800c8379bf1224ae6d | [] | no_license | vanotheoriginal/Telnet | 85f2e5aa2d8fde3223c5a8132acdc767bb86afb0 | 4d65b093e87ad019392f23fd672e241bfdea1b08 | refs/heads/main | 2023-08-31T14:28:31.512494 | 2021-09-29T13:41:41 | 2021-09-29T13:41:41 | 411,686,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,158 | py | #!/usr/bin/python3
from os import error, system
import telnetlib
import time
import sys
def connect_term(telnet):
try:
telnet.write(b'login\n')
telnet.write(b'password'\n')
except error as e:
print('[-] Error: ' + e)
def check(telnet):
b = ''
commands = ['en', 'show ont-f... | [
"noreply@github.com"
] | noreply@github.com |
194507cc024cab52c79e45aaba888898255ed8ad | d4685a45925aae537cc305dce643d19a5007b0d3 | /old_gpst | ef65d4482e8474556ada96a98058d0cac4cf1eb4 | [
"Beerware"
] | permissive | plishing/Agena2 | 905c08f13611a40b134ef123640eae5ed326cffa | 56f2f48a3bda4ff3d011d70e630cf6793995a239 | refs/heads/master | 2021-01-10T04:37:13.665528 | 2016-03-15T18:35:53 | 2016-03-15T18:35:53 | 53,969,191 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,625 | #!/usr/bin/python
import re
from time import *
import serial
import datetime
from geographiclib.geodesic import Geodesic
# byte array for a UBX command to set flight mode
setNav = bytearray.fromhex("B5 62 06 24 24 00 FF FF 06 03 00 00 00 00 10 27 00 00 05 00 FA 00 FA 00 64 00 2C 01 00 00 00 00 00 00 00 00 00 00 00 ... | [
"chris@blafsen.net"
] | chris@blafsen.net | |
a897fb46b551acc7c4969e1953ec1fd919f8995a | 3c2c7c747c14792680d6f132801b478a17031ee2 | /compiler/minterm_lib/macro.py | 32ffd635e257e634e202e6e38c61c699ebe6604c | [] | no_license | bbiiggppiigg/research | 7c85af38bcc66dee8c7b834cf4e5df4cc3df3272 | c9f76957975f95ab5151150da7765d650f47587c | refs/heads/master | 2020-03-19T13:44:21.614392 | 2018-11-25T05:03:05 | 2018-11-25T05:03:05 | 136,593,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | from ast import StateVarTable
class Invariant:
def __init__(self,prop_ast):
self.prop_ast = prop_ast
def collect_gr1(self):
prop_str = self.prop_ast.gr1_repr()
return [],[prop_str],[]
class Reaction:
def collect_gr1(self):
init = [self.s.negate().gr1_repr()]
s... | [
"bbiiggppiigg@gmail.com"
] | bbiiggppiigg@gmail.com |
9168fd26a4ab66b9633aa2d1ca3aeb8c5b7ad1b7 | fd4edd2dea145c8918727a4d24003db2dbed1fff | /todoitem/admin.py | 1bc3c38b416ebc07fb89c0ea0855d3a1111f7294 | [] | no_license | Niejinge/todoweb | 39ebf8f75704c472a0a0982f5daa39bf24368059 | 6b1fafedffd1f1fb73f9d08315e52516c01a3f63 | refs/heads/master | 2020-05-17T17:58:42.221055 | 2019-04-28T07:15:55 | 2019-04-28T07:15:55 | 183,870,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Todo
admin.site.register(Todo)
| [
"niejinge6@163.com"
] | niejinge6@163.com |
ef363457eb367b86e198d57975d33ebfaad7b389 | 177f2ddeca7e15351675035fc10307cf390e6311 | /baekjoon/2739.py | ef6a2ea56df7ca3de116b235e3e8ca897e680875 | [] | no_license | kokospapa8/algorithm-training | 8e15fcf46b0f7aaba2a5210209376ae2aacd8107 | 6e1f6a45c1787c98f2cc2add10a7df22b449c6ea | refs/heads/master | 2022-10-02T08:12:19.426555 | 2020-06-04T10:10:30 | 2020-06-04T10:10:30 | 257,132,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | base =int(input())
for i in range(1,10):
print(f"{base} * {i} = {base*i}")
| [
"noreply@github.com"
] | noreply@github.com |
337eb81a9613cf15a252c2509bbe10b88163e6e6 | 73a19b6956b35e1390e0e46b0df2f93310b348ff | /bar_chart.py | b83bef7269535cb211082d4a73cecfe6e9b1c0f1 | [] | no_license | nirmal-suresh/computer_graphics | a7ce84ccfca5b5833579ce363d2ee73088c871b8 | ee451435eb7983998e10ba1f29c57dfe272ce2c3 | refs/heads/master | 2021-07-11T06:04:52.960049 | 2020-10-05T11:56:28 | 2020-10-05T11:56:28 | 201,729,176 | 0 | 1 | null | 2020-10-05T11:56:30 | 2019-08-11T06:53:35 | Python | UTF-8 | Python | false | false | 1,801 | py | from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import sys
from bressenham_to_import import line
list=[]
x=40
y=40
width=35
spacing=20
top_margin=40
right_margin=40
def myInit():
global n,x,y,width,spacing,top_margin,right_margin,maximum
glClearColor(0.0,1.0,1.0,0.0)
glColor3f(1.0... | [
"noreply@github.com"
] | noreply@github.com |
7c322d93edc39e53a28a48435e3aa84c0a8fca02 | 3bcdff8dbaa56e174d3454909cda2600c36b0e2b | /accounts/views.py | 0bdc01971c393e4f8b509e343496ce7cd64ff60a | [] | no_license | 7sering/merokart-ecommerce | 1233e9b0926a56c863241cbfd251eb1a2238bcc3 | f92b253de5cebc3ab263c4789877023170e827a5 | refs/heads/main | 2023-06-26T17:05:57.686609 | 2021-07-26T07:23:24 | 2021-07-26T07:23:24 | 382,266,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,153 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import RegistrationForm, UserForm, UserProfileForm
from .models import Account, UserProfile
from django.contrib import messages, auth
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from orders.mo... | [
"codenow8@gmail.com"
] | codenow8@gmail.com |
a42594a6a90b6225122b71b22638061d07d22bdc | bfe6970b41149e0fbea29cc57ecefabe30fb0e5d | /migrations/migrations/migration.py | d16598cbd104bcc6ddd53cdb5593a88994de9cef | [] | no_license | WooodHead/scrap_github | 35d907f4c98439aec7c5a783498d777d53125376 | 08f833f837e5236f77f5badb98b92ba51d67b4fc | refs/heads/master | 2022-06-03T22:35:27.184229 | 2020-03-20T15:05:26 | 2020-03-20T15:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | from __future__ import with_statement
import os
import sys
from logging.config import fileConfig
from alembic import context
from sqlalchemy import create_engine
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config fil... | [
"waleed_meselhy@eng.asu.edu.eg"
] | waleed_meselhy@eng.asu.edu.eg |
bf485b51f572d30352b539eacfa9658d356e3d6a | 6cc47d46c9a33d74f626f75ca8e4a49e855ae3d3 | /env/bin/conch | 751a34b15a86cf71c408c5ff7e20b86501245831 | [] | no_license | ArnoBali/python-onsite | b28f44e1d7b6c6488000744cb32c94e0726ae514 | 4046fe9b7328de242e13b3f23a3d70c87929965f | refs/heads/master | 2020-04-23T19:48:33.618774 | 2019-04-01T01:20:30 | 2019-04-01T01:20:30 | 171,418,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | #!/Users/ak/Documents/_CodingNomads/python-onsite/env/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==18.9.0','console_scripts','conch'
__requires__ = 'Twisted==18.9.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"akoldewee@gmail.com"
] | akoldewee@gmail.com | |
6d39c603b4faa6fc700e6e2b5f6834ac5a1e616f | c31fa3ef97adefb15a6f178bba38de6ccd3a6c37 | /final_wiener_hammerstein/final_wiener_hammerstein_fig_performance.py | 1d940c6c2c621efe939811128296f2f5319c74b6 | [] | no_license | w601sxs/DeepSSM_SysID | 29f1c7847c5c35e9da3ccd7a98cbe65120531343 | 8e9e15c2f916110d06e67e1f12824749036e73a1 | refs/heads/master | 2022-11-15T05:29:29.882868 | 2020-06-26T11:40:22 | 2020-06-26T11:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,680 | py | import matplotlib.pyplot as plt
import os
import torch
import numpy as np
import pandas as pd
import sys
# only to compute the performance if not available
import data.loader as loader
from models.model_state import ModelState
import testing
from utils.utils import compute_normalizer
import options.model_options as mod... | [
"daniel.gedon@gmx.de"
] | daniel.gedon@gmx.de |
1281fb5541740ff35cf2cb197890e7c73fb333e2 | 221cada2354556fbb969f25ddd3079542904ef5d | /AlgoExpert/validate_bst.py | 24bf1e02380e497c9452015016be874e08f91ce8 | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # T: O(n)
# S: O(d)
def validateBst(tree):
return helper(tree, -float('inf'), float('inf'))
def helper(tree, min_val, max_val):
if not tree:
return True
if tree.value < min_val or tree.value >= max_val:
return False
left_valid = helper(tree.left, min_val, tree.value)
right_valid = ... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
6004ecad05cca45b24332e6efe02425f066388b8 | 0ca26bed4953f22699b978c158cbaf7aae07761d | /TME2/tme2-poi.py | c07a6704807115f22c07b7178aefba31e3fd2439 | [] | no_license | ErerF/ML | da7be004b3e924e51bdf379f5a6beceb35ce4d10 | eff44c2e1552c728916084bfc8c47636fc1ffbba | refs/heads/master | 2021-04-02T03:08:31.085495 | 2020-06-14T22:13:00 | 2020-06-14T22:13:00 | 250,528,271 | 0 | 0 | null | 2020-03-27T12:26:48 | 2020-03-27T12:26:47 | null | UTF-8 | Python | false | false | 6,010 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pickle
import math
plt.ion()
parismap = mpimg.imread('data/paris-48.806-2.23--48.916-2.48.jpg')
## coordonnees GPS de la carte
xmin,xmax = 2.23,2.48 ## coord_x min et max
ymin,ymax = 48.806,48.916 ## coord_y min et max
def s... | [
"arnaud.delol@gmail.com"
] | arnaud.delol@gmail.com |
d507f37c25d85b85a2dd42ba3c851aa050577109 | 8a78d7f6a5bf7c56f0fe1127ea22555429f9d2a1 | /users/views.py | 09d865e9568e5a824cf5b4018b49e27dc3b85731 | [] | no_license | gibsn/ImageBoard | 82c8ad8118fb796fadabdf952983fb19b26efe96 | fe1a6f33e2465696dd8855e0f6b85258caea8139 | refs/heads/master | 2021-03-27T15:18:36.879902 | 2017-12-29T12:36:20 | 2017-12-29T12:36:20 | 105,384,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from django.contrib.auth import get_user
from django.contrib.auth.forms import AuthenticationForm, SetPasswordForm
from django.http import *
from django.shortcuts import render
from .forms import UserProfileForm, SignUpForm
def get_profile(request):
user = get_user(request)
initial_dict = {
'usernam... | [
"kirill.alekseev@corp.mail.ru"
] | kirill.alekseev@corp.mail.ru |
f299d004c1e2677393a7ce81b4bed0db28ba1fe1 | b69be98f64ec291fa1e82fd1c1079bdfffb56c4e | /manage.py | 2cc9f6df75dab06da0c15bc859003b69d3ccd234 | [] | no_license | zykzml7788/djangodemo | f2d63be7cebb9f109dd32e09fd39b752a7d297b5 | 141a367d7b8832bfd75c5c8b4b29d5649a9ac65f | refs/heads/master | 2022-12-17T04:28:21.617710 | 2019-05-24T02:41:09 | 2019-05-24T02:41:09 | 188,194,844 | 3 | 0 | null | 2022-04-22T21:17:11 | 2019-05-23T08:40:59 | Python | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mock.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"zykzml7788@sina.com"
] | zykzml7788@sina.com |
8cc45ae5914c90e78e71724a0f2a83de0bfd00ab | ebac424304a4456193843472d3e91b5de79da514 | /order/views.py | 58924b80fb9fe0c21934ae0e514faa8fdca632ae | [] | no_license | haha479/bookstore | 1a0e7f73ed973ff06fd0c94cb92329baca39b527 | 3e85e2a62d4e9dde68c5f226c2e7558c6a06a03e | refs/heads/master | 2021-09-08T09:05:15.153693 | 2018-03-09T01:21:44 | 2018-03-09T01:21:44 | 115,857,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | from django.shortcuts import render,redirect
from utils.decorators import login_required
from django.core.urlresolvers import reverse
from users.models import Address
from book.models import Books
from order.models import OrderInfo
from order.models import OrderGods
from django_redis import get_redis_connection
from dj... | [
"283275935@qq.com"
] | 283275935@qq.com |
2a9b37818a363e8981ee8582fa11e1dfdfb8afd3 | d25112853a6a47c951b7d0528f3c3be4c1346438 | /onnx_tf/backend_tf_module.py | 8774f60e63679d9f233e7a7987797ad9d2a28ac7 | [
"Apache-2.0"
] | permissive | 00mjk/onnx-tensorflow | 197b575de23573690606dc232504b8fbd5f25221 | c63d4351c7752a769cdc9a1bfcf79ffd140e0e6a | refs/heads/master | 2023-01-05T08:17:25.855185 | 2020-10-29T17:50:35 | 2020-10-29T17:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import tensorflow as tf
from onnx_tf.pb_wrapper import OnnxNode
class BackendTFModule(tf.Module):
def __init__(self, handlers, opset, strict, graph_def, backend):
super(BackendTFModule, self).__init__()
self.handlers = handlers
self.opset = opset
self.strict = strict
self.graph_def = graph_def
... | [
"noreply@github.com"
] | noreply@github.com |
c1900570c7649c87d47f1ad3a621b475e0f2342c | c73a435be9bed95cd770eb28f5cd671b75d23d2e | /MRT.py | a91c84e416b140f701699fb4fb3dff7b71a5c2c9 | [] | no_license | Lim-Wee-Meng/python | 1cc2434f0a45b8642440cb09ff5438b9a0229cb3 | e84de5b149a000c4f01ccfda0c02ab61ac0de9eb | refs/heads/main | 2023-05-02T19:52:37.416810 | 2021-05-30T08:29:23 | 2021-05-30T08:29:23 | 371,625,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,370 | py | from tkinter import *
from tkinter import messagebox
import tkinter as tk
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.textpath import TextPath
from matplotlib.patches import PathPatch
from PIL import ImageTk,Image
import seaborn as sns
import datetime
import requests
from bs4... | [
"noreply@github.com"
] | noreply@github.com |
11a91f1fed378f258c0163eab10cdf4961ce6f5d | 915c31ce84a826d225bcb1cc5f1e0323e712f6e4 | /calculate-testing-agreement.py | 6276ce7b87c1a1e58da5c8f6883613ea1968e06e | [
"Apache-2.0"
] | permissive | mac389/overdosed | 64162aaf8f57f7ca57bcc95678d0d18e231cda87 | 434255db4ea36581c9f94c7aa09ca6ca15169e8a | refs/heads/master | 2021-01-10T07:44:41.804936 | 2015-06-25T23:22:51 | 2015-06-25T23:22:51 | 36,990,551 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import csv
import numpy as np
from pprint import pprint
with open('testing-sample-MC-ratings.csv','rU') as my_rating_file:
my_ratings = [row for row in csv.reader(my_rating_file)]
#Automatic ratings
with open('testing-sample-w-ratings','rU') as automatic_rating_file:
automatic_ratings = [row for row in csv.read... | [
"mac389@gmail.com"
] | mac389@gmail.com |
6f92343ff23e76b2a0b1a06cdd767ecf0e444f40 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/sql/models/encryption_protector.py | 28b7ccfc213258e75b4740819a87b7557399fc67 | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 2,969 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
57cf2702270e99daab0cd0f773f9b28777c1fff8 | b4ecc9c5a74f11958e7a49999d0299e7bb883d2e | /postgres-database/dbFunctions.py | 34dd98379303cca9135af6e25108f79e95ad7f9a | [] | no_license | teja0508/AcronymLookup | 6edea8ab9bc27824b961563f5bf968b499490094 | ea5b812c41f138b5dccabbe2c474e2da0f85ce9e | refs/heads/main | 2022-12-20T08:00:30.161858 | 2020-10-18T06:01:32 | 2020-10-18T06:01:32 | 305,030,809 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | # dbFunctions.py [Rachel Gardner]
#
# This file defines the AcronymsDatabase class, which
# interfaces with the PostgreSQL backend to store acronyms, definitions
# and their contexts.
import psycopg2
import json
from collections import Counter
class AcronymDatabase:
def __init__(self):
conn = psycopg2.con... | [
"lchandratejareddy@gmail.com"
] | lchandratejareddy@gmail.com |
228e4d3b3f16180234670c387d2db36d0f1cd282 | ecbaaf56d2e8ee6e3adcda6c3a4b79041eb26334 | /RecursionAndDP/magicIndex.py | d86c721438ad969f2ba7c88e0d94736595e67e53 | [] | no_license | nagask/CrackingTheCodingInterview | dd01eae6a90c6b34bfcf74ba77223b150267dbd2 | bb106a21c9f2f384925494179336de7b08d00e5f | refs/heads/master | 2021-12-24T22:05:51.093195 | 2016-11-14T01:51:09 | 2016-11-14T01:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | ##9.3 A magic index in an array A [0. . .n-1] is defined to be an index such that A[i]
##= i. Given a sorted array of distinct integers, write a method to find a magic
##index, if one exists, in array A.
"""
Brute force would be to iterate through array and check index against value in array
Since values are sorted and... | [
"preethikandhalu@gmail.com"
] | preethikandhalu@gmail.com |
0fa8111bb42ed942cd8dae2398d407bbca507b9f | 8446684281fba5fc48ac810db6ff096d138daf66 | /roundf/2.py | 7733993be3e8e0a692122acc512e2a0b948c9984 | [] | no_license | domiwei/coding-challenges | e00b1ec684e616d45aa834ae92975f8bb6d7e19d | 59799dfecc0991823db86e051727c372ca16d62b | refs/heads/main | 2023-08-23T12:07:08.324368 | 2021-09-24T04:52:33 | 2021-09-24T04:52:33 | 399,509,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | from sortedcontainers import SortedList
import heapq
def run(happy, k, D):
happys = [[] for _ in range(D+1)]
removes = [[] for _ in range(D+1)]
happymap = {}
for i in range(len(happy)):
s, e, h = happy[i]
happys[s].append((h, i))
removes[e+1].append(i)
happymap[i] = h
... | [
"kewei.train@gmail.com"
] | kewei.train@gmail.com |
3607b9f9e528f2c8d748ceb3479562009ef661b8 | 2aea6da70ed7238aef09d2852efc411e6f16634b | /Core/render3d.py | 2da0df47153f3f6ef1743ac80d02b79c3573eabb | [
"Apache-2.0"
] | permissive | jolyDev/orto-ray | 4faa3162c904c6a3a84300737fb1310d2253cdad | 00a6b8e7e1de708c66a1c6a96a230b43a5034e7e | refs/heads/main | 2023-05-11T03:44:16.600071 | 2021-06-06T09:59:05 | 2021-06-06T09:59:05 | 332,317,284 | 0 | 0 | Apache-2.0 | 2021-03-24T21:32:29 | 2021-01-23T22:05:23 | Python | UTF-8 | Python | false | false | 160 | py | import pyvista as pv
def volume(data):
dataX = pv.wrap(data)
dataX.plot(volume=True, eye_dome_lighting=True, parallel_projection=True) # Volume render
| [
"nnmu@ukr.net"
] | nnmu@ukr.net |
edcd8ce0f727f58aaea7d90968b3b585f9aeab83 | befd78e2bfdeb7aa786e8d78aa30670e72226577 | /concurrency_with_asyncio/ch6/counting_freq_a.py | e4e1287524a416fe2d0e87e52535f912b079964d | [] | no_license | owari-taro/concurrency_in_python | 4ee2664a4e8c6a9a840ffd0878dbd53181818813 | 6f12d84b4a72cd5ddd05c74b1c94902c784e5a18 | refs/heads/master | 2023-03-06T12:41:15.637603 | 2023-02-28T15:02:14 | 2023-02-28T15:02:14 | 301,134,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import time
freqs={}
with open("data/googlebooks-eng-all-1gram-20120701-a","r")as reader:
st=time.time()
count=0
for line in reader:
if count%10_000==0:
print(freqs)
count+=1
data=line.split("\t")
word=data[0]
count=int(data[2])
if word in fr... | [
"taro.biwajima@gmail.com"
] | taro.biwajima@gmail.com |
112cd830027e932f6588026048a0e382234d0510 | 1151f3d23d7a3eff633b6d987e266aebf73b77c6 | /landing_page/migrations/0001_initial.py | 3641a3d7e797521ca8cd7a8f532837ffd03410fd | [] | no_license | craigpullar/VestiumSplash | 1d0335ec5fbc50dc3c25be8bdb8e1a5af87745a0 | 22ccd4f8f6c528a792c527347e813de2a78229f0 | refs/heads/master | 2021-01-17T20:02:44.227540 | 2015-06-01T15:37:45 | 2015-06-01T15:37:45 | 35,610,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Registrant'
db.create_table(u'landing_page_registrant', (... | [
"craigmichaelpullar@gmail.com"
] | craigmichaelpullar@gmail.com |
46976204ddc68698d9c6fe8b284977496cea01dc | 0f30cad1e8a726484c04ac7bce47eb441c0d1f20 | /end/demo5/company/companyapp/serializers.py | 7f2ee98c7e6ee96ca70326ec9269d7b51e2cbbdf | [] | no_license | LinSanLang/zml | 2fa6ed8155fed7625ba88b6cb4e351773d61cd36 | 2b9c221f8b0cb65b11670d65afda65f88e71cb69 | refs/heads/master | 2021-09-28T19:39:17.068928 | 2020-03-11T05:03:22 | 2020-03-11T05:03:22 | 239,649,444 | 0 | 0 | null | 2021-09-22T18:33:48 | 2020-02-11T01:22:38 | JavaScript | UTF-8 | Python | false | false | 1,749 | py | from rest_framework import serializers
from .models import *
class DepartmentSerizlizer(serializers.Serializer):
id = serializers.IntegerField(read_only=True)
name = serializers.CharField(max_length=10,min_length=3,error_messages={
"max_length":"最多20个字",
"min_length":"最少3个字"
})
def cr... | [
"2927361944@qq.com"
] | 2927361944@qq.com |
4d91f13decd159530a514e7082e5075cee9103f9 | f668ecb18dd2a225746c731b90f7d560afe2384b | /Adabas/demo/dblist.py | 4dd1b45b83409a924499437dd9ebfbaf368bc0d0 | [
"MIT"
] | permissive | cfjunior/Nat2Py | 0d2547e1110bab9c18d126de75d84d9a6489c12a | fdbff807e436628b49710f65d12cc108fb824b7f | refs/heads/master | 2021-06-19T06:49:11.352745 | 2017-07-08T05:09:19 | 2017-07-08T05:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | """ Detect accessible databases
Usage:
python dblist.py --dbids <dbid>
Options:
-d, --dbids <dbid> is a valid dbid
or a list of dbids
-n, --noclose leave session open (use for testing only)
-h, --help display this ... | [
"flavio@casacurta.com"
] | flavio@casacurta.com |
39de353d3535052bf810209b2d3f1d2e09c75737 | ad9abcc82497f4f2675dee1fed97b0a7a20b42e7 | /Raspberyy pi/Trash/wipe.py | 47cf1449fe52b732973f2f7fa59445dceb15bfb7 | [] | no_license | maxlvrv/BuddyCook | 0c1bc83fb405b2fd941e991f3ab3185efad74eee | c242a9da912a4a733ddc415fd53334a1b8b7ef71 | refs/heads/master | 2020-03-27T15:42:32.349573 | 2018-09-03T14:06:35 | 2018-09-03T14:06:35 | 146,734,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import os
import time
import pymongo
from pymongo import MongoClient
uri = "mongodb://cooking:wsurop18@ds223268.mlab.com:23268/wsurop_cooking"
client = MongoClient(uri)
db = client.wsurop_cooking
glo_temp = -273
db.temperatures.remove({"units" : "Celsius"}) | [
"hnn04164@gmail.com"
] | hnn04164@gmail.com |
e4206362723a57261b78659b8ed5031b9f6715ae | 656c34284a0a7d69a439ebe40409a00eb9a1927d | /Geeks For Geeks/sortArray0s1s2s.py | 2394ce85274bba5fec1f8f33d9f383e7343ea97a | [] | no_license | akshaali/Competitive-Programming- | 8bef7adfb80b4f5e5de0f87bb2b49c3873690c76 | 7d2d3dd91eaa923ad546f1608eb7c2bcb623eee1 | refs/heads/master | 2022-09-04T14:15:18.771996 | 2022-08-31T07:33:29 | 2022-08-31T07:33:29 | 173,965,800 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """
Given an array A of size N containing 0s, 1s, and 2s; you need to sort the array in ascending order.
Input:
The first line contains an integer 'T' denoting the total number of test cases. Then T testcases follow. Each testcases contains two lines of input. The first line denotes the size of the array N. The second... | [
"noreply@github.com"
] | noreply@github.com |
500e7a25c1932289f29d7ea5129778427cd6c9cf | cdcb7eb326fbf868969dd776e8ac13653626ca78 | /src/automata/slp_hard.py | 127be61831474789e521d88fd53a0a90199355ea | [
"MIT"
] | permissive | akifumi-wachi-4/lcrl | 5d100ed5918b8c10e1f252983cd0eec9112195e9 | 65c528e0d19600d83a1158e2e2990fe45aa7918f | refs/heads/master | 2023-04-17T10:13:04.568504 | 2021-04-28T18:44:20 | 2021-04-28T18:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | from src.automata.ldba import LDBA
# an example automaton for "goal1 then goal2 then goal3 then goal4" or
# "F (goal1 & XF (goal2 & XF (goal3 & XF goal4)))"
# only the automaton "step" function and the "accepting_sets" attribute need to be specified
# "accepting_sets" for Generalised Büchi Accepting (more details here... | [
"Grockious@gmail.com"
] | Grockious@gmail.com |
a48ccec8f5d3969800fb32763e5813726a2f2bb7 | 1b3ba0b7d06a093af3b2ce7ec02aa71086c15eff | /core/secrets.py | 1d7181342a8cb2133130adbffc08638e4cef6c42 | [] | no_license | mujibsani/virtual_assistant | a473e0f81c2daffd156f96b81658b3a48dac33f6 | ff546a2eebdc54c04ef24210bc41c19001354e43 | refs/heads/main | 2023-05-28T22:28:24.725164 | 2021-06-13T10:51:56 | 2021-06-13T10:51:56 | 376,510,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | sender_email = ''
epwd = ''
to = ''
| [
"mujibsani@gmail.com"
] | mujibsani@gmail.com |
608ab0327a3583cf5033bddb38aef4e28cca9fc5 | 362b93ae13bb9c405c8a5eeffbad43d303a8efa7 | /problem/plants.py | 8dc0e1518d3a1f7ce266696d78b5b7b20410811e | [] | no_license | shebna12/ai-mp2 | 8c24983f55c8a2a6dd1ade83c84fb5924d509149 | 2ffed2abb652a6b1f6c22bd234f5d7d314e8439c | refs/heads/master | 2020-03-10T10:21:43.485657 | 2018-04-20T06:27:18 | 2018-04-20T06:27:18 | 129,331,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from problem.problem import Problem
from problem.constraints import *
def problem():
# Variables
variables = ['C','R','S','T','V']
C,R,S,T,V = variables
# C = corpse, R = rose, S = sunflower, T = tulip, V = vampire
# Domain
domain = {}
for var in variables:
domain[var] = [1,2,3,4,5] # pot numbers
# Const... | [
"gmicay123@gmail.com"
] | gmicay123@gmail.com |
faea8c63853a978739f95b2e41e1a89d9d2ad953 | 3b5ea3b633cca42aed8c5cc7752b1a7854d2a20d | /mysite/settings.py | 8da67a9eb0bdc7ca30212bb843029e292367d7b5 | [] | no_license | nihalcameron/my-first-blog | 4d32a1835018ef20f82d15682b87201e7ac33ca8 | 88aea3c448b479e285c1f086912108d6a3388514 | refs/heads/master | 2021-01-22T01:55:40.738650 | 2015-08-24T06:42:11 | 2015-08-24T06:42:11 | 41,081,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"nihalcameron@gmail.com"
] | nihalcameron@gmail.com |
75000e99c6f31ef69db0b7f830911ce99634217b | cb7dc19f24978d5be0bdd4843cb8c42981fc66a3 | /Ngram.py | 2bb15f3b5a34867179074eda6063340d3bee1c47 | [] | no_license | mohamadi-sara20/CorpusDevelopment | 3e1f06eb293f3fa08dbb52c55227396b78b21aea | 74102f1274950a1b0ce0e3647bbb4541501148eb | refs/heads/master | 2022-11-13T20:19:33.435048 | 2020-07-05T23:47:24 | 2020-07-05T23:47:24 | 194,872,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import ngram
from nltk import ngrams
import operator
import re
def makeBigrams(path, corpusFilename, bigramFilename):
twoWordCollocations = {}
with open(path+corpusFilename) as f:
text = f.read()
bigrams = ngrams(text.split(), 2)
for bigram in bigrams:
twoWordCollocations[b... | [
"mohamadi.sara20@gmail.com"
] | mohamadi.sara20@gmail.com |
5f2fc7c3278b07a10b5dfa6f780e1cad658986c9 | 8fde674a976ec9172425c4bea940ef7f32de2d87 | /impute.py | aa35a662530c412e1d48456d5a9d47c7223b1221 | [] | no_license | jpvert/networks | d19640ee45ce8909e8efd731de5dd199df8908c5 | dddf66a8006e9c73324ffa8f1754e33cedd687af | refs/heads/master | 2020-03-19T00:24:10.026188 | 2017-11-30T11:31:15 | 2017-11-30T11:31:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | """ Imputation of Dropouts based on averaging out expression levels from Similar Cells """
#Libraries
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from numpy import inf
from scipy.stats import pearsonr
from sklearn.decomposition import PCA,KernelPCA
from sklearn.cluster import ... | [
"f2013401@pilani.bits-pilani.ac.in"
] | f2013401@pilani.bits-pilani.ac.in |
d0f0a460d28c324c7b6ef531624954af1d79c78b | 292c2f18189ef1e21c65ffd58bfcc27b7d31bebe | /tests/conftest.py | a74de82ed0f422069f19297127c830d071f9e71a | [] | no_license | kolotev/python-pmc-catch | 3f5e80e36f470411206cbf2c26a795e1f90846eb | fb512f63daee5eee586d07d4aa5623ef57e779a5 | refs/heads/master | 2021-07-06T05:07:10.278268 | 2019-12-18T22:37:11 | 2019-12-18T22:37:11 | 227,913,926 | 0 | 0 | null | 2021-04-20T18:59:07 | 2019-12-13T20:06:59 | Python | UTF-8 | Python | false | false | 230 | py | import pytest
import pmc.catch
@pytest.fixture(scope="function")
def pmc_catcher():
# provide the fixture value
yield pmc.catch.catcher
# reset global counters
pmc.catch.counters.ExceptionCounterGlobal().reset()
| [
"kolotev@ncbi.nlm.nih.gov"
] | kolotev@ncbi.nlm.nih.gov |
86f2461112f70864a6b60fc7a0f4c9e7c3b9f591 | 110aa36dbbad8b7600b6877280e0fa2994f88fe8 | /Trees/BinaryTree/ancestorsOfNode.py | e3a99dc2edaad8ba9bdd2830f329990fcdcebe46 | [] | no_license | praneethreddypanyam/DataStructures-Algorithms | 05b8befbc8e65443c1e4ff0d0619b4fa8933535d | 2d5e6ee39eace3ab9cf93005fcb00cf9e6098424 | refs/heads/master | 2023-02-07T17:00:00.094549 | 2020-07-23T03:56:21 | 2020-07-23T03:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class Node:
def __init__(self,data):
self.data = data
self.right = None
self.left = None
class Tree:
def ancestors(self,root,node,ancestors):
if root == None:
return 0
left = self.ancestors(root.left,node,ancestors)
right = self.ancestors(root.right,n... | [
"praneethr1000@gmail.com"
] | praneethr1000@gmail.com |
c5597281e91a1f2336cb6e046d5aa458cb432bf9 | e4414bd8152e52855db7ab9065ae12b7329143e0 | /python/src/maxdiffarr.py | c59fcce6e0af15f92b72aaecbe371e748058fd86 | [] | no_license | catalinc/programmingpraxis-solutions | 39cb847877ec46d2fb85740791c24889ab5654a8 | c0b13906aa76ffac705bf108db138fb9a38bc16a | refs/heads/master | 2021-03-27T16:46:47.781839 | 2017-09-09T15:17:38 | 2017-09-09T15:17:38 | 53,532,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python
import sys
import unittest
# See http://programmingpraxis.com/2011/04/01/maximum-difference-in-an-array/
def maxdiff(a):
min_i = i = j = 0
d = -sys.maxint
for k in xrange(1, len(a)):
if a[k] < a[min_i]:
min_i = k
elif a[k] - a[min_i] > d:
d = a[k] - a[min_i]
i = min_i
j = k
... | [
"catalin.cristu@gmail.com"
] | catalin.cristu@gmail.com |
493f7c2b31eeef1ce52216da6b2ee3f75e5fb90c | f34b1d25a9800dd9a6782d6be7d09ec9e90e9a49 | /3-homework-yanjun/qwe.py | db37ba4f07924815751dc23f0fc724ee7aede65b | [] | no_license | bonnieyan/Python | 10645085ea256e18fd5fb87813aba0bfef87db4f | baaf83f26686ae0d441d889322f8676149ec689e | refs/heads/master | 2020-04-14T23:12:50.526559 | 2019-04-17T16:29:33 | 2019-04-17T16:29:33 | 164,194,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # for i in range(5):
# print(i)
#
# for j in range(0, 5):
# print(j)
import re
s = "phone number : 010-8877665 0431-98989498 0832-3821251"
reg = "0\d{2}-d{7}|0\d{3}-\d{7}|0\d{3}-\d{8}"
print(re.findall(reg,s))
#捕捉与不捕捉7665
ip = "1234.543.123.12 255.255.133.255 0.0.144.0 192.168.11.1"
reg1 = "(?:\d{1,3}\.){3... | [
"525663314@qq.com"
] | 525663314@qq.com |
db85c929547e11c00471367496c9ba6e1d51e00f | 12b2c407622bb5eb604cebd7f4510a0740cf6c16 | /jyqj/backend/teacher_version/forms.py | 6ed72291c23bce08fde6117099d5234e799cc20e | [] | no_license | luohaifenglight/myadmmin | 808aa31b4a4927f29c40ba98eb2a71271640b456 | 42aa687e2c8aa400dec53a9d99d18deaf4871313 | refs/heads/master | 2021-01-02T09:45:46.619333 | 2018-11-13T09:35:56 | 2018-11-13T09:35:56 | 99,293,295 | 13 | 5 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from utils.forms import ChoiceNoValidateField, MultiChoiceNoValidateField
from enumtype import PUBLIC_TYPE, VERSION_TYPE
class TeacherVersionForm(forms.Form):
"""
teacherverion
"""
# institution = ChoiceNoValidateField(label=u'机构'... | [
"luohaifenglight@gmail.com"
] | luohaifenglight@gmail.com |
71a2d7cbbd8c0b66f75a771056748b3e7f026054 | aadea82d00400b71de86b1906ed347d10416e69b | /p350.py | b495e8cb02bea100bc4e51baabf5fe09685b80ad | [] | no_license | abishekravi/guvipython | fc0f56912691cd5a41ab20f0c36b2027ebccfb00 | 4fbb83f0a131775cd9eb3f810c2d1c9ad22d710a | refs/heads/master | 2021-08-16T10:22:00.052735 | 2020-06-25T04:35:42 | 2020-06-25T04:35:42 | 196,218,458 | 2 | 27 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #a
import sys,string, math,itertools
def minChCnt(s) :
dic1 = {}
for c in s :
if not c.isspace() :
dic1[c] = dic1.get(c,0) + 1
min1 = sys.maxsize
L = []
min1 = min(dic1.values())
for k,v in dic1.items() :
if v == min1 :
L.append(k)
return L
s = input... | [
"noreply@github.com"
] | noreply@github.com |
fb83d9b6196a6c99c6e5beac5f7586b1ffd489da | fe3be844b1e2ebe08358c91a4db40cc78e0d4df5 | /pigjuan-translator.py | 00decee25deaf56a2efde0e82f1324afe4c6a5a7 | [] | no_license | pythonnewnoob/pigjuan-transltor | 7667c9174e2fbec36eccb015cc393188216aefcb | c9365c4c92da1c87fcf41e90e7a1735df66822f4 | refs/heads/master | 2023-03-28T01:52:18.154542 | 2021-03-30T13:38:20 | 2021-03-30T13:38:20 | 353,012,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from pypinyin import pinyin, Style
import sys
with open(sys.argv[1], "r", encoding="utf8") as f:
s = "".join(i[0] for i in pinyin(f.read(), style=Style.FIRST_LETTER))
print(s.upper())
| [
"pythonnewnoob"
] | pythonnewnoob |
714bd9cb43e9534a5d9440bee66ac334ae9cced7 | d7bd589ac95b3c72ff342acad098284c1a8bfec9 | /unit_test_tutorial/employee.py | e8e506087ce4031a080542e545d5d7ec1bafc589 | [] | no_license | benlvn/pythonprojects | 5a07b0e1b086cfea3f70c68620f9f3f0d659baf1 | c77fddb553f028304f91c8309662bf63ca24c4de | refs/heads/master | 2020-05-15T21:30:22.964515 | 2019-04-28T20:58:41 | 2019-04-28T20:58:41 | 182,495,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import requests
class Employee:
"""A sample Employee class"""
raise_amt = 1.05
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
@property
def email(self):
return '{}.{}@email.com'.format(self.first, self.last)
@property... | [
"ben.lvn@gmail.com"
] | ben.lvn@gmail.com |
41be5f261a4866f3eca403bdcbdb7c9fee1a2e7d | 7ff12fccd5da300c6f844e01ae15399804d28107 | /41/lambda.py | b827614414b2610ff8e1e0f176b3ba5efbd2b92e | [] | no_license | weilaidb/python_dd | cc49d21d4ad8b6e56b80ea068b95255502eb9ea5 | 7458af7fb028850999cdbf089ac6c61a55096c25 | refs/heads/master | 2021-01-10T01:36:35.539121 | 2016-02-24T14:25:23 | 2016-02-24T14:25:23 | 47,059,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python
#Filename:lambda.py
def make_repeater(n):
return lambda s:s*n
twice = make_repeater(2)
print twice('word')
print twice(15)
| [
"you@example.com"
] | you@example.com |
1732c54df32068f0309a25eaf8c43e259996e7a3 | 4c418eb89ff2a189fc91e16e2b82a66454d3b3de | /automation/automation.py | 51639f7c7217f0cdf189edc8fcddbb93b9cd332e | [] | no_license | RavArty/python_playground | 6247bac83e8e2b2d520a61a844c701d59978eb37 | 86119d2c4687d0e03a32924a70a689cca85493e8 | refs/heads/master | 2021-07-18T05:54:44.369721 | 2020-04-13T00:22:33 | 2020-04-13T00:22:33 | 243,872,936 | 0 | 0 | null | 2021-03-20T03:30:40 | 2020-02-28T23:31:40 | HTML | UTF-8 | Python | false | false | 484 | py | from selenium import webdriver
chrome_browser = webdriver.Chrome('./chromedriver')
chrome_browser.get('https://www.seleniumeasy.com/test/basic-first-form-demo.html')
button = chrome_browser.find_element_by_class_name('btn-default')
user_message = chrome_browser.find_element_by_id('user-message')
user_message.clear()... | [
"ravkart@gmail.com"
] | ravkart@gmail.com |
9baf68c67aae3d6d4e68e824b9bae4d9223898c8 | 9306fab2e37417b634d93a0b271f977c4d047b39 | /LCR/run.py | e57faf11f602b664905418e8a6fbe85ef419afa7 | [
"MIT"
] | permissive | MariaPoliti/LCR | bfa2289f5844057325d83de83fa6b5709b832f38 | 8991a4395b945951d468fe33593dee94d7f5668a | refs/heads/master | 2023-01-27T12:28:34.189013 | 2020-12-08T03:36:23 | 2020-12-08T03:36:23 | 292,657,978 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,131 | py | import pyvisa
import time
from LCR import frequency
def instrument_connection():
"""
Function to make connection wiht the instrument and ensure that commands
can be correctly delivered to it.
Parameters
----------
None. Just ensure that the instrument is conencted through the device USB
... | [
"politim@uw.edu"
] | politim@uw.edu |
c6f3166c925ce438ba57445a797d8a4d33b43759 | 6fc67193c2d14d49e78d985cee6e66732ea06fca | /places/water.py | c3bae825f9038443591a2d5a5eeae2b11aa8db45 | [] | no_license | DigbonesMajor/DragonsVsTerminators | 883758a0cc624038250f091e0f6bf70e52a0bfd5 | 1658d69385485ad6dc3dea64981f1f0ceb2b01d4 | refs/heads/main | 2023-07-06T04:26:32.924539 | 2021-08-11T16:24:46 | 2021-08-11T16:24:46 | 395,049,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from places import place
from . import Place
class Water(Place):
"""Water is a place that can only hold watersafe fighters."""
def add_fighter(self, fighter):
"""Add a Fighter to this place. If the fighter is not watersafe, reduce
its armor to 0."""
# BEGIN 4.1
"*** YOUR CODE ... | [
"sourabhkandari456@gmail.com"
] | sourabhkandari456@gmail.com |
817266a98c195d0592a873a56976b22261b0798b | d8fb7147e9b471fafb9b1e7ae208e20e1eab9cc1 | /lmtk/html/meta.py | 6e1b1fee1fa05847fa7a141fc3493ed38d3f63da | [
"MIT"
] | permissive | ericchen/lmtk | e61e5c1f0790dfba32f2ceb406df16045332b15f | ce2604851af66801f459b2e9bc5aeaf0c94bc15d | refs/heads/master | 2021-01-21T04:08:08.336582 | 2014-09-23T14:02:01 | 2014-09-23T14:02:01 | 33,095,938 | 1 | 0 | null | 2015-03-30T00:53:51 | 2015-03-30T00:53:50 | null | UTF-8 | Python | false | false | 5,134 | py | # -*- coding: utf-8 -*-
"""
lmtk.html.meta
~~~~~~~~~~~~~~
Tools for extracting metadata from HTML.
:copyright: Copyright 2014 by Matt Swain.
:license: MIT, see LICENSE file for more details.
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import re
f... | [
"m.swain@me.com"
] | m.swain@me.com |
caa8e4280b3fad84f3f0c7c9cfe4f9c1c6f8daf4 | 7f4843d9b2b1929165404a84b1e9319eb53693fa | /Tests/RegressionAlgorithms/Test_MethodOverload.py | fe83565d6f873a5bd2171ebacd6a845931b47e37 | [
"Apache-2.0"
] | permissive | Zephio/Lean | e61a3cf85a53031723f5f472036280572686aaa7 | 09f209fce1f07196f0e32bb8edd7b866c7516049 | refs/heads/master | 2020-04-07T09:55:08.982438 | 2018-03-06T22:43:19 | 2018-03-06T22:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# 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 Lice... | [
"alexandre.catarino@gmail.com"
] | alexandre.catarino@gmail.com |
9e62c1f49bff98d687b877bf531153358eec20df | ea10e2e722412e80e53bb5a981e00650ae64c34a | /GI5/qualite + ml/TP_ML_1/pizza1.py | 170af2b2262cbc35db0123f56e0ae71361d6bbae | [] | no_license | Hmama-Mohammed/GI_ENSAO | 571fbf5c65678d3ee533f7338b8051a0fa11a062 | a939b0a1a86bbacea71bcf5083c8bf3ef252fee5 | refs/heads/master | 2022-12-23T23:12:01.813271 | 2020-10-02T08:41:24 | 2020-10-02T08:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #vbase de données Iris
import numpy as np
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from sklearn.preprocessing import StandardScaler, PolynomialFeatures
from sklearn.model_selection import train_test_split, GridSearchCV
| [
"chakirmanale@gmail.com"
] | chakirmanale@gmail.com |
3744a51e4d23d8722e227157a8ae3b83a999a160 | 7b5526cf675ae37ec60405b539bd82cf80109cac | /content/test/faceswap/plugins/train/model/lightweight.py | 1e404ff217ed49fd29eb33feff3819bbf456abf2 | [
"MIT"
] | permissive | gwdgithubnom/gjgr | f5defed9be988682b52a249524964737bb7f1604 | 581957a296b13a4231ea1e67ec62083b7da445bf | refs/heads/master | 2022-03-11T04:53:21.842779 | 2022-03-05T02:08:14 | 2022-03-05T02:08:14 | 202,686,168 | 2 | 2 | MIT | 2020-07-23T07:58:44 | 2019-08-16T08:07:31 | Python | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/env python3
""" Original Model
Based on the original https://www.reddit.com/r/deepfakes/
code sample + contribs """
from keras.layers import Dense, Flatten, Input, Reshape
from keras.models import Model as KerasModel
from .original import logger, Model as OriginalModel
class Model(OriginalModel):... | [
"gwd163nom@163.com"
] | gwd163nom@163.com |
485b3c5be8e95fe1bbf16aff7303d04fa4db5320 | 4ddf4fa6a4a499d64b23fb99d70a7bb3802fd1b0 | /utils.py | 3cbae7d209d317c10c8b8a9c0dd055c5e057feec | [] | no_license | biterbilen/MVML | 2b318b3883c00ed1908ef75924077e3aab639094 | 76a79ded26d09452234b7ae2b4809e47aa93df70 | refs/heads/master | 2023-01-13T10:04:10.269589 | 2020-11-16T18:55:19 | 2020-11-16T18:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import subprocess
import pandas as pd
class HexTransformer:
@staticmethod
def hex2rgb(hex):
hex = hex.replace("#", "")
return int(hex[0:2], 16), int(hex[2:4], 16), int(hex[4:6], 16)
def fit(self, X, y=None):
return self
def transform(self, X):
return X.apply(self.hex2... | [
"max.humber@gmail.com"
] | max.humber@gmail.com |
8412cd184509540222243fc101f655bdd272b3a7 | fd693c1e440c69272850ed614e331f79e433c74d | /pipeline.py | ebd75d923a04e5ab62b4d01ee9f5b075db6d3675 | [] | no_license | YODAXYZ/Tender_Hack | 830cd00183e9301aed56bd1aa0ca5e4290bc9439 | a40707afa4df474e63fe7977d06fcbee2d2da688 | refs/heads/master | 2023-07-31T20:00:59.451674 | 2021-09-26T13:24:49 | 2021-09-26T13:24:49 | 410,068,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | import pandas as pd
import json
# Читаем эксель файлы
df = pd.read_excel("СТЕ.xlsx")
contract_df = pd.read_excel("Контракты.xlsx")
def get_season(value):
"""
parse datetime into season of year
:param value: datetime
:return: str
"""
doy = value.timetuple().tm_yday
# "day of year" ranges f... | [
"marat@indivd.com"
] | marat@indivd.com |
85436586d737ef0c812cedf461aa95717da30280 | 8a6448bc206363d35464a8fc6bf0845cbc0c3da2 | /src/snake/board.py | bd81005bdabffd6f0d4ccecd377476861a131f00 | [] | no_license | danno-s/neuroevolution | adb7ca9f738ff207d7830c075ae4551638862cca | 984849f9d65c617e7aff396f04928e3700ad83e6 | refs/heads/master | 2020-04-13T18:05:16.820502 | 2019-01-03T03:16:09 | 2019-01-03T03:16:09 | 163,364,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | '''This represents a board in the snake game.
It's responsibilities are creating new fruits when the previous one is eaten,
and recognizing when the snake's head is out of bounds.
'''
from random import randint
from pygame import draw, display, Surface
class Board:
def __init__(self, dimensions, opacity = 255):
... | [
"danielsoto.3004@gmail.com"
] | danielsoto.3004@gmail.com |
f5a2e5a623c38797822aa43672dd567a377d6369 | 379e932003bac6869260a6b362bce589951c96a1 | /backend/test_25201/settings.py | ed9bc57d4ac097d5d02a1401e46104c4c50ebc7a | [] | no_license | crowdbotics-apps/test-25201 | 31e0020b73f87fd28b15a57f3702750cde7eba4e | 9cd38854979c7d6680a2b0f8ac32c71b5e3e13c1 | refs/heads/master | 2023-03-27T10:57:58.090951 | 2021-03-23T02:08:52 | 2021-03-23T02:08:52 | 350,550,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,214 | py | """
Django settings for test_25201 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0abcaede73946f177a25034b2963d0e9ac0ce97d | 56d558d7ff259b66850c0ee6558c3121867f987f | /test01/test01_05_01/package_time.py | 03cc00d16aaca9bc0439333674d90f643589db2c | [] | no_license | kongjingchun/PyTest | 9f97e42d03206091bfe6e78f22a967ae242a37fc | ad88c51b5482e5b32c35bd7d4049636f11786d74 | refs/heads/master | 2023-05-25T22:18:05.914096 | 2021-06-05T14:27:04 | 2021-06-05T14:27:04 | 341,505,772 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | # coding:utf-8
# @Create time: 2021/3/18 11:01 上午
# @Author: KongJingchun
# @remark: time包的使用
import time
now = time.time()
print(now)
time_date = time.localtime()
print(time_date)
for i in range(3):
time.sleep(1)
print(i)
| [
"jing20130808@vip.qq.com"
] | jing20130808@vip.qq.com |
b1ffe137dc1156306b933bd1b929cd6984e4662b | 92f15f0810af84357915274c0fca143ece51383a | /alphaVariable3D.py | e4c841cba3e4c278d48e53c2e5facf3f0a478cf9 | [] | no_license | 1devansh/cost-optimization-HPC | 2bd20adb94a3692993e9f3779bce6ef027591470 | 1435f9514e7e9bcc4118e5be507c246947949ddb | refs/heads/master | 2022-09-10T11:17:33.149985 | 2020-05-25T16:11:14 | 2020-05-25T16:11:14 | 264,963,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from __future__ import division
import random
import math
import numpy as np
from mpl_toolkits import mplot3d
from itertools import combinations
import matplotlib.pyplot as plt
def fact(n):
return math.factorial(n)
def comb(p, v):
return fact(p)/(fact(v)*fact(p-v))
def graph(p, beta, alpha, CpiR, CpiV, Cw... | [
"ds8611@bennett.edu.in"
] | ds8611@bennett.edu.in |
83254d1ab162171014c506c6f9cd72de12a0fb3a | 7704614dd6513f755e3086e3becad56a9f188900 | /lab10/lab10_pickle.py | de0af89c9f19a582dd8bfee8814c60723f1b521a | [] | no_license | Zettroke/python-labs-bmstu-2019-2020 | e5c45aa61ed8ca9f16f2bf8151bbfda6b530e0c0 | db30e3f6afdfdb56b0ccbf88f810a4a70a20fd24 | refs/heads/master | 2021-01-05T05:12:55.106920 | 2020-03-01T20:26:43 | 2020-03-01T20:26:43 | 240,892,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,132 | py | from typing import List, Tuple
import pickle
def from_bytes(bts: bytes) -> int:
return int.from_bytes(bts, 'big')
def to_bytes(num: int, ln: int) -> bytes:
return num.to_bytes(ln, 'big')
def open_db() -> Tuple[str, List[str], dict]:
file = None
data = None
while not file:
try:
... | [
"skorostnoy2000@yandex.ru"
] | skorostnoy2000@yandex.ru |
ee218a548a9c868efec73566484d93427fbbb9a3 | bfdd15c882eaa58b2343a7a930a07f98bed82061 | /news/urls.py | 38207aabc8f828e7a473706baabf6fbbe9256994 | [] | no_license | sthabinod/SCHOOL | 1c474ccae18c9204d2749d1bfdc409a5d0c3ef4f | 4a350fcf3717d35c54928cf1f950a666fc263311 | refs/heads/main | 2023-05-27T18:51:54.092413 | 2021-05-24T12:44:20 | 2021-05-24T12:44:20 | 370,336,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django.urls import path
from . import views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('news_details/<id>', views.news_details, name="news_details"),
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | [
"stha.binod1000@gmail.com"
] | stha.binod1000@gmail.com |
72f8c063288e7e2d9faa6fcefe52ec14f9fb7cac | 4b465d551d27dde54ee6f8962d35c5b66fec12ec | /crt_portal/tms/admin.py | af9b61f1a791943c5b749cddee0e7b1969cc2eb7 | [] | no_license | 18F/crt-django | 365c7cdf4092cebe2ebcdfe492c259ada1d3b77f | 5e2cbea7b33f5367774b816d2a1287336b64d31c | refs/heads/master | 2022-06-11T01:58:39.100099 | 2021-06-04T23:10:04 | 2021-06-04T23:10:04 | 191,433,413 | 0 | 2 | null | 2022-05-25T07:23:35 | 2019-06-11T19:02:23 | Python | UTF-8 | Python | false | false | 444 | py | from cts_forms.admin import ReadOnlyModelAdmin
from django.contrib import admin
from .models import TMSEmail
class TMSEmailAdmin(ReadOnlyModelAdmin):
search_fields = ['recipient', 'report__public_id', 'error_message']
list_display = ('tms_id', 'recipient', 'report', 'status', 'created_at', 'completed_at')
... | [
"joseph.krzystan@gsa.gov"
] | joseph.krzystan@gsa.gov |
06555043b6ce170dfa7d12f9b0302130aef2bdff | 51188a96c931f2889020e8335e679311a3943e63 | /lib/run.py | b0f6307f821da369411b70d4cae755f5dce2ec54 | [
"MIT"
] | permissive | JIIOryo/air_conditioner_api | aa1259c7a1fb17579d0c50c097a552df76c22306 | edd6e028551f1c464b1e40805e18b64386897e02 | refs/heads/master | 2023-02-13T16:28:57.432355 | 2020-09-06T14:54:20 | 2020-09-06T14:54:20 | 291,477,154 | 1 | 0 | MIT | 2020-09-06T09:02:19 | 2020-08-30T13:37:24 | Python | UTF-8 | Python | false | false | 255 | py | import subprocess
def run_air_conditioner(
irrppy_path: str,
command_file_path: str,
gpio: int,
command: str,
):
cmd = f'python3 {irrppy_path} -p -g{gpio} -f {command_file_path} {command}'
subprocess.Popen(cmd.split())
return
| [
"r-kawaguchi-m4w@eagle.sophia.ac.jp"
] | r-kawaguchi-m4w@eagle.sophia.ac.jp |
91db5a7d869f3f394cfe7992f247f8f5e0eb0ebc | 0417db752c34400ea750b8a7721efe2df2c0c42e | /data_extract_features.py | f703cd38f3943c734e15bd030b798c6a06bcda38 | [] | no_license | aiagarwa/AdaptiveApplications | c10bc7d6922b12e105b8ffb1e66aa52ddcafec20 | 0a554e2447d5cc38595c60b1c15ca892df6ea7dd | refs/heads/master | 2023-05-30T19:42:20.797820 | 2021-04-23T17:53:14 | 2021-04-23T17:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,476 | py | # -*- coding: utf-8 -*-
"""Data_Preprocessing.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1F735mILOTb8bkR_qaI-q8svzZ8KDS5YC
"""
import pandas as pd
import numpy as np
from google.colab import drive
drive.mount('/content/gdrive')
# read the... | [
"ruxu@tcd.ie"
] | ruxu@tcd.ie |
3a4577c300543e75a0aecea0c058e33233702966 | 58e4df57f418f763d23ae9c6c5b4ef8566f89c87 | /sla_exporter/modules/__init__.py | 6650ae71f411a944b0f912738cb2b0b028854eba | [] | no_license | lfyzjck/sla-exporter | 3eec207b9f2e145fc7f994d2211eed9c17e23f42 | 9064a68d29243ff7322b5d5ba0b5804d6ca97398 | refs/heads/master | 2023-09-04T22:04:29.588789 | 2021-11-16T03:01:16 | 2021-11-16T03:01:16 | 337,016,475 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | import logging
import subprocess
import socket
import os
import time
import requests
from schematics.models import Model
from schematics.types import (
BooleanType,
DictType,
IntType,
ListType,
ModelType,
StringType,
)
from sla_exporter.module_utils import register_module
from sqlalchemy import... | [
"jickimkim@gmail.com"
] | jickimkim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.