blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
ec84bc86da9c040e55f96ebe3912b999e103f8e6
ef747128ca172497eb9569493008f6d0d3b76468
/BinaryTree/MaxElementBinaryTree.py
ca7ca804dfa2ce504fa35b1ecc1171e6afa4f730
[]
no_license
sharvilshah1994/LeetCode
62e152c0bfd574cdbd38bc0192e46a6267f67b70
369dafe10dfb693c053f329ce7e5f93a77d1d229
refs/heads/master
2020-12-30T09:37:47.085224
2017-10-27T19:42:16
2017-10-27T19:42:16
100,426,929
1
0
null
null
null
null
UTF-8
Python
false
false
828
py
class BinaryTreeNode(object): def __init__(self, x): self.data = x self.left = None self.right = None def build_tree(): t = BinaryTreeNode(1) t1 = BinaryTreeNode(2) t2 = BinaryTreeNode(3) t3 = BinaryTreeNode(4) t4 = BinaryTreeNode(5) t.left = t1 t.right = t2 ...
668657bcff004b73d7f1774f4f953091a5bf649f
3f55607c033fef615f8d0f9ef8d284f43d1709a1
/shop/shop/settings.py
04d5a80fe47afc58d6e082ce02f49aedb74d8b9d
[]
no_license
aakashres/shoppingcart
d37f7425f8585ac0463153a90ae4f1d2ed49c460
2060fac698130b78860072f5fcc0532ec716d087
refs/heads/master
2022-11-09T15:55:27.061262
2017-04-04T15:00:08
2017-04-04T15:00:08
273,651,566
0
0
null
null
null
null
UTF-8
Python
false
false
3,505
py
""" Django settings for shop project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os #...
780b80fa6885808a6cd823a419b5f2faea5eb627
48d6f70f2a97659ccc60e50c222477b98adb57b4
/XOR/tensorflow_xor.py
c7046d300ce77228c508b6219a4ed9e646ea3e81
[]
no_license
Anosy/tensorflow_DL
e1953112fb11f44fe2ac879b8e142a7e428478c0
5b64d3d1a3dbb481b7382100fb00006ab021408a
refs/heads/master
2020-03-25T22:51:30.972034
2018-09-18T02:29:22
2018-09-18T02:29:22
144,246,341
4
0
null
null
null
null
UTF-8
Python
false
false
2,600
py
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # 定义学习率和输入的样本 learning_rate = 0.001 x_data = np.array([[0., 0.], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]]) y_data = np.array([[0], [1], [0], [1]]) # 定义占位符 x = tf.placeholder(dtype=tf.float32, shape=(None, 2)) y = tf.placeholder(dtype=tf.float32, sha...
91cb763aa8be76ec2433bcc71f0dbe10801c7b84
daf6302fc060c45832b377c91a099a2c59fe878f
/loss.py
8a486863754effdb7468e7d8c4ba3d5df1fe810b
[]
no_license
BUCT-Vision/Vessel-wgan-pytorch
2277af4b5cb5a386550d03f431f00ed4df508b00
d78a3e95a41e19e809c4ae10ebb88b57e20cf468
refs/heads/master
2020-03-18T23:39:26.929120
2018-05-29T15:11:54
2018-05-29T15:11:54
135,416,942
1
0
null
2018-05-30T09:03:37
2018-05-30T09:03:37
null
UTF-8
Python
false
false
619
py
import torch import torch.nn.functional as F import torch.nn as nn # Recommend class CrossEntropyLoss2d(nn.Module): def __init__(self, weight=None, size_average=True): super(CrossEntropyLoss2d, self).__init__() self.nll_loss = nn.NLLLoss2d(weight, size_average) def forward(self, inputs, targets...
c20219e71fe96fd7ae87fe46a2305941c63e2a61
161f02552f5b50d395aedb2a8354b830efe09ef3
/setup.py
ecc057a51d2f31c09576bd383975eb71a6d7869d
[ "MIT" ]
permissive
DuongVu39/HAM_Python
8f79f8d6ca383b0b47ec9ae7cd3884d7313c3026
890229beb71848697c27baa767556265d60657c2
refs/heads/master
2021-05-02T07:30:01.436525
2018-04-18T00:35:15
2018-04-18T00:35:15
120,830,699
0
0
MIT
2018-04-05T06:42:09
2018-02-08T23:26:58
Python
UTF-8
Python
false
false
336
py
from setuptools import setup setup( name='HAM_Python', version='v1.0', author='Duong Vu, Jordan Dubchak, Linsey Yuo', long_description=open('README.md').read(), install_requires=['setuptools', 'pandas','numpy', 'seaborn', 'matplotlib'], include_package_data=True, license='MIT ...
738ccfdc065fe7dca2e9f447d08b1b9d1849b6ee
dae2d6550f93993d6a1902f7d0041b8b01d691a2
/minesweeper/agents/__init__.py
50512dbe4c53402d2adeefe63cc029540803985a
[ "MIT" ]
permissive
MathisFederico/Minesweeper
e43335bca5c4b71b1d4e5f061ed969db8ab02fe4
b66b41066e325813b24497d2caca0a11c048e18b
refs/heads/master
2023-02-06T11:06:39.947347
2020-12-23T03:47:39
2020-12-23T03:47:39
323,767,338
1
0
null
null
null
null
UTF-8
Python
false
false
98
py
from minesweeper.agents.random import RandomAgent from minesweeper.agents.human import HumanAgent
3d36dbc5583d5cb355da674315a9ffcab53ce226
69c0b9b0f8ddae8758f6f10b7df7548dfd2c2f25
/hero_wiki/urls.py
0714ad5b154813f606e08b6441faf586353ea848
[]
no_license
manuzinha0901/Universo_Heroi
624a300f97f4c6e6c63b0c6eea446b8bcbdcc11e
501544cfdce09356e06b43590d6f9e65c14f7031
refs/heads/master
2020-08-04T01:24:04.120040
2019-10-01T17:30:43
2019-10-01T17:30:43
211,951,945
0
2
null
null
null
null
UTF-8
Python
false
false
751
py
"""hero_wiki 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') Class-bas...
c1358985d3e4df57a8045594b2803d1011b67c6d
c015ecc8883b362d51270614dd0ce62f7afab82a
/env/Scripts/django-admin.py
5ce7aa2586a2034464082a0dfcfe91a0493efff7
[]
no_license
KunduzA/my-first-blog
97b11662fb6b69fe50ffa878d8d4392695d14447
bc1b794335bf49f8df7618eee6455b4831177da3
refs/heads/master
2022-11-09T23:22:58.067706
2018-12-25T18:02:49
2018-12-25T18:02:49
163,103,773
0
1
null
2022-10-27T21:50:45
2018-12-25T18:27:47
Python
UTF-8
Python
false
false
205
py
#!c:\users\user\desktop\students_hotstart-django2\students_hotstart-django2\env\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
c05d912a82fe7868f933980db31c66de96480241
fbec4e681d202795dcafa898343e1a1136e1e641
/ex/ex14.py
4bb57eb3b971221203360d567c3d353f95a72234
[]
no_license
hu22333/git
f00395d900fcb483f07d4b2c082723f75debb17a
2158a100cca8a462c1ea695a7250fac317ce6560
refs/heads/master
2020-05-17T05:51:39.191988
2019-06-25T14:18:20
2019-06-25T14:18:20
183,546,043
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
#ex14.py from sys import argv script,user_name=argv prompt='>' print(f"Hi {user_name},I'm the {script}.") print(f"I'd like to ask you a few questions.") print(f"Do you like me {user_name}?") likes=input(prompt) print(f"Where do you live {user_name}?") lives=input(prompt) print("what kind of computer do you have?") ...
68a6c3f8d79e68f900192f990f44df1043eb2a73
15538c486f83e665f30f6f7feac8906d5e622739
/Django Social Clone/accounts/urls.py
b61c41fce42cfa3a5d7534f614f923ffabf3fede
[]
no_license
Phani-rockzz/Django-Social-Media-Clone
e5e909b8df33574cf324d03dd05c27d8e3b35f43
5254405f512fe0cab5369dbc9c48d79e27577340
refs/heads/master
2022-04-20T23:36:01.114391
2020-04-24T14:05:17
2020-04-24T14:05:17
258,528,427
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
from django.conf.urls import url from django.urls import path from django.contrib.auth import views as auth_views from . import views app_name = 'accounts' urlpatterns = [ url(r'login/$',auth_views.LoginView.as_view(template_name='accounts/login.html'),name='login'), url(r'logout/$',auth_views.LogoutView.as...
24cdcbecc7eafa54f83bb32c05eaadece9ae923c
24caa6710105a060fab2e17147e6d56609939011
/05-Importing_Data_in_Python_(Part_1)/03-Working_with_relational_databases_in_Python/09-Pandas_for_more_complex_querying.py
c6ed202627f94fe3a86b7922d627daf248673cce
[]
no_license
inverseundefined/DataCamp
99607022ad3f899d7681ad1f70fcedab290e269a
7226b6b6f41888c3610a884db9a226e013d37e56
refs/heads/master
2022-01-10T00:53:21.714908
2019-07-24T13:27:49
2019-07-24T13:27:49
198,280,648
1
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
''' Pandas for more complex querying Here, you'll become more familiar with the pandas function read_sql_query() by using it to execute a more complex query: a SELECT statement followed by both a WHERE clause AND an ORDER BY clause. You'll build a DataFrame that contains the rows of the Employee table for which th...
42347cd2395456036282ba3e3ef1dcf7ac6fc818
7394523d3b0d3424d8c88f63c603fafb275a167a
/read_json_data.py
c47913f041bfcdf7657e06616f355d2a3a19287d
[]
no_license
teckhockng/capstone
d294679e1155f144d3601e7c75629286111b672d
df7b479af62f5b84ccf788cd06d91daf15cf6ca8
refs/heads/master
2023-08-08T07:58:34.489476
2023-08-01T04:48:16
2023-08-01T04:48:16
220,571,317
0
0
null
2022-12-08T07:31:17
2019-11-09T00:55:29
C
UTF-8
Python
false
false
935
py
import requests import json # from tqdm import tqdm # import time class nba_data(): def __init__(self): pass def get_json(): team_names = ['ATL','BOS','BKN','CHA','CHI','CLE','DAL','DEN','DET','GSW','HOU','IND','LAC','LAL', 'MEM','MIA','MIL','MIN','NOP','NYK','OKC','ORL',...
11625958117885ecc2c95dd6488ab0372a8be249
645d505621ad3f76ca49cb98a9579a1d3bdba155
/Untitled-1.py
baaf19c1ebba20204ee350dc2693967563af1d58
[]
no_license
bdotray/user-signup
fadbaa1a05484940c3f9015b81e82d4d4d64ab1d
8054dd17e76bb7f75be614c20bdbb677bbbea2b6
refs/heads/master
2021-10-28T20:30:56.972746
2019-04-25T01:02:56
2019-04-25T01:02:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index-file.html') if __name__ == '__main__': app.run(debug=True)
acbba4747ce519459fbf2469da605af9eea65ced
25b72885bbf9605092f0ee9f7a03d9ce7734ee73
/CyberStorm/THE_hunt/FTP_fetcher.py
eeb24bf9ea7e809a45d93065aaac032e68fa7251
[]
no_license
Zacherybignall/csc_442
ec68dfe21c7a209e497e36da1d7582804395557e
73d5c1918f484f8c187a4b24ad54e2ba1ce36ac5
refs/heads/master
2022-07-02T23:17:13.536274
2020-05-18T17:04:31
2020-05-18T17:04:31
264,207,228
0
0
null
null
null
null
UTF-8
Python
false
false
3,876
py
""" Name Zachery Bignall Tilte : FTP (Storage) Covert Channel ( homework three) version of python : 3.6 note to Dr.goud{ if you read this} just wanted to let you know that python works different in winodows and linux from command line . #i did not know this. testing thigns in linux and in windows from now on, jus...
f82aa4de85fb74911b7ac6cb4cb31c3ec50e347d
b33b72871b7ab86a3479603d0563c39dafe48172
/src/train.py
03c6624a7a5af59fc3094a71d0776a0fdacc05cf
[ "MIT" ]
permissive
michalnand/sequence_classification
96f190909583a54d4202e47cc5e2b39fb8fc111f
2ef0bdc4f9e1d455b6b03357d31af823c60e32d8
refs/heads/master
2022-06-01T17:29:30.588848
2020-04-28T13:18:36
2020-04-28T13:18:36
259,642,116
0
0
null
null
null
null
UTF-8
Python
false
false
5,734
py
import libs_dataset.magnetometer_read as Dataset import models.net_0.model as Model training_data_files_list = [] training_categories_ids = [] testing_data_files_list = [] testing_categories_ids = [] dataset_path = "/Users/michal/dataset/car_detection/" ''' training_data_files_list.append(dataset_path + "dataS1R...
b19b553273708892d03cdfc7f70263dea147d7d4
fcd1ac6d7349aea4219a22b6e3ae82797c98b5da
/src/components/action_selectors.py
16ad8ef4056972b1c1f2af98029a0df20ce6f9e0
[ "Apache-2.0" ]
permissive
multiagent-arn/ARN
ce339a1be37fa457cd29b68dde25a6d55ad72761
eb566fcab409965ea4684b6a18c433d34562d0d6
refs/heads/master
2022-12-08T13:40:33.362080
2019-05-23T03:08:16
2019-05-23T03:08:16
185,226,977
2
0
Apache-2.0
2022-11-22T03:14:23
2019-05-06T15:49:09
Python
UTF-8
Python
false
false
2,337
py
import torch as th from torch.distributions import Categorical from .epsilon_schedules import DecayThenFlatSchedule REGISTRY = {} class MultinomialActionSelector(): def __init__(self, args): self.args = args self.schedule = DecayThenFlatSchedule(args.epsilon_start, args.epsilon_finish, args.eps...
1a0b7143d2c2b29b069550d8002135bda9119eac
55f00741bf2ab20e2ea5ef1667e4bed744c9f491
/hacking/checks/comments.py
c78a8caa159262b2a6eadb41e0e2ea2f48ff7392
[ "Apache-2.0" ]
permissive
krishnamk00/hacking
683814b8d9150b71537879ec694c993acfecaa40
aba58c846ce7d6aab59a3fa0f9c40eb8834cff94
refs/heads/master
2021-05-27T05:04:36.437991
2014-04-25T01:54:42
2014-04-28T19:58:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,688
py
# 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 writing, software # distributed u...
98af5acc6c01082ff464a39f6b01cd7bb7d5c1f2
83621026a32bdc5800113957dc5518ad25a9068b
/setup.py
70f5a67c97afc1e7d33f2822bab6738272652388
[]
no_license
kerpowski/ChessAI
78f83b49392db5900174418aad0ee95ca5dcac04
113ec134504b718d078b2b3795d9481373a4cfae
refs/heads/master
2020-12-24T16:50:34.560141
2015-02-19T07:32:10
2015-02-19T07:32:10
30,951,038
0
1
null
null
null
null
UTF-8
Python
false
false
589
py
# -*- coding: utf-8 -*- """ Created on Sat Feb 14 16:42:51 2015 @author: kerpowski """ from distutils.core import setup from Cython.Build import cythonize import numpy sourcefiles = ['ChessLib.py', 'ChessAI.py'] compiler_directives={#'profile': True, 'boundscheck': False, '...
dd15eca3d521afbdc79bca58fa83066ccbc92404
3337e9150a743e0df2898528dd1e4dfac9730b25
/artemis/general/mymath.py
e60d306dc6a969ee2e04e2cb9db36f9d9ba7edad
[]
no_license
ml-lab/artemis
f3353cb462b06d64e1007010db94667b4703c90e
b4f5f627f1798aff90b845d70fd582142a9f76c8
refs/heads/master
2021-01-22T06:49:41.346341
2017-09-01T15:31:13
2017-09-01T15:31:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,159
py
import logging from artemis.general.should_be_builtins import memoize, bad_value import numpy as np from scipy.stats import norm, mode as sp_mode try: from scipy import weave except ImportError: logging.warn("Could not import scipy.weave. That's ok, ignore this unless you need it.") __author__ = 'peter' # Not...
c7d5357b3174e3eba0e4d7ebff79be4a7d3ceb48
7b06781892e624146ce8a6928c5d44672a805f76
/abastos/products/views.py
89c45e2d06c32b86987136ca6f21cca0952d06bd
[]
no_license
adelebrgx/abastos
f3f2bb242bdc135a0b41e86e2d0092c6d9f73e68
70f6d63462a9cc0a57e97846977e65885abea3c2
refs/heads/master
2022-11-11T07:56:50.329272
2020-06-15T13:58:00
2020-06-15T13:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,945
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from .models import Product from sell.models import SellPair from .import forms from django.http import HttpResponse import re from urlparse import urlp...
d4f80fa882a355e2bf6591941db0d7867814e911
3d70f9c2773def4e3c27f6bac2df36652b8ed83b
/randomdump/anti.py
6aeff0f2f4c95c6440cd0b0b4e1d73aa750c15ce
[ "MIT" ]
permissive
hmumixaM/anything
50d094b9c534455b2496e216fb85ab8a832a6814
5810132118d6d3f3859d607fca068c8275d4bf42
refs/heads/master
2023-05-11T20:42:25.083422
2020-03-06T06:21:49
2020-03-06T06:21:49
199,136,701
0
0
MIT
2023-05-01T21:20:19
2019-07-27T08:15:13
HTML
UTF-8
Python
false
false
778
py
import requests import random from fake_headers import Headers import names import threading count = 1 def hehe(): while True: n = names.get_first_name() + '@ad.unc.edu' p = ''.join(random.sample('1234567890qwertyuiopasdfghjklzxcvbnm!@#$%^&*()', 10)) header = Headers(headers=False) ...
0f9bf124f49507e8e88f9c99a67d39996068f0e1
f090c3e0faa70cf0ef7c4be99cb894630bce2842
/scripts_201410/simpleMeasurements/FFT/micromotioncompensate.py
61e0fc2a67cd09a122b42c0821e42d4d1b12e7ff
[]
no_license
HaeffnerLab/resonator
157d1dc455209da9b7de077157bda53b4883c8b7
7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71
refs/heads/master
2021-01-09T20:48:03.587634
2016-09-22T18:40:17
2016-09-22T18:40:17
6,715,345
2
1
null
null
null
null
UTF-8
Python
false
false
683
py
from FFT import measureFFT import numpy as np import labrad import time cxn = labrad.connect() dv = cxn.data_vault recordTime = 0.5 #seconds average = 4 freqSpan = 50.0 #Hz freqOffset = -889 #Hz, the offset between the counter clock and the rf synthesizer clock #setting up FFT fft = measureFFT(cxn, recordTime, avera...
db98033897b4a03b67eadb5d8c0e7a324bc82fb5
1ebbe757b1143b774b7894f5c38552d7a03f45c2
/hm/python/Complexe.py
6f7a0a8d36ce98aa4191352b4261abdee27c4b70
[]
no_license
bertrandh123/2019-npfl104
92b5705a3851b2078a082df1a6a1a8604ec36fb8
496335f35beaa414f8b827d16c55b1b17b217329
refs/heads/master
2020-04-29T09:48:40.461869
2019-03-20T18:08:08
2019-03-20T18:08:08
176,038,978
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
class Complexe: def __init__(self,re,im): self.re,self.im=re,im def add(self,r,i): self.re+=r self.im+=i def sub(self,r,i): self.re+=-r self.im+=-i def __str__(self): if self.im>0: print(str(self.re)+'+'+str(self.im)+'i') else: print(s...
fec1c1260cfa72255d7da4f655922ef3b8c9177a
e075ec44df27d776d2ed2581f1c9448eb34b7f0d
/src/dashboards/graphs/migrations/0003_auto__del_field_kpi_values__add_field_kpivalue_kpi.py
ff688fcbbeca20250cb5027bbf1cbf273fe92d87
[]
no_license
stereoit/dashboards
f5eeca34561ebc3847c58311b22ec17170cc9193
14d9f889cd240a9f5770b130a2628cb7d068a327
refs/heads/master
2021-01-25T10:20:51.520809
2012-09-18T14:56:37
2012-09-18T14:56:37
5,284,894
1
0
null
null
null
null
UTF-8
Python
false
false
6,227
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'KPI.values' db.delete_column('graphs_kpi', 'values_id') # Adding field 'KPIValue....
8939e5cabbb2aec509f3ddb98bf673a0615b5918
10263cf024d58360f312189aef89c4289f732020
/shop/views.py
992e88f64e68f2f76cbf1990424da69e2f550407
[]
no_license
mlobina/django-fin
e1e5085d5048f88ae335cc84c8a252e53a600ca1
6595dfe57c44f31e80e32bb736aafb6e3590afea
refs/heads/master
2023-06-17T14:54:50.974551
2021-06-29T10:38:50
2021-06-29T10:38:50
381,179,562
1
0
null
null
null
null
UTF-8
Python
false
false
4,168
py
from rest_framework import viewsets, permissions from django.contrib.auth.models import User from shop.models import Product, ProductReview, Collection, Order from shop.serializers import ProductSerializer, ReviewSerializer, CollectionSerializer, OrderSerializer, UserSerializer from django_filters.rest_framework import...
0b8d79dc193c5e2bc349ca96dd149172f4b2ea40
c42f45d20dee9c27869e24a5ed9a367a6be44a5f
/dnsmanager/management/commands/importbind.py
219caeeda4193d8d2510fa9f1600b9ebca0b9519
[ "BSD-3-Clause" ]
permissive
rhilo/django-dnsmanager
a4b15e1a4c983597e6e5b958d4217ea614b03342
00f4211d6a57f038fad46409892768c1f72791f4
refs/heads/master
2023-06-30T01:58:38.042136
2017-03-20T03:37:17
2017-03-20T03:37:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
import os from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.db.models.loading import get_model from dnsmanager.models import Zone class Command(BaseCommand): args = '<zone_file zone_file ...>' help = 'Import the specified Bind zone file' def h...
df7b27de7032e41159d2757d07e22dd5bf52718c
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/TensorFlow2/LanguageModeling/BERT/dllogger_class.py
be211785d770825978dc9b4cb32631e11f2435bc
[]
no_license
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
2,852
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021, NVIDIA CORPORATION. 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/lic...
0332c4d5e620cd87f9b70d77e4f57a67c07e72a3
3b89c0a97ac6b58b6923a213bc8471e11ad4fe69
/python/CodingExercises/MoveSpacesFrontString.py
af9641cf57932b4daa0e84d62d196bc3aa65de22
[]
no_license
ksayee/programming_assignments
b187adca502ecf7ff7b51dc849d5d79ceb90d4a6
13bc1c44e1eef17fc36724f20b060c3339c280ea
refs/heads/master
2021-06-30T07:19:34.192277
2021-06-23T05:11:32
2021-06-23T05:11:32
50,700,556
1
3
null
null
null
null
UTF-8
Python
false
false
1,116
py
''' Move spaces to front of string in single traversal Given a string that has set of words and spaces, write a program to move all spaces to front of string, by traversing the string only once. Examples: Input : str = "geeks for geeks" Output : ste = " geeksforgeeks" Input : str = "move these spaces to beginning...
2b8f98fed9b2cf78f74e3d060be36ebc87cc6f48
3d2823b5b9a33efa51e8daea9873494b0c3d8116
/Sparse autoencoder/sparseae.py
65786bd3c7ff49c2e91758cc98c003faddd20650
[]
no_license
AdamGu0/MNIST-Neuron-Networks
1430de9756769d112d54ed612fd5be90b087710b
e022d0a5b42c31cc2350cd8bfc5762ecab609832
refs/heads/master
2020-03-16T03:56:54.983557
2018-05-07T18:24:29
2018-05-07T18:24:29
132,499,122
0
1
null
null
null
null
UTF-8
Python
false
false
13,592
py
''' This file implements a multi layer neural network for a multiclass classifier using Python3.6 ''' import numpy as np from load_dataset import mnist import matplotlib.pyplot as plt def sigmoid(Z): ''' computes sigmoid activation of Z Inputs: Z is a numpy.ndarray (n, m) Returns: A ...
8400f0f8f16237cd362e0cc37f3436e13b3d755f
82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8
/solutions/Longest Word in Dictionary through Deleting/solution.py
267c70a98bb61b70fe13d5f17a5e27cb662c0fae
[ "MIT" ]
permissive
nilax97/leetcode-solutions
ca0f9545ce70975617738f053e0935fac00b04d4
d3c12f2b289662d199510e0431e177bbf3cda121
refs/heads/master
2023-05-14T02:21:48.893716
2021-06-08T13:16:53
2021-06-08T13:16:53
374,466,870
3
0
null
null
null
null
UTF-8
Python
false
false
617
py
class Solution: def findLongestWord(self, s: str, d: List[str]) -> str: s = '_' + s n, nxt = len(s), [{} for _ in s] for i, c in enumerate(s): for j in range(i-1, -1, -1): nxt[j][c] = i if s[j] == c: break def find(word): i = 0...
6bec030a51b5bb4b0f123d9777dc394b085cf5e0
9eaa2c64a777bd24a3cccd0230da5f81231ef612
/study/1905/month01/code/Stage5/day16/demo06_canny.py
8cecd5c5324a39778bbcead274373be63fe735f3
[ "MIT" ]
permissive
Dython-sky/AID1908
4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c
46cd54a7b36b5f009974f2bbb7005a4ad440ca1a
refs/heads/master
2022-04-14T12:23:30.426270
2020-04-01T18:05:19
2020-04-01T18:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
""" demo06_canny.py 边缘识别 """ import cv2 as cv original = cv.imread('../ml_data/chair.jpg',cv.IMREAD_GRAYSCALE) print(original) cv.imshow('original',original) # 索贝尔边缘识别 sobel = cv.Sobel(original,cv.CV_64F,0,1,ksize=5) cv.imshow('sobel',sobel) # 拉普斯边缘识别 laplacian = cv.Laplacian(original,cv.CV_64F) cv.imshow('laplacia...
3d87924ec7d7fd9fcc0bcf9142588b70d3044ea6
04e2a63c2a393ec3782a482b1734b6462c885d5d
/univelcity/open_file.py
a5d41c60faaaf3883d1b9e76f60d5a9ad4ae687c
[]
no_license
AzeezBello/_python
c1d671efbca2ed2ca7d65513efd2c55b496ddad7
266bc5aed9bfb93ea93b07712b48406331a9a327
refs/heads/master
2020-05-17T18:09:49.133120
2019-05-16T07:08:50
2019-05-16T07:08:50
183,876,279
0
0
null
null
null
null
UTF-8
Python
false
false
3,299
py
# file = open("death_causes.csv", "r") # index = 0 # for line in file: # index += 1 # print(line.split(",")) # if index == 3: # break # # Year,Cause Name,Cause Name,State,Deaths,Age-adjusted Death Rate # file = open("death_causes.csv", "r") # deaths = 0 # count = 0 #...
937cbe9fd5ba8c1d6b32d32aa70e78214c9d2377
7b1cd806d19a3e1980d18dc2b6a61b3a3d347e72
/hpuAllLink.py
aa93ffd835d5fbfcf70f04978a0752db3da20385
[]
no_license
WeianBO/Scrap
d2929efc618e5da59a72b4f9375c28fd565226a4
695d9999f9ef69ddd7b66072fb4c5505bef9d55e
refs/heads/master
2020-03-19T23:59:07.726692
2018-06-12T06:37:22
2018-06-12T06:37:22
137,027,695
0
0
null
null
null
null
UTF-8
Python
false
false
2,016
py
from urllib.request import urlopen from bs4 import BeautifulSoup import pymysql import requests import re #定义两个空数组 inUrl = [] outUrl = [] #将外链接写入元组 def outLink(url): if url in outUrl: pass else: outUrl.append(url) #将内链接写入元组 def inLink(url): url = re.sub("^/", "", url) # 使用正则表达式对数据或者字符串内容进行...
d1f13e636da4561babbaa676e0c08ff8448d9dab
84fda8562eb6193b58031ad9369c27ba455430ca
/vulcan/_homework.py
ed134f6df75a9eef5dde9b04390dbcde8b935ea0
[ "MIT" ]
permissive
Majroch/vulcan-api
50bf39922cea338ac4a98a3a98b9a505469fd936
4448eeb64d2481b5deb643bcb32f2c9ee04463f5
refs/heads/master
2022-12-10T15:36:20.345105
2020-08-22T23:10:45
2020-08-22T23:11:37
295,528,170
0
0
MIT
2020-09-14T20:14:14
2020-09-14T20:14:13
null
UTF-8
Python
false
false
1,502
py
# -*- coding: utf-8 -*- from datetime import datetime from related import ( IntegerField, StringField, DateField, ChildField, immutable, to_model, ) from ._subject import Subject from ._teacher import Teacher from ._utils import sort_and_filter_date @immutable class Homework: """ Ho...
81eb6216326223d83778b2d3bd64fbec29228251
73758dde83d1a1823c103e1a4ba71e7c95168f71
/nsd2002/py02/day03/game_role.py
65eea729683ff4a6c379867472ab679b07dec8fa
[]
no_license
tonggh220/md_5_nsd_notes
07ffdee7c23963a7a461f2a2340143b0e97bd9e1
a58a021ad4c7fbdf7df327424dc518f4044c5116
refs/heads/master
2023-07-02T01:34:38.798929
2021-05-12T08:48:40
2021-05-12T08:48:40
393,885,415
0
0
null
null
null
null
UTF-8
Python
false
false
922
py
class Role: def __init__(self, name, weapon): # 构造器方法,实例化时自动调用,注意,self不是关键字,可以是任何自定义的变量 # 绑定在实例身上的属性,在类中任意位置可见可用 self.name = name self.weapon = weapon def show_me(self): # 绑定在实例身上的属性,在类中任意位置可见可用 print('我是%s,我擅用%s' % (self.name, self.weapon)) def speak(self, ...
5645056187f31ed4f86c80622fdeaf41b71f0d0b
b361bdc6abbda69dfae1bb9b41282413436eddd1
/polls/models.py
b6259e2a1032f861775ef81bb9320e7b103412e2
[]
no_license
wwz58/mysite
d84b9356f85c31a9bb8b11d03216588c6d4a4842
236472decbb9dd813898684dbb4143f10fefebb5
refs/heads/main
2023-01-10T03:23:18.984338
2020-11-14T13:14:25
2020-11-14T13:14:25
312,543,745
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
import datetime from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_pub...
dc105c937af95e74bf4880b57361a7470c141909
fb8cbebdf034b2f478943752d5443afc82c6eef5
/tuirer/venv/lib/python3.6/site-packages/jedi/evaluate/dynamic.py
fe9d28e5d70906257d64b55fcc219bbc2f5d3c6a
[]
no_license
fariasjr/CitiTuirer
f64e0ec93ef088f8140bb0961d2ad4ed3b59448a
deb3f7a9c2d45b8a7f54639037f097b99abdac11
refs/heads/master
2020-03-24T05:10:36.261050
2018-08-01T20:24:30
2018-08-01T20:24:30
142,477,521
0
0
null
null
null
null
UTF-8
Python
false
false
8,165
py
""" One of the really important features of |jedi| is to have an option to understand code like this:: def foo(bar): bar. # completion here foo(1) There's no doubt wheter bar is an ``int`` or not, but if there's also a call like ``foo('str')``, what would happen? Well, we'll just show both. Because th...
21a712689313dd214c18b4bccb4fb9d07a196c76
a500d0a13e025a7e25376592188663f26c13385e
/machinelearning/data_science_from_scratch/bin/histogramming.py
5d5d0265b53d25f825b2de93ae105a0b851f9542
[]
no_license
sraywall/GitTutorial
c6096cfa9dc5c89ebaedee10ee93fed69118f296
cd0de5db58e42fb4a5094504147ba804b0424247
refs/heads/master
2021-04-27T20:36:30.290444
2020-05-07T19:27:06
2020-05-07T19:27:06
122,381,399
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/python3 import matplotlib.pyplot as plt from collections import Counter grades = [83, 95, 91, 87, 70, 0, 85, 82, 100, 67, 73, 77, 0] # Bucket grades by decile, but put 100 in with the 90s histogram = Counter(min(grade // 10 * 10, 90) for grade in grades) plt.bar([x + 5 for x in histogram.keys()], # Shift b...
b9b8b6190fea295a20706bf72e02f8bd6b16d816
0a15660807aee7d2fccbef1a3e633cabd1deb972
/subway/models.py
6dd5ae55f71cff97c7052df438f87e6a8c662e4e
[]
no_license
chirs/hs
7860e77230cd2577cac79539039f0e2a7590ef35
f1985e11a73b29fa8bf4fd1725c529ec8e61cb5b
refs/heads/master
2021-01-21T10:42:15.789926
2017-02-28T20:12:31
2017-02-28T20:12:31
83,474,848
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
from sqlalchemy import Table, Column, Integer, String, Boolean, DateTime, MetaData, ForeignKey, Text, Float from sqlalchemy.orm import mapper from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base engine = create_engine('sqlite:///:memory:', echo=True) Base = declarative_base() ...
37c263710e2e5d8dea3aea2656664222dd57cb01
55616b9bc2a5726f1bfb005596987db8c43872c7
/App/forms.py
e04a83ed5c6a5eb065cb39e0dc6e80bbeeff3dfe
[]
no_license
helloluoc/flaskblog
96d1dee4b31fce879fd17b4220d697ae00f0e74d
500710b7229c704fcee2bfe27b2d2dbd2c3a2784
refs/heads/master
2020-03-23T20:17:53.834356
2018-09-30T14:11:26
2018-09-30T14:11:26
142,033,367
0
0
null
null
null
null
UTF-8
Python
false
false
2,682
py
from flask.ext.wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField,PasswordField,BooleanField,FileField from wtforms.validators import DataRequired,Length,EqualTo,Email class PostForm(FlaskForm): content = TextAreaField( render_kw={'placeholder':'骚年,你想表达什么...'}, validato...
38e2a317c4f2e7eb33bdc730a2477b9180c102dc
502949222ee30e947426e85aadf8cfdd4b315780
/luck_balance.py
92fa55989516ac27357f5885d1873768c33a9dd5
[]
no_license
RafaelChavesPB/HackerRank
c3d70a0562f733af7e62d65f08312bae84560507
ab7527754cbaabaa27a633120ed04f39d5ad932f
refs/heads/main
2023-06-11T16:19:03.266782
2021-07-10T12:16:49
2021-07-10T12:16:49
363,399,230
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
#!/bin/python3 import math import os import random import re import sys # Complete the 'luckBalance' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER k # 2. 2D_INTEGER_ARRAY contests # def luckBalance(k, contests): importants = [] ...
e9a1fed6a23067a05df9d37a4204e81098c48194
b9bf3b34b59ec8e566b7ad6e58b7d0429370d6bd
/gunicorn_conf.py
3b6bec2f43185136d7017ecf5ea3fe59f9f34931
[]
no_license
dutradda/chunli
7eea614b6c6c3c0738bec2f15d8224430e450a82
54e4385a34f805a2c13acdf85aec98d63c4eaff7
refs/heads/master
2021-08-16T09:22:45.388575
2020-09-03T12:55:33
2020-09-03T12:55:33
217,397,141
3
0
null
null
null
null
UTF-8
Python
false
false
327
py
import os import redis def worker_exit(server, worker): r = redis.Redis.from_url(os.environ.get('REDIS_TARGET', 'redis://')) r.publish('chunli:distributed', 'stop') def child_exit(server, worker): r = redis.Redis.from_url(os.environ.get('REDIS_TARGET', 'redis://')) r.publish('chunli:distributed', '...
c2dee47972cf180e467ae4cfe43135ba4248be4c
97f9c0602f5d202adb3a159c211ca8075a5c4b07
/tictactoe/gameplay/models.py
ffef41c78f6d65dfea9bf2b0ddb0f6dfc81c4614
[]
no_license
julia-thea/django-tictactoe
c836360b27acfe8d7f5cd8a851ef01eab81a4985
1276ac180becb4280272e2b57dc1c54444ec57c2
refs/heads/master
2022-06-28T04:36:05.420980
2020-05-10T21:17:59
2020-05-10T21:17:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,414
py
from django.db import models from django.db.models import Q from django.contrib.auth.models import User GAME_STATUS_CHOICES = ( ('F', 'First Player To Move'), ('S', 'Second Player To Move'), ('W', 'First Player Wins'), ('L', 'Second Player Wins'), ('D', 'Draw') ) class GamesQuerySet(models.Query...
8fe248d9822eea62924d8b53b9b960bb32bfe359
6541487fb7df24610e5c61aa30d4a39b9117b427
/tests/test_math_helpers.py
6cf87e9dc244968d69684b98f2d4a3ab0f4b7c6f
[ "MIT" ]
permissive
theY4Kman/birdfeeder
0e1f90a96b1607c0675ea3ab70a00fc99b97e7ac
25503a138fe01589fb28317ae0f3e281d6ce1961
refs/heads/master
2023-04-21T11:23:07.699322
2021-03-24T08:36:13
2021-03-24T08:37:40
368,974,412
0
0
MIT
2021-05-19T19:03:43
2021-05-19T19:03:43
null
UTF-8
Python
false
false
510
py
from decimal import Decimal from birdfeeder.math_helpers import safe_div, safe_mean def test_safe_div_basic(): assert safe_div(10, 2) == 5.0 def test_safe_div_basic_decimal(): assert safe_div(Decimal(10), Decimal(2)) == Decimal(5) def test_safe_div_zero_div(): assert safe_div(10, 0) == 0.0 def test...
b7aade2484b165d22de966e987fd39bcf4cf37f0
286df6528096b6393b61d3ecb3b7002cb9a7b983
/python/ql/test/library-tests/frameworks/aiohttp/response_test.py
1988f4435604cade3227c27d40ba902f6661df59
[ "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Python-2.0", "MIT" ]
permissive
Inncee81/codeql
ed620df0ae7b706943eccd92af37e037f540f6a4
38a38fd2c145628472d14c9e9d6ca812fd525793
refs/heads/main
2023-06-13T01:23:30.086459
2021-06-22T10:59:44
2021-06-22T10:59:44
379,254,229
1
0
MIT
2021-06-22T12:02:02
2021-06-22T12:02:01
null
UTF-8
Python
false
false
3,173
py
from aiohttp import web routes = web.RouteTableDef() @routes.get("/raw_text") # $ routeSetup="/raw_text" async def raw_text(request): # $ requestHandler return web.Response(text="foo") # $ HttpResponse mimetype=text/plain responseBody="foo" @routes.get("/raw_body") # $ routeSetup="/raw_body" async def raw_bod...
874c30928f3f3b99467b5c30f812bfce8a1f46e3
51424671f6207121ff734a3821448367c5fa7043
/ecommerce/store/views.py
457176ecfa0b02686fce0e12c14b70d9a3d89820
[]
no_license
prateekthakkar/case-study
1d7e8aa2f175bec24a7cda845517d9928734d775
a20085150c130fab05767011faedf4c806006542
refs/heads/master
2022-11-06T06:24:00.604616
2020-06-13T05:43:49
2020-06-13T05:43:49
270,648,544
0
0
null
null
null
null
UTF-8
Python
false
false
5,736
py
from django.shortcuts import render,redirect,HttpResponse from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from .tasks import send_email from .models import * from django...
9adaaa8a0991643c934d8ca118ce9b52964bcf0c
6de78731b9626459b95718dc15398850143b024c
/CNN/Keras/predict_bigtiff.py
e5f0623974d96eaa2f45b6a13c55cf2d772a35d7
[]
no_license
ghx1234/RSDataProcess
08999e83b6693df161af088112d66fbad1189c4a
098b51d4f25923968b00ac5bd40e3f2440d5b33a
refs/heads/master
2022-12-01T05:59:29.056334
2020-08-14T14:55:24
2020-08-14T14:55:24
265,778,277
5
1
null
null
null
null
UTF-8
Python
false
false
2,390
py
import os import sys import numpy as np from PIL import Image import gdal import rasterio import tensorflow as tf from model import * def z_score(x): return (x - np.mean(x)) / np.std(x, ddof=1) def read_img(path): with rasterio.open(path) as ds: data = ds.read( out_shape...
1bdb310ceed481f9c559a64c36a67b91af52f028
a0e79cef4779a9eedd512158e73c166bf6846110
/NADE/deepnade/buml/Instrumentation/Parameters.py
84e6cc558d631bd233bf50e9c35ba2a61e79fac4
[ "BSD-3-Clause" ]
permissive
rogen-george/Deep-Autoregressive-Model
9ca5135ed1d8c0c5c442cd95d75467208d6b0acd
8d567ecb6d59b3003fba9aab2a0693dab67514ef
refs/heads/master
2021-10-25T22:50:03.508798
2019-04-08T00:56:33
2019-04-08T00:56:33
172,263,626
4
1
null
null
null
null
UTF-8
Python
false
false
343
py
from Instrumentation.Measurement import Measurement class Parameters (Measurement): """The instrumentable object must implement the get_parameters method""" def __init__(self, *args, **kwargs): self.attribute = "parameters" def take_measurement(self, instrumentable): return instrumentable....
c6dcdbe0262dc26556c2962a2bb5611d42ce181f
14bb6210a317ba7cd248571103a325713922b685
/conf.py
1f86d53d6e2c9cae4e30f84103b9e179ab1063eb
[ "LicenseRef-scancode-unknown-license-reference", "CC-BY-4.0", "LicenseRef-scancode-public-domain" ]
permissive
ocean-transport/group-website
469e2f951bbdf03c8125a6a9131230aea40cc066
89cd7877ec5e57bd15b1d6a6b64541034d9e861c
refs/heads/master
2022-07-08T06:34:37.449564
2022-06-29T15:28:45
2022-06-29T15:28:45
212,735,255
5
11
NOASSERTION
2022-06-29T15:28:46
2019-10-04T04:24:56
TeX
UTF-8
Python
false
false
7,574
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Ocean Transport Group documentation build configuration file, created by # sphinx-quickstart on Wed Jul 31 18:58:11 2019. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are presen...
7bcb8b925acf750edd56ecb347e2fd0945a767c0
18831623126751bfe3dc7f7d8291de2066a01c06
/sha2.py
f8d889959b2819e7e473b5237b3b2431d76715d4
[]
no_license
mnoalett/ringzer0-ctf
e8fbe3ee3722c56c5b03831c21522ca4ef14dab1
fd76d83fe8a9d42ca7798c9dff43fc8e3d6645b1
refs/heads/master
2020-04-14T12:58:34.373073
2019-01-02T15:17:09
2019-01-02T15:17:09
163,855,742
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
import hashlib import requests import re url = "https://ringzer0ctf.com/login" url_res = "https://ringzer0ctf.com/challenges/57/" payload = {'username': 'xxx', 'password': 'xxx'} hash_regex = "-----BEGINHASH-----<br\/>(\w+)" salt_regex = "-----BEGINSALT-----<br\/>(\w+)" flag = "FLAG-\w+" session = requests.Session() ...
227db5c8db59ef92e3388e793f7c0346ae313a35
e1e15a264cb6b8de018b335bf07bb540ae5edf76
/core/update.py
6d9496ca5f48d4df412834c75b06499bea2a08b0
[ "MIT" ]
permissive
JustF0rWork/malware
00891ebf250b2f9577081d9909362fd0cac9bdd9
906f9a2e7d3c985bd0d31a350d2f08c44b4820ff
refs/heads/master
2021-01-10T15:56:19.866067
2016-01-12T02:06:55
2016-01-12T02:06:55
49,463,263
3
2
null
null
null
null
UTF-8
Python
false
false
9,118
py
#!/usr/bin/env python """ Copyright (c) 2014-2016 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ import csv import glob import inspect import os import sqlite3 import subprocess import sys import time import urllib sys.dont_write_bytecode = True sys.path.append(os.path.abspath(os.path...
1317aafa3a4fd100947fdd513f504d272f19b67c
867c876541c29775bd5c1548a2ba59f0dc84737d
/MxShop/extra_apps/xadmin/sites.py
4d151c4b285f85168ebbcd2566c77c2ade989a9c
[]
no_license
flowpig/daily_demos
be9c8aec7c8070e96ee7012b249c2f60e777e248
b4bc7779c55ca0a02098c6dafe23a8f5af461182
refs/heads/master
2023-01-10T21:46:24.059317
2019-11-29T06:33:42
2019-11-29T06:33:42
117,111,372
0
0
null
2022-12-26T20:42:28
2018-01-11T14:29:56
JavaScript
UTF-8
Python
false
false
15,072
py
import sys from functools import update_wrapper from future.utils import iteritems from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models.base import ModelBase from django.utils import six from django.views.decorators.cache import never_cache from django.template....
fd462ea2c658063f9780b2900c7dd1676594f3a8
930240227e320dff7448e05803e5f0814e2a8c1b
/Talleres/Django/Taller 3/ExEcommerce/ExEcommerce/settings.py
e77b8d86154b64630ca5c2507cb503541ea8ddac
[ "MIT" ]
permissive
AnamaSerrato/DesarrolloWeb
e24a82d5e1c523e82dfb19c7c8a488a4e4389ca8
4fd61cd4684f3a30bc7a7041b1916ff5587cee5a
refs/heads/main
2023-08-24T17:51:00.528405
2021-10-26T16:18:23
2021-10-26T16:18:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,397
py
""" Django settings for ExEcommerce project. Generated by 'django-admin startproject' using Django 3.0.8. 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 o...
a3c4a503c58924da41d28428547c030ff9a7aafc
1f0a385f70b574667b9fc2a16268ae1898b55ed2
/Profiling.py
929aa18e3432f24f1df648fb2d5971fb005f4fba
[]
no_license
ditzh/Age_of_Information
4a9a4065e81cbedb4254c8a8fa815528945dee7b
eada3f778e6ce48e8fc56a8bf6cceaf138b58837
refs/heads/master
2022-04-04T13:16:37.511584
2020-02-25T22:15:49
2020-02-25T22:15:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,776
py
import math from random import randint import cv2 import collections #Read video from the given path and get its width and height cap = cv2.VideoCapture('sample.mp4') frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT)) def dist(x1,x2): sol = math.sqrt((x2[0...
9be19d47b7bad8f555e7926513eb67a94d9ebf3c
3b6179c93316d8ad00f24095414b09e53310e15e
/_build/jupyter_execute/03_logistic_regression.py
26e057f7757376d54ff61a8183a2f0ed92e65961
[ "MIT" ]
permissive
newfacade/machine-learning-notes
37fc050544ea3e98b2fa38779e6023214d8cea62
1e59fe7f9b21e16151654dee888ceccc726274d3
refs/heads/main
2023-03-30T07:08:17.968737
2021-03-22T12:40:39
2021-03-22T12:40:39
350,337,169
0
0
null
null
null
null
UTF-8
Python
false
false
8,781
py
# Logistic Regression ## Regression and Classification regression answers how much? or how many? questions, for example: 1. predict the number of dollors at which a house will be sold. 2. predict the revenue of a restaurant. in practice, we are more often interested in classification: asking not "how much", but "wh...
8518901c7fdfc473318b9f996ce5871326d2e0c8
e96f82c65d7b0b5acf1f98e573b695afda122698
/Amusing Joke.py
315cbfec9e418b84ae68d1a3a06a79c9b8f506d7
[]
no_license
devinemonk/CodeForces-Python
66525fe4b91a2fe780603931f81ec4aa30082315
def55f4c8651ebe70920c8d8e01ed09e4aeafd4e
refs/heads/master
2023-08-17T23:34:48.621928
2023-08-07T22:02:02
2023-08-07T22:02:02
288,174,825
2
0
null
null
null
null
UTF-8
Python
false
false
227
py
s=input()+input() s=s.upper() d={} for i in range(ord('A'),ord('Z')+1): d[chr(i)]=0 for i in s: d[i]+=1 c=input() for i in c: d[i]-=1 for i in d: if d[i]!=0: print("NO") exit() print("YES")
2baf4341109adc25e717ef6ca616d348ac57cd17
125ed954649430eac78b938ca13b74ae86e6d511
/helloworld.py
70cb0d9437c3bca59838a46bbdb73265b315b6c7
[]
no_license
darren277-assorted/whatever
ccbe13a822c05ee3d74557ae01887c3387185c2d
1e52543711470eadd8bd319c8ded8d28bc8c5075
refs/heads/master
2022-10-27T17:56:02.802392
2018-09-14T16:58:45
2018-09-14T16:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
try: print('hello world') except ZeroDivisionError: print('Could not print for because you tried dividing by zero somewhere.')
85faccd6ab92a6953348fec45d163ceebd22bde7
0ac9495255f4d6be0ad1dd5bc298bfe2e4025e5b
/app/main/views.py
8db7addd9f3cc234c1e84626f4bf0c75c1ef2c06
[]
no_license
Alekzandre/labs
12eaa3d516cfb4be024fe6cf2fe89637a2a1ba16
293735884f3d6b2ba72b8053143d23dbf6a2e5ee
refs/heads/master
2021-01-01T05:27:03.278545
2016-06-06T12:17:33
2016-06-06T12:17:33
59,002,716
1
0
null
null
null
null
UTF-8
Python
false
false
816
py
from flask import render_template, session, redirect, url_for, flash, request from flask.ext.login import login_required from . import main from .. import db from .forms import PicUploadForm from ..firm.models import Firm from ..auth.models import User, Role import os from werkzeug import secure_filename @main.route(...
734bba3ac3df513251e2431b420b08c3a0bb20f7
c2643fdff3185b659c2c7fa807d8b8d345a90343
/tests/test_basic.py
4bea68de088fd5206824e30ac834120108554bc5
[ "BSD-2-Clause" ]
permissive
auxten/fhost
b39ae209a056b301e737d176f8f12dcafd82cfa2
6536c4955e13fd67c939a6fc6cc687d29e976d15
refs/heads/master
2021-01-16T00:35:43.304418
2012-06-25T10:17:52
2012-06-25T10:17:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
# ## BEGIN LICENSE BLOCK # # Copyright (c) <2012>, Raul Perez <[email protected]> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copy...
dd639edaad50c660c763ab08ed15d4fd9b9e9c6a
dec2da908901b176e2e10ca3677f36346ddceee7
/cvpl-users/users/api.py
8a29e2a71ffdd192cf3077d18cd45038d64b64e6
[ "Apache-2.0" ]
permissive
robinsax/canvas-plugin-multirepo
e382d107a3f32428722e528410db9da3117e2518
20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01
refs/heads/master
2020-03-31T11:14:29.159786
2018-10-09T01:36:35
2018-10-09T01:36:35
152,168,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,660
py
# coding: utf-8 ''' Users API. ''' import canvas as cv import canvas.ext as cve from . import User, _edit_approver from .auth import authorize, flush_auth from .authz import require_admin, require_anon, require_user @cv.endpoint('/api/auth') class AuthEndpoint: @require_anon def on_post(self, context): request,...
49a906e6c7883da06b65ccbde0a76bf79142b0dc
47798d5661fa0c9423b7afc8cf7f8545816d709b
/tests/re_v4.py
540db38d96045ed766338edc74532db09e9331fd
[]
no_license
yaleman/SubnetMixer
d530a5ce3c39aced202b94ac661e11d7a100894e
122d919f3f00b3bd2fe329d017003ab0f06b0210
refs/heads/master
2022-11-10T01:29:35.916066
2022-10-09T21:31:54
2022-10-09T21:31:54
17,395,183
0
0
null
2022-10-09T21:31:55
2014-03-04T08:23:10
Python
UTF-8
Python
false
false
160
py
import re re_v4 = re.compile( "[\d]{1,3}.[\d]{1,3}.[\d]{1,3}.[\d]{1,3}" ) tests = [ "10.0.0.0", "10.0.0", "1111" ] for x in tests: print re_v4.match( x )
d15b397388bcb5efae9ec644b1c9a1d3c8f1413c
dbe9f1169cb86835e41923e85a0498af0a312288
/code/main.py
b9e9d4506b5acd1edc3c66bd4cbe2f393af91168
[]
no_license
JzjSunshine/BlockChain
049f178288cd2dc4d070e3152d88f87fe560e561
de8d4f49b418af2c9df8a6809e7a769a46b24d8a
refs/heads/master
2023-02-21T08:33:33.813692
2021-01-25T07:29:20
2021-01-25T07:29:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,241
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from login import Ui_login from signup import Ui_signup from company import Ui_company from company_sign import Ui_company_sign from company_transfer import Ui_company_transfer from company_finance import Ui_company_finance from bank import Ui_bank import os impor...
238a9c00d0ee9241b740aa701da20a49250c30a6
e2d1036d29aa0cb2b46a2be6bba91a1c5d5556aa
/Self_Driving/train_and_val_predictor_single.py
e78f4a5f3db9afeca4b4ca2227c502d16a57b727
[]
no_license
Liuzy0908/SB3-Carla
79eaad128ba649c202bee27dded6e240e76863ac
f9cfb9108463ed15aee81c36abdb4eb87c15be6c
refs/heads/main
2023-08-17T02:04:46.085064
2021-02-14T04:58:32
2021-02-14T04:58:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,540
py
import numpy as np import torch import argparse import os.path as osp import torch.nn as nn from models.model_predictor_single_resnet18 import Predictor_single from dataset.sem_predictor_single_roadline import Sem_predictor_single import wandb argparser = argparse.ArgumentParser(description=__doc__) argparser.add_ar...
1e1c3159a79488453e4810b9362f7850f72e9c90
f68eda51246c95597def569224f3b56d4c3700e7
/top/api/rest/SellercenterUserPermissionsGetRequest.py
a3f561db414e9ebc103b8c2d04ac8c7b445babb9
[ "MIT", "BSD-3-Clause" ]
permissive
stoensin/taobao-openapi
47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f
202a9df2085229838541713bd24433a90d07c7fc
refs/heads/main
2023-07-17T02:17:51.527455
2021-08-25T15:08:49
2021-08-25T15:08:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
''' Created by auto_sdk on 2018.07.25 ''' from top.api.base import RestApi class SellercenterUserPermissionsGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.nick = None def getapiname(self): return 'taobao.sellercenter.user.permissio...
3ce934caaa6e0a49902a84d3e6ce84ac3d1aac37
5cb8df4d10cd1a1d77f227ea8e1b311744750d5b
/generate.py
b4ba55cf4e1d1accfe70b88346848e422bbf65cf
[ "CC0-1.0" ]
permissive
YoonGenwu/hearthstonejson
388d46c5c082cde8389bef1011dded7d46fea7dc
3d6709f99dc7d0c0b75ccf441cfebec00f48a184
refs/heads/master
2021-01-15T11:42:57.006639
2016-02-17T01:12:14
2016-02-17T01:12:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,707
py
#!/usr/bin/env python import os import json import sys from argparse import ArgumentParser from enum import IntEnum from hearthstone.dbf import Dbf from hearthstone.cardxml import load from hearthstone.enums import CardType, Faction, GameTag, Locale, LOCALIZED_TAGS MECHANICS_TAGS = [ GameTag.ADJACENT_BUFF, GameTag....
6f1f0a38de9166e24a27fd3b68075083c9bd8cc4
8cde629c9955c97ef083c026556bc5463720fd76
/likelion/comment/models.py
55ba940495b372937fcd0118068127281d38cbf2
[]
no_license
hyk1993/yongkis
975f55377c646741e9bc21c6f5d0aab3cecc81e3
7740013cca0258126e1dd7d6cf97c92317df3717
refs/heads/master
2020-05-20T21:05:10.133258
2019-05-09T07:58:55
2019-05-09T07:58:55
185,752,302
1
0
null
null
null
null
UTF-8
Python
false
false
664
py
from django.db import models from django.utils import timezone # Create your models here. class Blog(models.Model): title = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') body = models.TextField() def __str__(self): return self.title def summary(self...
a2091ffbd7f8354188a85045f97ae4c90527922a
590b86be3ed4e9148426cb3d736045ba19f10441
/cc_scratch/settings.py
ec6f775800c347b56d91a9b3d88b4f1da6104634
[]
no_license
hasanbaig/cc-scratch
f8a986911332deacab4ee63b9d82e3a993b4041b
21c24b1d28c103479372d715dd30904abbd15cec
refs/heads/master
2021-01-15T02:24:39.940223
2020-03-11T17:23:59
2020-03-11T17:23:59
242,846,658
0
0
null
null
null
null
UTF-8
Python
false
false
10,413
py
""" Django settings for cc_scratch project by Hasan Baig. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/...
c349129df7bbb871844f26ccee9298caec554b7d
dbe81a543b845ebda34e7bb41b4021cb40aa9288
/usually_coding/use_saver.py
880003702fd9c6be1ec545a43d7ac6f5bbd2b3e8
[]
no_license
whitenightwu/tensorflow_tools
264ede03acc792a64d1fc86d99e60aa92e5dfa02
ba25e763f7cce1f11ed629bab5915e585a3ceae3
refs/heads/master
2020-03-10T21:09:40.086801
2020-01-20T06:11:58
2020-01-20T06:11:58
129,586,948
2
0
null
null
null
null
UTF-8
Python
false
false
1,770
py
#!/usr/local/bin/python3 ## (C) COPYRIGHT Ingenic Limited. ## ALL RIGHTS RESERVED ## ## File : use_saver.py ## Authors : ydwu@ydwu-white ## Create Time: 2019-04-28:11:42:22 ## Description: ## ## 迁移学习的实现需要网络在其他数据集上做预训练,完成参数调优工作,然后拿预训练好的参数在新的任务上做fine-tune,但是有时候可能只需要预训练的网络的一部分权重,本文主要提供一个方法如何在...
b0da7bdba534730f35505b2301bd30a30bf8b8a2
26192962dc2627e7ca5f0e3b249c3fabcf52442c
/Python/AD-HOC/1196 - WERTYU.py
f1d867b9f14a29527c0d7a750ed75bcb36716f79
[]
no_license
PierreVieira/URI
77278ccb1724ca206ab2c12afbea1e51fa08ff73
c1eb211c788d26b5cb9bedf5dda4147a2961fa19
refs/heads/master
2023-04-10T07:03:13.954639
2023-03-22T00:18:28
2023-03-22T00:18:28
189,321,748
2
1
null
null
null
null
UTF-8
Python
false
false
380
py
""" Autor: Pierre Vieira Data da submissão: 02/02/2020 16:48:12 """ linha = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,.'" while True: s = '' try: frase = input() except EOFError: break else: for c in frase: if c == ' ': s += c else: ...
0635c22654b0499d2560adbd8e4deb4ae0b1d895
3ec0da1faa3da5e8e94c73296ba6a8bed6228e2f
/foodtrucks/migrations/0002_auto_20160725_0842.py
5194919403ecf2f7b213df7cb21bb5770cd3cc23
[]
no_license
calmhandtitan/foodtrucksnearby
15ef095ff2251e40ef03814eee3554fa0a570583
61dabd817e150eaec672c4f243be9a5ac71a4c3e
refs/heads/master
2021-01-20T20:41:44.993850
2016-08-01T06:31:48
2016-08-01T06:31:48
64,118,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('foodtrucks', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='foodtruck', name=...
1daefdaaf3cdc9dbbd4d888acd5c05d94d6285dd
85c337f0364f1452c068b7e93421b3e24af85358
/MzManage/manage.py
362fb7bb3d7af3d8d0dfab2d09b3c4fb6b0b78a7
[]
no_license
hornLK/AuthSystemWeb
9518f23453f910e17c516db26ea3a00fe0d0c806
c2c03ff2133151889a2ecc205a753a0eb2bbfd91
refs/heads/master
2022-12-14T19:18:00.560077
2018-04-19T12:39:14
2018-04-19T12:39:14
130,317,561
0
0
null
2022-12-08T00:59:04
2018-04-20T06:17:08
JavaScript
UTF-8
Python
false
false
540
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MzManage.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
3fb2a9f1ae58ad0743c9d750da7afc275cf304bf
0cc4eb3cb54f8394c127ace62d3108fdb5230c85
/.spack-env/view/lib/python3.7/test/test_multibytecodec.py
7384d370794ac8065a971022cc5463d45a9edc2d
[]
no_license
jacobmerson/spack-develop-env
5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8
5fca20ca343b1a76f05fc635c87f94ed25417d94
refs/heads/master
2022-07-04T02:22:50.264727
2020-05-06T05:13:50
2020-05-06T05:13:50
261,657,112
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
/lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/python-3.7.7-oihhthdoxtgh4krvzpputn5ozwcnq2by/lib/python3.7/test/test_multibytecodec.py
be6034d2e2763ff648e95e4600d85340a32d843a
275f85955acabac247fe306b0161a6d758f4d057
/KaterinaAnzoleaga/Classes/PersonEmployee/setGetEmployee.py
ee7eecadd6544e7feec98952f831ec910e37a9cc
[]
no_license
mauricioZelaya/QETraining_BDT_python
295bb58a99a36b0b973afd153109c510191b4ec7
d7cc798e7063ab32e5002e4deda3ddec8a8a0c59
refs/heads/master
2021-05-08T05:01:13.181273
2017-11-24T21:53:46
2017-11-24T21:53:46
108,473,352
0
0
null
2017-11-24T21:53:47
2017-10-26T22:43:32
Python
UTF-8
Python
false
false
146
py
from Employee import * from LoginModule import * my_emp = Employee ('Carlos', 'Lopez', 35, '24165465', 45, 'Supoort') print (my_emp.getObject())
6967044ffd32e1f589f9a6643e7ba3dba2822a94
7c19d1198bff566c7cde15ddf5876470b05815cf
/sentiments_neural_network_cpu.py
d8001d8b47cb8a46f4f9b9b620a7b04ac45ae867
[]
no_license
nikil21/Sentiment-Analysis
48bf2123f1f10ef98c9bb838da6a79b556231426
94f91dcf1dd6016dff734ec66cda6e492e22510a
refs/heads/main
2023-06-28T11:00:09.163564
2021-08-04T14:14:02
2021-08-04T14:14:02
392,713,780
0
0
null
null
null
null
UTF-8
Python
false
false
3,046
py
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import tensorflow.compat.v1 as tf tf.disable_v2_behavior() from create_sentiment_featuresets import create_feature_sets_and_labels #from tensorflow.examples.tutorials.mnist import input_data import pickle import numpy as ...
980187db1840de06b15442e3e1a14db18561b1c4
2b9af5e429e647bd0439b874edc78695b1f94977
/weather_checker.py
3611b3afd1d47563bcf8f568b3de8c92f917641c
[]
no_license
ninjaboy/weather_spam
23e26932fc0232ce07e892c0fa56a86313edd1a7
d9f6126085222dc6a339c8c7b058bf45ba5295a7
refs/heads/master
2021-01-01T18:37:46.338635
2014-07-23T12:09:12
2014-07-23T12:09:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
#!/usr/bin/python # -*- coding: utf-8 -*- import MySQLdb import csv import smtplib, os import time import re import urllib2 import json from datetime import * from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, format...
f95801b8c151fe6313c43fd96a03a730109b0539
2341c90db6d26d5bf0039a87d06e41bf3bebac5f
/src/action_classification/ucf_labels.py
59a44668fd8ded64c3356024bd1b11a3915c878f
[ "Apache-2.0" ]
permissive
ziliaogithub/action_recognition_ros
96ca418b838e0671e16eba4e681feb934e54e4ce
f203d81ed31c2ad6630bce06d4b130e24bff73b9
refs/heads/master
2020-03-22T21:17:21.882072
2017-10-11T07:19:42
2017-10-11T07:19:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
#!/usr/bin/env python labels = ['Apply Eye Makeup', 'Apply Lipstick', 'Archery', 'Baby Crawling', 'Balance Beam', 'Band Marching', 'Baseball Pitch', 'Basketball Shooting', 'Basketball Dunk', 'Bench Press', 'Biking', 'Billiards Shot', 'Blow Dry Hair', 'Blowing Candles', 'Body Weight Squats', 'Bowling', 'Boxing Punchin...
347502a5063ca3f7fdbb96e81aadf62f71a48dae
97e534b26a76bf0d954e166841179979748bcfa2
/objects/migrations/0046_auto_20180625_0823.py
d6855e81eb891d0362368b4d406690be5fbde2c7
[]
no_license
mehdi1361/http_server
3a8bd73ce44307ee2b7761d1211671ca8cb0f3ba
d8a962c55165ef0237bfb26d27d9cfa11a415a5d
refs/heads/develop
2022-12-11T00:44:11.089407
2019-01-20T12:02:48
2019-01-20T12:02:48
166,656,299
0
0
null
2022-12-07T23:53:22
2019-01-20T12:02:05
HTML
UTF-8
Python
false
false
958
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-25 08:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('objects', '0045_auto_20180625_0724'), ] operations = [ migrations.AddField( ...
b6fb7824bcb1ed5a6f2dcd398fe4e45eb19507f4
74a8defffc8d01804e5f65b0c5857accd8ff144b
/predict.py
3e6f0ba84f1bc671c92dbbd02cefa346d4cf94fc
[]
no_license
DanferWang/NUS-SoC-Summer-Workshop
cb75bbd27ac52829384c984991255ac68407b8bc
68f1e3f27634cb131b2c9032be16ee20b2ee7d5f
refs/heads/master
2021-10-07T13:53:45.010267
2021-10-05T15:13:42
2021-10-05T15:13:42
202,662,046
4
0
null
null
null
null
UTF-8
Python
false
false
940
py
from __future__ import print_function from tensorflow.python.keras.models import load_model import tensorflow as tf import numpy as numpy from PIL import Image MODEL_NAME='flowers.hd5' dict={0:'daisy',1:'dandelion',2:'roses',3:'sunflowers',4:'tulips'} graph = tf.compat.v1.get_default_graph() def cl...
5c2b7a287908c20a810e10ea85d5d574ce3aa09f
68bc1452c1adee952d17d2ee4ba2d31865f4c36b
/petro/models/__init__.py
f30cbc7d16584e7660708e4c634336355a14d9b0
[]
no_license
KacheKH/odoo
def5942a71bf583b1345d8189d15e0f12fdebed7
82f674b8b2fd444b8cbf0e427d6c9174eec4d868
refs/heads/master
2020-03-14T10:46:38.081634
2018-05-10T18:26:41
2018-05-10T18:26:41
131,575,430
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
# -*- coding: utf-8 -*- from . import petros
11e5fb5400c27bad705c752ddfacb83e04e03f9d
bfc42c114f652012b6cfd14e7cccf52cb6b9ac7e
/src/spdx_tools/spdx3/model/agent.py
9aa326e2261b39085ccbdcfea5376185401cc086
[ "Apache-2.0", "GPL-2.0-only" ]
permissive
spdx/tools-python
05a952501af2ac608678cb1737f7c661f6091fa2
777bd274dd06cb24342738df7da5ab285d652350
refs/heads/main
2023-08-31T09:39:52.930063
2023-08-24T06:39:48
2023-08-24T10:22:33
32,761,058
147
136
Apache-2.0
2023-09-14T15:50:59
2015-03-23T21:54:39
Python
UTF-8
Python
false
false
1,251
py
# SPDX-FileCopyrightText: 2023 spdx contributors # # SPDX-License-Identifier: Apache-2.0 from beartype.typing import List, Optional from spdx_tools.common.typing.dataclass_with_properties import dataclass_with_properties from spdx_tools.common.typing.type_checks import check_types_and_set_values from spdx_tools.spdx3....
e27df221a34585c501687f1217812d0264f5466a
6e3e8fd06c1b9e03414b7bd5b6fb794dee326f87
/lstm_lm_g_on_sentences_euc.py
c68905a7d897f4053cf68419c2748019410c477d
[]
no_license
qyouurcs/seq_style
f5fe75569b21af549905d6a4e2ff7696286314b7
5c971d5bdf7f4b0f0ffccfa913d10ccda3486384
refs/heads/master
2021-01-10T04:51:15.444826
2016-04-15T18:23:01
2016-04-15T18:23:01
51,030,147
0
0
null
null
null
null
UTF-8
Python
false
false
12,342
py
from __future__ import print_function import sys import os import numpy as np import pickle import theano import theano.tensor as T import lasagne import urllib2 #For downloading the sample text file. You won't need this if you are providing your own file. import ConfigParser import math import pdb import random impor...
128e0b1ef36f2b620f29bae70b2db83bd31f692c
69eb69547ea85d930e8915f9c17b3e4d254e4058
/hand length.py
03cf4050c260b7ad045190e33205dbea3b526e61
[]
no_license
Theofilos-Chamalis/edX-6.00.1x-Introduction-to-Computer-Science-and-Programming
38cbc9288ee639ab961a579869a045f3f839e82d
b87a7e69423213a711680d2744315c61ad81877b
refs/heads/master
2022-03-04T20:50:32.441600
2022-02-13T10:17:25
2022-02-13T10:17:25
14,083,089
102
62
null
2022-02-13T10:17:26
2013-11-03T09:45:19
Python
UTF-8
Python
false
false
192
py
def calculateHandlen(hand): """ Returns the length (number of letters) in the current hand. hand: dictionary (string int) returns: integer """ return sum(hand.values())
7949b7e9e5f5b448edbf73c17ab6761f3f348fb1
e686cf242a7a8424d0d0ccb5dfcc2b67e617f388
/hw4/lib/trainer_no_RNN.py
5614d544d9e6e94468eb9a750fdd9c9f4ea27cea
[]
no_license
kaichan1201/DLCV_Fall_2019
2219ab755da1aaf881e4c4c950743981c7a470d1
68921098ecc05683de2630eda530c92badd66e19
refs/heads/master
2022-11-27T21:29:30.150798
2020-03-09T07:02:24
2020-03-09T07:02:24
245,815,775
0
0
null
2022-11-22T04:23:46
2020-03-08T13:05:16
Python
UTF-8
Python
false
false
5,344
py
import os import numpy as np import torch import torch.nn as nn from tensorboardX import SummaryWriter from torchvision.utils import make_grid def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: nn.init.normal_(m.weight.data, 0.0, 0.02) elif classname...
756b5b24cc0dca3c1d9099f9f4fb15c96283be28
e10edb9c3db4a78fcd91556496de1a5637f03012
/foodgram_project/settings.py
b4fe0e607409c3946c229006222e4851de6a7045
[ "MIT" ]
permissive
ilyukevich/foodgram-project
9730d7daaee75aa8ffed312dbfd9ff889a552b9f
458b01d6696687ff6476a8da343da3590699558f
refs/heads/master
2023-06-06T05:48:46.800023
2021-06-25T16:00:17
2021-06-25T16:00:17
345,058,627
0
0
null
null
null
null
UTF-8
Python
false
false
3,139
py
import os from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get('SECRET_KEY'), DEBUG = False ALLOWED_HOSTS = ['*'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django...
914e5a276b7849b267a4458ca7c0afd16ec3f18e
3f73ce74b6fdfb7966abb71a98f4986edd727c5f
/lib/config.py
9d9e5784d61265a408685b6fae7a08e8e51d01e0
[ "MIT" ]
permissive
yuta-komura/amateras
9c2efd310b18f159b1354864d65f9894ab93737f
cf8cc8fe0b5d8c382090fd1784a3ce96e6953157
refs/heads/master
2023-01-21T19:57:18.763894
2020-11-25T04:02:28
2020-11-25T04:02:28
297,432,974
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from enum import Enum PROJECT_DIR = __file__.replace("/lib/config.py", "") class HistoricalPrice(Enum): TIME_FRAME = 60 # minutes CHANNEL_WIDTH = 67 class DATABASE(Enum): class TRADINGBOT(Enum): HOST = "*********" USER = "*********" PASSWORD = "*********" DATABASE = "**...
81bade869b8bdc4b03be55e6fd7c30e787a314e7
c7df38a3ab879c0254a61f35450ea3951991658e
/sim_result/parse_opcode_stat.py
8900fc9dfd416d22873aa3e8f74e68b31abc6cd5
[]
no_license
minhhn2910/cs6282_project
06eaaa8973cf8cfe2e791e8d82ea85d63ff34a42
77286779283452c3a226a45a8bda33864402b3cf
refs/heads/master
2016-09-12T23:40:26.075536
2016-04-18T17:12:41
2016-04-18T17:12:41
56,526,019
1
0
null
null
null
null
UTF-8
Python
false
false
467
py
#!/usr/bin/python #this file calculate the total number of instruction per warp import sys def main(argv): #argv[0] is log file name f = open(argv[0], "r") sum = 0 for line in f: args = line.split() sum += int(args[1]) print "from log " + str(sum) #argv[1] is debug file f1 = open (argv[1], "r") sum_debug...
f0b0fba29da062733df81c727240a5d0ffa7afab
8da1d25e1ecaeade49723207c9185c920da21040
/HpotData.py
a7dd81a495fd65319f7a91ae422ca4be4b8275df
[]
no_license
batekmc/honeypot
fbaa7f78263e750a72f9d81057f1c5bfafbfcdd4
ae07c622215dd5a9ee1eec345f45679db15cce67
refs/heads/master
2020-04-05T23:20:04.028352
2015-07-10T10:11:25
2015-07-10T10:11:25
32,019,518
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
class HpotData: def __init__(self, ip = None, mac=None, icmp=None, tcp=None, tcpServices = None, udpServices = None): self.ip = ip self.mac = mac self.icmp = icmp#dafault behavior self.tcp = tcp#dafault behavior self.tcpServices = tcpServices#open por...
42bbeb6f9a188fa19f10abbf96f43c62426640bc
8b6a7efd838b06e8aa2ee468c6fe1793386eeb81
/NOT_IN_USE/WGAN.py
e7bb8052686631e9c6011bb532eb7cf3610c503e
[]
no_license
Yishaiaz/Deep_Learning_BGU_HW4
23f9f3c117c694d8c07ef5e5caebf1ec7eb42a31
d9ea1130c6de5ae1b87441c66b9e10446e7870c9
refs/heads/master
2023-06-18T03:41:22.895899
2021-07-10T18:52:19
2021-07-10T18:52:19
370,263,595
0
0
null
2021-07-08T07:48:13
2021-05-24T07:21:44
HTML
UTF-8
Python
false
false
14,228
py
from typing import List import numpy as np import pandas as pd import tensorflow as tf from keras.callbacks import Callback from sklearn.ensemble import RandomForestClassifier from sklearn.preprocessing import OneHotEncoder from tensorflow.keras import Model from tensorflow.keras.layers import Dense, Concatenate, Drop...
67fc115da063c9287e6ada76e5e4d1b617f534dd
1676168244eed1c5610b2c1c38f692f89990b112
/part3-python/Bigdata/ComStat_v0.15.py
88aa905773aed8169fd5bcd5f19bd774c6f5136a
[]
no_license
gtpgg1013/AI_docs
351e83f986d66224c82fff2de944753c98336d03
43f8eed8b2732314bd40ed65e1d7eb44dd28fc04
refs/heads/master
2022-12-09T17:32:02.992554
2019-11-20T09:03:56
2019-11-20T09:03:56
182,927,565
1
0
null
2022-12-08T06:50:23
2019-04-23T03:54:56
Jupyter Notebook
UTF-8
Python
false
false
26,630
py
import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.figure import Figure from tkinter import * import matplotlib.animation as animation import psutil import threading import time import math import datetime import platform from tkinter import font i...
59f59ab348d69ad767439cbd8df75eaca647570f
f3810660c1ed03b8624f2f8493bd98defc01317e
/chap03/07_three_neuralnetwork2.py
6e46ac069af82fbf0f06cd72361e26e234bcc20f
[]
no_license
YoohyeonSeung/python_deep_learning
d951412885c6170f1d4ff24df9255792b4a3c9d6
d8f719e3ee6112cc5830b1be453d592e46c81eb3
refs/heads/master
2020-04-19T22:49:44.351624
2019-02-18T09:22:02
2019-02-18T09:22:02
168,480,359
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
import numpy as np def init_network(): network = {} network['W1'] = np.array([[0.1, 0.3, 0.5],[0.2, 0.4, 0.6]]) network['b1'] = np.array([0.1, 0.2, 0.3]) network['W2'] = np.array([[0.1,0.4],[0.2,0.5],[0.3,0.6]]) network['b2'] = np.array([0.1,0.2]) network['W3'] = np.array([[0.1,0.3],[0.2,0.4]])...
fda5b7c54f83bccf29c6b0d4fa41950f59ec38ce
d2c2989d2763ef17f27d621759f8ab9cfeb84974
/typeidea/blog/migrations/0001_initial.py
76c351edec954a573d8d2cd1c3351aefef1dc1c8
[]
no_license
ZhangYanPing/typeidea
e219e6b0129ce7301b5b5a053fd02ed8f1b91083
88765c79f312d677f3c0e23f0f96ee883a6e3ce0
refs/heads/master
2020-05-04T16:34:37.407133
2019-04-17T09:18:06
2019-04-17T09:18:06
179,281,617
0
0
null
null
null
null
UTF-8
Python
false
false
3,287
py
# Generated by Django 2.2 on 2019-04-04 00:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
cd421d090098e1023976fe2c80a704255f704709
f22d191a5deb208f1b730667cd5b449df2b8e134
/source/beira_app.py
f8ccbde2593ad37b1715e8dfcb6281313307477d
[]
no_license
WilsonDS/Beira
10f104ac592f3c9f455158df4cba0fd4d72e27b3
0c5a1240427632ac511e2f40bf86e13d11e2c689
refs/heads/master
2020-12-18T20:09:45.726852
2020-01-22T05:55:46
2020-01-22T05:55:46
235,508,149
0
0
null
null
null
null
UTF-8
Python
false
false
1,883
py
import os import sys from tkinter import Tk from tkinter import filedialog from beira.main import beira_class from aerodata.aerodata import aerodata_class from TAC2Input.tac2_main import main_class from IHBInput.ihb_main import ihb_class if __name__ == "__main__": if len(sys.argv) == 2: inputF...
ae671c59180030aef4bf58a5dbb0cd5abbc89454
e5dc2651bcce866d89537014221cd345b4e2d103
/codeitsuisse/routes/parasite.py
3fad245cec992636ce7bf3cdfa33825b513ce067
[]
no_license
borische1322/CodeITSuisse
f748aa6fb2adaff9e8eca01998757e945d0d80f4
76f0a117656975652132eaa0da8aa1b58629d198
refs/heads/master
2023-08-14T22:31:48.765960
2021-09-25T10:27:08
2021-09-25T10:27:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,957
py
import logging import json from flask import request, jsonify from codeitsuisse import app global p1ANS global test p2Ans=0 again1=1 again2=1 test=0 logger = logging.getLogger(__name__) @app.route('/parasite', methods=['POST']) def evaluate_parasite(): global text data = request.get_json() logging.info...
185bc9e1d1b2fcba663c80dac0791258ec2a9118
370977b270b42fdd2435df7cf69134d2c68caa37
/03-fp-decorator/hw/solution.py
29bed2f8907ba3bd9ad6d849c343e84a1f38bbb6
[]
no_license
nagellack5C/EpamPython2019
5cd6af1b8393413a84af38560bf7d1606b815d9e
3c7e7120cbd5f48bbb09dd5c5e9a27bec49332aa
refs/heads/master
2020-05-24T11:48:33.792535
2019-07-04T14:29:46
2019-07-04T14:29:46
187,254,927
1
0
null
2019-05-17T17:15:59
2019-05-17T17:15:59
null
UTF-8
Python
false
false
5,001
py
import time from functools import reduce from timeit import timeit # hw1 # problem 6: # Find the difference between the sum of the squares of the # first one hundred natural numbers and the square of the sum. # solution: x = abs(sum([i*i for i in range(1, 101)]) - sum(range(1, 101)) ** 2) print(x) # problem 9: # Th...
87d2c895c4c15dd4c38376f740c302e94c9d1a8d
cbe1a042417584da2ad2ebdeb046f438953ddf4a
/web_crawler/naver_review.py
e24acd0c893897c1b68f8bd11e67ff2211129ab5
[]
no_license
sjknight79/Police_study_200810
36f13276e6379deeb3972192fec1a5320924dc8d
94329b820f854696dcefa3798ccdb4c469822adf
refs/heads/master
2022-11-30T13:00:53.272355
2020-08-12T00:28:37
2020-08-12T00:28:37
285,436,413
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
import requests from bs4 import BeautifulSoup url = "https://movie.naver.com/movie/bi/mi/review.nhn?code=188909" res = requests.get(url) # print(res.text) soup = BeautifulSoup(res.content, 'html.parser') # print(soup.prettify()) ul = soup.find("ul", class_="rvw_list_area") # print(ul) lis = ul.find_all("li...
3cda43de60849b7e6f49a8d3582fccee1df59256
0b65ab6c42179965bfd76c2c55943cb83e3c34d4
/runserver.py
2d3f8de484ccb862a0bc488821d4e4103f1fe730
[]
no_license
ojixzzz/WebAnalytics-Flask
2c3bed3cf2dbf910bf466535367bed3dd9c5e675
f9d0de4fc71f639b0e0779664c2614a3545e58c6
refs/heads/master
2020-12-22T05:08:55.158147
2016-06-15T06:19:20
2016-06-15T06:19:20
60,417,969
1
0
null
null
null
null
UTF-8
Python
false
false
97
py
from analytic import app app.debug = True if __name__ == '__main__': app.run(host='0.0.0.0')
f3d0693d7d38a4fef5b75ce72b5d6750b7ee5e65
0ba063f1603b9ef1e84ab8cd894cfa403dd72103
/qipr_approver/approver/workflows/shib.py
de1086e23ee7c5e7c339a2c2fc9442acaff21867
[ "Apache-2.0" ]
permissive
amberlallen/qipr_approver
323ef8463d4f9d74279c782e72f797915004fe66
cb03aef771651cb8768f2c1fa9c82ee47c234158
refs/heads/master
2020-12-26T03:22:17.149667
2016-10-27T17:44:16
2016-10-27T17:44:16
66,847,969
0
0
null
2016-11-03T18:39:45
2016-08-29T13:52:03
JavaScript
UTF-8
Python
false
false
1,711
py
from django.shortcuts import redirect from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.utils import timezone from approver.models import Person from approver.constants import SESSION_VARS from . import user_crud def add_shib_information_to_session(request): """ ...
7d529134fc3ef9143ade22ef95e546615b1e24e1
c1c1a60defe660a12bb568339925a0b85d3de918
/utils.py
b5874ef9bdaf2b94a86ad97140262e7a426868c3
[]
no_license
mysunk/dacon-celestialtype-classification
dbf9afad251d93542d37bad12d914cb4819438cb
872e3f06b3faa7c013856d9cf02b6b990c875ec6
refs/heads/master
2023-03-25T20:38:13.788811
2021-03-25T06:00:09
2021-03-25T06:00:09
351,323,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
import pandas as pd import glob, os import csv try: import cPickle as pickle except BaseException: import pickle def to_number(x, dic): return dic[x] def load_dataset(n_stack): # stacking에 따라 다른 dataset load -- not implemented # load dataset train = pd.read_csv('data_raw/train.csv', index_col=0...
33f4608198892596efdf57c1d8dfe31a4a950ab0
32c00255e58a17ea97c27f932c7e9871019f216b
/eeg_processing/config.py
3c42a10fa560445ca29c50237a8f7c959b5c8a65
[]
no_license
saintvictoria/crowdeeg-viewer
9d080dac23f0bb59f0bd79a8eba164aa6ae8cc45
681bb37a7af55460c556584d0dc7423421f9c2fa
refs/heads/master
2021-01-23T02:48:06.691225
2015-10-05T17:10:46
2015-10-05T17:10:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from collections import OrderedDict # EDF profile - signal channel numbers to the names we wish to use edf_profiles = { 'DREAMS': OrderedDict([ ('Time', 'time'), ('8', 'FP1-A1'), ('7', 'C3-A1'), # one channel is enough for MTURK! ('1', 'O1-A1'), ]) } # EDF File Defaults EDF_FILE...
74d08d6dbd8515e44b6a02e7c4576cb9cf0fd0b8
d0a0989e2f965e482efa41456449c87cba6ea19d
/quote/dash_quote.py
4eb3c6682fefb4c829115aeafe0f542b6ae2ff28
[]
no_license
dsjclp/dsjclp.eu.pythonanywhere.com
cdc50a1975e4a55d7970e2f35c8a2c4140ac753f
81491d86883ff38f9712da2725abaadc71533d26
refs/heads/main
2023-01-09T14:00:31.761476
2020-11-15T20:15:52
2020-11-15T20:15:52
273,483,698
0
0
null
null
null
null
UTF-8
Python
false
false
30,853
py
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_table as dct import dash_html_components as html import pandas as pd from django_plotly_dash import DjangoDash from dash.dependencies import Input, Output, State from dash_table.Format import Format, Group, Scheme, Symbol...