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
b7405fe0659fd9354d9865949d27d48e40c6325b
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/python/ops/gen_sdca_ops.py
b1922e0314101ad623bed622fb34e7b337445bdc
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:167888a5bf0cec33f73cc87d5babc3869f495c2487658426b093ec2660b669c6 size 52962
[ "github@cuba12345" ]
github@cuba12345
e5db6b3b1fc4314a5fd9c048f0c2798c58d041c1
1390627c6304217df22e89a4a0244030c427a38b
/client/node_modules/fsevents/build/config.gypi
53144a337a1d95aebd552cae97eed40bf2063bba
[ "MIT" ]
permissive
chrisLoPresti/reactTemplateTsx
8bbcf4df504540e83dd3fd8362fdc9508fc96247
01c644fce6a9f57941058919b456e211d2d3aa9a
refs/heads/master
2020-04-23T12:04:32.413981
2019-02-17T18:42:10
2019-02-17T18:42:10
171,157,412
0
0
null
null
null
null
UTF-8
Python
false
false
5,946
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "lopresti.chris@yahoo.com" ]
lopresti.chris@yahoo.com
880ff1bb77ebba6fcc337fd3210bc58b1be8151e
3384ce06d2859a6cc9eece5e2d35868a8986ed87
/website/Home/services.py
30084c6e5e1ce09c9e53121d40aaf81d1d8fc215
[]
no_license
DaneLyttinen/Movie_watching_website
5b946f3cb345664409287dd4df4c61ec98296d52
93dfe28fd72d96011d09611dbb9746752cc8a75f
refs/heads/master
2023-02-28T18:38:28.710856
2021-01-21T01:28:32
2021-01-21T01:28:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
from typing import Iterable import random from website.directory.repository import AbstractRepository from website.domainmodel.model import Movie, Review, User class NonExistentMovieException(Exception): pass class UnknownUserException(Exception): pass def get_ten_movies(repo: AbstractRepository): mo...
[ "dane2000@live.se" ]
dane2000@live.se
bce20665fafee5860f3d0874347ff4fa12928558
1fa6c2650c791e35feaf57b87e832613e98797dd
/LeetCode/Binary Search/! M Search in Rotated Sorted Array.py
1f36ebf53459a4ab0e059c0dfdc4cadc8b3a3ba8
[]
no_license
hz336/Algorithm
415a37313a068478225ca9dd1f6d85656630f09a
0d2d956d498742820ab39e1afe965425bfc8188f
refs/heads/master
2021-06-17T05:24:17.030402
2021-04-18T20:42:37
2021-04-18T20:42:37
194,006,383
1
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
""" Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array. Your algorith...
[ "hz336@cornell.edu" ]
hz336@cornell.edu
2f5c65e14109726c604599a0e0c2d0b0a1a0ac8a
dfc84008d15950d4259b1626827b49a1ec16340f
/refined_to_csv.py
a76460eca69ae0ab9b22e2559a91dcdf0e3dee8d
[]
no_license
award7/VIPR_Analysis
38f2c5a676640c81c3b6b797de84ae9368d2c757
92dac44534a9e61355242d89e8d3698ca8225c8c
refs/heads/master
2022-12-13T04:52:54.402279
2020-09-17T17:42:36
2020-09-17T17:42:36
296,399,458
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
#!/usr/bin/env python # coding: utf-8 import pandas as pd def refined_to_csv(df_raw, input_file, final_voxel_list): #write refined df to new csv file df_refined = df_raw[df_raw['Voxel'].isin(final_voxel_list)] rename_file = input_file.replace("_raw.csv", "_refined.csv") df_refined.to_csv(ren...
[ "award7@wisc.edu" ]
award7@wisc.edu
8d4ca6034e19b706a0458c0d23b1c7812275cd6a
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-5322.py
e6c1b10aae1c9db3342d47a6709c5908090674fb
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,287
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
2d7bca278667a97eb99f961aef8b06561c6dc55a
6bf492920985e3741440ba53e1c7f8426b66ac1f
/snakemake_rules/rules/kpal/kpal_matrix.smk
e0f458d60c5838003d24e753e3360530f55ba0b6
[ "MIT" ]
permissive
ukaraoz/snakemake-rules
5b2ba7c9ec19d88b56067a46f66fd0c72e48c368
07e96afeb39307cdf35ecc8482dc1f8b62c120b9
refs/heads/master
2020-03-31T15:20:44.444006
2018-09-07T08:53:47
2018-09-07T08:53:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
734
smk
# -*- snakemake -*- include: "kpal.settings.smk" config_default = {'kpal' :{'matrix' : _kpal_config_rule_default.copy()}} config_default['kpal']['matrix'].update({'options' : "-m -S"}) update_config(config_default, config) config = config_default rule kpal_matrix: """kpal: generate matrix.""" params: cmd = c...
[ "per.unneberg@scilifelab.se" ]
per.unneberg@scilifelab.se
ed1cb9f4bfd08ea45229344c95204d953ee5e65f
dafbb3ff846a242b15173e94c5577c9da96c1918
/DataLoad/TorchvisionDataLoader.py
7fcc9868af9c6e190df267b07f656bd43b56ceb5
[]
no_license
YoavHaifa/LearnAI
8bad72374e0be542ca28a4f01ae430c1dc00ca51
ebb04df82f88755eeb10e15659a3c0799e762564
refs/heads/master
2020-07-13T21:36:12.513682
2019-09-12T08:10:23
2019-09-12T08:10:23
205,159,772
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 12 11:07:10 2019 Torchvision dataloader See https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html @author: yoavb """ import torch from torchvision import transforms, datasets data_transform = transforms.Compose([ transforms.RandomSizedCrop(224),...
[ "yoav.bar.haifa@gmail.com" ]
yoav.bar.haifa@gmail.com
e658db7261bc1b57713b789b5fb7cc0991de63fe
9e4177bb2f7c91e38ade856734f737a9d052c67f
/src/algo-p5/0829/q31/zako_chara.py
9354b95ce0bb217d6a666f251cfff57b5413f2f8
[]
no_license
n18016/programming-term2
02861648c299ca59736d2cee02ba627de187e62b
33d2570ad02a738cfaf9e220fc7999ba6d8dd61a
refs/heads/master
2020-03-22T08:59:29.441160
2018-08-29T06:59:48
2018-08-29T06:59:48
139,806,125
1
0
null
2018-07-05T06:42:09
2018-07-05T06:42:09
null
UTF-8
Python
false
false
415
py
from enemy import Enemy class ZakoChara(Enemy): def __init__(self, name): """ コンストラクタ Parameters ---------- name : str 敵の名前 Returns ------- 自分自身のインスタンス """ self.name = name self.hp = 10 self.min_damage = 2 ...
[ "n18016@std.it-college.ac.jp" ]
n18016@std.it-college.ac.jp
751ac1d8a525142623a8dfdf53793275d9e82ccd
1f6b6947bab8ab8bfd630ee37e23006600e59d46
/st_app.py
7c89ebca946bc1809e7c309abc66d933d99b65ba
[]
no_license
KentHsu/Manufacturing-Process-Modeling
c9b7526a5e15dcc99155c673906925e6fbeff872
1c07bcac83314f99862547c9fd67e087d0be1de7
refs/heads/main
2023-03-12T19:50:43.205630
2021-03-01T04:29:35
2021-03-01T04:35:03
338,492,558
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
import streamlit as st from Gaussian.gaussian_st import gaussian_regression from Gaussian.l1_l2_st import regularization from KDE.kde_st import kernel_density_estimation def main(): page = st.sidebar.selectbox("Choose a Theme",\ ["README", "Gaussian Regression", "L1/L2 Regularization", "Kernel De...
[ "luffy1610@gmail.com" ]
luffy1610@gmail.com
72c7c2be4c95fbcdbbaa47a17e35c1c01549d49f
6858443562e7f49ad6cc2a9f056482f78a87073f
/Zadanie_8.py
fddc108d4e4a6c18cbeba42e34ec6025ddc8cbd0
[]
no_license
SKpracownia1/ZJS
9df50f95ec4d1f6bde529115a8c2575291d1061f
3406a4a26a6a5d1e02584cf5f129e43f96b88b2a
refs/heads/master
2021-04-27T00:10:27.880449
2018-03-18T09:02:51
2018-03-18T09:02:51
123,761,720
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
d1=[] d2=[] import datetime print "Data 1" d1.append(input("Dzien:")) d1.append(input("Miesiac:")) d1.append(input("Rok:")) print "Data 2" d2.append(input("Dzien:")) d2.append(input("Miesiac:")) d2.append(input("Rok:")) print "Data 1: ",str(d1[2])+"-"+str(d1[1])+"-"+str(d1[0]) print "Data 2: ",str(d2[...
[ "noreply@github.com" ]
noreply@github.com
256d9ef86b6b9474218e56b739a870f88bc73729
9aca9fcf015cd75e90f68d990f33b9a80015eb37
/analyze.py
7605175fa342de6aa2fea7211d617c97371bbf1f
[]
no_license
mattlangford/miniprof
f14e9547db9dc52859834da966165f109b784073
04f08a2ec17daa1349cd2b1b91d9ddbebc60e283
refs/heads/master
2023-03-08T15:29:35.510047
2021-02-23T22:08:30
2021-02-23T22:08:30
341,680,804
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
import pandas as pd import argparse def percentile(n): def percentile_(x): return x.quantile(n) percentile_.__name__ = f"p{n * 100.:.2f}" return percentile_ if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--filename", required = False, default="/tmp/prof"...
[ "matthew.langford95@gmail.com" ]
matthew.langford95@gmail.com
860190c31f7e515878af7667559159d4b5692bec
4022444a54efcb4d19d46858e04fb94367f5f2a1
/todo_list/base/views.py
acb403e103db5422c81ee2a924fd6c9aa0ac4b60
[]
no_license
tkeys/todo_list_app
938a860edc0f6b2960d5305c5454915cd08c7ad5
0ab094187d0a72a9d57cefde7655c3e13a2ced50
refs/heads/main
2023-07-19T23:11:09.122952
2021-09-03T07:04:33
2021-09-03T07:04:33
398,504,646
0
0
null
null
null
null
UTF-8
Python
false
false
2,664
py
from django.shortcuts import render from django.http import HttpResponse from django.views.generic import TemplateView, ListView, CreateView, DetailView, UpdateView, DeleteView, FormView from .models import Task from django.urls import reverse_lazy from .forms import ContactForm, SignUpForm from django.contrib.auth.vi...
[ "theolarsenn@gmail.com" ]
theolarsenn@gmail.com
10e5c2744e8ec68121680a03be6d4de745afb623
a5310c67508bb204a6921ea6d1ea12751da3b572
/models/DETM/01_infer_topics.py
d20c82b88f9ee48003b3d96d1c331a5e1c100952
[ "MIT" ]
permissive
siebeniris/detm_tweets
111baff8cebe77a5155b2c5f4e8a49783333f8b6
e5ed522449959d6dff35acc3249b272320e96fa8
refs/heads/master
2023-06-19T20:37:18.454777
2021-07-13T11:53:40
2021-07-13T11:53:40
380,775,345
0
1
null
null
null
null
UTF-8
Python
false
false
6,457
py
from __future__ import print_function import argparse import torch import pickle import numpy as np import os import math import random import sys import matplotlib.pyplot as plt import seaborn as sns import scipy.io from collections import Counter import data from sklearn.decomposition import PCA from torch ...
[ "yiyi.chen@protonmail.com" ]
yiyi.chen@protonmail.com
96623987086a1aa097d4711740a51dc12de2d346
33889117568fcd2e2ee37736ac6e17e06aa6fcf2
/venv/Lib/site-packages/nuitka/MainControl.py
8083d15d68320be2254858958a8773832981b6ea
[]
no_license
GeraDot4815/Text-to-Speech-Python-project
27d0d11eaa2a2c7583b9b20bd9351005dd382902
f666b04c99c71b7ba3b6a2a475891e100b61726f
refs/heads/master
2023-07-21T21:34:29.048461
2021-09-07T16:33:29
2021-09-07T16:33:29
402,786,828
4
0
null
null
null
null
UTF-8
Python
false
false
28,871
py
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ "sanya.ravno.top@gmail.com" ]
sanya.ravno.top@gmail.com
45600ef8583dedf1284074a4d54e474c0ffba945
43132500785dcd43de3c9e2f5e20079b0c8b2541
/photos/urls.py
46f35c0499261bab426cbedb5ecc97c798b365d5
[]
no_license
bahoo/babyoftheday
cfc1e9b1caad3a8c977c168f34e8a11fdec69456
5a41075b7930f1778187019ba96908234d315f13
refs/heads/master
2021-01-22T10:18:52.846981
2013-09-23T03:53:03
2013-09-23T03:53:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
from django.conf.urls import include, patterns, url from django.shortcuts import render from photos.views import PhotoArchiveIndexView, PhotoYearArchiveView, PhotoMonthArchiveView, PhotoDayArchiveView, PhotoDateDetailView from photos.feeds import LatestPhotos urlpatterns = patterns('', url(r'^feed/...
[ "jon.c.culver@gmail.com" ]
jon.c.culver@gmail.com
02c8c0b816a3a71c169216770f654193fbcabcbc
b42879654055f320b7593358330eceb0c06ca1d8
/Hao_Test/data_base_structure/find_element.py
e69721651ac8124e0efbbb28d25c7022d69684fd
[]
no_license
HaoREN211/python-scraping
de3b28b96fb43e47700a6a12b05db6800f583611
c802748e9067e6dfd1e3736ccc20fbd34091f9e5
refs/heads/master
2020-07-18T23:09:23.380362
2019-10-22T01:50:28
2019-10-22T01:50:28
206,331,191
0
0
null
2019-09-04T13:53:26
2019-09-04T13:53:26
null
UTF-8
Python
false
false
1,384
py
# 作者:hao.ren3 # 时间:2019/10/16 18:25 # IDE:PyCharm from python_scraping.Hao_Test.tools.sql import create_mysql_engine from python_scraping.Hao_Test.data_base_structure.init_table import init_data_column_table, init_data_base_table, init_data_table_table from sqlalchemy import MetaData from sqlalchemy.orm.session import...
[ "renhaojules@163.com" ]
renhaojules@163.com
03678610e296f6f34bf63062be58743d3ea319fa
b8dab6e1a07c4c95e0483df722a4188d44356c1e
/backend/endpoints/predict.py
1864ccb83162f82efe89e660e6a5d3f5f4036d7e
[ "Apache-2.0" ]
permissive
maelstromdat/radon-defuse
363578106ea6c63e9b2f33d648b208708a075c25
269f050a656d527712d88d39db9ae1d5642027bf
refs/heads/main
2023-05-26T05:11:10.880316
2021-05-20T09:44:21
2021-05-20T09:44:21
370,704,590
2
0
Apache-2.0
2021-05-25T13:34:38
2021-05-25T13:34:37
null
UTF-8
Python
false
false
1,115
py
import time from flask import jsonify, make_response from flask_restful import Resource, Api, reqparse class Predict(Resource): def __init__(self, **kwargs): self.db = kwargs['db'] self.bucket = kwargs['bucket'] def get(self): parser = reqparse.RequestParser() parser.add_arg...
[ "stefano.dallapalma0@gmail.com" ]
stefano.dallapalma0@gmail.com
b03d95581472783111e6b32005db136f24800f7f
19842bfa176b688f43bc1dbf941a342451ddf6d1
/findchar.py
5fa7e4fc173101921c6b3a8e6fdc72e0ae1035b4
[]
no_license
drpeppy13/Python
17097bb55135307de54ecf9adc2c1839de8f3c59
0ec7722299be6628ccbccbee6762bfd63f1c564e
refs/heads/master
2020-03-27T09:26:46.838048
2018-08-27T19:22:23
2018-08-27T19:22:23
124,434,300
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
def find_char(word_list, char): new_list =[] for i in range(0, len(word_list)): if word_list[i].find(char) != -1: new_list.append(word_list[i]) print new_list # test_list = ["yo", "my", "name", "goes", "gonzo","boss"] # find_char(test_list,"o") my_string = ["apple", "a", "banana", "z"...
[ "kmkimis6@gmail.com" ]
kmkimis6@gmail.com
9a28629a710d0c1e31f69b87934ebcc4916fe3e3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03651/s284460411.py
7a3cadd35f07b8049ff65e723cdebbfad6be1501
[]
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
184
py
import math n,k=map(int,input().split()) a=list(map(int,input().split())) c=a[0] for m in a: c=math.gcd(c,m) if k %c==0 and k<=max(a): print("POSSIBLE") else: print("IMPOSSIBLE")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5fc54f178a2b70f9af445330f2b5546d1398fcd6
ab9ad48453f1fc75b603cc593ce5f49ab6c644dd
/clickButton.py
3517d47f2b35534b254bc70483cbcb42b799d6f0
[]
no_license
loyy77/python_exercise
8f4833a042961def36b7f463601a46d63bb13531
c2edf94aaeae95017c14c58c6679c33a8bf095a0
refs/heads/master
2016-09-09T20:07:08.199045
2013-07-12T02:21:36
2013-07-12T02:21:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
import tkinter from tkinter import * master=Tk() def callback(): messagebox("hello","helltext") b=Button(master,text="Ok",command=callback) b.pack() mailloop()
[ "loyy77@gmail.com" ]
loyy77@gmail.com
c1585bf2a2158f97df8f2f1cf47e2a2dc8184f16
a6ff5569a990e51e048b052d2233e8bc3fd4b412
/signup_support.py
7c1171f30bde98a054a071ad8ec570e2e3f0fbdc
[]
no_license
GokulGopinath/election-management-system
46d518f03d7028d0d3a3eea44d2c25b5651672a9
35840066ca40c9afee4515a9a2ae4e2804e42fb5
refs/heads/master
2022-11-10T22:05:02.645879
2020-07-11T09:35:56
2020-07-11T09:35:56
270,819,001
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Support module generated by PAGE version 4.21 # in conjunction with Tcl version 8.6 # Mar 28, 2019 09:38:42 PM IST platform: Windows NT import sys try: import Tkinter as tk except ImportError: import tkinter as tk try: import ttk ...
[ "noreply@github.com" ]
noreply@github.com
eb0aca138259af69b4764f5607126d2867c58cee
1d7acae72d18a0d3d771bea57fdde59f51835d25
/test_mnist.py
12343db8328d74fe4a2ee1dbe3b1e6f416af70a5
[]
no_license
MLDL/RobustNorm
595270805f64ccc27b1351e8c657fbf20c372fb6
d14d68cb8990be3c50b387e08ec72dd20a01dba2
refs/heads/master
2022-12-30T07:20:36.554017
2020-10-06T05:31:45
2020-10-06T05:31:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,183
py
import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn from functions import test, adversary_test_attacks, test_adversary from utils.utils import args_for_test_cifar from models.cnn_mnist import ResNet_MNIST import torch import os import csv # ............. Get Basics .................. #...
[ "iawaisrauf@gmail.com" ]
iawaisrauf@gmail.com
8d445faa9047767aed6d3755c95e343884f082d2
1ba9e4754ee30e7f45aeb210918be489559dd281
/books/migrations/0009_auto_20180325_1412.py
bfd85093ea4ebec5ee3296a3b5ef14517f90ccd8
[]
no_license
muremwa/Django-Book-s-app
330f36c402f0af59f8e9f81d9751b283602c4b1c
af6829332b5009955d4290ea67af459d2a6b8b69
refs/heads/master
2021-04-15T08:26:13.165957
2018-04-11T22:15:59
2018-04-11T22:15:59
126,845,409
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
# Generated by Django 2.0 on 2018-03-25 11:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('books', '0008_book_votes'), ] operations = [ migrations.AlterField( model_name='author', name='picture', f...
[ "danmburu254@gmail.com" ]
danmburu254@gmail.com
dab8fddf7efb767eb07b5fd72e4b5956cb2acb34
00b7b6a30e8c851cc1f288370a49a593ee7e0172
/bfrs/migrations/0021_auto_20190508_1443.py
0a5c7528281c61467e60b81f2db616d45e428d65
[]
no_license
rockychen-dpaw/bfrs
e907fd5dbceb8af9769a964990dfaab38bc76080
f468794d1e36419f7bab718edad3f7b2939b82fa
refs/heads/master
2021-04-29T19:02:40.930093
2020-01-15T03:01:37
2020-01-15T03:01:37
121,706,290
0
0
null
2018-02-16T02:05:40
2018-02-16T02:05:40
null
UTF-8
Python
false
false
1,105
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2019-05-08 06:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bfrs', '0020_auto_20190508_1247'), ] operations = [ migrations.AddField( ...
[ "asi@dpaw.wa.gov.au" ]
asi@dpaw.wa.gov.au
4b42318ffa82918c518ea028234c2e01d56f329f
cdaaa92f45cac92b34610616fbcab738ebaf0b6d
/project1_22759/urls.py
38ea80b67a152969b919267f41e06bcceea0bf19
[]
no_license
crowdbotics-apps/project1-22759
9317debda23f0eeb7dd8b4bc542297a7971ad016
92a80c481f5601f8d4a89fb9921e5f6144824c99
refs/heads/master
2023-01-13T11:38:02.933334
2020-11-19T04:31:04
2020-11-19T04:31:04
314,136,194
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
"""project1_22759 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
484942d127585af42a52244669eb0b6d3aaedc53
5b004bf2fc20cf4b6fbaa4e22112f86e723a732a
/apps/users/migrations/0002_banner_emailverifyrecord.py
2fd0ea7d757a3b628b18de78a44bcbc3bc9e08e6
[]
no_license
CharlieZheng/SchoolOnline
d2a2d94ad5ad19621bb6dc92d2aec57228dd1eac
5743d04f9890a99e25e7b588142b384df038d067
refs/heads/master
2020-03-18T23:48:03.633115
2018-06-02T06:31:40
2018-06-02T06:31:40
135,429,182
0
0
null
null
null
null
UTF-8
Python
false
false
1,796
py
# Generated by Django 2.1a1 on 2018-05-31 03:31 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ...
[ "740483802@qq.com" ]
740483802@qq.com
5e333699fe5e20e731d7e5da226a033f2ebdf238
1e0a7fbabd57641de469501c908ac5d242171730
/pythonSamples/tips/pdb_sample.py
71abd2ff53901c1a7c8a5c01e51e8b1959471c05
[]
no_license
constructor-igor/TechSugar
505e50f9094724b6d5fcb315146971f4fe42adc2
ff267e487e0b88099edd9062a50eb1ed2b124884
refs/heads/master
2023-07-20T05:12:24.173773
2023-07-12T11:30:49
2023-07-12T11:30:49
24,022,689
10
7
null
2022-12-16T03:41:55
2014-09-14T13:36:57
C#
UTF-8
Python
false
false
99
py
filename = __file__ import pdb; pdb.set_trace() print(f'path = {filename}') i = 10 print(f"i={i}")
[ "igor.zc@gmail.com" ]
igor.zc@gmail.com
1179d81e7d36d2924a2a90a0ba6ac19cbd2d3a5c
6bacf4ab84c25a71e42c90f44696bd692d33cd7d
/LetterCasePermutation784.py
bf3e03c61129b96a62088b53f686aa9ac6ad05a1
[ "MIT" ]
permissive
Bit64L/LeetCode-Python-
6653b2716b515591be856ed3e6f58af2145d894c
64847cbb1adcaca4561b949e8acc52e8e031a6cb
refs/heads/master
2020-03-28T15:17:54.199311
2018-09-30T13:23:07
2018-09-30T13:23:07
148,577,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
class Solution: def letterCasePermutation(self, S): """ :type S: str :rtype: List[str] """ ans = [] accus = [0, 32, -32] def helper(work, S, ans, path): if work == len(S): ans.append(path) return for ac...
[ "wenxiao.li@transwarp.io" ]
wenxiao.li@transwarp.io
2213197c3a466cb9652c802396aa5ee9964359aa
b26ccdf47c4d6f69fed37d3cfe4b0f605f71942f
/python/solvereal.py
f03e4eed946cb6f37b18542ba65eddb11dca5e83
[]
no_license
XingShell/SAT
99c83178bc322e0598b049cb952f26c51f5b9903
9018fc5877fa333ea0e634df73f445787603c11e
refs/heads/master
2020-05-31T17:29:32.753752
2019-06-05T14:27:55
2019-06-05T14:27:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,827
py
# -*- coding:UTF-8 -*- import math import numpy as np import random import datetime import subprocess import pickle import sys import os import argparse from options import add_neurosat_options from neurosat import NeuroSAT from newgenrate import fun_generate parser = argparse.ArgumentParser() add_neurosat_options(pa...
[ "1114511459@qq.com" ]
1114511459@qq.com
ab6225e7cbcffe98499c2e5db64dd59283784c65
c9fabaf57937634c893b159469bb8f63af238575
/0x06-python-classes/6-square.py
9eee64736772fe11bc97c57ac1cd9f919b152ed7
[]
no_license
arturovictoriar/holbertonschool-higher_level_programming
83c1f7ccd8b8b1d0b72c3a373c4358c3315071be
1923f29921cb76b964ee5e618323f2f9520b25aa
refs/heads/master
2022-07-31T08:25:40.616783
2020-05-14T20:35:19
2020-05-14T20:35:19
226,962,952
0
7
null
null
null
null
UTF-8
Python
false
false
2,074
py
#!/usr/bin/python3 class Square: def __init__(self, size=0, position=(0, 0)): self.__size = size self.__position = position if type(self.__position) != tuple or len(self.__position) != 2: raise TypeError("position must be a tuple of 2 positive integers") elif any(type(v) ...
[ "1231@holbertonschool.com" ]
1231@holbertonschool.com
9f425d2be9435ae9b4012f5c9c2e9cab6b7d2ce9
f04e60a187cc975bca7e2b07587a74268802242a
/Baekjoon/2042_구간 합 구하기_v1.py
85d3be52a62a4a6c43acdb50de2f778c77fc8440
[]
no_license
dodok8/PythonAlgorithmStudy
d71f245cec2c63957c56e518a52c3d23a37d2e2f
bbe098e312b474b63c4ae2916d61e2aad5966a01
refs/heads/master
2020-03-27T16:01:59.346327
2019-08-20T11:18:23
2019-08-20T11:18:23
146,755,415
2
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
''' 링크: https://www.acmicpc.net/problem/2042 런타임 에러: 1번 틀렸습니다: 1번 메모리 초과: 시간초과: PyPy3 KB ms TODO: 예제 케이스는 다 맞는 데 왜 틀릴까? 추가 테스트 케이스를 알아보자 ''' from sys import stdin n, m, k = map(int, stdin.readline().split()) # n은 숫자의 개수, m은 수의 변경 개수, l는 구간합 개수 N = n.bit_length() treeList = [0 for i in range((1 << (N+1)))] def upda...
[ "dodok8@gmail.com" ]
dodok8@gmail.com
739f42e8e450dbe1a883a84c67ea0bc22964758b
3b4b9d813ff0af35dff422f215c2677ae3e6a5a1
/deep_learning20200729/train_20200729.py
e68c2782740b2963c4384a02afcbee0081cbe11b
[]
no_license
rolanzocnyang/final_project
478121ba193592c279ae6bdcdce6b184abcba232
1121b6933cb8b39236769fbd7146ddfb5eafcf04
refs/heads/master
2022-12-09T19:49:12.002583
2020-08-18T14:42:36
2020-08-18T14:42:36
277,731,407
0
0
null
null
null
null
UTF-8
Python
false
false
9,060
py
# 改編自https://iter01.com/418571.html from keras import regularizers from keras import metrics from keras import optimizers import jieba from keras.layers import BatchNormalization from keras.callbacks import ReduceLROnPlateau from keras.callbacks import EarlyStopping from keras.callbacks import ModelCheckpoint import ma...
[ "andy_1327@yahoo.com.tw" ]
andy_1327@yahoo.com.tw
5faedfbcb6ea1812f46c3cb85fccb96d40e73c8a
9ef1d0f6d8339ddb59449e7f68f0b7cc814715b7
/TutorialTest/RNN.py
919275ede1716ed19745d1d92562b79bbd3bc70e
[]
no_license
msliu3/FrontFollowing_CNN
d00abfe5dc2d15828dd3e1b3969208326b693b4e
49a074751ee00d26ad310174eb78892dd09a2a54
refs/heads/master
2020-12-22T21:50:41.957604
2020-02-17T12:30:51
2020-02-17T12:30:51
236,940,797
0
0
null
null
null
null
UTF-8
Python
false
false
6,405
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : RNN.py @Contact : liumingshanneo@163.com @Modify Time @Author @Version ------------ ------- -------- 2020/1/31 9:11 msliu 1.0 @Description ------------ None """ import time """ This is a sample RNN code. Please make s...
[ "liumingshanneo@163.com" ]
liumingshanneo@163.com
0ebec273c17fa7bf8132a5c77df524c49eb07764
df92ea5a3206b2b920086203b3fe0f48ac106d15
/django_docs/onetomany/migrations/0002_car_model.py
6f2951bba6f495c61b627f23e5b211b0d054afe5
[ "MIT" ]
permissive
miscreant1/django_tutorial
b354ea5c28224fe9e3612301e146d0c6a8778f28
736743be66d83ec579b22a0378381042f5207f38
refs/heads/master
2022-04-24T17:48:10.724609
2020-04-27T07:52:24
2020-04-27T07:52:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# Generated by Django 3.0.5 on 2020-04-20 02:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('onetomany', '0001_initial'), ] operations = [ migrations.AddField( model_name='car', name='model', field...
[ "headfat1218@gmail.com" ]
headfat1218@gmail.com
4d7981ed19df64d6ea0533e49fc8931ce96bc7de
5ad4dd91c06f06c89823029e62589908b9677dba
/psana/psana/detector/DetCSPAD.py
f60561046b732fff6f86486e2232e31b0cf8e49c
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
chuckie82/lcls2
ea66baee4906250651c101f2ed6da68f65816ea3
881b433956b9c7edf603057b03427f70e2898767
refs/heads/master
2020-03-22T17:39:17.804025
2018-07-10T09:24:55
2018-07-10T09:24:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,352
py
from psana.detector.detector import DetectorBase import numpy as np import os class CSPAD(DetectorBase): def __init__(self, name, config, dgramInd): super(CSPAD, self).__init__(name, config, dgramInd) self.name = name self.ind = dgramInd config = config[self.ind] detcfg = g...
[ "chuckie82@gmail.com" ]
chuckie82@gmail.com
3fe988b6b34152907b310ecd615f67e4c05465ac
33d4fb2e5d34ad4781afcc75c071f2333347532c
/pre_proc/create_rectangle_mask.py
025493da4e49fd585f37d74cec40b2b8869efc02
[]
no_license
Tg-12224/panorama_image_inpainting
fd4011e20f111d96705ed1bcb56709ddce155c8e
fb6a48c281b194dd51158e76e5aa9b071b01fa35
refs/heads/master
2023-01-20T20:46:53.749073
2020-11-30T12:39:08
2020-11-30T12:39:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,122
py
""" Rectangular mask generator created by Seo Woo Han 2020.05.07 """ import os import sys import cv2 import glob import argparse import numpy as np from random import randint, seed def make_save_random_mask(inp_path, mask_shape, output_dir=None): mask = create_rectangle_mask(mask_shape) base_name, _ = os.pat...
[ "noreply@github.com" ]
noreply@github.com
f6fdd38640d67180bc31518a07bb834cee7eba5d
da4dec73122fe6c4756a31460440fbadfaa58a50
/python/uznip_filter.py
a1f7adf5e034f84771c14d1dee59a5adf0245825
[]
no_license
S-Maciejewski/etl-performance-comparison
9023d962b0d21b539eacf97d3ec05a4de254c2f3
62ac4cb96b776f4cae3acb55f8608d579cbeabe4
refs/heads/master
2022-05-27T13:27:29.722206
2020-04-30T05:51:42
2020-04-30T05:51:42
257,182,560
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
from datetime import date, timedelta from urllib.request import urlopen from io import BytesIO, StringIO from zipfile import ZipFile from multiprocessing import Pool, cpu_count from functools import partial import pandas as pd import pysftp import time start = time.time() zip_file = ZipFile('./randomized_data_00.zip'...
[ "sebastian.maciejewski@br-ag.eu" ]
sebastian.maciejewski@br-ag.eu
5f186ab4a0dbd01764e844aa1fe25f88257bdb1a
2493939e412dacbccc0b3280dbf5b7f48f9c5e85
/greatkart/settings.py
159ff78e4e1887e8b71d1d94e56367581725ebd7
[]
no_license
aliomar464/greatkart-old
cef78375639db9ca946d722508391c9cfb8e577f
da31c8c3b012160fd86df68c9d92557423c89ad9
refs/heads/main
2023-08-14T20:47:07.864374
2021-10-09T15:38:52
2021-10-09T15:38:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
from pathlib import Path import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve(strict=True).parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING:...
[ "aliomar464@gmail.coma" ]
aliomar464@gmail.coma
e40cbb6e3e06c7c9bf8824ebd19db15fb1b08f93
04ed021f8d1b0afed8f4070ea4c79580838ee0cb
/mlp.py
2ec6034cf2ac7ee7d47585f2b50160cdff499a70
[]
no_license
linpows/Multilayer-Perceptron-and-Kernel-SVM
275d6e9dfbaf52c00b9261f4ee4cde48437e7598
2e59a0e1a67cf0c95e1659e7ab65728d02b184e6
refs/heads/master
2022-09-30T02:12:12.390847
2020-06-01T18:32:19
2020-06-01T18:32:19
268,601,494
0
0
null
null
null
null
UTF-8
Python
false
false
7,844
py
"""Functions for training multi-layer perceptrons.""" from __future__ import division import numpy as np """Swopnil Joshi (linpows)""" def logistic(x): """ Sigmoid activation function that returns the activation value and a matrix of the derivatives of the elementwise sigmoid operation. ...
[ "swopnil_j@hotmail.com" ]
swopnil_j@hotmail.com
6d6bb6382252a8618c4eb6a10a181d48b1d1f898
5919508f6fa3756b89b720ca9510423847af6b78
/inputs/loop_helix_loop/get_lhl_distributions.py
ff2570fe3a5b8d20c96d739a23418c00e32f2f3a
[ "MIT" ]
permissive
karlyfear/protein_feature_analysis
0cb87ee340cb1aa5e619d684ebf8040713fee794
fa2ae8bc6eb7ecf17e8bf802ab30814461868114
refs/heads/master
2023-03-16T22:30:45.088924
2020-03-14T20:05:21
2020-03-14T20:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,168
py
#!/usr/bin/env python3 '''Get distributions for LHL units. Dump the distributions of various features to text files. Usage: ./get_lhl_distributions.py pdbs_path lhl_info_path edges_file ''' import os import sys import json import numpy as np import pyrosetta from pyrosetta import rosetta def xyzV_to_np_array(x...
[ "xingjiepan@gmail.com" ]
xingjiepan@gmail.com
6e1f9ba0ece187af632f05498b481edc4fab6388
4e0c37c50cc9b8161a3229fb636667c269964dea
/utils.py
0c7b503c0101354078465c9c31e1929510a080a7
[]
no_license
lupus83/DHNNfADC
6a9af3b95b761204cd916f5e04bbea8ca639737e
2b028a6511bc210bff43b2b346e5650f4656af76
refs/heads/main
2023-02-17T03:50:10.582155
2021-01-11T12:48:04
2021-01-11T12:48:04
328,639,563
0
0
null
null
null
null
UTF-8
Python
false
false
37,076
py
import argparse from collections import Counter from typing import Any, List, Optional, Dict import numpy as np import h5py import matplotlib.pyplot as plt import seaborn as sns import torch from torch.utils.data import Dataset from torchio.transforms import Pad, RandomAffine import pandas as pd from sklearn.model_s...
[ "tom_nuno.wolf@tum.de" ]
tom_nuno.wolf@tum.de
8bdc17e16c19b8508367412de182155a48f5f5bf
299c020e32c5d8ea658c3153e7dcbe07ce1b9da5
/rssht_controller_service/config.py
b9f6b66308217d34c1713807d19c2b34d373792f
[]
no_license
guallo/remote-ssh-tunnel-controller-service
48ef4bc51bae07128fb43dd645fbfa60550fb1dd
a8c058174a07690c62e115c687cb176eb36be405
refs/heads/master
2022-12-16T03:52:58.782694
2020-09-21T02:55:46
2020-09-21T02:55:46
291,158,098
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
import os import logging # Absolute path to avoid misbehavior due to os.chdir _SERVICE_HOME = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) # Absolute path as required by daemon.DaemonContext SERVICE_WORKING_DIRECTORY = _SERVICE_HOME LIB_DIRECTORY = os.path.join(_SERVICE_HOME, 'lib') SERVICE_PATH = [ ...
[ "eacuesta1986@gmail.com" ]
eacuesta1986@gmail.com
4680f26c9ccd9efc69cc2844653ed91daca3d2a3
5d26c53f3d7c897e6703ce7af478c3eae22de9ba
/transformer.py
8fd096694ddb6b00850732f3ab821d558022bfff
[]
no_license
Ttaha09/Transformer-Implementation
5b4853f5556dba35c99e3a7e63bf0750a8d20144
1c43931661a3f88773a0322514d1b42c295fba94
refs/heads/main
2023-08-24T23:11:29.500201
2021-10-25T22:22:23
2021-10-25T22:22:23
421,121,203
1
0
null
null
null
null
UTF-8
Python
false
false
9,372
py
import torch import torch.nn as nn class SelfAttention(nn.Module): def __init__(self, embed_size, heads): super(SelfAttention, self).__init__() self.embed_size = embed_size self.heads = heads self.head_dim = embed_size // heads assert ( self.head_dim ...
[ "noreply@github.com" ]
noreply@github.com
b8a126d714642f2789215963f0c4f40fee72f257
e04c5835d30cfcdfb8a9473d907f42e1d6288c8c
/boards/tests/test_view_edit_post.py
c2b16ac9db01def810a4753ef7eb5288cf6ffe32
[]
no_license
lexwong/django-boards
8aaea7b70ee8d75c922e8227d806412f30de9a7a
6db0796602cfe70f0bd4ff68796ef3a132a3d55d
refs/heads/master
2020-04-14T21:10:45.756071
2019-01-12T14:58:10
2019-01-12T14:58:10
164,119,988
0
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
# from django.test import TestCase # Create your tests here. # from django.core.urlresolvers import reverse from django.forms import ModelForm from django.contrib.auth.models import User from django.test import TestCase from django.urls import resolve, reverse from ..models import Board, Post, Topic from ..views im...
[ "wongkahang@WMBP.local" ]
wongkahang@WMBP.local
cf271ec788009b8d39c06268afcb18c7356ae655
c90ce564182ece53442c12c5748061981982c925
/frontend/sdgp/sdgp/asgi.py
8c443a2f7ffc55db12afaa912ecafc5f15a68e82
[]
no_license
ruvik2000/SDGP-Magic-WOK-food-recipe-suggesting-mobile-application-
9af498700c50d95f864b6d39a7fd9385c25a2df2
e88ebd6b598cf42675b01bffcaf914b58357e4db
refs/heads/main
2023-04-26T11:13:45.013197
2021-05-23T11:42:34
2021-05-23T11:42:34
374,425,171
1
0
null
2021-06-06T17:40:34
2021-06-06T17:40:34
null
UTF-8
Python
false
false
385
py
""" ASGI config for sdgp project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "66440838+chathushika2000@users.noreply.github.com" ]
66440838+chathushika2000@users.noreply.github.com
7504e360f71b643a86497dc303badef47b46eb5b
b33d81684d919a73083b3d16766a3cc363e02b45
/stepic/Python/step2-12.py
04b88d26edce724fdfe6c69f6beba03b5fc4c0e9
[]
no_license
fducha/python
8d085e937c872b5ca669e23980d588a7e87da5a1
b6f7d5ab772336651df9b80914e31076a44d754c
refs/heads/master
2021-05-04T20:33:27.463297
2018-04-05T13:10:30
2018-04-05T13:10:30
119,822,712
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
count = int(input()) num = 1 while count >= 0: if count - num < 0: print((str(num) + ' ') * count, end='') else: print((str(num) + ' ') * num, end='') count -= num num += 1
[ "fducha@list.ru" ]
fducha@list.ru
2dab4f1d26f7afd48892cd16842aedbcc2035a9f
da95c28937405297fdcf095530b7b7da7af9b5c7
/import_data.py
59acd606b8d157d764050cf2fbf1be159cbd32c3
[]
no_license
DanielEscalante/LinkeLabData
b4a5b074daca3af06ddff737f284de73126ee93b
1a66daa3fbb5e10eba1402cc4a5f2e894470c5c5
refs/heads/master
2020-12-27T08:22:37.132280
2020-02-02T21:10:15
2020-02-02T21:10:15
237,831,599
0
0
null
null
null
null
UTF-8
Python
false
false
2,023
py
# -*- coding: utf-8 -*- """ Created on Fri Dec 6 13:52:43 2019 @author: labuser, Daniel Escalante """ #if excel file data.csv is opened while this is running, it will stop running. import csv import requests from datetime import datetime from time import sleep CSV_FILE = "data.csv" DIALECT = "excel" FETCH_...
[ "noreply@github.com" ]
noreply@github.com
f0af9ab65dbf8578ff2ac710cf3f189c170014d0
fdbac9ea4bfcea6a08792875d3c171d5075f6087
/tests/base_lib.py
a9aba2f075b6dcd7793bd537d7f9fa3c4a613c5a
[]
no_license
david-cattermole/namingcon
9606a3b3c2195ad68a04ba0af8a5da72342c4c6d
ebd3fa129491e056a7e967da5040df563dd427ed
refs/heads/master
2021-01-22T02:48:10.238025
2017-09-03T09:07:13
2017-09-03T09:07:13
102,251,041
5
0
null
null
null
null
UTF-8
Python
false
false
549
py
""" Base class for test cases. """ import os import shutil import unittest class BaseCase(unittest.TestCase): def setUp(self): root = self.rootPath() if not os.path.isdir(root): os.makedirs(root) return def tearDown(self): root = self.rootPath() if os.path...
[ "cattermole91@gmail.com" ]
cattermole91@gmail.com
c1f6173ff2ec4fcbd77c0fb41bee0348f4c4f381
25252be07c823f4617fc8e8695dde73429804d03
/myapp/urls.py
a214cc6e2a08e15f3e2d5ff8264369e560bdab75
[]
no_license
landryonana/my-app
81bf70f7fd2d6fee0ab2da37f62408d285d9f7ec
46317f6f211120d17cdfd08cbf7cb6040bd583f0
refs/heads/master
2023-08-17T00:17:21.916574
2020-06-11T12:24:42
2020-06-11T12:24:42
271,169,269
0
0
null
2021-09-22T19:11:30
2020-06-10T03:24:19
Python
UTF-8
Python
false
false
118
py
from django.urls import path from . import views urlpatterns = [ path('', views.post_list_view, name='home'), ]
[ "lndronana@gmail.com" ]
lndronana@gmail.com
156848aef1fb6b1ce8e9821bd7da432b6ea330de
16d95ea92231a369f55936340c1814705d4ccaab
/parser/classifiers/degree_classifier.py
9ae17565fc2d57fe80e43bd8434c6572be71431a
[]
no_license
yeshbash/CS297
9af5d12d7b654f80b7360ca8f29cb41385f044de
61a434a0434854fad736fb38845a09306a051227
refs/heads/master
2021-09-11T21:04:29.876133
2018-04-12T01:05:27
2018-04-12T01:05:27
111,157,794
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
import nltk import utils import random import math def default_feature(word): features = dict() if word is not None and word!= "": features['first_letter'] = word[0] features['wc'] = len(word.split(" ")) features['char_len'] = len(word) return features class DegreeClassifier: ...
[ "yeshbash@gmail.com" ]
yeshbash@gmail.com
32e589e052f47df52b07c0ef6e99dd0202f71536
a8951a1e05042251da3c43c8b67bea09e4e7f81c
/scripts/qualtricsReorderFunctions.py
17ec573a312441378badf8c79176d25d5665179c
[]
no_license
bastienboutonnet/clozeTest
b72801db21ba05b231377bba7f7e23f418fc4e26
0a46f5946d4d0c640a099deee28e352b46c501b5
refs/heads/master
2016-09-12T13:01:59.241861
2016-05-23T16:02:00
2016-05-23T16:02:00
59,496,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
import pandas as pd import numpy as np def melt_df_feed_info_from_loop_merge(): #MELT col_names=pd.Series(df.columns) valid_cols_mask=col_names.str.contains(colsToPull,regex=True) valid_cols = df.columns[valid_cols_mask] df=df[valid_cols] df=pd.melt(df,id_vars='subj_id',var_name='qual_col',valu...
[ "bastien.b1@gmail.com" ]
bastien.b1@gmail.com
579eac1755cc6dfc8c601ef7df132c1a4a830673
674f5dde693f1a60e4480e5b66fba8f24a9cb95d
/armulator/armv6/opcodes/abstract_opcodes/smlsld.py
55da34bdc70ecb6cd43315893e0a2e0c83e6c62f
[ "MIT" ]
permissive
matan1008/armulator
75211c18ebc9cd9d33a02890e76fc649483c3aad
44f4275ab1cafff3cf7a1b760bff7f139dfffb07
refs/heads/master
2023-08-17T14:40:52.793120
2023-08-08T04:57:02
2023-08-08T04:57:02
91,716,042
29
7
MIT
2023-08-08T04:55:59
2017-05-18T16:37:55
Python
UTF-8
Python
false
false
1,242
py
from armulator.armv6.bits_ops import to_signed, set_substring, to_unsigned, substring from armulator.armv6.opcodes.opcode import Opcode from armulator.armv6.shift import ror class Smlsld(Opcode): def __init__(self, instruction, m_swap, m, d_hi, d_lo, n): super().__init__(instruction) self.m_swap =...
[ "matan1008@gmail.com" ]
matan1008@gmail.com
e1df6fc2583f420d43b25ca435c7e20316b96453
b5c5c27d71348937322b77b24fe9e581cdd3a6c4
/graphql/pyutils/cached_property.py
0727c1949d5a114eb73a371fd40463fb8998efc0
[ "MIT" ]
permissive
dfee/graphql-core-next
92bc6b4e5a39bd43def8397bbb2d5b924d5436d9
1ada7146bd0510171ae931b68f6c77dbdf5d5c63
refs/heads/master
2020-03-27T10:30:43.486607
2018-08-30T20:26:42
2018-08-30T20:26:42
146,425,198
0
0
MIT
2018-08-28T09:40:09
2018-08-28T09:40:09
null
UTF-8
Python
false
false
607
py
# Code taken from https://github.com/bottlepy/bottle __all__ = ['cached_property'] class CachedProperty: """A cached property. A property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. """ def __init__(sel...
[ "cito@online.de" ]
cito@online.de
9146864977a7d2fe9dc29fbd998218d7d8de3ff8
fdf3a655e46424050790540add959c4b0bd308b3
/src/yacctab.py
bc401bd6a9f1ff37a98345f8486ea8d2c6d241e7
[]
no_license
bernielampe1/ast_js_fuzzing
5e456d500e5d9084f279e18f977d1f306222f11f
8be0b49ca5b341270957c0e940471da31590222c
refs/heads/master
2023-05-29T19:09:58.151434
2021-06-15T15:33:36
2021-06-15T15:33:36
377,209,772
0
0
null
null
null
null
UTF-8
Python
false
false
173,068
py
# yacctab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = '\xbd\xf5(\x01\x93\xb1\xff>#\x00}\x88\xda\x97f\xde' _lr_action_items = {'DO':([0,2,5,7,13,19,21,28,29,31,36,43,44,45,50,58,62,65,67,68,72,75,77,111,114,115,116,126,133,143,147,148,163,164,17...
[ "you@example.com" ]
you@example.com
0a2fa9016654682494ddcf23b5d54a697d3df6d7
5caa6183467c1f8419cdaed4800709a3d8eefb4d
/test_ssi/urls.py
d7cfedd76b90e8614a5df30431e9aeaa876010f0
[]
no_license
pulilab/django-ssi-tag-block
1b4d666b1d0be137a5f3b4c5f42a009eb0fac7f4
a0bb402a9c628946096d63ac2cbcecd799c9ca53
refs/heads/master
2016-09-05T11:20:11.638698
2014-01-27T09:46:49
2014-01-27T09:46:49
16,274,697
1
0
null
null
null
null
UTF-8
Python
false
false
884
py
from django.conf.urls import patterns, include, url from django.shortcuts import render_to_response import os from django.conf import settings def base_template(request): return { 'included_template': os.path.abspath(os.path.join(settings.PROJECT_DIR, 'templates', 'ssi.html')) } # Uncomment the next ...
[ "viktor.nagy@gmail.com" ]
viktor.nagy@gmail.com
31883ac342668452fc10ba95756beae551301499
bbb183cf3c21b3a52d489aa2ed7e68a9b6779f93
/src/ui/UiCustomDialog.py
ae6965c60574c81f6f8ce72a6a01e0333e532402
[]
no_license
Anondo/Subnetter
21c84755e2e045856afc428653a65330599772df
942b114e02df69312768c83c2a53b8fd6800797e
refs/heads/master
2020-03-19T10:19:43.408419
2018-06-07T04:56:55
2018-06-07T04:56:55
136,361,653
0
0
null
null
null
null
UTF-8
Python
false
false
3,386
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UiCustomDialog.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf...
[ "aanondos@gmail.com" ]
aanondos@gmail.com
c3f603d4891e64afab9802c2e85b912f517572e7
f698ab1da4eff7b353ddddf1e560776ca03a0efb
/examples/ogbg_molpcba/models.py
f1cfc01d8d5185b83ecd0d6620dd538ae9890250
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
patrickvonplaten/flax
7489a002190c5cd5611c6ee1097d7407a932314c
48b34ab87c7d20afc567f6e0fe5d67e423cf08bc
refs/heads/main
2023-08-23T13:55:08.002500
2021-10-08T09:23:15
2021-10-08T09:23:54
319,617,897
0
0
Apache-2.0
2020-12-08T11:28:16
2020-12-08T11:28:15
null
UTF-8
Python
false
false
6,732
py
# Copyright 2021 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
[ "no-reply@google.com" ]
no-reply@google.com
1e5e06ed599465d3a30ea9437b2eee1c622f4b56
cd027f474e4e62d6ea44d6bf2e087e15d1c89e86
/EDB/1.0/compare.py
bd575edb13f6934f2781ea66dd37758572689f8d
[]
no_license
hxlszxy/Inconsistency_detection-1
0317d72fa93c712d5d5f2c3b38e69bd4e55d63cc
37b13fc8639d78b18cdac3a6d9cc5bb3c89b0905
refs/heads/master
2020-12-05T06:06:52.595699
2019-08-19T11:08:01
2019-08-19T11:08:01
232,030,128
1
0
null
2020-01-06T05:26:12
2020-01-06T05:26:11
null
UTF-8
Python
false
false
196,032
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 功能:比较cve与NVD数据的差异性 """ import os import ast import re import json import re import copy # 获取txt文件中的字典内容 def get_data_from_dict(): # 获取cpe字典内容 cpe_dic_path = os.getcwd() + '/data/cpe-dictionary/' # 存放的文件夹 cpe_dic_filename = 'cpe_name_dic.txt' cpe_di...
[ "1039622586@qq.com" ]
1039622586@qq.com
2f781af0d5c0e9ba160ee7629e0e64d0e5bf953f
fdd96f69ba047d326a6571ef2f79c9182ad20b43
/03/12.py
316810158c53564e13fc9b5bfc5fb38d60c8d6e8
[]
no_license
Asko24/pp1-pythonprojects
e8af574cea7e5e94d5c985052958c1007cac7064
1676287af47d237df55c4694faccd8477f30ee00
refs/heads/master
2020-08-29T02:19:43.713087
2019-12-09T11:57:25
2019-12-09T11:57:25
217,892,276
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
with open ('Shoppinglist.txt','a') as file: produkt=input('Wpisz nazwe produktu: ') file.write(f'{produkt}\n')
[ "noreply@github.com" ]
noreply@github.com
bbfc799103084a87d6c959879d71802335f723ed
da411aa56907d9000aa47170c75b0ffe39bf891d
/bootcamp/common/forms.py
ced44079a4dfc18511169ce1c43f606219e232a5
[]
no_license
jeongsunyong/web_bootcamp
db764c2d47c0a2416f8c011f74288520a2e5f10e
9aca413ab8d956ce0492507557b9ae27c6541f59
refs/heads/master
2022-12-08T19:52:25.367812
2020-09-16T15:34:05
2020-09-16T15:34:05
294,121,754
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth import get_user_model from .models import CustomUser from phonenumber_field.formfields import PhoneNumberField class UserForm(UserCreationForm): #이메일 등 부가 속성을 주기 위해서는 UserCreationForm상속해서 만듬 em...
[ "sunyong0321@naver.com" ]
sunyong0321@naver.com
6b16c5753924589656669e33ae897e6f7e9e44cc
ebb2457c2a90b99818cac1f576580e5b111804d2
/mysite/settings.py
bb75523bd21de816d0c0875b340cb7bfeef1cf45
[]
no_license
AGP142/my-first-blog
c79bbe9a4dabbc8ee43a287362cc621d4918f84b
d0ec4dd31d9330220a62e9626a9e14dad50081f0
refs/heads/master
2020-05-30T10:39:59.359371
2019-06-10T23:33:32
2019-06-10T23:33:32
189,677,877
0
0
null
null
null
null
UTF-8
Python
false
false
3,205
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "alejandrogamba@ymail.com" ]
alejandrogamba@ymail.com
3df2e0001ecc43947bcce0fc881a4d556423670d
32e8f451b857747edd0b0c7e9f2abe3ea120f00e
/test_multimedia.py
731aa737ff1352f1f9a827ac23a94b86e3d123cc
[]
no_license
bugcheck/gsra
0c1cbb6ae0fe64f5146257ebf5142b12be4033f8
72424592b7bc3443572807f0b5726066d1cc59d2
refs/heads/master
2020-12-24T06:15:31.104291
2012-04-11T22:30:02
2012-04-11T22:30:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
# Gwendolyn van der Linden # Copyright (c) 2009 SC Solutions, Inc. # All rights reserved # $Id: sevenbeambridge.py,v 1.4 2010/08/20 00:49:48 glinden Exp $ import sys import time import logging import numpy import ConfigParser # Include client API. # SenStoreClient is a small wrapper around the client API #...
[ "athuls89@gmail.com" ]
athuls89@gmail.com
a391c8c2a8585a09ec7327d86c7b6d67d2d95f73
66b736f837bace17c2ebc6b80ab5efbe19a13371
/saleor/registration/views.py
265681ccde629b6d1d2d2356efaced5854db4984
[ "BSD-2-Clause" ]
permissive
sammyteahan/tasty-treats
c9bb6bde852a3f8029960c5f56875f4399acfb42
bb7818db6284256df4c88a2210ea63c7e0a9fdc9
refs/heads/master
2023-01-29T02:53:51.369485
2017-12-18T04:51:27
2017-12-18T04:51:27
99,752,275
0
0
NOASSERTION
2023-01-11T21:47:54
2017-08-09T01:33:26
Python
UTF-8
Python
false
false
2,333
py
from django.conf import settings from django.contrib import messages, auth from django.contrib.auth import views as django_views from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from django.utils.translation import ugettext_lazy as _ from django.template.response import Te...
[ "sammyteahan@gmail.com" ]
sammyteahan@gmail.com
746707d088e6bdb40f04a19176d6b72e93f5d8ac
0c104bd2e12358423ce7d1e4d492cee2e5a83bf0
/views/tutorial/tests.py
ca871b355643d3038b26596107324f36adaa7132
[]
no_license
dimpu47/quick-tutorial-pyramid
f10d930cbbf7c32a4efff71556f62f4e42fe28c1
26435fa8e10593d1ff29abac68d4c46448b61cb9
refs/heads/master
2020-12-24T06:26:16.411138
2016-11-13T15:06:43
2016-11-13T15:06:43
73,486,180
1
0
null
null
null
null
UTF-8
Python
false
false
1,164
py
import unittest from pyramid import testing class TutorialViewTests(unittest.TestCase): def setUp(self): self.config=testing.setUp() def tearDown(self): testing.tearDown() def test_home(self): from .views import home request = testing.DummyRequest() ...
[ "dimpu47@gmail.com" ]
dimpu47@gmail.com
5d5d74fa99b7cb6fce7e2d1d38100036c87f5fd0
9d3317d2f644b5a76aa5f7ee92f1b9d1ef34bc12
/Hacker Challenges/max square.py
f1687d1e1b85f1a617633c2cc0ad8a3ff45f64b1
[]
no_license
kbfreder/coding-challenges
35b9cca6f6e417c9568100d04cfe32c3612e6e94
01cd66d1e6c7c6e90b4e906c4c402d21ad2e46f4
refs/heads/master
2020-04-16T20:52:17.590662
2019-02-08T21:43:28
2019-02-08T21:43:28
165,907,453
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
import numpy as np def MaximalSquare(s): m = np.zeros((len(s), len(s[0]))) for i, r in enumerate(s): for j, c in enumerate(s[i]): m[i,j] = c tally =[] for sq in range(2,max(len(m),len(m[0]))): print ('square size: ' + str(sq)) for r in range (0...
[ "kbfreder@yahoo.com" ]
kbfreder@yahoo.com
b6674f620c481b7f028c26b137a563c295b09067
7115e855557d1bac3e6b791389646f283dd4b38b
/final_0201.py
bc030f0865550ec5bbec2597e00401f1aa6683e1
[]
no_license
Lukaid/In_HLI
4e0b2366b5ca16b7a6908ea69db5e25fe688281f
980a730327a08d2bf94899a654d64513c02232a8
refs/heads/main
2023-03-02T09:39:34.930376
2021-02-11T14:02:38
2021-02-11T14:02:38
335,118,984
0
0
null
null
null
null
UTF-8
Python
false
false
6,312
py
# Minimum Cost Flows Algorithm # - Unit Cost를 기준으로 물동량을 Arc에 배치 # MIP Problem # - 배치된 물동량을 기준으로 배차 # 링크에 물동량 배치 알고리즘 # 전제_1 : 모든 택배는 동일한 중량과 동일한 사이즈 # 전제_2 : 택배차량은 11, 8, 2.5, TR이 존재함 # 전제_3 : 1차 물동량 배치는 단위 요금으로 정하고, 차량 배차시 각 링크에 걸리는 코스트 최소화 # 전제_4 : # # 필요한 패키지 설치 # Minimum Cost Flows Algorithm Solver from ortool...
[ "crescent3859@gmail.com" ]
crescent3859@gmail.com
66c2739a643ec3c2d8d027b335d2e9759f99c651
d9129ec388017c4a2ac1bf2aaedb8216e2ff00d4
/cities.py
d508640a65f37d7e400c3fc4eaf12f043856daff
[]
no_license
DajeRoma/DSICodingChallenge_Ju
70da29e130e474674f952e1e18d297719848d268
feb3067100f40ad2472d29d4a4db560c042bf504
refs/heads/master
2021-08-14T23:10:12.917161
2017-11-17T00:48:48
2017-11-17T00:48:48
110,802,755
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on Nov 11, 2017 Last modified on Nov 11, 2017 @author: Yiting Ju ''' """ Normalize distance to a factor btw 0 and 1 Note: give closer names more weight """ def distance_factor(x1, y1, x2, y2): dist = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5 if dist < 1: ...
[ "yiting.ju@gmail.com" ]
yiting.ju@gmail.com
fe0bed5ca7061428b7e804736fffb09391cef85b
b3e25660a4e641835c708621b2515afd5765ff84
/hello.py
dd71076f303c9e08c103a6eb1de815d2eb7c4443
[]
no_license
sharifhassan05/python-crash-course-no-scratch
b6724de6a132255568221ebd63cc05e9e69e7b47
4e56999800c72d963815c5b83cad3b9817eb4abc
refs/heads/main
2023-07-03T11:43:01.306648
2021-08-14T16:01:10
2021-08-14T16:01:10
393,965,543
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
print ("Hello Developer")
[ "sharifhassan05@gmail.com" ]
sharifhassan05@gmail.com
fa5f0a33ee6c6d4a5ad972e99e4d47e6a36305ce
20c0adf03c809b9bd118afff958b127112651c45
/chirper/4_handling_data/run.py
e23e8425ae9b4ffa06d7c2fd5f4f3055f1d80d70
[]
no_license
alisonporchnik/intro-to-flask
3b6282765f9989790c36dc1d6cf0edbfcec91ba7
bb1384fa844f020516aa16eb38b60585b0b69dcc
refs/heads/master
2020-05-30T18:19:33.697196
2016-06-09T04:58:18
2016-06-09T04:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
# Handling data from flask import Flask, render_template from app import app # Now that we set up our app folder, we don't need # to explicitly delcare a static folder app.config["DEBUG"] = True @app.route("/") @app.route("/index.html") def index(): # This data is fake in the sense that we're just adding it he...
[ "patricksmyth01@gmail.com" ]
patricksmyth01@gmail.com
217b7726d02e00346386cf231fd09db98437ed5e
910b544c3c14638128f6ee70e95cb609c04e0b61
/DAT.py
1ded6cee821b40c052bcee80b217291cac9982bd
[]
no_license
Lyman-Smoker/NLP-Learning
13a15c21ed02ee6d5bf8d03d131a576949be9210
bbffabf90080d8a09d48d1dcfeced9f86136c048
refs/heads/main
2023-04-29T11:55:32.980957
2021-05-23T12:20:25
2021-05-23T12:20:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
#Double Array Trie双数组字典树 from pyhanlp import * class DoubleArrayTrie(object): def __init__(self, dic: dict) -> None: m = JClass('java.util.TreeMap')() for k, v in dic.items(): m[k] = v DoubleArrayTrie = JClass('com.hankcs.hanlp.collection.trie.DoubleArrayTrie') ...
[ "noreply@github.com" ]
noreply@github.com
6e9a45fecb3073eb5fe3f34bae144d467a8d07e6
eefe348e3df4da590e86a7f883892124e77f6ca8
/plugins/irc.py
e51317a0f9c6998da70fe22b837f105a1396630d
[]
no_license
FZFalzar/StarryPy3k
cbb19043bb95b884b475d5aa5d8bd9443ce35731
df58b7419cad8500507bac434fdd1af6bb9b244a
refs/heads/master
2021-01-14T09:20:04.155501
2014-03-02T03:46:26
2014-03-02T03:46:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,755
py
import asyncio import irc3 from base_plugin import BasePlugin from plugins.player_manager import Owner, Guest temp_server = "irc.freenode.net" temp_channel = "##starrypy" temp_username = "starrypytest" class MockPlayer: """ A mock player object for command passing. """ owner = {x.__name__ for x in ...
[ "Patrick.E.Shanahan@gmail.com" ]
Patrick.E.Shanahan@gmail.com
dfbb2a64692b993bd4d3388133dc94ce6316ab09
141d1fb160fcfb4294d4b0572216033218da702d
/exec -l /bin/zsh/google-cloud-sdk/lib/surface/dataflow/sql/query.py
8660148df0f94ddf4b5afd8079353232390d6b5c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
sudocams/tech-club
1f2d74c4aedde18853c2b4b729ff3ca5908e76a5
c8540954b11a6fd838427e959e38965a084b2a4c
refs/heads/master
2021-07-15T03:04:40.397799
2020-12-01T20:05:55
2020-12-01T20:05:55
245,985,795
0
1
null
2021-04-30T21:04:39
2020-03-09T08:51:41
Python
UTF-8
Python
false
false
4,392
py
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "yogocamlus@gmail.com" ]
yogocamlus@gmail.com
46d1fa11402881c9db37e8948c963cf58f2694cf
b022aa851615cf15e6886988567fb346938994b5
/venv/Scripts/easy_install-3.7-script.py
35409e2f85f392b1a8d7481d4fca44cf42865d12
[]
no_license
achikamor/Psychology_Experiment_Noa
e8dd363ecffaa3f7a25639a7de40d88f67c17bae
9357d2f07ce256e082186b238e516efdce0dc919
refs/heads/master
2022-11-19T07:47:38.172576
2020-07-21T18:03:19
2020-07-21T18:03:19
281,467,324
1
0
null
null
null
null
UTF-8
Python
false
false
458
py
#!C:\Users\AchikamPC\PycharmProjects\Noa\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw...
[ "achikamor@gmail.com" ]
achikamor@gmail.com
05dde56577bad6b361aa11ed75e08b57fb709b2e
25c60c113e6d70e2cbdf89fd34500e157d93af15
/mnsit_filler/train.py
eb81f260928a01fa37156e129db85088d5e0fc82
[]
no_license
yoru22413/mnist-filler
c50b8e7fdbd8c15588389009947b69f005f2b66e
7aa234c5faefc51a483ae544ec57fb7265a7307f
refs/heads/master
2022-12-01T05:24:56.174820
2020-08-05T10:42:30
2020-08-05T10:42:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,914
py
import copy import random import torch from torch import nn import matplotlib.pyplot as plt import numpy as np from mnsit_filler.utils import shuffle_jointly, hide_part, one_hot def torch_train_loop(model, data_train, data_test, batch_size=32, num_epochs=60, criterion=nn.MSELoss(), ...
[ "hichem5696@gmail.com" ]
hichem5696@gmail.com
337cca4a1f2cd18058055ce1c5b0541f8aff7ca0
67af73cce6015d32e0997c6fe4be1cb63f273137
/tf_class_template.py
3edaf222bb2f5ba0823b029a79daec61c2112038
[]
no_license
AicsHwo/TF_Shell
ed2ba99f24a91882227dd4645f211351612f057e
8207ce186205b390b14f700392671406c28274ae
refs/heads/master
2021-07-06T10:06:24.350163
2020-08-05T05:27:44
2020-08-05T05:27:44
155,646,464
0
0
null
null
null
null
UTF-8
Python
false
false
13,179
py
# v4 : 1. Follow Tensorflow demo code methodology, # * Embedding crop + random noise + standardization into training # * Embedding crop or pad + standardization into training # * Using tf.cond to branch two input paths instead of using two sessions. # 2. Change tf.truncated_normal to tf...
[ "noreply@github.com" ]
noreply@github.com
21a6ad57e09f2cd0aea84edaee77ad87a2e63c1b
5f9b9d61b9cf20b4c9afbed3344c61098567b9cd
/levenberg_marquardt_new.py
1ac89fecf3da3d606e8764e4c9b7979be3f42bd7
[]
no_license
aimanraz/rsw-deep-learning
ee654e79205fae80154f4a2a5e5f516aae70a06e
d809e693c0a7a7b7898655a485cd9d991e4d4879
refs/heads/main
2023-08-26T11:03:06.038737
2021-10-26T12:40:11
2021-10-26T12:40:11
413,016,161
2
0
null
null
null
null
UTF-8
Python
false
false
29,934
py
# Copyright (c) 2020 Fabio Di Marco # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
[ "noreply@github.com" ]
noreply@github.com
73bdff696c0f6700a310bb5a449d673efa9b5b3a
866dee1b3d01b863c31332ec81330d1b5ef5c6fa
/openquake.hazardlib/openquake/hazardlib/gsim/rietbrock_2013.py
62e63bdafc600b463ed33925696bfa2c08e799d1
[ "MIT", "AGPL-3.0-only" ]
permissive
rainzhop/ConvNetQuake
3e2e1a040952bd5d6346905b83f39889c6a2e51a
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
refs/heads/master
2020-08-07T16:41:03.778293
2019-11-01T01:49:00
2019-11-01T01:49:00
213,527,701
0
0
MIT
2019-10-08T02:08:00
2019-10-08T02:08:00
null
UTF-8
Python
false
false
12,553
py
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2014-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
[ "rainzhop@gmail.com" ]
rainzhop@gmail.com
7bc57f74b075ea5a42543b200342761e7a3621ac
76e657eadd6260566625cd0f58d7c0aa9816732d
/marketMaker/testdb.py
daaf95b09c371e7d2d13401d316b248f7daa7b81
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
kbai/python-binance
ad0b1ad752a554649cd6a3ff49accd1daeffd2bb
96d77fcf292d5fa9d5708b07661fdeca8f3c4568
refs/heads/master
2022-12-28T08:56:56.787893
2020-10-12T01:25:23
2020-10-12T01:25:23
298,925,340
0
1
MIT
2020-10-12T01:25:24
2020-09-27T00:53:32
Jupyter Notebook
UTF-8
Python
false
false
510
py
import pymongo import zmq import json import time dbClient = pymongo.MongoClient("python-binance.asuscomm.com:54321", username="kbai", password="9nurEfE1Ssy") binanceDB = dbClient["binance"] tradeCollection = binanceDB["AllBNBUSDT"] import pandas as pd import plotly.graph_objects as go for symbol in [ 'ETHUSDT', 'BN...
[ "kangchenbai@kangchens-MBP.fios-router.home" ]
kangchenbai@kangchens-MBP.fios-router.home
7efa8648c4e0c18912ba36496cdef0fe6003b19f
f3895e438bf5c98d7d69db968ba256782bbf9c34
/openai_gui.py
d8b448defb452d84dcd0771170d72bfd27787be6
[]
no_license
jmcasebier/python_projects
c1eec3d206891faf881a9f405d2e23d0a0b04ec8
b9ba3a7a37492c12fdfe46e9a6864b8a10495ccc
refs/heads/master
2023-03-18T04:27:47.728675
2023-03-10T15:54:31
2023-03-10T15:54:31
192,831,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,808
py
# imports import openai import tkinter as tk # create the window window = tk.Tk() # set window title window.title("OpenAI") # set window size window.geometry("750x750") #window.resizable(width=False, height=False) def get_completion(): # get completion promptInput = prompt_entry.get("1.0", "en...
[ "noreply@github.com" ]
noreply@github.com
f5e7fb63ca82ea6c9b85403551c1dce068ee5286
d8503db4a0db7ef5a50c68cfb4519f7edce6effd
/python_learn/venv/bin/easy_install
5f4449be60906a000bb91f40cd70edff49c2de7d
[]
no_license
samoyedic/python_learn
4d8400e6932d391004c6a68c319bd2d692bf06ee
54478ffd644f652f9d8749b3396f5faefd6b4cc1
refs/heads/master
2020-04-03T15:31:02.064736
2019-01-09T08:41:24
2019-01-09T08:41:24
155,365,329
0
0
null
null
null
null
UTF-8
Python
false
false
446
#!/Users/workspace/items/python/python_learn/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)...
[ "643976404@qq.com" ]
643976404@qq.com
da9176147b077abc1e6201e4b7f6f48a84937f76
17cde9ab27b9372358e204c64267f4e6ec66e771
/genetics.py
09f4f05f0187123819e37dda85f37d9038dc8ab8
[]
no_license
will-y/snake
4bca02b40b0ce2a61911b987934140b0830053fe
30f3b77a70040329276f79657c1363d268bb604f
refs/heads/master
2022-07-12T01:42:53.602906
2021-03-12T21:51:57
2021-03-12T21:51:57
201,111,636
1
0
null
2022-06-21T22:32:05
2019-08-07T19:05:25
Python
UTF-8
Python
false
false
12,795
py
from net import NeuralNetwork import numpy as np import random from snake import Snake import pygame as pg import copy import operator import matplotlib.pyplot as plt import os class Genetics: # Parameters for controlling the genetics # Current iteration of the genetics run = 0 # Current generation ...
[ "willhyelton@gmail.com" ]
willhyelton@gmail.com
c8c027b821b635843759fe33ade7495e5688cacd
6df6a447a8be64d3d7c1a5ebd2d496e877b2f8ee
/resources/main.py
aec7820675f25d42a053f1263fff1913d744ad95
[ "MIT" ]
permissive
abhinavpappu/UIUC-API
3a7f32d5041c344ba7b3f7073d53cf3fa04e116f
d46ba09c22b01d67d4dced461a89b9e3d565726e
refs/heads/master
2022-03-04T05:31:18.709291
2019-11-26T02:02:19
2019-11-26T02:02:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
from flask_restful import Resource class Main(Resource): def get(self): return {"yo": "ayy"}
[ "nirajpant7@gmail.com" ]
nirajpant7@gmail.com
220e5b84fa6c786050a582776ec91f642dd4bf70
8132d72368ab6626bd9528013ea7d2fc23b9f8fc
/car.py
2f2bb509e29923270e8afe592a02b1eb5b54ff45
[ "MIT" ]
permissive
HongtuZ/fcn_astar_planner
1f6524c2bdb4c5702644f7c53a1dcf87b71a3915
b54f2414401f368449cd80bf61f2d80802f106b0
refs/heads/master
2022-11-26T17:37:31.551850
2020-08-05T03:37:13
2020-08-05T03:37:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
class Car(object): def __init__(self): self.length = 5 self.width = 2 self.hight = 2 self.speed = 0 self.steering_wheel = 0 def __str__(self): return 'Length:%sm Width:%sm Hight:%sm Speed:%sm/s Steer:%sdegree' % (self.length, self.width, self.hight, self.speed, self.steering_wheel)
[ "zhouhongtu@tongji.edu.cn" ]
zhouhongtu@tongji.edu.cn
8d40f50cea11caa3a69269470d03c9b2424db730
8b0bb8bf53d935f8b3355a3c8d94bcaf87430a31
/Scripts/test_002_allure.py
e858d076b8cf378b106bf769c0ab8492482397c7
[]
no_license
byf1/allureu_jenkins
900878eb33c4b038f9348cb9c5810317c029c77b
f87842840033aa795d623221600d45d73b2d42ee
refs/heads/master
2022-12-15T14:54:02.864297
2020-09-15T03:00:21
2020-09-15T03:00:21
295,598,318
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
import allure class Test_001: @allure.severity(allure.severity_level.BLOCKER) @allure.step("第一步") def test_01(self): print("\n test_001") @allure.severity(allure.severity_level.CRITICAL) @allure.step("第二步") def test_02(self): print("\n test_002") assert False @al...
[ "1254653072@qq.com" ]
1254653072@qq.com
7ad176565dc9b6e0c1b207979f8adbb1cb367d8b
b0241d03cfb67271a2d1bd6a4c414ea36a7f21c5
/src/assignment2_resubmission/ii_2_2.py
53b57a06ed4c7e24cb15b7d5a45eeb5b53d0c67b
[]
no_license
cservenka/statml
57af4611ad59e2fad0ca32a4e3d5fa0adb496ce2
b470e060dacc7dc3d253c5d1b6a036f14949863e
refs/heads/master
2020-04-10T21:05:03.338560
2015-03-17T22:56:16
2015-03-17T22:56:16
30,348,057
0
0
null
null
null
null
UTF-8
Python
false
false
3,966
py
from ii_2_1 import readFile, sel1, sel2, sel3, selection, get_w_ML, flatten, get_design_matrix, computeRMS import os.path import numpy as np import matplotlib.pyplot as mpl # Compute the maximum a posteriori estimate of w. def get_w_MAP(phi, t, alpha): # Compute the number of parameters in the model, M. M = m...
[ "asbjornvg@gmail.com" ]
asbjornvg@gmail.com
7bc6d11e37630254e2edd8a82e3e238bcfc91495
64bcef00c8c45980051efd4a9623fd410013aa33
/arduino-pi.py
80481431d6a1747a1093045959fdbf4a7b46db1b
[]
no_license
manisv/Verksmidja3
8b5d1f3f385386f609d51e2d10b5948c3bf2e4f2
c5228760614b010fe3e3a842f197c94642ba3681
refs/heads/main
2023-01-04T18:24:41.351650
2020-11-01T19:49:59
2020-11-01T19:49:59
303,634,894
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
import serial import RPi.GPIO as GPIO import time ser=serial.Serial("/dev/ttyACM1",9600) #change ACM number as found from ls /dev/tty/ACM* ser.baudrate=9600 def blink(pin): GPIO.output(pin,GPIO.HIGH) time.sleep(1) GPIO.output(pin,GPIO.LOW) time.sleep(1) return GPIO.setmode(GPIO.BOARD) GPIO.setup(11, ...
[ "noreply@github.com" ]
noreply@github.com
0b3190d607ae6beb7191944638191dc2c8563103
ccc7bafa6b6de72ab29417102136eeb2929db017
/src/common/audio.py
72f7f86ecb082c6918272f4d40277a52a6fea2ba
[]
no_license
Darbopp/-StyL-
3d8e6f6fe01339eb0779621bb3b23c5bfb4f8943
60fbfba92f365d7dd6271e515ea5317c3c15f6f9
refs/heads/master
2020-09-01T02:32:52.657169
2019-12-07T03:10:12
2019-12-07T03:10:12
218,858,972
0
0
null
null
null
null
UTF-8
Python
false
false
6,389
py
##################################################################### # # audio.py # # Copyright (c) 2015, Eran Egozy # # Released under the MIT License (http://opensource.org/licenses/MIT) # ##################################################################### import sys sys.path.append('.') sys.path.append('..') im...
[ "noreply@github.com" ]
noreply@github.com
2668bc354874828febc367003ed8fe03836484c4
2ab552cba80266082adc0478137e8c98cc890150
/CH04/p102.py
9a91045c6b35c368bd34b23f1c6e5b27541c9e15
[]
no_license
rlaalsdn0821/python
22c51cc1b849061c179eef6a2751049436bf726d
5e2db7741627ad7e20b77e31dbc9fd2ffaea6392
refs/heads/master
2023-05-08T03:26:08.601597
2021-06-03T08:38:36
2021-06-03T08:38:36
361,635,234
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# (1) 얕은 복사: 주소 복사(내용, 주소 동일) name = ['홍길동', '이순신', '강감찬'] print('name address =', id(name)) name2 = name # 주소 복사 print('name2 address=', id(name2)) print(name) print(name2) # 원본 수정 name2[0] = "김길동" # 원본/사본 수정 print(name) print(name2) # 깊은 복사: 내용 복사(내용 동일, 주소 다름) import copy name3 =copy.deepcopy(name) print(name)...
[ "kimminwoo0821@naver.com" ]
kimminwoo0821@naver.com
d5f7549327cdd01adeab8548c2aff40109c09048
bfbe9dfe9643318cc2571745acb8f17aca8e0fee
/interview-cambly-winter-spring-2021/cambly_exercise.py
566fdbc5b5bd994e8db94cb804a789723f7812b4
[]
no_license
jaeyoungchang5/interview-practice
b6a705a4c7fb6857f1677e97ece03aff94b901a0
0976a69c712757661e24f9ec1fede5731cece4a3
refs/heads/master
2023-08-23T13:45:35.315913
2021-09-27T18:51:37
2021-09-27T18:51:37
299,463,415
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
#!/usr/bin/env python3 import re # REGEX words_dict = {} # initialize dictionary sentence = input().lower() # take input & convert all alphabetical characters to lowercase # Split up sentence into individual words for word in sentence.split(): word = re.sub('[^A-Za-z0-9]', '', word.strip()) # delete non-alphanume...
[ "58242673+jaeyoungchang5@users.noreply.github.com" ]
58242673+jaeyoungchang5@users.noreply.github.com
6d79e71393d64f0edbbbf664cb42d7c442fe0144
291ab4b5b1b99d0d59ce2fb65efef04b84fd78bd
/tmp_testdir/Forex_Trading212/test7_login_trading212_getlist_clickable_ids.py
aea9cb52055d4c857f788869d5590a1fda71a568
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
cromox1/Trading212
15b5ea55d86e7063228f72dd92525e1fca693338
68f9b91098bc9184e16e9823a5e07e6b31e59602
refs/heads/main
2023-04-17T23:03:07.078229
2021-05-05T23:02:54
2021-05-05T23:02:54
320,100,427
0
2
null
2021-04-13T07:03:41
2020-12-09T22:58:06
Python
UTF-8
Python
false
false
3,499
py
__author__ = 'cromox' from time import sleep from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException # from selenium.webdriver.common.action_chains import ActionChains as hoover chrom...
[ "xixa01@yahoo.co.uk" ]
xixa01@yahoo.co.uk
5b87694f3a2a886ff560e2762344f137ca502f69
434fb731cb30b0f15e95da63f353671b0153c849
/build/hector_slam/hector_slam_launch/catkin_generated/pkg.installspace.context.pc.py
f6f612668cd0e6089313919ad50250aaa8624d2b
[]
no_license
lievech/lhn_ws
e3e10ff20e28e59583e51660d2802ff24c7cd0b5
644fc48b91788078734df9bdece06c8b9f6b45b9
refs/heads/master
2020-08-02T20:21:19.489061
2019-09-28T12:08:26
2019-09-28T12:08:26
211,494,773
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "hector_slam_launch" PROJECT_SPACE_DIR...
[ "2328187416@qq.com" ]
2328187416@qq.com
d4c7fd309d359b713724163f052637adbc19b94f
849d1c5197cd0276144a8e36010daae40a1eb66d
/modules/edacdb_cache.py
31a14a012ebf8ca94f4bf3fd1e81edadd176db33
[]
no_license
specialcircumstances/edac
2fa850918b045ebb7ecb785ec6ca74677c37c93b
bdf786cec21de8ed0c18b2cfdd85a559f25b005d
refs/heads/master
2020-12-03T18:14:02.516823
2016-10-13T06:26:31
2016-10-13T06:26:31
67,892,032
0
0
null
null
null
null
UTF-8
Python
false
false
77,462
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This was a wrapper around coreapi to make talking to our DB easier It's now using slumber instead, and slumber has been extended to support cbor Our DB is a django based solution, exposing a REST API At the moment django is using it's default sqllite DB, but there's ...
[ "jonathanjstevens@gmail.com" ]
jonathanjstevens@gmail.com
0507b41bde8a6194203a97ecf4867115be072b0b
bbe3e17b8556308638b8889fa89e654235b4ee01
/data/THUMOS14/gen_dataset_dict.py
d9d7851f9b001d025be53a6674807af8a2d08a07
[]
no_license
tianwangbuaa/RecapNet
fa6922f9dcee134a40aca984765041ec11c29758
a172d3668df3fa5b405f3cb8fdf0824509a24fb6
refs/heads/master
2020-12-05T23:55:55.340665
2020-01-07T08:52:17
2020-01-07T08:52:17
232,281,833
2
0
null
null
null
null
UTF-8
Python
false
false
4,091
py
# coding: utf-8 import json import random import os from pprint import pprint ## some constants feat_resolution = 16 train_val_split = 0.8 video_info_dict = json.load(open('./video_info.json', 'r')) anno_split_path = {'val': './annotation_txt/validation/annotation', 'test': './annotation_txt/tes...
[ "noreply@github.com" ]
noreply@github.com
32f2cd145606faa195ab5a49f5d527b56f3f7c6c
fed791b792a91915e08c70bb37a17348a4a3a32d
/AnnualReportGenerationSystem/Civil/urls.py
0eee8027aaaedb154fbffae0f820b9435ac0857c
[]
no_license
kiranraut7709/Annual-Report-Generation-System-WCE
c93ddbc8f7dbd365cae8fa8afc3030ee8e757bc2
ccd498c31c0bcc951271fc7cb18cc1d8c8fe1564
refs/heads/master
2023-06-26T13:53:33.052886
2021-08-01T05:26:47
2021-08-01T05:26:47
383,348,606
0
0
null
null
null
null
UTF-8
Python
false
false
4,529
py
"""AnnualReport URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "kiranraut7709@gmail.com" ]
kiranraut7709@gmail.com
617661a23d0e39cd2034cba89131ff53953b4d1f
a20a0838baadaad5178401c2f46536dc41393704
/pr2_robot/scripts/pcl_helper.py
9f1e40eb665fa8a5ab211a07b6f4b937a16dc224
[ "MIT" ]
permissive
Vi-Ku/Perception-Project
2ea4790761034a32706ba0a5f3bb8ca7727b1a56
e4647fd339266824e72199a6de8ac4ab568694b1
refs/heads/main
2023-05-30T21:40:14.425274
2021-06-28T08:22:18
2021-06-28T08:22:18
380,942,743
2
2
null
null
null
null
UTF-8
Python
false
false
5,608
py
#!/usr/bin/env python # Import modules import rospy import pcl import numpy as np import ctypes import struct import sensor_msgs.point_cloud2 as pc2 from sensor_msgs.msg import PointCloud2, PointField from std_msgs.msg import Header from random import randint def random_color_gen(): """ Generates a random color ...
[ "mpd18i027@iiitdm.ac.in" ]
mpd18i027@iiitdm.ac.in
a74781aef5fdf83cca6badb5095c1b37ff7ec82d
a0fe943185bfd88a190bc261e28a279253dc496e
/Doggonnit/doggonnitapp/migrations/0020_stats.py
1d9b222fca7ba18cae8f29503232e5a78284f334
[]
no_license
mschaeffer53/Doggonnit
a735359686f05cba12d43a143cc4226993e88d9e
df8fcc573a52fd44751344ac5a32ef8b1e619db1
refs/heads/master
2021-09-04T02:32:47.137466
2018-01-14T18:28:14
2018-01-14T18:28:14
113,889,477
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-08 19:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('doggonnitapp', '0019_auto_20171230_1205'), ] operations = [ migrations.Crea...
[ "mschaeffer53@gmail.com" ]
mschaeffer53@gmail.com
917cc75d63019a94603ab74124615cc3c9d4df76
f82f3ac1a27cf8b0e3639d215d09092a14ae4bdf
/src/bookborrowing/core/api/routers/auth.py
c7cb04602d89291f39ed5c822c466e8b1e6e1f81
[ "MIT" ]
permissive
miguelzetina/book-borrowing-system
4ee699182522b33079815ad5437bd9a0b2f3846c
c8e356bb634ba3bc35116a4c8e7de6e2dd642e53
refs/heads/master
2021-12-14T00:09:34.074682
2021-11-26T02:37:28
2021-11-26T02:37:28
155,021,862
6
4
null
null
null
null
UTF-8
Python
false
false
868
py
# -*- coding: utf-8 -*- from rest_framework.routers import DynamicRoute, Route from rest_framework.routers import SimpleRouter as BaseRouter class AuthenticationRouter(BaseRouter): """ Custom router that shall be used to map authentication methods. """ routes = [ # Detail route Route( ...
[ "loefthur26@gmail.com" ]
loefthur26@gmail.com
6b869cbd0e4e9e3b37c8a1f9fcd196b4be3090e1
451deae1ad0317c9a1f559e4821145882e575810
/TestChatBot/code/Test.py
b1113fcc86ea601de94920cbf378010fcebdc8eb
[]
no_license
WZPBelieveFuture/chatbot
9e16a884493511437af00a86c0d8d1a9e62139e9
6cc8cd79e0f467bd00d3586cafa0cb4d69fbe9f4
refs/heads/main
2023-02-11T08:30:29.175975
2021-01-04T09:01:41
2021-01-04T09:01:41
326,622,169
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
import numpy as np import jieba import synonyms import random similar_question='执行案件在财务系统获取不案件信息' cut_list = list(jieba.cut(similar_question)) print(cut_list) # while (True): # idx = random.randint(0, len(cut_list) - 1) # if len(synonyms.nearby(cut_list[idx])[0]) >= 2: # print(cut_list[idx]) # c...
[ "19906810976@163.com" ]
19906810976@163.com
f1a905580f3da2d6c828af0ced60bf17d9ab3afd
62f18c4e926eaba1cc8c233f01a7373928f57705
/warm_transfer_flask/__init__.py
9f6ae4d31e3f71a14e5f3d799c0dbe5b2c98f034
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
esousy/warm-transfer-flask
5b6f520ea69093b701a8f89857899ed2e5f8936a
687056642e103c7b387afe300fe35ead3497afb6
refs/heads/master
2020-05-24T10:51:49.165171
2019-05-17T15:34:58
2019-05-17T15:34:58
187,235,567
0
0
null
2019-05-17T14:58:11
2019-05-17T14:58:11
null
UTF-8
Python
false
false
467
py
from warm_transfer_flask.config import config_env_files from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() app = Flask(__name__) def prepare_app(environment='development', p_db=db): app.config.from_object(config_env_files[environment]) p_db.init_app(app) from .views im...
[ "victor.shyba@gmail.com" ]
victor.shyba@gmail.com