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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
107191d3078278d3565473fa95b4f56689fd46fe | b066aa3489191fe01f65798d9b269df4401d87f5 | /works/renamefiles.py | 3fef1cb7806640a8203e9bc5fe6c69d2c2c0aff8 | [] | no_license | yinzhendong/myworks | 1936826b2e16550f0f7f7c92a9572e75ea3405b7 | 0ec39854a5bc90a5c93227c79eb40224189f1eca | refs/heads/master | 2022-01-29T10:12:35.308744 | 2022-01-12T06:50:43 | 2022-01-12T06:50:43 | 215,003,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | import os, time, random
def renameFiles(path, prefix):
for root, dirs, files in os.walk(path):
count = 1
for file in files:
# get file postfix
postfix = file.split('.')[-1]
# make new file name with prefix and count.
# example: 20200406.1.mp4
... | [
"443723640@qq.com"
] | 443723640@qq.com |
3fc066210b8493bb0d40a8279d61d93f4157055a | 602fa0e4ce194d3073d78230c61f7053281f9f9b | /code/python/src/util/data_util.py | b08a962dd0200b383f1b66164fc7b1e43403c0a4 | [] | no_license | ziqizhang/wop | 111cfdda1686a874ff1fc11a453a23fb52d43af1 | ea0c37f444de9f2d5303f74b989f6d1a09feb61d | refs/heads/master | 2022-09-14T20:14:11.575021 | 2021-12-10T21:23:24 | 2021-12-10T21:23:24 | 166,239,995 | 2 | 1 | null | 2022-09-01T23:11:13 | 2019-01-17T14:33:51 | Python | UTF-8 | Python | false | false | 13,037 | py | #read csv data as dataframe, perform stratisfied sampling and output the required sample
import collections
import csv
import json
import pickle
import numpy
import pandas as pd
from sklearn import model_selection
from sklearn.model_selection import train_test_split
#prepare data to fasttext format
def to_fasttext(in... | [
"ziqizhang.email@gmail.com"
] | ziqizhang.email@gmail.com |
2bf6975be2364368e2cde8343d00d2f3ef6bec03 | a571488aa7a5027e0ed466081e30cb18469f98f9 | /(Pre-July) 4. SQL/import.py | 8423c46a37fa976b2b0214c49e32e0d134c06d17 | [] | no_license | DeetoMok/CS50 | f8d84105344ec256fdbecf96fb72b7bdf5c8bd96 | 4ad932bfd910a6b9602d4754a495f202c9bc9ecf | refs/heads/master | 2023-02-02T08:21:08.350081 | 2020-12-20T12:29:03 | 2020-12-20T12:29:03 | 286,779,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import csv
import os
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
engine = create_engine(os.getenv("DATABASE_URL"))
db = scoped_session(sessionmaker(bind=engine))
def main():
f = open(flights.csv)
render = csv.reader(f)
# Where col 1 is origin, col 2 is de... | [
"54903425+DeetoMok@users.noreply.github.com"
] | 54903425+DeetoMok@users.noreply.github.com |
72f8181b7c4daaf75a65c514a5d3b2a6004cb679 | f8972963bc77887221f900209b417915c7920747 | /venv/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/pip/_internal/utils/ui.py | d7b3de8c0d7fbd55441ba19daede31ad778a0459 | [] | no_license | patilmanojk/UpGradProHackathonTeamTechPals | 3b35a9eaa9fb84ccd3579bd938c240169412da34 | 6bedd9e997089c5ca47709e072f6651b89faafa3 | refs/heads/master | 2020-07-28T05:51:40.672852 | 2019-09-26T19:24:45 | 2019-09-26T19:24:45 | 209,329,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,056 | py | from __future__ import absolute_import, division
import contextlib
import itertools
import logging
import sys
import time
from signal import SIGINT, default_int_handler, signal
from pip._internal.compat import WINDOWS
from pip._internal.utils.logging import get_indentation
from pip._internal.utils.misc imp... | [
"patilmanojk@gmail.com"
] | patilmanojk@gmail.com |
4a2edd27b685ec913189effd9e6de50548c275d2 | 22cb2dcd5aff07d03217f03344817148532546de | /MultiplicativeBinomial.py | 17262dfb344cea78092f87e578f31681a6a88e04 | [] | no_license | thomasjdelaney/Multiplicative_Binomial_Distribution | 5789609e05392fcb5363d4e816206334b9caf5b2 | 080f8acdda4ad4aee6b85a518a44ef12beb391ba | refs/heads/master | 2022-04-22T07:26:59.184713 | 2020-04-17T16:32:31 | 2020-04-17T16:32:31 | 256,489,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | """
For the class of MultiplicativeBinomial distribution object and all useful functions relating to it.
"""
import numpy as np
from scipy.special import comb
from scipy.optimize import minimize
class MultiplicativeBinomial(object):
def __init__(self, p, theta, m):
"""
Creates the Conway-Maxwell bi... | [
"thomas.delaney@posteo.net"
] | thomas.delaney@posteo.net |
8d87c9e0c2d652d34e9fa4039380342998515f3e | fb63e8ddaead99538d7b46467166904cd8b34580 | /weeklylpall-20160101.py | 3f82de2d98e1cabffaac9a32cb9d71436f500a69 | [
"BSD-3-Clause"
] | permissive | mwbetrg/skripbatak | da5410a3be83393957d32ad53991466244757185 | 4565e26cf9e3c40c0b38374d8dd07ae7313f5899 | refs/heads/master | 2021-01-19T01:39:25.516181 | 2017-01-18T23:12:29 | 2017-01-18T23:12:29 | 42,288,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,291 | py | #qpy:console
import site
import os
from peewee import *
import time
import datetime
import io
import sys
# 20160103
if os.path.exists('/storage/extSdCard'):
db = SqliteDatabase('/storage/extSdCard/mydb/lessonplan2010.db', **{})
#backupdir = '/storage/extSdCard/dbbackup/'
#db = '/storage/extSdC... | [
"mwbetrg@gmail.com"
] | mwbetrg@gmail.com |
785561d341540c7549325e56f64e3838bd93b98b | 9f3b43a01f205fb1692cd4e873a5fa4fd2b4d78e | /variable.py | eb6eceee564e253696b79b225e05aa3df7a686a8 | [] | no_license | sourlemon11/curve_synthesis | f88f1eb8da5ff7de79c7da377d3e85265b1f99dd | edc088bd9a3493f08ea6a5aeb2fc88f51231afe7 | refs/heads/master | 2020-04-09T10:22:05.822389 | 2018-12-03T23:46:35 | 2018-12-03T23:46:35 | 160,269,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,668 | py | import logging
# import ipdb
from numpy import linspace as np_linspace, round as np_round, array as np_array
from sympy import symbols as sp_symbols
# from collections import ChainMap
# Variable
# --> Contains
# --> ... Range, n_points, linspace
# goes into curve as an class
class Variable():
def __init__(self, s... | [
"soneen11@yahoo.com"
] | soneen11@yahoo.com |
566bdadc52d20472b63a9220e98e6d64c70af204 | 12fb02e7d946002beee4e095ea23f4d98c968afa | /tscripts/yunwei/operate/compress.py | 2322013f32616938001a146dfb17314ba7e2ad9c | [] | no_license | cash2one/yunwei-1 | 0ab4ec0783c061739dc9a6c3db2f9379605746fd | b929fe23fd95ea1f18bd809b82523101eb414309 | refs/heads/master | 2020-07-02T14:31:00.776030 | 2016-09-09T05:31:52 | 2016-09-09T05:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
date: 2016/08/20
role: 压缩解压
usage: cmb = compressBase(log_path) 实例化
cmb.zipp(source_dir,zipfile_path)
cmb.tar(source_dir,tarfile_path)
cmb.unzip(zipfile_path,target_dir)
cmb.untar(tarfile_path,target_dir)
'''
from __future__ import absolut... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d453bb040eec2a67cd33c35cefc09e5e6a3f1346 | 63b54bfcdd36ac1a0046f2ca4c639d18942c2697 | /123.py | 2fdfb6e0a78c83b3d0d6720d11cd61295d9a9036 | [] | no_license | chandioboss/janu | 898e12498ef17cee33c8ba9c760016ccae33d64a | 5c82db8cc618381c4f175f14b4281e7780eff581 | refs/heads/master | 2022-05-24T05:36:13.134166 | 2020-04-19T11:27:59 | 2020-04-19T11:27:59 | 256,958,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,437 | py | #!/usr/bin/python2
#coding=utf-8
#The Credit For This Code Goes To IBRAHIM CHANDIO
#If You Wanna Take Credits For This Code, Please Look Yourself Again...
#Reserved2020
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
... | [
"noreply@github.com"
] | noreply@github.com |
ceab03c4764ad7cac99e7e1fcadaca2cdc5da95a | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py | 94cabd744e1d3785ac2a728ff2ac0c584fccdf39 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 4,397 | py | from _pydevd_bundle.pydevd_constants import get_current_thread_id, Null, ForkSafeLock
from pydevd_file_utils import get_abs_path_real_path_and_base_from_frame
from _pydev_imps._pydev_saved_modules import thread, threading
import sys
from _pydev_bundle import pydev_log
DEBUG = False
class CustomFramesContainer:
... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
ca40ea36db76c942c2481314570c212af410f345 | 5a2cd2517a6738105447909a4e8ecda07bc28647 | /inst/Python/WriteR/WriteR.pyw | 4e52929e0874a977aa0965fa727b6e75e15a5407 | [] | no_license | dewarren/BrailleR | e2f2a948832d94661e4da37cf0c813fda83e7561 | 5517918d36e61aade29e57f4ce706137fc697fed | refs/heads/master | 2020-12-02T06:29:52.684393 | 2017-10-02T01:41:41 | 2017-10-02T01:41:41 | 96,844,078 | 0 | 0 | null | 2017-07-11T02:56:05 | 2017-07-11T02:56:05 | null | UTF-8 | Python | false | false | 42,985 | pyw | # WriteR Version 0.1612.0
# development of this Python version left solely to Jonathan Godfrey from 8 March 2016 onwards
# a C++ version has been proposed for development in parallel, (led by James Curtis).
# cleaning taking place: any line starting with #- suggests a block of redundant code was removed.
# assistance f... | [
"a.j.godfrey@massey.ac.nz"
] | a.j.godfrey@massey.ac.nz |
a4e44762a7511ec359dd8e19c070b721d03e6d4c | ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a | /AtCoder/Panasonic 2020/C.py | df4a723d90f0c2af78b234c8e09df7cc7078f4ca | [] | no_license | cormackikkert/competitive-programming | f3fa287fcb74248ba218ecd763f8f6df31d57424 | 3a1200b8ff9b6941c422371961a127d7be8f2e00 | refs/heads/master | 2022-12-17T02:02:40.892608 | 2020-09-20T11:47:15 | 2020-09-20T11:47:15 | 266,775,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | a, b, c = map(int, input().split())
if (c - a - b) >= 0 and 4 * a * b < (c - a - b) * (c - a - b):
print("Yes")
else:
print("No") | [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
308f47876d956e476994e9c9fe6924bde8b25f3c | 22e9d7c194cf22513d68b61b97c49405a47e8708 | /Number_Theory/sieves_primality_test.py | ef64fdf8d48dbf9a21543d0f6f5e2a11e959499b | [] | no_license | SandeepPadhi/Algorithmic_Database | 44c26f9300a99539781c5beb5587997b3ecadfe1 | ab8040a7dad94c84ec88f40e44b8520edcbe2443 | refs/heads/main | 2023-06-22T02:04:29.362315 | 2021-07-19T17:48:40 | 2021-07-19T17:48:40 | 338,329,340 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import math
maxn=1000000
spf=[i for i in range(maxn+1)]
def sieve(spf):
for i in range(2,int(math.sqrt(maxn))+1,1):
if spf[i]==i:
for j in range(i*i,maxn+1):
spf[j]=i
def isPrime(x):
return True if spf[x]==x else False
sieve(spf)
print(isPrime(31)) | [
"padhisandeep96@gmail.com"
] | padhisandeep96@gmail.com |
3aca6340545fed7cbce0819167db2bb2462c2766 | 87d7eb0d93980ebdf655758ea608bd2f3fb9b126 | /detect.py | aeeadcc7ce600d0baf5adbb82cdb2bb26e8a8925 | [] | no_license | cheeeaaaters/FYP-flask | 73e1d4ba51d5c3dbdb59f21ace28e1ea6d35010e | 68d91a8de35cc77275d146e24b1c36296d5a68fb | refs/heads/master | 2021-04-10T05:20:44.910502 | 2020-04-14T08:32:37 | 2020-04-14T08:32:37 | 248,913,168 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,469 | py | import argparse
import scipy
import os
import numpy as np
import json
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import transforms
from scipy import ndimage
from tqdm import tqdm
from math import ceil
from glob import glob
from PIL import Image
import dataloaders
import models
f... | [
"34884084+cheeeaaaters@users.noreply.github.com"
] | 34884084+cheeeaaaters@users.noreply.github.com |
17925adfde5c2e4b82469e2273c03496c752f669 | e2f8e247dc3cd6e8e3751d981e2571860cfa9221 | /Chapter59/using_tracemalloc.py | 7c6cd0d695f8d92395358c4a8ee1a21c37fbc044 | [] | no_license | wlstjdpark/EffectivePython | cefe31b6fd797740dc2a29ef6ccb01a52cfb10b5 | 8b2945ba550bc51c070a0d3629e7735523dcd94e | refs/heads/master | 2021-01-17T08:26:58.922106 | 2018-06-11T14:30:21 | 2018-06-11T14:30:21 | 68,527,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import tracemalloc
tracemalloc.start(10) # 스택 프레임을 최대 10개까지 저장
time1 = tracemalloc.take_snapshot()
import waste_memory
x = waste_memory.run()
time2 = tracemalloc.take_snapshot()
stats = time2.compare_to(time1, 'lineno')
for stat in stats[:3]:
print(stat)
# with trace
import tracemalloc
tracemalloc.start(10) # ... | [
"PaRk119*86*"
] | PaRk119*86* |
10f81199000f82116d3cd541a9da66c52ed703c4 | 15e739894042aa6df7fc005e4f157b6d9e34a3df | /alembic/versions/88de3fba4b96_.py | e5ce43293de6e407c916e6269adb52fe88d02a58 | [
"MIT"
] | permissive | chalupaul/twitch_dungeon | 605b3b445d402f4d063177e5768b948885d6e69a | 97af4a73c8e99d2e5f1f1880e67e3253e0e06582 | refs/heads/main | 2023-01-07T15:50:08.189346 | 2020-10-24T20:38:39 | 2020-10-24T20:38:39 | 306,485,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | """empty message
Revision ID: 88de3fba4b96
Revises: 0a91fb858408
Create Date: 2020-10-24 15:27:06.106894
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '88de3fba4b96'
down_revision = '0a91fb858408'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"me@chalupaul.com"
] | me@chalupaul.com |
ffd233d071341151366c88d28462a6473f4c2d0e | b22e672ca597c8277d593d993f74f260b0e62805 | /shellscripts/saveFoutputStruct.py | 723e7206464df44e91a202af08c5b82d74f96f5a | [] | no_license | simonsandell/thesis-project | 967d06ada68c77d570f154b25480868f367f4f77 | 16cc612fda2c9a101f6f5973f1e008923ed07360 | refs/heads/master | 2022-12-12T02:10:09.862114 | 2018-09-07T08:58:29 | 2018-09-07T08:58:29 | 286,031,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import os
import sys
res = [];
for direc,subdir,files in os.walk(sys.argv[1]):
dop = False;
for f in files:
if ".dat" in f:
dop = True;
if dop:
res.append(direc);
of = open("./foutput_struct.fst","w");
for ln in res:
of.write(ln+"\n");
| [
"simonsandell@live.se"
] | simonsandell@live.se |
efea246218ff9b5d4ceb471c7374571b916bb316 | 8a346638410159b27c5c107cac52a5a2258b5bec | /tree/leetcode_house robber_III.py | 7ac9928e566baa6ed2787addc33daf7321a888e9 | [] | no_license | psy2013GitHub/dsa | e3c45cce7cf314050b190e9acecdbc05a3bf9d99 | e7b1dcc8b8a33bbe705d9ce348c75ea2474761c4 | refs/heads/master | 2020-12-24T10:31:25.524278 | 2017-01-17T15:18:51 | 2017-01-17T15:18:51 | 73,148,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #-*- encoding: utf8 -*-
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def rob(self, root):
"""
:type root: TreeNode
:rtype: int
recur unit:
... | [
"superdengzhou@163.com"
] | superdengzhou@163.com |
551b5e5c885e1a602f585c7ee7bb8b4c1fdb63b0 | 4900ca16320382567af96fa1fbe9f73f81d59404 | /surgeon.py | e13724b715e4ac07c85c7039b7dd9117b0fa5bc5 | [] | no_license | OmegaPointZero/Surgeon | 16515d488bd6eb4358fd487463b1d94a0f5c0317 | dc057ceae03fdcc99e1554913f2591d9504ebd5b | refs/heads/master | 2021-11-24T07:59:18.571451 | 2019-06-14T09:28:53 | 2019-06-14T09:28:53 | 191,914,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,385 | py | import re
import io
import elf
import bin as binr
import argparse
import pe
import sys
bs = binr.bin2str
elfh = elf.parseELFHeader
elfs = elf.parseSectionHeaderTable
peh = pe.parsePEHeader
pes = pe.parsePESectionsHeaderTable
args = sys.argv
parser = argparse.ArgumentParser(description='Parse and modify executable... | [
"noreply@github.com"
] | noreply@github.com |
bfa55ad689dbd194e7a2ccacb5e42fbbe87d0ebb | 44c4e4d97b42aba9732b8297528e9a9da48e9d5a | /metal/utils/weight_inits.py | eaa3948e24fa880011a9ceafd1b90979fc6a7cd3 | [] | no_license | miguelmyers8/Metal | a5d3355a39f6fbe496cb88d936c573f196ee410b | 79edb4656babd076036fc841c184fc75721f055a | refs/heads/master | 2021-06-03T03:43:15.959493 | 2020-08-19T01:17:17 | 2020-08-19T01:17:17 | 145,047,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,197 | py | import numpy as _np
from metal.autograd import numpy as np
def calc_fan(weight_shape):
"""
Compute the fan-in and fan-out for a weight matrix/volume.
Parameters
----------
weight_shape : tuple
The dimensions of the weight matrix/volume. The final 2 entries must be
`in_... | [
"miguelmyers8@gmail.com"
] | miguelmyers8@gmail.com |
bdb306b3e562b04342c57acd93039423c834095d | 4879b2fb1c92552d9286bdd3ff37ecaa42cc04c0 | /Other/Scrabble/mylib.py | fe0b1987a7ec462b0f4b55a18337c9664238bf00 | [] | no_license | propol/University_Projects | 302bd069acbd68528834ae4632a25dceb646bf96 | 094205a42f5b61d931322cbda18e6a4eb51e361e | refs/heads/master | 2020-06-01T21:57:24.393554 | 2019-07-05T22:04:43 | 2019-07-05T22:04:43 | 94,086,704 | 0 | 1 | null | 2019-04-24T08:08:46 | 2017-06-12T11:03:09 | C++ | UTF-8 | Python | false | false | 2,955 | py | import random
import codecs
from itertools import permutations
lexiko = {}
points = {'Α': 1, 'Β': 8, 'Γ': 4, 'Δ': 4, 'Ε': 1, 'Ζ': 10, 'Η': 1, 'Θ': 10, 'Ι': 1, 'Κ': 2, 'Λ': 3, 'Μ': 3,
'Ν': 1, 'Ξ': 10, 'Ο': 1, 'Π': 2, 'Ρ': 2, 'Σ': 1, 'Τ': 1, 'Υ': 2, 'Φ': 8, 'Χ': 8, 'Ψ': 10, 'Ω': 3}
class SakClass:
de... | [
"noreply@github.com"
] | noreply@github.com |
4a32f8e3968cc9c9bb8b355411d8be8b5926f1d6 | 4c97f83aa598655c78c94f5085a39fb75359e4e9 | /quickstart/quickstart/settings.py | 4be3763f15d6ec88687cba5663c0630d2315b840 | [
"MIT"
] | permissive | PedroBern/django-graphql-auth | 7b7a90a52cb3aaf6dbc9e42dda2b6c1bf9fa8c73 | face76be02928947e32358c5207b397d2457f99b | refs/heads/master | 2023-08-17T00:45:53.384463 | 2022-06-17T09:46:13 | 2022-06-17T09:46:13 | 234,124,856 | 342 | 123 | MIT | 2023-08-14T18:47:29 | 2020-01-15T16:36:01 | Python | UTF-8 | Python | false | false | 4,182 | py | """
Django settings for quickstart project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"pedrobermoreira@gmail.com"
] | pedrobermoreira@gmail.com |
6d594e11da8a7b220ea7286f7fb5b4a2a98c0b15 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/78/6015/submittedfiles/triangulo.py | 8f53086208c10d248c43bc38a441462edf00389a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=input('digite o valor de a:')
b=input('digite o valor de b:')
c=input('digite o valor de c:')
if a>=b>=c>0:
print('s')
if a>b+c:
print('n')
if a**2==(b**2)+(c**2):
print('Re')
if a**2>(b**2)+(c**2):
print('Ob')
if a**2<(b**2)+(c**2)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2095f914ce3e96225e455108732ef0798ef5a742 | 241703a2ca81bcc2b08084bf5ea2fe7415bcbfc6 | /Tasks/Chernikova/5.py | 05385ca5a3dd0ced7af41c54184ea34aad7d277f | [] | no_license | PolinaChepolina/testRepo | 58a41df5ce88b98e5ff36ab0745d7694a4c57ce1 | 467888b8f7b7578d015ca5282929f4f119ac469b | refs/heads/master | 2020-05-23T18:03:20.899621 | 2019-08-04T10:56:47 | 2019-08-04T10:56:47 | 186,879,773 | 0 | 0 | null | 2019-07-12T21:36:49 | 2019-05-15T18:11:18 | null | UTF-8 | Python | false | false | 379 | py | Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:36:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>>
=============================== RESTART: Shell ===============================
>>> a= int(input())
b = int(input())
l= int(input())... | [
"p.chernikova@yandex.ru"
] | p.chernikova@yandex.ru |
26662c1be78015bae5c1bac4ae4b837575802df0 | 2368f31ff2b537aeba3f0fdddd13b02cc409ad96 | /aes.py | 3ead499c32ec34972368894b1c9d0a5b8980c584 | [] | no_license | balayette/fault | 163c53bdb00560194da16df1becaba309e88fce3 | 2cd0b262b58ab574a179fe015094fd7fb77af0fe | refs/heads/main | 2023-02-21T15:47:35.129674 | 2021-01-20T00:15:32 | 2021-01-20T00:15:32 | 321,193,709 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,874 | py | #!/usr/bin/env python3
import random
"""
This is an exercise in secure symmetric-key encryption, implemented in pure
Python (no external libraries needed).
Original AES-128 implementation by Bo Zhu (http://about.bozhu.me) at
https://github.com/bozhu/AES-Python . PKCS#7 padding, CBC mode, PKBDF2, HMAC,
byte array an... | [
"nmanichon@gmail.com"
] | nmanichon@gmail.com |
b74c7a408b72582b81de14ddae925d60aa364fdf | 86cf79436659ff8d69d6d7a8d9cb358f0d1b4f1c | /AOJ/0383/0383.py | 366208a7d42f41637177a43b9108f38835ec689a | [] | no_license | pombredanne/problem-solving | d96a367851a34fb4f947b3b7a95ad364cf94ea8f | fefdbfb89ba04dbcd7df93c02968759ea970db06 | refs/heads/master | 2020-05-20T12:34:23.654253 | 2019-03-31T09:57:55 | 2019-03-31T09:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | A,B,X = map(int, input().split())
ans = a = b = 0
if X % 500 != 0: X += 500 - X%500
if A < B:
a = X//1000 + (1 if (X%1000>0) else 0)
elif A > 2*B:
b = X//500
else:
a = X//1000; X %= 1000
b = X//500
print(A*a + B*b)
| [
"y.watanobe@gmail.com"
] | y.watanobe@gmail.com |
a5f122ebc72de3be52ef9ee2765e9425eb204b4b | 9ea73f39ce517d412343ac3c1b602ba8b2adc3ca | /run.py | 911ff07f02a4db098ff391fab8cd22aa6b9a8352 | [] | no_license | Heyson/love-sandwiches | a9739656889b74e20ea24062b34165f14f96301b | 26ba0da0cdc7e46040438ae45b957dcb6a5c4811 | refs/heads/main | 2023-08-02T10:16:10.187736 | 2021-09-18T19:25:30 | 2021-09-18T19:25:30 | 400,629,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | import gspread
from google.oauth2.service_account import Credentials
from pprint import pprint
SCOPE = [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive"
]
CREDS = Credentials.from_service_account_file('creds.json')
S... | [
"hs@heysonseverino.com"
] | hs@heysonseverino.com |
e894a478cf49f5d808333ba19573bf3ba9434e8e | 13f5984be7be77852e4de29ab98d5494a7fc6767 | /Exam/商汤/环形赛道小游戏.py | cfeda51c8d56cb04a31ed5a4d36ff1e03e2acc17 | [] | no_license | YuanXianguo/Python-Interview-Master | 4252514763fc3f563d9b94e751aa873de1719f91 | 2f73786e8c51dbd248341559de171e18f67f9bf2 | refs/heads/master | 2020-11-26T18:14:50.190812 | 2019-12-20T02:18:03 | 2019-12-20T02:18:03 | 229,169,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def get_sum(nums):
n = len(nums)
nums.extend(nums)
dp = [nums[0]] * len(nums)
for i in range(2 * n):
dp[i] = max(dp[i]+nums[i], nums[i])
return dp[-1]
n = int(input())
nums = list(map(int, input().split()))
print(get_sum(nums))
| [
"736913978@qq.com"
] | 736913978@qq.com |
33c59ff458b9621c26ce34bb6799cfbf035a6441 | 44ed35bf40532a669a40fbcab04f35e0c62b4c09 | /selenium_test_login.py | 849900c7e410733921a19a7c1717403d6aec1bd3 | [] | no_license | bekimdisha/test_repo | 2a54abdbc5ddcc00e9e97ffff268eb16225a1a4b | c1b9b67f0366854363c434e835004fd44528dd39 | refs/heads/master | 2021-01-01T16:41:40.609964 | 2017-07-21T01:46:25 | 2017-07-21T01:46:25 | 97,890,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | import unittest
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import time
import setup_logger
class TestSignUpAndLogIn(unittest.TestCase):
def setUp(self):
self.logger_inst = setup_logger.SetupLogger()
self.logger = self.logger_inst.setup_logg... | [
"bekimdisha@gmail.com"
] | bekimdisha@gmail.com |
54a92741481e50fdde73c533ad52c1b313d363a4 | cb3bce599e657188c30366adb0af3007ff9b8f96 | /src/note/test_proxy.py | bd9bcba2da944244a78ca5f41ac1a3c0cc431346 | [] | no_license | skk4/python_study | 534339e6c378d686c29af6d81429c472fca19d6d | 4bdd2a50f4bdfd28fdb89a881cb2ebb9eac26987 | refs/heads/master | 2021-01-01T04:36:52.037184 | 2017-12-08T01:04:27 | 2017-12-08T01:04:27 | 97,207,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # -*- coding:utf-8 -*-
#import socket
import random
import urllib2
iplist = ['111.13.7.42:81']
url = 'http://www.whatismyip.com.tw/'
proxy = {'http': random.choice(iplist)}
proxy_support = urllib2.ProxyHandler(proxy)
opener = urllib2.build_opener(proxy_support)
opener.addheaders = [('User-Agent', 'Mozilla/5.0 ... | [
"skk_4@163.com"
] | skk_4@163.com |
f4daad4a47c0fe44e54043eb0a30c4037fdaa0a7 | 901ce889543bce32bcac7bc048a0e0b39144a6de | /chatapp.py | 84be242854825f0fe10a3f4c561f29e1679db036 | [] | no_license | SiDdHaRtHrAjDaSh/hci-review3 | 6052297f70f6784664eb49e5cdeb9c9c2aac6b22 | 7efd80af199391894086a7b4fa7f4d75b60638c5 | refs/heads/main | 2023-01-04T01:11:11.668410 | 2020-11-02T13:31:25 | 2020-11-02T13:31:25 | 309,364,439 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 1 00:35:15 2020
@author: SIDDHARTH RAJ DASH
"""
import nltk
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
import pickle
import numpy as np
from keras.models import load_model
model = load_model('chatbot_model.h5')
import json
... | [
"noreply@github.com"
] | noreply@github.com |
d5cd66d641368250a2240e0b25b8c1617d333706 | 38d84678e520e80dc8251b6458ff832549e529b3 | /Sources/VAH/Time_calculator.py | 7ea7d7ebf6859d4a8557c58f002c20cb3cc986ca | [] | no_license | MickaelCalatr/VAH_Solution | bc544a7bed688cffa039c5c83e52ff82af0ba992 | 04fc09526a497766e4d393219bee8c1e8199ce59 | refs/heads/master | 2021-09-25T12:38:16.238310 | 2018-07-13T12:07:55 | 2018-07-13T12:07:55 | 124,483,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import time
import datetime
class Timer:
def __init__(self):
self.time_to_update = 5
self.fps = 0
self.old_frames = 0
self.start = time.time()
self.end = time.time()
self.update_f = time.time()
self.need_print = time.time()
def need_to_print(self):
... | [
"mickael.calatraba@epitech.eu"
] | mickael.calatraba@epitech.eu |
be490d67d8abd9e56665d7b6ef9536c0352d1325 | fd62d8096dc95923341cfac29f0209bfbea887b4 | /models_evaluation/xgboost/grid_search/jobs_test/5.0_0.03_0.0_200.0_10.0.job.py | 9abbc493eabf624713f7efad4e08eff3f17a4fed | [] | no_license | Eulerianial/premise-selection-deepmath-style | 06c8f2f540bc7e3840c6db0a66c5b30b5f4257f9 | 8684a59b5d8beab1d02a3a7c568a16c790ea4b45 | refs/heads/master | 2021-07-17T17:04:13.472687 | 2017-10-25T13:54:44 | 2017-10-25T13:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import xgboost as xgb
import argparse
import sys
import os
from saving_loading import *
#####################################
p = {
"max_depth":int(5.0),
"eta":0.03,
"gamma":0.0,
"num_boost_round":int(200.0),
"early_stopping_rounds":int(10.0)
}
#####################################
if __name__ == ... | [
"bartoszpiotrowski@post.pl"
] | bartoszpiotrowski@post.pl |
901dcc3900ecf9cac23ac0fed23c343981062771 | 9ccc00f0cf01fe9888b8c151da900a5e64043cd9 | /final/views.py | 5a1ab4f8e41f5d1094a0c4ab5cf9a2bf1a805211 | [] | no_license | Frdhsn/feems | f7ebce1faee4bcab4877dca6d6e59529adbe6bf3 | 950ad3ff09ae09f6ad61d5997fa2220f694a0214 | refs/heads/master | 2023-01-21T19:51:11.332192 | 2020-11-29T16:45:22 | 2020-11-29T16:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,653 | py | from django.contrib.auth.decorators import login_required
from .filters import StudentFilter
from .decorator import exists_student, unauthorizeduser
from .models import Student, Semister_Fee, Semister
from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm
from django.contri... | [
"ashikex49@gmail.com"
] | ashikex49@gmail.com |
664776c6b1ed20de8546b76616085ccde59c6ff5 | 0abef26a612ddfad627000e3280f310a978e8d04 | /node-ffi demo/build/config.gypi | 9157e1b1abfc0ed473fc84e6a81b2e523950b219 | [] | no_license | AugustRush/2017demo | 98fef3954c325029e65ac48fd29f778869a62af6 | 79070ea13fd9813fb0904511ef89c8f01ff86ef6 | refs/heads/master | 2021-01-20T12:51:52.335872 | 2017-09-21T06:59:58 | 2017-09-21T06:59:58 | 101,727,546 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"liupingwei30@gmail.com"
] | liupingwei30@gmail.com |
852f5bf1d22e53bc8195742775a96253742e89ed | 428b0c174d532f362af755164c01d517c5d28eff | /backend/manage.py | 8b76f37a158a57a733ccc8d742f26e9451df73f1 | [] | no_license | crowdbotics-apps/envy-budget-4817 | e861af5ce1631efffd15ee56fcedc7554427976f | 6e4eab96e9786db16e403844be0e22c92f085a62 | refs/heads/master | 2023-01-05T01:03:04.949154 | 2019-06-18T03:33:41 | 2019-06-18T03:33:41 | 192,458,782 | 0 | 0 | null | 2022-12-30T10:31:26 | 2019-06-18T03:30:29 | Python | UTF-8 | Python | false | false | 636 | 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', 'envy_budget_4817.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
276afbc6983319b0eda3c7d14b946c896e905bd4 | cdc76a728f157b3719c3e06eeb1dc8a1ff87556b | /gatePassApp/admin.py | 6e0a3fdc198bc3e6948f1fa19cbf2dc002a524af | [] | no_license | shubhamk-code/gate-pass | d9cdd8b23edec01374c5d8ae2144ee7701db9d73 | f8c1699fb4c3ce810353d15b5920d98e3ac589cc | refs/heads/main | 2023-07-28T08:02:13.999919 | 2021-09-13T16:21:52 | 2021-09-13T16:21:52 | 406,041,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from django.contrib import admin
from .models import *
# Register your models here.
# admin.site.register(Admin)
# admin.site.register(Visitor)
# admin.site.register(DepartmentStaff)
# admin.site.register(Staff)
admin.site.register(Department)
# admin.site.register(Pass)
# admin.site.register(Venue)
# admin.site.regis... | [
"shbhmkawthekar@gmail.com"
] | shbhmkawthekar@gmail.com |
379ca12fa2e8516b086afc15db4f34106d160071 | 2c8f76ee2579a068cb471cf32447f0fa334b84d8 | /Files and Exceptions/Exercises/Silent_Cats_and_Dogs.py | 9b1fc7a6592c4d066d4c218eb3dc8a9b19ba6d51 | [] | no_license | Ahsank01/Python-Crash-Course | 03386b4273aa66a655cc0f5f31b1994bd461f46b | 1ce40c51cf2c6dc96cecb309e23b948873edb4b4 | refs/heads/master | 2023-01-08T02:26:36.017259 | 2020-11-04T18:02:09 | 2020-11-04T18:02:09 | 295,860,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Name: Ahsan Khan
# Date: 11/02/20
# Description: Modify the except block from Cats_and_Dogs.py to fail silently if eithrt file is missing
def readFiles(filename):
try:
with open(filename) as f:
contents = f.read()
except FileNotFoundError:
pass
else:
print(contents)
filename = ['cats.txt', 'dogs.txt', ... | [
"noreply@github.com"
] | noreply@github.com |
6f24935a86a3a6d703e5fa10ad21e8541f62a478 | 0dc9c24f70a0e7649c9936b49466c69a7ae9e1d4 | /InstagramImage.py | 914ad7890e6dbca6fcb9b4bf96bd2991e06e9d95 | [] | no_license | Code-0x00/webImagesCrawler | 1d16183f910f10a11ca67f3b199448f4db65ecb3 | 239d8cb20648ec5e4a9b8941898a59b8f04a9516 | refs/heads/master | 2021-05-10T11:43:12.382798 | 2018-01-29T02:06:12 | 2018-01-29T02:06:12 | 118,418,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | #coding:utf-8
import urllib2
import re
from selenium import webdriver
import time
import SqlDB
class InstagramImage:
def __str__(self):
return 'InstagramImage'
__repr__ = __str__
def __init__(self, mSqlDB = 0, mProxy = None):
print 'InstagramImage----in----'
self.mSqlDB = mSqlDB
self.isUsingSqlDB ... | [
"yohoho233@gmail.com"
] | yohoho233@gmail.com |
ef9173cfa8a6c3ee550b53d9ab4739412550077e | 567b880347a4ace3a64060753bf9bfadb42fb242 | /demo/app.py | e158c660ac3904f01488022ac78189149d5840be | [] | no_license | land-pack/intuition | 7b8335a8c0a07975c862d8e0daaa1f814bd9f63b | bc0a4e847ebe2b4c80c18d6a7e6e16a828c2a712 | refs/heads/master | 2020-03-23T07:03:36.530012 | 2018-07-18T06:26:09 | 2018-07-18T06:26:09 | 141,245,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import requests
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
r = requests.get('http://127.0.0.1:5001/api/preview')
data = r.json()
images = data.get('images')
return render_template('index.html', images=images)
@app.route("/upload")
def upload():
... | [
"landpack@sina.com"
] | landpack@sina.com |
5a37f7eb85b6bd929fabe005a19a2a43d41f15d5 | da5bc6efaebc9ff015938d207b25c7804bc03b33 | /11_class/quiz03/quiz03.py | 58c5273addfe4332aba0c15c597067916327331e | [] | no_license | codud0954/megait_python_20201116 | b0f68f50a1e0d41c3c35535e718d5a236a7b1a98 | a71f57d4332027406953599612cd014de2d26713 | refs/heads/master | 2023-01-31T11:14:27.611468 | 2020-12-18T09:03:11 | 2020-12-18T09:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # 제품관리 설계도
class Product:
# 생성자
def __init__(self, name, price, expired_date):
self.name = name
self.price = price
self.expired_date = expired_date
# 제품 정보
def product_info(self):
print("이름:", self.name)
print("가격:", self.price)
print("유통기한", ... | [
"noreply@github.com"
] | noreply@github.com |
fc07856387a10a3a8dbed500fe7a51d73eaeb050 | e59273ecf45ddc40af8f51607e3ca1fb46632bb1 | /Payload_Types/apfell/mythic/agent_functions/download.py | fcfff9bf3b21b6ee4794053ec13673c5fa3ac9f6 | [
"BSD-3-Clause",
"MIT"
] | permissive | thiagomayllart/Mythic | 62ae01a42027ac1a71564775c8cc7ac8d0e88aa4 | bb1a90fb3c3e37c284fc812548b8f7ae5ffc1fb1 | refs/heads/master | 2023-06-02T08:12:09.099400 | 2021-06-19T23:30:26 | 2021-06-19T23:30:26 | 326,127,766 | 0 | 1 | NOASSERTION | 2021-06-20T03:20:21 | 2021-01-02T06:59:04 | Python | UTF-8 | Python | false | false | 1,829 | py | from CommandBase import *
import json
from MythicResponseRPC import *
class DownloadArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
if len(self.command_line) > 0:
if self.command_lin... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
e7c91c20ea5c73db595cd634da092ff3cd4b3fde | 4fa80f69e64d2ed2285b10e47125bcf78487e75e | /w3/testEngine.py | c2bba189fb8263a9de751fa44e23b75a40a70dd8 | [] | no_license | wli21/found18 | 89edd70c8b9e1aff9801d674b96710130dc70ee8 | 397f5dccf9d76e9801a9354f586b1468617f6208 | refs/heads/master | 2020-03-26T17:17:29.432000 | 2018-12-09T21:14:48 | 2018-12-09T21:14:48 | 145,153,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py |
import re,traceback
class O:
y=n=0
@staticmethod
def report():
print("\n# pass= %s fail= %s %%pass = %s%%" % (
O.y,O.n, int(round(O.y*100/(O.y+O.n+0.001)))))
@staticmethod
def k(f):
try:
print("\n-----| %s |-----------------------" % f.__name__)
if f.__doc__:
print("# ... | [
"wli21@ncsu.edu"
] | wli21@ncsu.edu |
e8f6627e5ca6c6c236f176ab86c0fa1405ddd68d | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/tools/test.py | ec7c7c7d1a8913c9ba7ecbcc555ce0d7d27eba56 | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | import new, sys
import galaxy.util
import parameters
from parameters import basic
from parameters import grouping
from elementtree.ElementTree import XML
class ToolTestBuilder( object ):
"""
Encapsulates information about a tool test, and allows creation of a
dynamic TestCase class (the unittest framework... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
835ae6671986312e9febcc5c4269d9c60e34366d | 32cba9d6b0cb420e13a2a26c9e8c3d07e2c127b6 | /附录A 梯度下降法/最速下降法(原生Python+scipy导数计算实现).py | cee687d26b7245cfa1b086e591ae59819bbce477 | [] | no_license | wanglg007/Lihang-Statistical-learning-methods-Code | bed22551a2883b40e93340d3f96cf2fcf9e19ef2 | 190d16310be154282550e1f55eaadd8c4dd83263 | refs/heads/main | 2023-07-03T17:00:35.809206 | 2021-08-02T08:37:33 | 2021-08-02T08:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | from scipy.misc import derivative
def partial_derivative(func, arr, dx=1e-6):
"""计算n元函数在某点各个自变量的梯度向量(偏导数列表)
:param func: [function] n元函数
:param arr: [list/tuple] 目标点的自变量坐标
:param dx: [int/float] 计算时x的增量
:return: [list] 偏导数
"""
n_features = len(arr)
ans = []
for i in range(n_featur... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
3da220abe75276076ddd8974828a018d7b3360a5 | 0e1642c805231cd1baca8b8cc33ef413e5196a52 | /webpersonal/settings.py | cb6f8a74000322a7440d34c44aa7b063ca96be81 | [] | no_license | Maz191099/WebPersonal | d90e2875ba38af1b6797c9f5ad13f267c7047d7b | 1a06ad539d825fc2d975a1582f02ed5b9332b4bd | refs/heads/master | 2022-07-13T15:27:55.529652 | 2020-05-14T03:29:29 | 2020-05-14T03:29:29 | 263,482,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | """
Django settings for webpersonal project.
Generated by 'django-admin startproject' using Django 2.0.2.
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 o... | [
"maz191099@gmail.com"
] | maz191099@gmail.com |
447262b57cdd1f1dfb6ac8474cbf7c1ad24cf23d | c2400a1efe03aa816f742e2ca9ccb4bc9e815286 | /nmr_gui_v0.2.py | 790aa8c5d4bf1deaf79f973c114058139816080e | [] | no_license | jnejc/nmr_gui | 484fb66b21355044d32378c951a9c41030f0aa8f | 58c5cf94e50f30a92fec9165d4268db6656c61bd | refs/heads/main | 2023-08-20T21:55:28.157162 | 2021-10-26T14:19:44 | 2021-10-26T14:19:44 | 421,452,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203,061 | py | #######################################
# Gui program for analyzing nmr data (from 7NMR)
# created by Nejc Jansa
# nejc.jansa@ijs.si
# document creation 14.11.2016
# last version: 06.11.2018
#######################################
# Beta version (0.2)
# Memory leak not adressed, have to restart between long d... | [
"noreply@github.com"
] | noreply@github.com |
e4d3d004e7b938a470815cf4ee2286e25d8d3eef | cbe65c1f19e869d953c5dac0b103e9cd9cb47c2c | /dataset_preparation/test_cameras.py | 54ff5816efb1849593a842d600cf3bf4bf8e3154 | [
"MIT"
] | permissive | aTeK7/deep-stereo1.4 | 997148e3cde0eaf3537e2b1df15eda7974ccdb51 | dd2150097d0ed1c05791e4d80cf9b404f98a6880 | refs/heads/master | 2021-05-12T18:22:46.757206 | 2018-01-11T07:44:48 | 2018-01-11T07:44:48 | 117,065,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import numpy as np
np.set_printoptions(suppress=True)
import unittest
from kitti_camera import KittiCamera
from kitti_generator import KittiGenerator, extract_multipatch
from reprojection.reprojection import Reprojection
from scipy import misc
import timeit
import matplotlib.image as mpimg
from dataset_preparation.set_... | [
"sorous.hrezaei7@gmail.com"
] | sorous.hrezaei7@gmail.com |
2aa69b4a3ff0de990419e6744aa990e0df63fe3d | 8095e922b65c5bd196f7a2a491d0e0c015ffbc9f | /src/accounts/urls.py | aaadbe67bcdd87ddce2de1034d674cff7ac4835f | [] | no_license | raheemazeezabiodun/django-react-redux-blog | 8f016c4846c849752b113bc0c0fee073853c3bc9 | 21bcfcff819f52b7349f1d052befb335784fad78 | refs/heads/master | 2020-03-07T05:22:03.813640 | 2018-04-07T18:13:53 | 2018-04-07T18:13:53 | 127,293,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
import accounts.views
urlpatterns = [
url(_(r'^login/$'),
accounts.views.UserLoginView.as_view(),
name='login'),
]
| [
"raheemazeez4@gmail.com"
] | raheemazeez4@gmail.com |
483bf82cc9e82d120ce08aa7b02284817733f6c4 | c0dca52ecced3a1d5db3a97a196b3ca3aa45033e | /utils/model_solver.py | 1143bf125d1a2608799032e12fcd9861645edb12 | [
"MIT"
] | permissive | wesley1001/tsc | 607226b32af5d20926c4403d4c3392d9d2bd0689 | fd0eb3dc50685b91d5926053e32ce4c8211738b3 | refs/heads/master | 2021-05-17T07:33:26.237783 | 2020-03-21T13:36:32 | 2020-03-21T13:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Haihao Zhu
## ShanghaiTech University
## zhuhh2@shanghaitech.edu.cn
## Copyright (c) 2019
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##+++... | [
"2712079998@qq.com"
] | 2712079998@qq.com |
6555482bf26bf64908bb088cc87f0d66e92b40ee | 9bf8877b6f6b4061982cd8afc1c8643e72d29e53 | /LearnPythonHardWay/ex25Practice.py | 602ee134d8eae7fd48ff81e261d3b32fb0911576 | [] | no_license | Jonaz80/PythonProjects | e6960b2a3f776581d62a328517b70ee8ee678a06 | 30be350703437d9dc60ac9a49bc0f018ccef55b5 | refs/heads/master | 2020-04-11T23:26:53.330378 | 2019-08-14T20:28:54 | 2019-08-14T20:28:54 | 162,167,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | def break_words(stuff):
words = stuff.split(' ')
return words
def sort_words(words):
return sorted(words)
# do this with words.sorted?
def print_first_word(words):
word = words.pop(0)
print(word)
def print_last_word(words):
word = words.pop(-1)
print(word)
def sort_se... | [
"noreply@github.com"
] | noreply@github.com |
f4fdc569715d0ecd60411afc6fbe30af9fcaa8c2 | 513c2b96e2bfceb911cf4b4fc42cc8a34653dbc8 | /layers/core.py | 0cf99ade60664d6839b92851a76f6c10c4114fa3 | [] | no_license | iiharu/NN | 171ff9852720a76311a728cbf08beb48162d4327 | dc982bdbd6c8ef122068da15a98877c827ab06c6 | refs/heads/master | 2020-04-16T23:39:02.337343 | 2019-06-28T05:00:25 | 2019-06-28T05:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
from tensorflow import keras
def dense(units, activation=None, use_bias=True,
kernel_initializer='glorot_uniform', bias_initializer='zeros',
kernel_regularizer=None, bias_regularizer=None,
activity_regularizer=None,
ker... | [
"iiharu@alumni.tus.ac.jp"
] | iiharu@alumni.tus.ac.jp |
90ffb9bbf344668c0902be78a49dfc17a1a3605d | 85a758eb440e748add42fd90ae6097d7b200e140 | /nsl/go/__about__.py | 26d1b01ca1275bb0cc742e59c18a95df598057ea | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | newskylabs/nslgo | af9b435fb897866049dd646137d9c9598ed5abcc | c5570b31fbd3febd4e9f75bdeba5b12d62d185d8 | refs/heads/master | 2020-05-02T16:25:32.354595 | 2019-05-02T21:47:52 | 2019-05-02T21:47:52 | 178,067,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | ## =========================================================
## Copyright 2019 Dietrich Bollmann
##
## 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/license... | [
"dietrich@newskylabs.net"
] | dietrich@newskylabs.net |
65467841df68300d6c0d6331f26a0ff5ead3bc36 | aa5ed4ac7ca3a466c9a813a7b1571bd1640819f1 | /unittest/test_data_generator_m.py | c3a2e2341cd6640696a0bbb2e973f517d8c6fe75 | [] | no_license | jason157/data_analysis | 8335b0de7aae1bcda379559f18d84968a18f1078 | 1d2cb53266b39d9cd2868ece3e96844fac02c937 | refs/heads/master | 2022-12-20T14:44:01.140737 | 2020-09-25T13:33:26 | 2020-09-25T13:33:26 | 297,929,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import unittest
from src.data_generator_m import main
class MultiDataGenTestCase(unittest.TestCase):
def test_data_generator_m(self):
dataset_type = "source"
quantity = 50
save_file_name = "../data/test.txt"
argv = ("test_data_generator_m.py", dataset_type, quantity, save_file_name... | [
"jason157@126.com"
] | jason157@126.com |
009e557a57f43a23f7987f49b59cdcb9458f5f72 | a14b57c49b77456b2bb568a3539cd6df0b0b3338 | /01 Download_HeadImages.py | f891691c95dc145ad3a9183f0c6affa173fd01c6 | [] | no_license | WillemChan/GreetingCards-to-WeChat-Friends | c5549ccf8d2d732ea3619ecf229529af2945ad8a | e735e022d9e7b4f5d76b4ee14c7758abcb706fb3 | refs/heads/master | 2020-04-15T01:55:32.591346 | 2019-01-17T10:21:19 | 2019-01-17T10:21:19 | 164,296,530 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import itchat
import os
def dld_hImages(outdir):
# Get the QR code to log in to the web version of WeChat
itchat.auto_login()
friends = itchat.get_friends(update=True)[0:]
print(len(friends)) # Get the number of friends
user = friends[0]["NickName"][0:]
path = outdir # Input your path here th... | [
"Williamsstorm@outlook.com"
] | Williamsstorm@outlook.com |
8d7c6c7fe158a77d2d2ea97fae0cd38889c2106b | 424213d62d7e88a907bfc30b52cef61f6d4b95b7 | /007 - 10001st prime/007.py | 782b2a4aea5e439253af3db6bb0ab02c2f98d2cb | [] | no_license | David-Jackson/project-euler-solutions | ae1b3e88987c4e428be046cb6d9562995e0e0298 | 5ba9d9914f6d170110c4f9b533357c167b9f986d | refs/heads/master | 2021-01-19T10:43:04.444228 | 2017-03-15T18:29:51 | 2017-03-15T18:29:51 | 82,206,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py |
def is_prime(n):
if (n <= 1):
return False
if (n <= 3):
return True
limit = int(n**(.5))
for i in range(2, limit + 1):
if (n % i == 0):
return False
return True
i = 1
i_prime = 2
n = 3
while (i < 10001):
if (is_prime(n)):
i += 1
i_prime = n... | [
"jack8679@kettering.edu"
] | jack8679@kettering.edu |
0e1842795d299b5058a649381cc355508b4f59e8 | ead56091e5a1459d5ffb508742fe4c43b7ceae9c | /DiscreteSys/cobweb.py | 99181ddab823af3bc3f917ee3043191de4b1dc02 | [] | no_license | CPSC-SMC/MathModeling | 40dd5ae59b7f58e07bc73b8a7dbec28ce4949da0 | c7b6ac01a68e82d634ff2152d4f7c279e9d12296 | refs/heads/master | 2016-09-10T04:29:32.289030 | 2014-12-08T17:52:49 | 2014-12-08T17:52:49 | 18,861,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | # -*- coding: utf-8 -*-
"""
Cobweb plot
@author: sbroad
"""
import numpy as np
import matplotlib.pyplot as plt
def cobweb(x0, f, ginv = lambda x: x, n = 20):
"""
Produces a cobweb plot of f vs. g (default g(x)=x))
f ---> the function with a fixed/equilibrium point
ginv ---> the inverse of the f... | [
"sbroad@saintmarys.edu"
] | sbroad@saintmarys.edu |
28e1ce89031c317ca92663f63da50fac4b3c0ef4 | 5f1ecf84de54db5ae8eb6cb35d56a40210a5431c | /cnet5_index_builder/cnet5-data/reverb/read_reverb.py | 955739c555bad83c3d9902c492a696e16690ef0c | [] | no_license | Web5design/conceptnet5 | 5afbdfc47316b0472305b6f3084e9abc062aff97 | e93cb933b59f1b190007b62f9c1ac1966c2fa35f | refs/heads/master | 2021-01-18T06:03:02.460091 | 2013-08-07T17:55:47 | 2013-08-07T17:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import codecs, string
import json
import sys
import os
from metanl.english import normalize
from conceptnet5.nodes import make_concept_uri
from conceptnet5.edges import make_edge, MultiWriter
#from file_chunk_processor import FileChunkProcessor
# Unfortunately, the current file contains a mix of normalized and unno... | [
"digitial-intuition@digitialintuition-Inspiron-620.(none)"
] | digitial-intuition@digitialintuition-Inspiron-620.(none) |
9ae8d7ce445ae3cc95832b024c28c453579539ec | 2b7c7e9b00ed9b2dbbac943ee4b79865a96d10de | /Figure_script/Figure_Sobol_env_heatmap.py | c9d4513a3b6f3d83f0f93bf2429b86ad119e7dbf | [] | no_license | YaojieLu/Plant_traits_inversion | ad973e60bb32717d9d718f774c2ec77433c38ced | ec83642ae2a2e6ef96502e58f8074bffdadfefe8 | refs/heads/master | 2021-06-21T15:22:00.225498 | 2020-12-13T22:12:21 | 2020-12-13T22:12:21 | 140,017,309 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py |
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# import data
df = pd.read_csv('../Results/Sobol_env.txt', sep = ',', index_col = 0)
df = df[df['T'] == 30]
df['D'] = round(df['D'], 4)
# labels
paras = ['c', 'L', 'p50', 'ps']
latex = ['$\\mathit{c}$', '$\\mathit{L}$',
'$\\psi_{x50}$... | [
"="
] | = |
55a9e15caa3390bc0770bedd2dfc2dc21ce45dea | 43204546c687d7ec6bba04dc925eb07fc3f938e7 | /angrdbg/server.py | 478c2e72b3c3c6f84679b0c78a5ca6077afea852 | [
"BSD-2-Clause"
] | permissive | jhscheer/angrdbg | 5ac4a278b02e4009442e1033a1cbd9bb5d024806 | 50f257fcfea1dde8e4e76625fe64e3ac4e5eca51 | refs/heads/master | 2020-03-29T05:38:19.115641 | 2018-09-17T10:15:26 | 2018-09-17T10:15:26 | 149,591,381 | 0 | 0 | BSD-2-Clause | 2018-09-20T10:20:11 | 2018-09-20T10:20:11 | null | UTF-8 | Python | false | false | 7,990 | py | #!/usr/bin/env python
"""
classic rpyc server running a SlaveService + angrdbg + IPython shell
usage:
angrdbg-srv.py # default settings
angrdbg-srv.py --host HOST --port PORT # custom settings
# ssl-authenticated server (keyfile and certfile are required)
angrdbg-srv.py --... | [
"andreafioraldi@gmail.com"
] | andreafioraldi@gmail.com |
ec6fcf9d5ab20c814125e6ac6e0b78fc36051033 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startPyquil196.py | 6360a951c9bd056e2dd8006aa958ef69a2c7c95e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # qubit number=4
# total number=12
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f7a36f223a0156d961c0da7655c5e5540947867f | 01efdeb528f753779da7a5c42d9ee47a063c9c9b | /tests/test_basic.py | f715b7a5eadb8af7edda0af1e5732c76618605bb | [
"MIT"
] | permissive | mustafakisacik/Deep-Learning-Training-GUI | 4b57ec3552e9adde07b5c3f98f2132bdbdcfc803 | 1992185fd18e768f30c5bb5edd08ea709be97b09 | refs/heads/master | 2020-12-23T22:47:16.476812 | 2020-01-29T01:22:46 | 2020-01-29T01:22:46 | 237,299,544 | 1 | 0 | MIT | 2020-01-30T20:29:44 | 2020-01-30T20:29:43 | null | UTF-8 | Python | false | false | 951 | py | import os
import numpy as np
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from multiprocessing import Process
def startTensorboard(logdir):
# Start tensorboard with system call
os.system("tensorboard --logdir {}".format(logdir))
def fitModel():
# Create your m... | [
"tunalimustafamertt@gmail.com"
] | tunalimustafamertt@gmail.com |
76c5ed4159bd3cb355438ca8e76e93487fef1c31 | 0cc4d72bb2ad652eb0b5582af1559cacbd30f1c7 | /scripts/wifi_scan/wifi_scan.py | 0fb43ff607d4c951391151cd04913e6589ac8368 | [] | no_license | akrias/projects | ac4599983bfd0119a92b03f7021ffdfa80b238f8 | 5daa4720141d41f848e2edb83dc238078f1392f2 | refs/heads/master | 2020-03-30T18:14:43.660331 | 2018-10-16T06:00:54 | 2018-10-16T06:00:54 | 151,490,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | #/usr/bin/python
import re
import subprocess
import datetime
import pprint
import json
import collections
import csv
class Cell(object):
"""A single cell (AP) entry from using the iwlist wlan0 scan command.
Attributes:
essid: string of the name of the network
address: string of the unique MAC Address of ... | [
"locochocobo@gmail.com"
] | locochocobo@gmail.com |
f52cf9bd2c80065883c364bb502ee21046300949 | 81818932624d88c87deee1017605835b271e88ca | /model.py | eda1de54f6140821b9035ed90ac594d5c153b99d | [] | no_license | Seojin-Kim/Stock-prediction | 3d11d3f5edf9a6898d94552dd19af9ee60dde8b4 | 81634c4529d2946759a4358b527a80a1d9233c2b | refs/heads/main | 2023-03-09T12:32:01.148327 | 2021-02-18T08:13:31 | 2021-02-18T08:13:31 | 339,967,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
cfg = {
'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'],
'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'],
'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, ... | [
"osikjs@kaist.ac.kr"
] | osikjs@kaist.ac.kr |
7b2597ce1e9e6e6daf8d7e56fa0a8b36ae2c662e | 69e9c901d7be385372e05eede55bd50fab72d4d4 | /HLLHC/v0prep/plotMySusySignal.py | 0824473501bb6182cccb3f02c23e205bc1e5261f | [] | no_license | conniemiao/stopSUSY | bad5cac63a433ad75cb66079f49ef1d6ce780e50 | 399915d1fc26055552501473ea1aa4a275c81d41 | refs/heads/master | 2020-05-29T18:35:20.073391 | 2020-01-06T04:47:10 | 2020-01-06T04:47:10 | 189,304,802 | 0 | 1 | null | 2019-12-01T22:47:30 | 2019-05-29T21:59:28 | Python | UTF-8 | Python | false | false | 2,196 | py | # plots a variable from a root file outputted by makeSusySignalRoot.py
from ROOT import TFile, TTree, TH1D, TCanvas, TLorentzVector
import numpy as np
# filename = "Stop_175_LSP1_small"
# inFile = TFile.Open("selectedMuEl_" + filename + ".root")
# plotVar = "nbtag" # **** change this line
filename = "/eos/user/a/alk... | [
"conniem@princeton.edu"
] | conniem@princeton.edu |
ce6c75187338f6411561b65cbd6813d6ec815c50 | ad512372f62e4600ac3983e1e679fac67aa0e986 | /classes/classes/main.py | 30ad7d0f7b416fb9f7eba8cb0ed1ffd0869d9e79 | [] | no_license | jasonis/DPfWP | d83d1357da242247cdef851af4a475293bbee7b7 | 73eed9332daa405f4d2f9434140c6ebce485e81d | refs/heads/master | 2020-05-13T17:36:31.086585 | 2014-08-29T00:11:19 | 2014-08-29T00:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"jislocum78@gmail.com"
] | jislocum78@gmail.com |
a2a54db18153e09c2bdd4306052b808031bbdae2 | eba5e5ff22bcba73001fba729218c02cd257759f | /assets/utils/webssh.py | 2cb35bc81b8a867099b45e74389da231bd5cb930 | [] | no_license | duoyichen/Ops-1 | d04ea66aa37c0732ddeff08889819d8ca830985e | 56d3838a40dc0644a0fe8e58f40be421eaddc693 | refs/heads/master | 2020-04-29T11:48:34.329401 | 2019-03-14T10:29:38 | 2019-03-14T10:29:38 | 166,679,958 | 0 | 1 | null | 2019-01-20T15:59:18 | 2019-01-20T15:59:18 | null | UTF-8 | Python | false | false | 5,155 | py | # -*- coding: utf-8 -*-
import paramiko
import threading
import time
import os
import logging
from socket import timeout
from assets.tasks import admin_file
from channels.generic.websocket import WebsocketConsumer
from assets.models import ServerAssets, AdminRecord
from django.conf import settings
from utils... | [
"zm_world@163.com"
] | zm_world@163.com |
ddb68500430e1a0792d20c343f07dfe6036636d3 | 8c14e2b39554caea82e57d53d082d3325efe1e68 | /HelloWorld/search.py | 7d0a7d7b0c090c852141dd33157ea2e18e9beb1e | [] | no_license | BoyOoka/HelloWorld | 098a83f2c01f1aa15d3dc57781b2c3bf37e37cc1 | fd7ae739105921428dade787dd6d3ddf4bd18841 | refs/heads/master | 2020-06-03T12:09:04.360649 | 2019-06-12T11:55:28 | 2019-06-12T11:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.shortcuts import render_to_response, render
# from django
# 表单
def search_form(request):
return render(request, 'search_form.html')
# 接收请求数据
def search_get(request):
print(request)
print(request.GET)
request.encoding = 'utf-8'
... | [
"pengyihao@baie.com.cn"
] | pengyihao@baie.com.cn |
e20f8797206e7caf8dcf0cf85d87da67831b181e | 22ad0c489d4ee8b1905e913cc4668a97756ad005 | /q5.py | 520f0379a35e3668e8de5023d2344f75c5738a3b | [] | no_license | semihPy/Class4-Exam | e2e507b8c3e57aa71785fe197c65b5bfb22e1c59 | 87f1713c58bcdf7e9e8e2a95c9d6dc52720abded | refs/heads/main | 2023-03-25T01:02:09.426299 | 2021-03-27T21:53:46 | 2021-03-27T21:53:46 | 352,060,145 | 0 | 0 | null | 2021-03-27T11:52:21 | 2021-03-27T11:52:21 | null | UTF-8 | Python | false | false | 496 | py |
# Input ile girilen bir cumledeki sayilarin ve harflerin miktarini hesaplayan bir fonksiyon yaziniz.
# Ornek input: hello world! 123
# Output:
# HARFLER: 10
# SAYILAR: 3
def myfunc():
s=input("string ve sayi giriniz:").split(" ")
harfler=0
sayilar=0
for i in s:
if i.isdigit():
... | [
"noreply@github.com"
] | noreply@github.com |
303b6774137255febbbd1b27906dd550026a4999 | 88287768bd23da62adea05ba61341e44d6e6db41 | /commandable/command_loader.py | 8e57671357a3114ced6ad66f000ad514cab3904f | [
"Apache-2.0"
] | permissive | newcraftgroup/nci-python-commands | ac7d5746633c10d2525aa26339dd35230a07f37e | 8ccdc9251c16305dea54159028ec245dc91a4339 | refs/heads/master | 2021-01-19T05:19:04.823362 | 2019-01-28T10:05:50 | 2019-01-28T10:05:50 | 100,577,546 | 1 | 1 | Apache-2.0 | 2019-01-28T10:05:55 | 2017-08-17T07:59:08 | Python | UTF-8 | Python | false | false | 3,677 | py | # Copyright 2017 NEWCRAFT GROUP B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"job.tiel@newcraftgroup.com"
] | job.tiel@newcraftgroup.com |
479c2117988d2ed2dca6b2805202adc6d5027b9d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02397/s357415256.py | f7d7f986e5b38a58810ae61c71f351e5d8d9603c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | while True:
c = input().split()
x, y = int(c[0]), int(c[1])
if x == y == 0:
break
if y < x:
x, y = y, x
print("%d %d" % (x, y))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
46623ffb901b7b2eebaec341546d5b88580238ab | 04e434ccd57039ee6ea42e18a7eb6a85cd48aab3 | /methods.py | 524ce7ad5b47da8acf07fbae2d5ee96620b59708 | [] | no_license | trocker/Cyberbullying-Detection | 10d4a6565bf6f5acf720397705d5a069a70c6c50 | 7276060a43aaef9f33de2dc6390816eddd3f65dc | refs/heads/master | 2023-03-25T02:05:59.133351 | 2020-03-18T15:04:05 | 2020-03-18T15:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import pandas as pd
import numpy as np
import re
import os
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn import svm
from sklearn.model_... | [
"noreply@github.com"
] | noreply@github.com |
80b04bda0f5a1a85445586eeefba6f62ab5f57be | d71ea190beaa1a5ea8bb6f6e7260e3de3106478e | /semester_enrollment/views.py | ad02a55fe160781feb990f868f7d285190b4d9ad | [
"MIT"
] | permissive | c3n7/university-portal | a5e53d82746726f03268da9d9bb270fd5266438d | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | refs/heads/master | 2023-08-14T05:18:28.449162 | 2021-09-24T14:01:47 | 2021-09-24T14:01:47 | 221,428,849 | 1 | 0 | MIT | 2021-09-24T14:01:47 | 2019-11-13T10:05:35 | Python | UTF-8 | Python | false | false | 2,208 | py | from django.contrib.auth.mixins import (
LoginRequiredMixin,
UserPassesTestMixin,
)
from django.shortcuts import get_object_or_404
from django.views.generic import DetailView, ListView
from django.views.generic.edit import UpdateView, CreateView
from django.urls import reverse_lazy
from django.contrib import me... | [
"kartimothy@gmail.com"
] | kartimothy@gmail.com |
31b1ea48698889979a5945ca7183f21b2bc342d8 | 9326ce62cf5ab4c87fe46f6055aabd48b7a0cfe1 | /test/Driver/Dependencies/Inputs/touch.py | f5c609089303c0cfa5cf3285fd69317f0f447da2 | [
"Apache-2.0",
"Swift-exception"
] | permissive | dan-zheng/swift | 2fae54c8eea72f9316a5c37e5af2f974707d14ad | 6a80196da3cbbb32683144b175e4028d90f5241d | refs/heads/main | 2021-11-28T05:57:42.415265 | 2021-07-09T16:23:39 | 2021-07-09T16:23:39 | 135,949,956 | 15 | 2 | Apache-2.0 | 2019-10-18T00:26:50 | 2018-06-03T23:56:41 | C++ | UTF-8 | Python | false | false | 956 | py | #!/usr/bin/env python
# touch.py - /bin/touch that writes the LLVM epoch -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/L... | [
"devteam.codafi@gmail.com"
] | devteam.codafi@gmail.com |
0c9a6e7cc52d420cc0423507992780d376e1a9e7 | 3ea525af04db4f0969a85cb17b0afab7fd76e424 | /cmsplugin_feed_ai/providers/exceptions.py | 5dd7333afa1b36fec2713eae223cb8cd78e9072d | [
"MIT"
] | permissive | andersinno/cmsplugin-feed-ai | c447a8b296f4636f50cde10f8d263ffac5d4acb4 | 5787330115b553803e7a7d80ad9df0e491eafc7a | refs/heads/master | 2020-04-15T13:51:59.131361 | 2016-09-21T07:05:04 | 2016-09-21T07:05:04 | 68,205,360 | 0 | 0 | null | 2016-09-21T06:42:42 | 2016-09-14T12:42:28 | Python | UTF-8 | Python | false | false | 200 | py | # -*- coding: utf-8 -*-
class FeedException(Exception):
def __init__(self, exc):
super(FeedException, self).__init__('%s: %s' % (exc.__class__, exc))
self.original_exception = exc
| [
"jesse.laukkanen@anders.fi"
] | jesse.laukkanen@anders.fi |
4d5ae49d3097311f5d61d4990faa32a51f9d6dc6 | 749f25209878be42c92b8c4b76206c63794969a5 | /tests/export_name_s.py | a353a18ead8b994e5e8bda009a9ca2773da8a404 | [] | no_license | vakabus/septic | f24d22bc3497c0ac3e7c34cded2b914d2d58eb34 | 88849b9784d785e0978b7a39e3b49a9381378c52 | refs/heads/master | 2020-03-18T23:49:45.495135 | 2018-05-30T11:09:35 | 2018-05-30T11:09:35 | 135,431,467 | 1 | 0 | null | 2018-05-30T11:13:53 | 2018-05-30T11:13:52 | null | UTF-8 | Python | false | false | 224 | py | @export(name='renamed_func')
def original_func(a, b):
return 'ok'
@export(name='RenamedClass')
class OriginalClass:
@export
def __init__(self):
pass
@export
def func(self):
return 'ok'
| [
"jbenc@upir.cz"
] | jbenc@upir.cz |
1d08e20a707c3832aa534f66e7f853d8c23c34ee | 664888153523b056029dc8040b475d94e4d86836 | /userbot/utils/extras.py | 6be2aa1f8955464520669ba42d962bf621355521 | [] | no_license | Hobby-Dev-0/K | aa2d7c55c0235f82a26cdcc08451580cac428470 | fd91468897533e8c7e44c3a8b6fad9acf1e2ae82 | refs/heads/master | 2023-06-26T14:28:42.698755 | 2021-07-23T14:19:23 | 2021-07-23T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | import asyncio
import os
import re
from .. import *
from ..config import Config
from ..helpers import *
# either edit or reply that msg
async def edit_or_reply(
event,
text,
parse_mode=None,
link_preview=None,
file_name=None,
aslink=False,
deflink=False,
noformat=False,
linktext=N... | [
"noreply@github.com"
] | noreply@github.com |
4011ab64d779b6715e55022edcece9470b6c3957 | eefa1f707e6be6f16417947894ec03bf918b3922 | /tools_py/pack/examples/GAN/InfoGAN-mnist.py | 3e42b15bed3d1d97049683df83ab368c3fd64317 | [
"Apache-2.0"
] | permissive | zhouyq041/master | c7c59608e72b53fc1a3210a221a0d0c545fcec31 | 4826620b8090a58c439c1f540351ac168e3cd880 | refs/heads/master | 2020-03-28T10:07:33.833241 | 2018-09-10T03:16:19 | 2018-09-10T03:16:19 | 148,084,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,720 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: InfoGAN-mnist.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import cv2
import numpy as np
import tensorflow as tf
import os
import argparse
from tensorpack import *
from tensorpack.utils import viz
from tensorpack.tfutils.scope_utils import auto_reuse_variable_scop... | [
"1062558260@qq.com"
] | 1062558260@qq.com |
c9faad80f5c8d95ffc3a2906cb7f3de2e01d37e6 | 0b655cb2f170743e6a312931f1905278ce8f0c23 | /lab4/core/scene.py | bb8e10f7900598ab4f0a36cfb9ff38ece5f982d6 | [] | no_license | VKuzia/gl-py-labs | af9bdb652e71252c73a723937911a11ac1a2083d | 6172d2756413122b160745cd1aa771e5cd6b6416 | refs/heads/master | 2023-07-15T00:50:45.664591 | 2021-08-15T13:49:39 | 2021-08-15T13:49:39 | 368,591,965 | 1 | 0 | null | 2021-08-15T13:49:39 | 2021-05-18T16:07:30 | Python | UTF-8 | Python | false | false | 1,055 | py | import moderngl
import typing as tp
from moderngl_window.opengl.vao import VAO
from pyrr import Matrix44
class Scene:
def __init__(self, program: moderngl.Program, aspect_ratio: float, camera_translation):
self.program = program
self.camera_translation_matrix = Matrix44.from_translation(camera_t... | [
"noreply@github.com"
] | noreply@github.com |
2e22a7b99d1f8c4f1f5ce4eb4dafcbd83332bbf1 | d5fe9d0c7c93c3250b9e212435b02d8373dec091 | /code/65.py | 1dd66f853d153787cc61be6ee33a280ffb264627 | [] | no_license | HarshaaArunachalam/GUV | 6937adb84f0928f08c9fbc519310abc06ef3541a | c047887bf6c19a4950c5f634111e1c02966367e5 | refs/heads/master | 2020-05-31T10:52:23.280052 | 2019-08-10T20:23:11 | 2019-08-10T20:23:11 | 190,249,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | N=int(input())
Na=input().split()
Na=list(Na)
for i in Na:
if(int(i)<N):
print(i)
| [
"noreply@github.com"
] | noreply@github.com |
f58b598fb89ada29e134b0652a5a53c1f4e340a5 | bdc486ec6dc0e5c51f0d80c35d024ffafe02fee6 | /app/__init__.py | 913d5313f12e81eb68069dbb1b05e9df627bcdef | [] | no_license | ikaru942/Flask-Pundit | e28f655ca4938e02cf16066af5815316b49f4e79 | d4a129a7c2e9e1f72d4b5f100eab4f270935963f | refs/heads/master | 2020-05-02T08:23:27.225777 | 2019-03-27T21:38:06 | 2019-03-27T21:38:06 | 177,495,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from elasticsearch import Elasticsearch
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginMan... | [
"imaya.karunanayake16@st.johns.edu"
] | imaya.karunanayake16@st.johns.edu |
586070c8bec45c7012d499b7c9a7ec6d6b2afe7b | df8cfbcbd0156f5497fbffa5266f4db1bdb21322 | /neural_networks/rosenblatt.py | 143d2a08f47286edd46b9a8d91381fe2192b83c2 | [] | no_license | NEWjers/AI | 9a8b893101d4fe9f2c13332ec8d6f1c8a58fbb70 | 63a5486f0a8cae6e4113d5757b46da7c54f26866 | refs/heads/main | 2023-05-13T19:35:15.002705 | 2021-06-08T06:28:16 | 2021-06-08T06:28:16 | 374,904,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import numpy as np
class RBPerceptron:
def __init__(self, number_of_epochs = 100, learning_rate = 0.1):
self.number_of_epochs = number_of_epochs
self.learning_rate = learning_rate
def train(self, X, D):
num_features = X.shape[1]
self.w = np.zeros(num_features + 1)
... | [
"serjsonet@gmail.com"
] | serjsonet@gmail.com |
4105691310284155e93357df83d7741f403738fd | a6f4e2e2b2e25f7af509598327aaaa5c795433ac | /django_gocardless/views.py | 7208815d058b283889ea24034697e84804b85aa8 | [] | no_license | adamcharnock/django-gocardless | 4042e9dc6a179cf2030064855b82411adc960470 | ac126fcb12baf8a33472f0e22b29ede2b92e27ed | refs/heads/master | 2021-01-18T13:24:22.265030 | 2014-05-08T17:56:35 | 2014-05-08T17:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import json
import logging
from django.conf import settings
from django.http.response import HttpResponseBadRequest
from django.views.generic.base import View, logger
from gocardless.utils import generate_signature
class GoCardlessPayloadMixin(object):
def get_payload(self, request):
if not hasattr(self, ... | [
"adam@omniwiki.co.uk"
] | adam@omniwiki.co.uk |
4943cfc0184c4c3df9fbab1578b3b2e97fc886c8 | c4e1afc488da5411dfcd27c16ed23efba14b0fd6 | /src/lliurex/variables/dhcp_deny_unknown_clients.py | 6f8929cf529faad2033749955a42967bedbc7691 | [] | no_license | lliurex/python-llxvars | 7eba023b489e5d466ff24ea0fd53a5417a65e214 | 51745a7725d6342918431807e3897b032e6c2f6e | refs/heads/master | 2021-06-21T00:10:27.845595 | 2021-01-28T09:08:32 | 2021-01-28T09:08:32 | 165,815,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | def init(args=None):
try:
name = args['DENY_UNKNOWN']
except:
name = 'no'
return name
#def init
| [
"hectorgh@gmail.com"
] | hectorgh@gmail.com |
b1ff8b84513e9202e906360be1f456af18f61e26 | 72a3c08aefbdc7d797bc19a93b9cbcf588621f38 | /cil/migrations/0007_auto_20190220_1446.py | 5c5f4e6c15cb9345b6c9819bc9e083d4d0b31c07 | [] | no_license | KapilM26/web-portal | 31bf0b4c05de454d5363b9a0d652291ad5a9b809 | 0138c5055cd19537acf0dec80c04adabf5f1bdc4 | refs/heads/master | 2020-05-04T22:19:38.476546 | 2019-10-19T19:06:09 | 2019-10-19T19:06:09 | 177,403,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # Generated by Django 2.1.7 on 2019-02-20 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cil', '0006_auto_20190220_1436'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='phone',
... | [
"kapilm2602@gmail.com"
] | kapilm2602@gmail.com |
6a6762c469e81d373c201c6a168dd6ee3e4c665c | ed75b99e824b5724746d72f2d529781eccf8ef0d | /biostar/celeryconfig.py | 8b2c7b42b8db811498eb7a13032c3e9671c2e8aa | [
"MIT"
] | permissive | satra/biostar-central | 6799c4df4d12de1278f60fb2b29623acf8cc7640 | 794c67d2972a4fe700c79841f5f3c0c562352738 | refs/heads/master | 2021-01-12T20:32:14.356389 | 2014-03-20T15:37:27 | 2014-03-20T15:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from __future__ import absolute_import
from datetime import timedelta
from celery.schedules import crontab
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
BROKER_URL = 'django://'
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_ACCEPT_CONTENT = ['pickle']
CELERYBEAT_SCHEDULE = {
'p... | [
"istvan.albert@gmail.com"
] | istvan.albert@gmail.com |
4c8789502e04a606f59277018560cc68fbb0db97 | 2cd43643bd8f09be05f91b9d3bc75fb3eb373938 | /management/inventory_manager.py | 3dca501b4f2341ba81783f2123d430e1710fb0c6 | [] | no_license | NguyenDytrich/BiblioTech | 0c168b5138042cd3f37d5ad35d0e8e5acaa371a8 | 4fea0598313e1ee96f975f5f0bfc388d96ac14a6 | refs/heads/dev | 2022-12-31T15:57:11.305039 | 2020-10-27T02:25:08 | 2020-10-27T02:25:08 | 300,519,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | from django.utils import timezone
from library.models import Item, ItemGroup
def create_item_record(
itemgroup_id,
library_id,
serial_num,
condition,
availability,
notes=None,
date_acquired=None,
last_inspected=None,
):
"""
Creates and saves a new item record, creates an audit... | [
"nguyen.dytrich@gmail.com"
] | nguyen.dytrich@gmail.com |
1ff9e56b2e34e0e6d083dcf2edf4cd1fc303a900 | 15206c297cfaf3995b0ccc7c8854fffb225f811b | /src/components/event/__init__.py | 64576b5c23f703efab46f42d4a0b862aa6562b39 | [] | no_license | baileythuong/CoderSchool-ticketbox | f5f67cf9d5d993d82d50279d7ba83758e8a568cb | 7a8dd5882c7206404e74a6a8babf32ca7dd3f079 | refs/heads/master | 2021-06-26T21:08:15.720262 | 2019-11-24T11:51:15 | 2019-11-24T11:51:15 | 223,735,900 | 0 | 0 | null | 2021-03-20T02:15:03 | 2019-11-24T11:51:47 | HTML | UTF-8 | Python | false | false | 1,528 | py | from flask import Blueprint, render_template, request, redirect, url_for, flash
from flask_login import current_user, login_user, login_required, logout_user
from src.models import Event
from src import app, db
from flask_login import current_user
from flask_moment import Moment
moment = Moment(app)
# import pdb; pdb.s... | [
"baileythuong@gmail.com"
] | baileythuong@gmail.com |
081a8a4aa09d2eafd182ca6436c7c72218f6dcc5 | 3efee0cf2bd9e0c34bfdd94ab24a15cb88c04509 | /TMM_examples/TMM_fabry_perot.py | 13a671883453a7e29f38c3f94209049946a45615 | [
"MIT"
] | permissive | luwl85/Rigorous-Coupled-Wave-Analysis | bf5016ec70525f5e7bf59dfa93a03902afdfac12 | a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143 | refs/heads/master | 2023-04-25T20:46:45.397976 | 2021-05-20T22:17:54 | 2021-05-20T22:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | '''
TMM applied to a single uniform layer
should recover the analytic fabry perot solution
'''
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
import numpy as np
import matplotlib.pyplot as plt;
import cmath;
from TMM_functions im... | [
"nzz2102@stanford.edu"
] | nzz2102@stanford.edu |
30793b7f98a113cd57ce8f99b439e0f8b0aff4d5 | 377acfd77a5cd281c80428b368248003ebdc33dc | /SpinboxExample.py | af01f7fc21f78144a1fa49e6577f32759a8ec33c | [] | no_license | roilhi/ExamplesTkinterPy | d049f0a4803fa35d31a623b05244e645622fa0d1 | 865fe983e07d9fdd04075e516b3dabd9f5e167df | refs/heads/main | 2023-06-11T22:03:24.219169 | 2021-07-07T21:56:30 | 2021-07-07T21:56:30 | 382,460,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from tkinter import *
from tkinter import messagebox
root = Tk()
root.geometry("400x300")
w = Spinbox(root, values=("Python", "HTML5", "Java", "Javascript"))
w.pack()
e = Spinbox(root, values=("Carne", "Verdura", "Pasta"))
e.pack()
root.mainloop() | [
"noreply@github.com"
] | noreply@github.com |
325a93e9027f90d97fe0431288393f2f293520c7 | 90b8d12660adc7dcf63bffce20ba1b7ede64386a | /official/vision/beta/serving/export_saved_model.py | 95027be136a8209c9e2a438072cf195c7d18771c | [
"Apache-2.0"
] | permissive | thalitadru/models | 7109797ed536ccb10e17bba6add0f571a1c1c96d | 7faaa572db44621f8e2998abd8dc6a22e86001f2 | refs/heads/master | 2022-05-05T15:04:01.683629 | 2022-03-23T16:20:46 | 2022-03-23T16:20:46 | 82,706,460 | 3 | 0 | null | 2017-02-21T17:14:13 | 2017-02-21T17:14:12 | null | UTF-8 | Python | false | false | 3,850 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5a25dd47a898ad67f1fd9e8ec65142b8677abeb6 | 161999144a6b35135a23f148097aba6601e19508 | /specviz/io/model_io/yaml_model_io.py | b6e771c38987886e0fd2ffd0080a300fdd2aeae0 | [] | no_license | Polapon/specviz | 0eec454916c7f6c147c9901e5d692eb94594ec37 | 744826291b0f1d5e9177a207b734f896771c4a21 | refs/heads/master | 2021-01-11T09:44:39.622149 | 2016-12-19T18:37:39 | 2016-12-19T18:37:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,165 | py | #
# Functions in this module support the reading and writing
# of astropy's spectral compound models from/to YAML files.
#
import os
import sys
import re
import dis
import copy
import yaml
from io import StringIO
from ast import literal_eval
from qtpy.QtWidgets import QFileDialog
from specviz.interfaces.factories im... | [
"nchlsearl@gmail.com"
] | nchlsearl@gmail.com |
a3bfa9e158ba5fe5b5a7697cfc74d1a729aefa2a | 65c616c59ae005debf91d82f4efc7f7cdcc2a7a4 | /news_recommendation/home/forms.py | a4274fbc39b814ece457b077eceefcf942431907 | [] | no_license | nghiatd16/most_cb | 28db8b0c52cc391f6890f2a56c8dee308a6dfc85 | 46d91016b20d57f3f43b63813f7fbccd5626a848 | refs/heads/master | 2022-12-25T17:33:04.896024 | 2020-09-19T08:34:15 | 2020-09-19T08:34:15 | 296,822,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.forms import ModelForm
import django.forms as forms
from django.conf import settings
import os
import glob
import shutil
| [
"nghiatd.proptit@gmail.com"
] | nghiatd.proptit@gmail.com |
8bc161a569ad8a54e4ac31af3570489611c0b553 | 2d6824fec53681a88d0566886b20895f5cbb1c89 | /article_scraping/article_scrapes/bdnews_scrape.py | da97d19e65635f0e570d04f36d01bbac89a466fe | [] | no_license | IRI-Bangladesh-Flood-Insurance-Research/bangladesh-nlp-flood-research | 715439d9115a7786cd8f6d3c41751b917bd401d2 | 8d69cbd3c5d56ac42e1b7473c70dfe9cddf2c735 | refs/heads/master | 2023-05-05T18:56:01.616917 | 2021-05-25T15:19:06 | 2021-05-25T15:19:06 | 289,547,572 | 1 | 5 | null | 2020-08-28T21:13:48 | 2020-08-22T18:48:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,103 | py | from unidecode import unidecode
from bs4 import BeautifulSoup
import requests
def bdnewsScrape(soup, meta):
# print(soup)
# main_div = soup.find('div')
# print(main_div.find('article'))
# print(main_div.find('article').get_text())
headline, text = None, ''
headline = soup.find('h1', class_='pr... | [
"tvp2107@columbia.edu"
] | tvp2107@columbia.edu |
10ca6b44c4aa6f1371af59bbb41cb3c72a722dc6 | 333b2e1284be6ea06a9989bcc76fd296f5c4f0a4 | /historicalVersion/MyLife v1.00.py | dcf7177fb0d0e7b798cf665981e4835db7c18d7a | [] | no_license | luomeng007/MyLife | 567df155a30857e2c5f03049611d83eb0a847c02 | 76447fdfeaa83d7b77964560d56c67ce2cd36905 | refs/heads/main | 2023-01-20T14:17:30.613718 | 2020-11-29T10:46:26 | 2020-11-29T10:46:26 | 309,741,680 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 19:29:04 2020
@author: 15025
main program of game---My Life
"""
import pygame
import sys
version = 'v1.00'
class MainGame:
# the size of game window
__SCREEN_WIDTH = 1000
__SCREEN_HEIGHT = 800
window = None
def __init__(... | [
"noreply@github.com"
] | noreply@github.com |
4dfef08409cab37c02c98cb9113fdca1e36eeaa6 | 6ec817ef27a612209adebf927689073510c1c0ef | /podprojekty/czujnik temperatury na rfm12b/czujniki.py | a06f69646cddcdd2f2e409d730a5a07549f64547 | [] | no_license | uzi18/sterownik | eafa5caf317f48ad79735f8adf43618258f74aa0 | e53e18d75375e0db319ab2d5652ee19794328e5d | refs/heads/master | 2022-03-17T22:49:56.024308 | 2022-02-25T00:15:38 | 2022-02-25T00:15:38 | 24,689,808 | 24 | 15 | null | 2017-11-16T19:21:55 | 2014-10-01T18:19:52 | Python | UTF-8 | Python | false | false | 1,339 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
import serial
import sys
import sdnotify
if sys.version_info[0] == 3:
from urllib.request import urlopen
else:
from urllib2 import urlopen
try:
import konfiguracja
except ImportError:
raise ImportError('brak pliku konfiguracji polaczenia ze sterownikiem... | [
"uzi18@o2.pl"
] | uzi18@o2.pl |
a4c1631df98fba75752807327669ecd1f9bef260 | 0f5d780a18d5d0937df02da9add0db73aa1c7158 | /dissector/frida/frida_writer.py | 54933ebce2e081edb39542afc20b01c281e4803e | [] | no_license | SergioLazaro/apkdissector | 13e86bea37b188ae94c182c5c534b6296f3a5939 | df1741632ab5395170e94ad9fb52a500cd5f0718 | refs/heads/master | 2021-01-12T19:23:13.525953 | 2016-12-26T11:11:23 | 2016-12-26T11:11:23 | 53,853,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | __author__ = 'sergio'
class frida_writer:
def __init__(self, filepath, classname):
self.filepath = filepath
self.classname = classname
self.python_path = self.filepath + ".py"
self.javascript_path = self.filepath + ".js"
self.file = open(self.javascript_path,"a")
def cl... | [
"sergiozgz1994@gmail.com"
] | sergiozgz1994@gmail.com |
f95d1e51671bce45841f7e3915d266738a858b88 | 1a96e184d7f1eb3deba0aac6b622625d7ec92ac7 | /Other labs/ОП/Lab02/Lab02.5.py | 09c73252043db58a74e92af5c957f7941f99ed7f | [] | no_license | SmokyTail/OldProjects | 30514000307295c28d2ae108e474e8c80460afdc | cc5dbab62f775c576ca620d4b3b662877c5d135e | refs/heads/main | 2023-08-31T06:29:08.139152 | 2021-10-19T11:20:41 | 2021-10-19T11:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | is_equal = 0
a = 1
b = 2
c = 2
is_equal = b == a
print(is_equal)
is_equal = c == b
print(is_equal)
one = 1
two = 2
three = 3
print(one < two < three)
print(one > three < two)
print(one < three <= two)
print(one >= two < three) | [
"Pasha-Love-comp@mail.ru"
] | Pasha-Love-comp@mail.ru |
c30e22ee2d9981b49022661bd8c8de23908ce27e | 78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227 | /448.py | d69d285b5d87d18b1e029474dd35d050e1364dcc | [] | no_license | GenryEden/kpolyakovName | 97db13ef93061a8c2afc6cc5acd91337f79063f1 | c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9 | refs/heads/master | 2023-05-23T21:22:51.983756 | 2021-06-21T08:56:49 | 2021-06-21T08:56:49 | 350,466,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def f(x):
if x < 1:
return 0
elif x == 1:
return 1
else:
ans = f(x-1)
if x - 1 != 7:
ans += f(x-2)
return ans
print(f(12)) | [
"a926788@gmail.com"
] | a926788@gmail.com |
b027ecd4e3f1bf2b9f6306f3f245f5517fc82dcd | 4c267bf6ab68d38d65b32c7decd77f4d448d6554 | /Basic Algorithm Scripting Challenges/title-case-sentence.py | 76e664af1e4aa17e075369c3950df31c2e875cb6 | [] | no_license | danieltapp/fcc-python-solutions | 06199671d3e010c20e30d32bc998c5d2c0c6cbcf | a2b0c644d54688120ed3c7b05a2500d19b31b010 | refs/heads/master | 2020-03-17T21:35:50.504329 | 2018-05-23T18:28:24 | 2018-05-23T18:28:24 | 133,965,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import string
#Return the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.
def title_case(str):
return string.capwords(str)
print(title_case("I'm a little tea pot"))
print(title_case('sHoRt AnD sToUt'))
print(title_case('HERE IS MY HANDLE HERE IS... | [
"danieltapp@gmail.com"
] | danieltapp@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.