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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a8bac2371d97ba89629054070c2be40d2b66d43 | 51b8fc884a9dd1b42e20244343d7a05b8f457954 | /zlj/project/task_old/termweight/other/hanlptest.py | 44f23d2f757743601d2a4dbc202b17c6c2deca10 | [] | no_license | achmadnabawi/sparkdata | 89188f66dc416324177f7183a99b4ac6138164e7 | c235e5f7f1cf00ba85e72246b1c71c807b780766 | refs/heads/master | 2020-05-24T11:55:10.417082 | 2017-07-21T08:55:45 | 2017-07-21T08:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # encoding: utf-8
__author__ = 'zlj'
# corpus /user/zlj/tmp/title
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from pyspark import SparkContext
from jpype import *
import jpype
sys.setrecursionlimit(10000)
vmPath = jpype.getDefaultJVMPath()
jpype.startJVM(vmPath, "-Xms320m", "-Xmx1024m","-mx1024m","-Djava.cl... | [
"zhanglinjiang@wolongdata.com"
] | zhanglinjiang@wolongdata.com |
630460c13110f00655d3b584787d3d797ed2eee4 | 6d8c66c6768ffa15939f6277e050a62a1a94511b | /src/gru.py | 1c47874b49c9211053b3af6eec9a0bb0db973282 | [] | no_license | hongxiangqiu/MIT-6.864-Question-Retrieval-and-Transfer-Learning | 541f4110b820155053ac91db829879982e9cf0a8 | 59e9982e1c39b0436e54c8411a6e88343c1cefcf | refs/heads/master | 2021-08-30T08:59:38.075267 | 2017-12-17T04:36:56 | 2017-12-17T04:36:56 | 114,468,754 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | import torch
import torch.nn.functional as F
class GRUEncoder(torch.nn.Module):
def __init__(self, hidden_dim, emb_size, bidirectional=False):
super().__init__()
self.hidden_dim = hidden_dim
self.gru = torch.nn.GRU(input_size=emb_size, hidden_size=hidden_dim, batch_first=True,
... | [
"hongxiangqiu@gmail.com"
] | hongxiangqiu@gmail.com |
c53f9d08e987cb2eaa08eab770874acb17fe3d03 | cabcd8d8c4addd284410794eca236b85e7650b42 | /main/views.py | c7c4c42ec3bfa23ae1c9706120d4c3eb819b99c6 | [] | no_license | khursani8/django-crud | b225e18c12c28de295c301d7479015b30f59be8d | 1a4fb4fbe0ab65058a4e819c7c694de72bd91021 | refs/heads/master | 2020-09-01T13:48:13.293277 | 2017-06-15T04:21:10 | 2017-06-15T04:21:10 | 94,398,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render,redirect,get_object_or_404
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from .models import Person
from .forms import PersonForm
# Create your views here.
def index(request):
p = Person.o... | [
"khursani8@gmail.com"
] | khursani8@gmail.com |
b3b434b287cc143cda89ffc6336037d41c32a53d | e00bfd4ef4bc3bfd97cc26e0b6fa08eae90090a4 | /mnist_tf_nn.py | 67e01351550ff086596638d6ae855b0c8471c259 | [] | no_license | benjaminhuanghuang/dl-study | 4995f99ed3776e7e01de8eef8e635ec9295a2e51 | 180f315da5c679f10b101ad0731f26bd21aa5772 | refs/heads/master | 2021-01-25T13:05:08.687512 | 2018-04-19T03:01:06 | 2018-04-19T03:01:06 | 123,523,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,069 | py | '''
TensorFlow Tutorials(1)——Windows下环境搭建
https://www.youtube.com/watch?v=gItz_fBTeLM
TensorFlow系列教程(2)——手写数字的识别
https://www.youtube.com/watch?v=gx7iEa9Q-Vs
TensorFlow Tutorials(3)——FC预测自己手写的图片
https://www.youtube.com/watch?v=WKHP6QBlb8Q
'''
import os
import tensorflow as tf
import nump... | [
"bhuang@rms.com"
] | bhuang@rms.com |
64dd41ff98926126937644d4e32e20220989bc98 | 832ec7e234bc594df8dc67470a3a7005b643c08b | /smapp/forms.py | 0b4176e5634b7ce1eeb0531030f28f8e7632c682 | [] | no_license | riosschaa/sbuild | 8e1a40bd2b5318fa301110189473cb536da72b5a | 055c57556d3992d5f4e35fc7ca87fc2249af4f28 | refs/heads/master | 2021-06-10T17:09:50.595034 | 2017-01-25T19:15:58 | 2017-01-25T19:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | # -*- coding: utf-8 -*-
from django import forms
from smapp.models import *
from chosen import forms as chosenforms
def filtra(rut):
"""
Esta funcion cumple el trabajo de filtrar el RUN.
Omitiendo asi los puntos (.) y Guiones (-) y cualquier otro caracter
que no incluya la variable 'caracteres'.
"... | [
"felipe.rios@mail.udp.cl"
] | felipe.rios@mail.udp.cl |
02a4f5696cfea356cc47a1bc7c2afb417b53278f | 9d65fee98d227d474f1dec7e89647d0bc1eff56a | /model/torch/backup/caramel_train.py | c128aa73f9a288a88d0ffbca352b61b1ecca97f0 | [] | no_license | omarjamil/caramel | 2446cac90a3dcd022c7bbae95dac94a96e2ec86f | 17a8afc317e3f55903017fedcada591cdcdee4c1 | refs/heads/master | 2023-03-13T08:20:54.946440 | 2021-03-03T13:13:51 | 2021-03-03T13:13:51 | 233,057,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,661 | py | import torch
import pickle
import numpy as np
import math
import sys
import os
import h5py
import argparse
import model
import data_io
parser = argparse.ArgumentParser(description='Train Q')
parser.add_argument('--batch-size', type=int, default=128, metavar='N',
help='input batch size for training... | [
"omar.jamil@metoffice.gov.uk"
] | omar.jamil@metoffice.gov.uk |
f2ad85baa8cb06330ff675528a0ca2d588f8e06d | 0cbe294364a76e0bfd91a7bd5ab4ee6eb1622942 | /chapter4/03-catnames.py | 832a7352c0942562962e7ce4242aaa9cf0244226 | [] | no_license | explodinghat/automate-the-boring | d1ea6d476ec9e0361ab77019b79cf4ef8854a8f8 | 3f37aeb23594c6c9632f53af0e478a0c19ec89da | refs/heads/master | 2023-03-16T21:02:38.203917 | 2021-03-08T08:43:09 | 2021-03-08T08:43:09 | 279,683,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | catNames = []
while True:
print(f'Enter the name of a cat' + str(len(catNames) + 1) +
' (Or enter nothing to stop.):')
name = input()
if name =="":
break
catNames = catNames + [name] # list concatenation
print('The cat names are:')
for name in catNames:
print(f' ' + name)
| [
"hello@mattwarren.co.uk"
] | hello@mattwarren.co.uk |
c4147fb4c8883ab833196e9359765c4d5c177933 | 1c956b79663cc88ac022f3d7aa6fe4480c167075 | /mywaitfree/forms.py | 645cb7ef2327e83fe1a82a659e8c7ceecf33bb5b | [] | no_license | sj1456/mywaitfree | ecea24eae21222935513fe733f3f58a70cb00e58 | 6d5dea4473c1ca31af2abeb9b5679383d6f93d99 | refs/heads/master | 2020-03-25T09:52:29.008690 | 2018-08-10T18:06:21 | 2018-08-10T18:06:21 | 143,677,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django import forms
class GuestForm(forms.Form):
guest_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Your Name', 'class' : 'input1'}))
phone_number = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Your Phone Number', 'class' : 'input1'}))
group_size = forms.CharFi... | [
"tsjs2011@gmail.com"
] | tsjs2011@gmail.com |
b1f5f0ec19237165d2f55f89a95272f2fa041954 | 9ec795d07b33dc6f16a2df74fa85295076ebde6a | /name.py | 6cce29b5472b8c941a2b1c584a4c4c83b5098d52 | [] | no_license | KeneNwogu/stage2-resume | c6a20de99ca74dde17388b04331b2be6f3550921 | 83fbb4a1c4b850f34d111b5e4939a449240bd436 | refs/heads/main | 2023-07-08T03:53:30.987428 | 2021-08-18T03:18:15 | 2021-08-18T03:18:15 | 397,435,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | print("Nwogu Kenechukwu Joseph") | [
"[nwogujoseph1111@gmail.com]"
] | [nwogujoseph1111@gmail.com] |
a4a99bb4927d904886ccec4c5650fc369cdbe8fe | 329d715af6bf7fb021bc48d21c0f49405635f8c7 | /pocACS/wsgi.py | e4146eaa3f294f93ef88ff6dfc4de01a250974ee | [] | no_license | Odin2/poc-ACS | 79b75549330940ec09a2ea98689e4633a92d3565 | 58497be1bf7a571c9475a2768732fa4dfd2f33c8 | refs/heads/master | 2021-01-24T09:56:24.092771 | 2018-06-11T19:24:20 | 2018-06-11T19:24:20 | 122,769,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for pocACS project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"alepiojo05@gmail.com"
] | alepiojo05@gmail.com |
7373f6acf1b30d3c640c8a473466cee37e506c83 | d57d8c0acbda5e30f09345e3aed326a0658a631c | /user.py | 26195aecdad27488fb7438e50dacb64b1508db7b | [] | no_license | geekyprince/Crejofun | 9537b306f7f495239db11aae803988ca92da68b8 | 37cce07c47c10264fc74d0b5d811edb805e9d13b | refs/heads/master | 2023-02-17T11:17:59.451064 | 2021-01-15T06:20:50 | 2021-01-15T06:20:50 | 329,825,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class user:
def __init__(self, name):
self.moviesReviewed = set()
self.reviewCount = 0
self.name = name
def isCritic(self):
return self.reviewCount > 3 | [
"arch.prince01@gmail.com"
] | arch.prince01@gmail.com |
5de6389a40c5f6a48f4640a32173b7d6b8948184 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_storage_blob/v2019_12_12/_blob_service_client.py | f68a680091129a0af9ab03d85046622ce1f173e5 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 32,292 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import fu... | [
"noreply@github.com"
] | noreply@github.com |
99582e2304da94dbc97ee8926451fdc9950f1c01 | d784439c8c44c79e63ea1da0654d2b30067734da | /mnist/convolutional.py | d7bd7c51b47c1d66a0d52ab95bc3249bb575d24d | [] | no_license | wkunzhi/TensorflowMNIST | f97e80b487a9d3b091987b13bad9f34d0deeeb3d | 41ea53aa661970b0b6b701e097733e211dd4d095 | refs/heads/master | 2020-08-16T03:24:35.444752 | 2019-10-16T03:30:05 | 2019-10-16T03:30:05 | 215,448,471 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
# __author__ = "zok" 362416272@qq.com
# Date: 2019-10-13 Python: 3.7
# 卷积训练
import os
from mnist import model
from mnist import input_data
import tensorflow as tf
data = input_data.read_data_sets('MNIST_data', one_hot=True)
with tf.variable_scope("convolutional"):
x = tf.placeholder(tf... | [
"362416272@qq.com"
] | 362416272@qq.com |
60a7352ea9fa28baf709bc3938aeeb9ae85a08f7 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/logging_v2/gapic/config_service_v2_client_config.py | 918b29fd0f8ebf1f3e73a5596dbf58efcd6af258 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 3,721 | py | # 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 required by applicable law or a... | [
"gcloud@google.com"
] | gcloud@google.com |
9dbe810ec4792ac17ac77bab6beeb84e56022fdb | c11cad9193b561fddeab48c0f447b5491d9270b6 | /setup.py | cf664472e91d8e83a65c5b5adfd38a75345ecb9f | [
"MIT"
] | permissive | keisukefukuda/mpicpy | 647b27ae1add0aac565f831dfa17509bab72569a | 0f74ea279cca5b23a4c654d93d891c21d2a3ac9f | refs/heads/master | 2021-06-18T12:38:24.337066 | 2020-02-19T09:44:36 | 2020-02-19T09:44:36 | 205,775,957 | 1 | 1 | MIT | 2021-04-20T18:31:46 | 2019-09-02T04:20:52 | Python | UTF-8 | Python | false | false | 727 | py | import os.path
from setuptools import setup
import importlib.machinery as imm
import configparser
project_dir = os.path.dirname(__file__)
# Version
version_py = os.path.join(project_dir, 'mpicpy', 'version.py')
version = imm.SourceFileLoader('version', version_py).load_module()
# Dependencies
config = configparser.C... | [
"kfukuda@preferred.jp"
] | kfukuda@preferred.jp |
a63a8acba6c2dc55bbf8d2df63dc123a48af4ea1 | d772d06e817e597e0670f732e98672eb6ce16b61 | /eric_blog/eric_system/admin.py | 3fbdfeb2f5b994529ec571122f33b64ade85be7f | [] | no_license | zjleifeng/sricblog | 7bd7c3f8e7fd9d984e256f62f20512ca787a57b3 | cc4aaa38743fa0e48301d3657baa51d55f30a2a9 | refs/heads/master | 2021-05-03T14:50:04.470940 | 2016-11-24T02:28:54 | 2016-11-24T02:28:54 | 69,648,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from django.contrib import admin
from eric_system.models import Notification, Link
# Register your models here.
class NotificationAdmin(admin.ModelAdmin):
search_fields = ('text',)
list_display = ('title', 'from_user', 'to_user', 'create_time')
list_filter = ('create_time',)
fields = ('title', 'is_re... | [
"helpdesk.sh@xmkt.cc"
] | helpdesk.sh@xmkt.cc |
d0a5ee9bf1911b8439fca207e62882c15ff673b3 | 05b1758f58176fc0ca42c3ed92790da6b0c93a51 | /apps/demand/models/address.py | 2c6db328e046e857ea54c97db276ca65aee76500 | [] | no_license | danribeiro/droids_demand_api | 595be83a751ee242440708638ee807b12a1addae | 316526b0af6fe9eede9a39c3a96e398bea83cfd9 | refs/heads/master | 2023-01-24T02:39:04.736591 | 2020-12-14T01:09:17 | 2020-12-14T01:09:17 | 320,122,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,333 | py | from django.db import models
from .demand import Demand
class Uf(models.Model):
uf = models.CharField(
max_length=2,
unique=True,
null=False,
db_column='uf',
verbose_name="Uf",
)
name = models.CharField(
max_length=50,
unique=True,
null=False... | [
"danribeiro.u2@gmail.com"
] | danribeiro.u2@gmail.com |
b55d9610d85728cf925157f52c582b3a31db21f4 | 66330407f5d20b6ca6643826cdabd128bbbab9a7 | /DiscoGAN/model/Discriminator.py | 2e0eee2a8ceb9f05d02f0dd0a112e9519ff008c1 | [] | no_license | bluer555/Paper-Implementations | a1766e905335befe30b3041b726af7c7bc8dd2c3 | 6fa05f26959207c54220c288577cc9ed9a4d3f28 | refs/heads/master | 2021-01-20T07:12:35.605630 | 2017-05-01T11:02:28 | 2017-05-01T11:02:28 | 89,974,013 | 0 | 1 | null | 2017-05-02T00:13:47 | 2017-05-02T00:13:47 | null | UTF-8 | Python | false | false | 1,428 | py | import torch.nn as nn
class Discriminator(nn.Module):
def __init__(self,input_nc,ndf):
super(Discriminator,self).__init__()
# 64 x 64
self.layer1 = nn.Sequential(nn.Conv2d(input_nc,ndf,kernel_size=4,stride=2,padding=1,bias=False),
nn.LeakyReLU(0.2,inplace=Tr... | [
"xuetingli@foxmail.com"
] | xuetingli@foxmail.com |
565cdd967c3510d22b0fea3a70ca7f2e9f48c17f | e7b428201967498a349ed9b1d4ae2135bf2ac8ff | /DAY3/Q4.py | 8476522080b38dcb2db05cf3dae38ace1589d37c | [] | no_license | shiniapplegami/SW-800-AI | b9db57b53eac54569eba4da636867c12ad7f6904 | 98fb936904a223a55a39606fb53538a010a3206d | refs/heads/master | 2020-04-08T11:34:25.570760 | 2018-11-27T11:04:28 | 2018-11-27T11:04:28 | 159,310,820 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 737 | py |
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#Read the data
data=pd.read_csv("Planets.txt", delimiter="\s")
print(data)
print (data.head())
data=data.as_matrix()
X=data[:, 1:2]
y=data[:,-... | [
"noreply@github.com"
] | noreply@github.com |
852ab10ecdb8670f8751fcedba7eb4b80be5f09a | f6c584a5292207f71c15f081b368c1d2de2e4dc9 | /reberGrammar/reber_utility.py | 24a4ec0850ece1a59275153e29992158e056a6b9 | [] | no_license | BSifringer/ArtificialComposer | f0bd6ba92aa3e9cc13e4b23594ddcee5c7609cd8 | 21420ac58b56ce050858164cd75c5e8bb9d4ebad | refs/heads/master | 2022-10-13T14:10:30.806749 | 2018-01-12T14:38:41 | 2018-01-12T14:38:41 | 104,663,961 | 1 | 2 | null | 2022-10-02T06:17:19 | 2017-09-24T17:43:38 | Python | UTF-8 | Python | false | false | 4,135 | py | import random
import numpy as np
class State_machine:
current_state = 'A'
# example: states: A,B,C -> transitions to A,B,C
# each transition contains probability + label (X,Y,Z)
# probabilities have to sum up to 1
state_transitions = ({
'A': {'A': [0.1, 'X'],'B': [0.2, 'Y'], 'C': [0.7, 'Z... | [
"brian.sifringer@epfl.ch"
] | brian.sifringer@epfl.ch |
f579c469ccef7d539cea3634d4cedfad921198a0 | 4e4400bf05d284cb97ae7527aaf7790469d5887e | /Pyside_PyQt_线程/PyQt线程示例代码/ping_thread.py | 0ab45ddc14fbf2f7649f495dd3b78e29477659a3 | [] | no_license | cyysu/Python-PySide-PyQt-Tutorial | 66d57975cec776f8ba32c4033873c31c8bcd11cc | 571159bf90238396b20a5c6be88a51ff5af57e68 | refs/heads/master | 2021-01-12T08:25:21.241427 | 2016-06-12T06:25:12 | 2016-06-12T06:25:12 | 76,571,944 | 3 | 0 | null | 2016-12-15T15:33:01 | 2016-12-15T15:33:01 | null | UTF-8 | Python | false | false | 2,769 | py | # coding: utf8
import sys
from PyQt4 import QtGui, QtCore
import time
import random
import subprocess
class MyThread(QtCore.QThread):
trigger = QtCore.pyqtSignal(str) # trigger传输的内容是字符串
def __init__(self, parent=None):
super(MyThread, self).__init__(parent)
def run(self):
time.sleep(ran... | [
"ml@MacBook-Pro.lan"
] | ml@MacBook-Pro.lan |
8eb00965d7fe2515246764e9e28869e4defe30b5 | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_gslb_zone_service_dns_srv_record.py | 6af19cd9ec408f7a280cb3b28bd71ada0d1abc4f | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,346 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_dns-srv-record
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
srv-name:
description... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
22da5ff4314cfc620cb8d225b70570619873fe70 | efb7180c05964aee07756dbd4f9982f81559d7e3 | /TradeBot/tradebotapp/migrations/0002_auto_20191005_1543.py | 49018395ae8bfb3525d48159fd3e3be4939ec2eb | [] | no_license | ShunnoSaiful/Trade-Bot | 920ba75225d921f54530fc9f0d10a8eb9eabdaaf | d07489dea5fcf1d1d51a918a3127f620682107f2 | refs/heads/master | 2022-11-24T08:22:00.946773 | 2019-10-29T05:20:08 | 2019-10-29T05:20:08 | 218,207,062 | 0 | 0 | null | 2022-11-22T04:18:04 | 2019-10-29T04:54:41 | JavaScript | UTF-8 | Python | false | false | 673 | py | # Generated by Django 2.1 on 2019-10-05 15:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tradebotapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='question',
... | [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com |
bb6e42dd953dcf98f6e35de9350b0c935bb93329 | da9c3d225f4a2657eb74b42a2daad1892ee115de | /maps/venv/bin/easy_install | cd53ce0b68fba50d71dec2b0a8d894c43438dd25 | [] | no_license | yiyiadam/cs61a | 0215d0b61d28576587cd05df27bb64dbffab7290 | 56d2bdfa691b04975b50676bddbc5d2f3eba65e3 | refs/heads/master | 2020-03-17T20:43:44.833034 | 2018-05-28T03:30:09 | 2018-05-28T03:30:09 | 133,926,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | #!/Users/adam/WorkShop/cs61a/maps/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"yiyiadam@yahoo.com"
] | yiyiadam@yahoo.com | |
d93650cecdc20d353ee77f2cc46d70feaceba915 | a2fe63284ba6b33e72fb1cf98e59f175221d4d52 | /PythonCar/venv/src/基础知识/常用内建模块/urllib模块.py | a26d85f1275d7d0948a82019c06a448ae9992744 | [
"Apache-2.0"
] | permissive | LKY769215561/PythonCar | d5610c94640cbf38f6fe6051211c49fb420db5b4 | 41d39b5ec14ede9c57320732ac9504be6e998aa2 | refs/heads/master | 2023-01-12T11:11:23.909697 | 2020-05-22T05:06:29 | 2020-05-22T05:06:29 | 257,816,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | # -*- coding: UTF-8 -*-
from urllib import request,parse
import urllib
'''
urllib提供了一系列用于操作URL的功能。
Get
urllib的request模块可以非常方便地抓取URL内容,也就是发送一个GET请求到指定的页面,然后返回HTTP的响应:
例如,对百度进行抓取,并返回响应:
'''
path = 'https://www.baidu.com'
def log(f):
print('Status:', f.status, f.reason)
for k, v in f.getheaders():
prin... | [
"qzj123456"
] | qzj123456 |
298c589f469654840e1fabc25a5a868de853909a | d2304891c5757e0cdb393d95b0c3d3495f6fbf76 | /fourier.py | 3ae0c47f18598a85df9bd0a14022cc42226f6cb0 | [] | no_license | phisyche/Python | 8b555e540f5aeb243434a6f3eceec3ee3835d288 | f8897f008723821fdc8a1d9a3bdf462d2c42e49c | refs/heads/master | 2023-03-15T04:49:51.586572 | 2021-03-26T13:45:08 | 2021-03-26T13:45:08 | 52,379,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import scipy
import matplotlib . pyplot as plt
pi = scipy .pi
signal_length = 0.5 #[ seconds ]
sample_rate =500 # sampling rate [Hz]
dt = 1./ sample_rate # time between two samples [s]
df = 1/ signal_length # frequency between points in
#in frequency domain [Hz]
t= scipy . arange (0, signal_length ,dt) #the time vector... | [
"kwellingtonmwaura@gmail.com"
] | kwellingtonmwaura@gmail.com |
d5f629f8a315d2c5453ef6c7a8e095112a128f66 | 17c79e2742d6cc51d722a3bfefd388da0e37b6f7 | /watcher.py | ac4d7785c0fe525182f9caa74a52a55b24f94187 | [] | no_license | EricSchles/digital-preservation | fb752d3b8cf0046e6ba1522ff9c66c854fde6e12 | 5e5bced52c05d824b658aa0827c869f69d0dee60 | refs/heads/master | 2021-01-21T18:53:57.345080 | 2011-04-09T20:42:47 | 2011-04-09T20:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/python3
import os
from techwatch import *
from techwatch.db import sqlite
db_path = options.get( 'database' )
if os.path.exists( db_path ):
os.remove( db_path )
db = sqlite.backend( db_path )
recursion_depth = options.get( 'max_depth' )
path = options.get( 'seed' )
crawler = htmlcrawler.Crawler( path, db... | [
"mati@fsinf.at"
] | mati@fsinf.at |
8ab303280b95c467324a9b6446a86663c49c873f | 85fc4f8cc2a700151ef8c53672cb9222741f778f | /venv/Scripts/easy_install-3.7-script.py | 8f819dc4e8bc07732c44e562db5f27e9f0556e75 | [] | no_license | Dragon-Zpl/MyGoogleCrawl | f148c1d478d1f18738dc3555ea023e76fc98230f | 9471357447dd09c62c223c9307cbe7774f9b164d | refs/heads/master | 2020-04-26T22:38:46.022085 | 2019-04-16T06:51:49 | 2019-04-16T06:51:49 | 173,878,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #!D:\Users\Administrator\PycharmProjects\MyGoogleCrawl\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... | [
"peilong.zhuang@office.feng.com"
] | peilong.zhuang@office.feng.com |
35d97a19dac25cd356237e81606a3a933adf50fb | 5c785ceb1d8442a1dc1d7755cc53784259131ed7 | /rooms/migrations/0004_auto_20200218_1706.py | 63d6fa8b4be609cc6f7ed8467609d7aaa3ce788d | [] | no_license | deepaligpt000/NomadCoders_Airbnb | 3975c82d91f1b7589e0256bd354ac6116765d996 | 57caf8d5c9dd285eacd101a9f3dc6d55fc74f87f | refs/heads/master | 2022-09-30T01:33:27.464189 | 2020-06-08T06:04:45 | 2020-06-08T06:04:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | # Generated by Django 2.2.5 on 2020-02-18 08:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rooms', '0003_auto_20200218_1631'),
]
operations = [
migrations.AlterModelOptions(
name='amenit... | [
"gowoonvv@gmail.com"
] | gowoonvv@gmail.com |
0e9dff5ceb7280778d60095e1d27f146daa46479 | 9aae168afdc9d654dfe2fcd57445743b043b3511 | /exercise/leetcode/position_large_groups.py | 8ea316e761e0cf6bf9e43b6e51c18263fc5084d2 | [] | no_license | remixknighx/quantitative | 01630b01458abc4bdf56940ba1005a3ad0d16afc | 89bbe3d0b1504ab95e6945d937df709434b2d6d5 | refs/heads/master | 2023-01-11T14:27:14.667678 | 2020-08-16T11:59:11 | 2020-08-16T11:59:11 | 172,339,783 | 0 | 0 | null | 2022-12-26T20:52:45 | 2019-02-24T13:18:05 | Python | UTF-8 | Python | false | false | 769 | py | # -*- coding: utf-8 -*-
"""
830. Positions of Large Groups
@link https://leetcode.com/problems/positions-of-large-groups/
"""
from typing import List
class Solution:
def largeGroupPositions(self, S: str) -> List[List[int]]:
res: List[List[int]] = []
start: int = 0
end: int = 0
cou... | [
"remixknighx@sina.cn"
] | remixknighx@sina.cn |
0a41178fc20f8607e3279660130613dca66b6169 | 4a22da169b96b9d8d4cf30c5ea7e167cdbd1e802 | /cluster_uva/simulation35xu_rivanna/simulation35xu_rivanna_8.py | b78fb63ba51f2061a43dfc5f5f6aae48c9fbb2a9 | [] | no_license | LiYan1988/simulationsYuxin | 543fbeaac362f71513c71ceb1d1c300cabf04173 | 5997cecb5d772194900feddd07d7c5001c39b037 | refs/heads/master | 2021-01-19T13:50:15.968470 | 2017-03-17T21:52:33 | 2017-03-17T21:52:33 | 82,420,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 25 22:06:02 2017
@author: misWin
This is a template of python files for simulation 3 and 5 with Xu's algorithem on hebbe
"""
from milp2_xu import *
np.random.seed(0)
batch_id = 8
network_cost = pd.read_csv('nsf-24nodes.csv', header=None, index_col=None)
network_cost = ... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
de73271a124412f46be37471ac8f3093ebe85e83 | eeb593a5351c8a17b5ab35434bead398498d3b7e | /server/echo.py | 58675d43535c2cb401d50a4b7f9b88c26f4ee2c6 | [] | no_license | smit1998/slacker-backend | fe16b4e0fe3e8b67a46508d238d2353535078b01 | 1217864bcb7f396106947f87460a2efc3cf8ffac | refs/heads/master | 2023-02-09T14:47:04.556172 | 2019-11-17T08:54:28 | 2019-11-17T08:54:28 | 288,636,916 | 0 | 0 | null | 2021-01-06T09:04:54 | 2020-08-19T04:55:20 | JavaScript | UTF-8 | Python | false | false | 36 | py | def echo(value):
return value
| [
"email@example.com"
] | email@example.com |
f6236c019fc28dcda305d1fe03b05aa0fbf24a8a | 61490d2cb8f59bb220bde14a8fbdff8b3155bf82 | /sharpspark_ui/models.py | 0f0c170058d15ccc19a19007e5817f8d05720951 | [] | no_license | grlownzl/sharpspark | dd8e1bd0afdf002e7ced0a4befd67d6c8f03cd0c | 75b97c28f11cadf5bd8a96cd1defbaec0e537458 | refs/heads/master | 2016-09-05T12:42:33.561666 | 2013-03-31T21:09:11 | 2013-03-31T21:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | from django.core.urlresolvers import reverse
from django.db import models
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here.
class View(models.Model):
"""Describes a View"""
name = models.TextField(name="name", verbose_name="View Name", null=False, unique=True)
class Fillabl... | [
"grlownzl@gmail.com"
] | grlownzl@gmail.com |
958953572d2248866588bc4c08632cc02a313daf | a3ccd0e2f81d5a95be7b92ef85ae43af1b719bb6 | /exercises/deep_count.py | b44754e62ad9371d23b84ee23f621eff3100557a | [] | no_license | victorvicpal/Udacity_python | a4334349c66a0f36c582e92c0dfae8fc3b079556 | 946c634db134f6703a19c1ca600d1e8f920daba4 | refs/heads/master | 2021-04-29T00:10:00.698054 | 2017-01-01T22:48:18 | 2017-01-01T22:48:18 | 77,716,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 1 14:21:27 2017
@author: victor
"""
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
# Deep Count
# The built-in len operator outputs the number of top-level elements in a List,
# but not the total number of elemen... | [
"victorvicpal@gmail.com"
] | victorvicpal@gmail.com |
a9fde96c4f15dd8536c0e55c5c2d5408610c1cbd | e01c38609987179f9ea3c5390f63d43dd3d7ca68 | /scripts/spot_duplicates.py | 812ce9f8df316a00480ee6302e8ac179b70dcc02 | [
"MIT"
] | permissive | bjh21/geograph-update-bot | a8146a4f3a6911f03d3987acc0d3531c92ab98fe | 876e580a086b02968108523c57a06c51a73faf11 | refs/heads/master | 2023-07-19T17:46:40.398094 | 2023-07-11T00:01:57 | 2023-07-11T00:01:57 | 100,986,483 | 1 | 1 | null | 2020-11-07T15:44:53 | 2017-08-21T19:42:57 | Python | UTF-8 | Python | false | false | 3,276 | py | from __future__ import print_function
from io import StringIO
from itertools import groupby
import pywikibot
import pywikibot.bot as bot
import pywikibot.data.api as api
import pywikibot.pagegenerators
import sys
import toolforge
def find_duplicates():
outfile = StringIO()
site = pywikibot.Site()
conn = t... | [
"bjh21@bjh21.me.uk"
] | bjh21@bjh21.me.uk |
894d1e12ab24cf979a36e11cd9881e63a3cb2f1c | 127154745198fa7d1763efe6ea87793fa877e0d4 | /prettyNEAT/dataGatherer.py | 82269a2259c1a3350acf830c3801146a6553687d | [
"Apache-2.0"
] | permissive | h8go/EA-elective-NEAT | 1f397ab5192ae77ec864dd0adbc7de4af8fadd66 | f8b46516f30fd3b2ba41fa49327bd78fd94cd481 | refs/heads/main | 2023-05-07T09:29:07.482257 | 2021-06-05T13:20:37 | 2021-06-05T13:20:37 | 371,661,322 | 0 | 0 | Apache-2.0 | 2021-05-28T10:15:55 | 2021-05-28T10:15:55 | null | UTF-8 | Python | false | false | 5,669 | py | import os
import numpy as np
import copy
from .ann import exportNet
class DataGatherer():
"""Data recorder for NEAT algorithm
"""
def __init__(self, filename, hyp):
"""
Args:
filename - (string) - path+prefix of file output destination
hyp - (dict) - algorithm hyperparameters
"""
... | [
"d9w@pm.me"
] | d9w@pm.me |
d40215feb3f78cdfb36485caade3c932819de1bd | 1a46159b27ca655f94bd4fd9df212fba55d14388 | /environ/blog/views.py | 6e69531f478f33e6136dd7686cb0bcc4caa4db53 | [
"MIT"
] | permissive | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | 8292f911efcc56447b3d51a048bdecd16a1ad44e | de81b971026991c6689a133e68582b04431ae265 | refs/heads/main | 2023-01-20T21:02:21.707833 | 2020-11-24T21:10:04 | 2020-11-24T21:10:04 | 315,612,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from django.shortcuts import render, get_object_or_404
from django.urls import reverse
# Create your views here.
from django.views.generic import (
CreateView,
DetailView,
ListView,
UpdateView,
ListView,
DeleteView
)
from .forms import ArticleModelForm
from .models import Article
class ArticleCreateView(CreateV... | [
"noreply@github.com"
] | noreply@github.com |
f5b078d8ccff9dcc89568e20630942dc897b095e | c977ba86f8473a44bd0a242f8e107790d5556a5a | /construct/migrations/0015_remove_constructmutation_mutation_type.py | f69dae80b9a410ed7f322c0fec0c4dc970a9fe41 | [
"Apache-2.0"
] | permissive | nil16/protwis | 070bbead24eefc4c56bd4e71825f3a434d6fc352 | 5edd20fc57d4a4827e5853da3348c92b553ff5b0 | refs/heads/master | 2021-01-22T17:23:36.480950 | 2017-09-04T12:42:06 | 2017-09-04T12:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-28 11:16
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('construct', '0014_auto_20170727_1618'),
]
operations = [
migrations.RemoveField(
... | [
"christian@munk.be"
] | christian@munk.be |
79e47f059392f4265fa4fdffaf5b1233b0b659e7 | cc7755669783afe7664fa1947b3509fdf496f884 | /python3.py | 65604f693b402ec6116c8cb8afc88577defd54b3 | [
"MIT"
] | permissive | dust16/UPH | b96fadbd192adba9558f48ed6db963b0b81a7b94 | bebbbe378f73fcc22bc75f148633e83356539d08 | refs/heads/master | 2021-01-21T08:20:13.709329 | 2017-09-07T04:45:24 | 2017-09-07T04:45:24 | 101,957,150 | 0 | 0 | null | 2017-08-31T03:54:15 | 2017-08-31T03:54:14 | null | UTF-8 | Python | false | false | 105 | py | name = "dustin"
print (name, "how are you doing?")
print("i hope that " , name, "is feeling well today")
| [
"dustin@FIK-Lab04.localdomain"
] | dustin@FIK-Lab04.localdomain |
14b2409d1b96d2af04379ef25da43b732b845361 | 77bb6b9fd3efdad268a99c19da3b104a0914801b | /Binary Tree/binary_tree_to_doubly_link_list.py | 2d0e72b857549cf35681bc53df47b26b164d521b | [] | no_license | Akasurde/Algorithms | 2dc72a9b5fd30b20aba9ddce61e763a6b086c628 | b6b79f267d39e3f352ffb4c91c544bdbd042092e | refs/heads/master | 2021-01-14T08:55:07.928438 | 2015-06-21T20:21:21 | 2015-06-21T20:21:21 | 65,351,103 | 0 | 1 | null | 2016-08-10T04:41:13 | 2016-08-10T04:41:13 | null | UTF-8 | Python | false | false | 737 | py | # -*- coding: UTF-8 -*-
# Convert a given Binary Tree to Doubly Linked List
import binary_tree
def convert_to_doubly_linked_list(root):
if not root:
return
if root.left:
left = convert_to_doubly_linked_list(root.left)
while left.right:
left = left.right
left.right = root
root.left = left
if root... | [
"charul.agrawal@pagalguy.com"
] | charul.agrawal@pagalguy.com |
ce5f7831ce53c41f39a8f0fe2118ab4baf3059f3 | 2a45e72d2f2fd1907d55fa190737256280931dd7 | /trmala_slots.py | d3f61d60aeb7d6eafff4e07c4de713d6cc68e1f3 | [] | no_license | GuruVamsiKrishna/Personal-Scripts | 6cd88a0656e020c1cdc07c752db590cd86b4c8a3 | c321626916f7e3e49f2ee7de89e9225a5688e0e9 | refs/heads/main | 2023-02-04T04:19:34.261653 | 2020-12-22T07:11:04 | 2020-12-22T07:11:04 | 320,174,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from selenium import webdriver
import webcolors
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
import datetime
from datetime import date
from twilio.rest import Client
# Your Account SID from twilio.com/console
account_sid = ""... | [
"noreply@github.com"
] | noreply@github.com |
015eda1ebf511773811ed5986aa79e9bbaa7d5d0 | a6d4fab2be09670554c0a3d8df878e141cf0df0d | /tests/test_filter.py | ef64106ea99d238c5515e290aae20df2455d1580 | [] | no_license | OpenPathView/OPV_DBRest-client | 6f7105e89c5db7f61f44f8e6ffaa118d154e46f4 | d86c25bf1827d6c51a42de75a4a3d92879cdc52b | refs/heads/stable | 2021-01-19T08:42:37.891421 | 2018-12-02T17:21:48 | 2018-12-02T17:21:48 | 87,665,549 | 0 | 0 | null | 2018-11-30T16:46:56 | 2017-04-08T21:33:16 | Python | UTF-8 | Python | false | false | 345 | py | from opv_api_client.filter import Filter, treat_query
def test_filter():
f1 = Filter("test") == 1
f2 = Filter().name("test").val(1)
assert f1.get() == f2.get()
assert f1.get() == {'test': 1}
def test_treat_query():
q = [Filter("test") == -1,
Filter("T2") == 5]
assert treat_query(q) ... | [
"gouge.tristan@gmail.com"
] | gouge.tristan@gmail.com |
ac44486a541b279a4e1e2624e8bc655dbe318032 | 758782344f6441a7122820bebc276c20c2999908 | /Roteiro-1/URI/9-URI1435/matrizqua1.py | 4a6882c79c0104cae6275a80ec33d19ed00d3bc5 | [] | no_license | ommz21/dcc-wiki-maratona | 2df1b4923aaf974bc45683099c632f212b794ec2 | 8f4785663a7214a59564677a3df17426ca4417ee | refs/heads/master | 2022-06-19T22:21:36.443352 | 2020-05-13T19:44:38 | 2020-05-13T19:44:38 | 257,475,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | def cria_mat(ordem, valor):
matriz = []
for i in range(ordem):
linhas = []
for j in range(ordem):
linhas.append(valor)
matriz.append(linhas)
return matriz
def exibe_mat(matriz):
for i in range(len(matriz)):
for j in range(len(matriz)):
print("%3i"... | [
"ommz21@ufmg.br"
] | ommz21@ufmg.br |
3872da51193af30d3efc08de4509cb2da1008df4 | 498474967e1480acf5cc0f25756e1d748c677195 | /mmdetection3d/mmdet3d/core/evaluation/kitti_utils/rotate_iou.py | 2f0c9c8e50667a99b84e6537c4b7ab8922a1d7a2 | [
"MIT",
"Apache-2.0"
] | permissive | hustvl/MapTR | adc37f78cbae9d8c909dd8648088a4930bf55377 | feb0664e64684d3207859279f047fa54a1a806f6 | refs/heads/main | 2023-08-25T17:44:47.672149 | 2023-08-14T13:31:17 | 2023-08-14T13:31:17 | 518,672,305 | 643 | 95 | MIT | 2023-09-14T03:30:23 | 2022-07-28T02:20:43 | Python | UTF-8 | Python | false | false | 13,315 | py | # Copyright (c) OpenMMLab. All rights reserved.
#####################
# Based on https://github.com/hongzhenwang/RRPN-revise
# Licensed under The MIT License
# Author: yanyan, scrin@foxmail.com
#####################
import math
import numba
import numpy as np
from numba import cuda
@numba.jit(nopython=True)
def div_u... | [
"cnliao62@gmail.com"
] | cnliao62@gmail.com |
c22f7efdcb2f21f4d80fc3b4b564f22666cc7f70 | ddb3fc95f44733e20312c0cbfdb37fc7fd1da5e8 | /torch_server.py | bb5ab48b0490566d51b8c5ffed176c3bd852ae15 | [] | no_license | ShenDezhou/EXLNet | 2068ffecb3bebdc705bf49d5ca50076ebd50fab2 | e1700c2d455205e8760c68e83f43520e03e67367 | refs/heads/master | 2023-03-08T17:05:43.205497 | 2021-02-24T07:05:17 | 2021-02-24T07:05:17 | 330,310,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,577 | py | import argparse
import itertools
import logging
import os
import time
from types import SimpleNamespace
import falcon
import pandas
import torch
from falcon_cors import CORS
import waitress
import numpy as np
import json
import re
from torch.utils.data import DataLoader
from data import Data
from evaluate import eval... | [
"bangtech@sina.com"
] | bangtech@sina.com |
ff09c2d5e520b2eb37116dfc90e2c1cffa1cad18 | 8039c88ee57447e6d3b973853aae8c3421ffa8e9 | /backend/todoapp/migrations/0001_initial.py | 57b9a5013f42dabf23f8ddf73d723da991e2d32b | [] | no_license | mahidulmoon/djreact-ExpenceTracker | 3553ebe2a141bf0a5b67a46ce6871d675c4ec098 | 196c73cc7f484d3ef423699c8527c8f4f8422e9f | refs/heads/master | 2023-02-09T06:43:33.292205 | 2020-06-05T12:44:18 | 2020-06-05T12:44:18 | 269,003,222 | 2 | 0 | null | 2021-01-06T03:53:52 | 2020-06-03T06:04:32 | JavaScript | UTF-8 | Python | false | false | 726 | py | # Generated by Django 3.0.6 on 2020-06-02 05:59
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),
]
ope... | [
"mahidulmoon@gmail.com"
] | mahidulmoon@gmail.com |
6d49a356fda1c916ac953c333cbc4535b0d6a8f6 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Tools/Scripts/webkitpy/layout_tests/port/test_files.py | fbbbea565812a9dfcef1d6ac1700e9fe164ef72c | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 4,698 | py | #!/usr/bin/env python
# Copyright (C) 2010 Google Inc. 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 copyright
# notice, this list ... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
0735c31415f3ba350771e069b6b3865b8f199fb6 | 77b7a1a870e76ef7aa6ad51d0013b67f5a3f9512 | /test_step4.py | 563328f4c074d635fd0b3de5fe7951147cf8adcb | [] | no_license | DC-Swind/imageCaption | 0d89f8bcde1ccafa09de76f9cdf27c9e4f92021f | 013d19861e557cee45d90f6fdf2e3c2a1026a292 | refs/heads/master | 2020-04-28T08:46:20.942963 | 2019-03-12T18:31:41 | 2019-03-12T18:31:41 | 175,141,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import numpy as np
import time
import os
from six.moves import cPickle
import opts
import models
from dataloader import *
# from dataloaderraw import *
import eval_utils
import argparse
import mis... | [
"dc.swind@gmail.com"
] | dc.swind@gmail.com |
c7784ce9b4355dd34e6aa6bffd236cddc92c45b3 | 94efbd46bec43b07f29f8718b378834f28cfa18c | /env/Lib/site-packages/discord/http.py | 85062e2d0a886558c544ec36b0903b615fd57172 | [
"Apache-2.0"
] | permissive | BiceCold/Citadel_of_Ricks | 2a9d1fc45fe36098dc61f2e00c55cedfd1dd22b7 | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | refs/heads/master | 2021-06-15T17:52:35.999378 | 2019-06-15T18:29:55 | 2019-06-15T18:29:55 | 129,338,382 | 2 | 0 | Apache-2.0 | 2021-02-26T02:29:49 | 2018-04-13T02:45:19 | Python | UTF-8 | Python | false | false | 32,593 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
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 u... | [
"bice.jeremy@outlook.com"
] | bice.jeremy@outlook.com |
5b78b7a1c7a56b289d5f13221543a16b181262c4 | df1d9a3ceb7990c9debbd204f48320ecde7af9f3 | /alacritty-nautilus.py | 1d066f6be3477a11f3e6ecd1f7c80d3d28ee77f1 | [
"Unlicense"
] | permissive | lequer/alacritty-nautilus | 8b4a44afa858d0e3503cdd761408ce1c5bb072be | 39bac813e9ef7d04667c9ad0fe6e4ea9b782e4d6 | refs/heads/master | 2023-04-21T16:33:26.693759 | 2021-05-09T07:45:43 | 2021-05-09T07:45:43 | 365,687,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # Alacritty Nautilus Extension
#
# Place me in ~/.local/share/nautilus-python/extensions/,
# ensure you have python-nautilus package, restrart Nautilus, and enjoy :)
#
# This script was written by cra0zy and is released to the public domain
# Modified by lequer to use ALacritty instead of VScode
from gi import require... | [
"michel@mlequer.com"
] | michel@mlequer.com |
05bc671757de81a1e6de3816fddf472d680fb2b1 | 17c96dd2317b5e07dc7e066a14254428f70463fc | /test/code5.py | 420231224cd4722c673c2b9a96d1aeb4e470a893 | [] | no_license | thaiph99/face-recognition-system | a48e95f65da6e5f5de157e1f6ad8248fb45eed0f | 83639b76c17ffd797ff05162cf9e83bf9106eedd | refs/heads/main | 2023-05-29T20:47:20.207443 | 2021-06-17T14:33:39 | 2021-06-17T14:33:39 | 346,910,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | __author__ = 'thaiph99'
# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
#
# This example shows how to use dlib's face recognition tool for image alignment.
#
# COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# You can install dlib using the command:
# pip install dlib... | [
"thaiph99@gmail.com"
] | thaiph99@gmail.com |
7f5606e2daede03a88759d9fc0ea10b391648e3f | f3173faca61ff906e6ad9236bcb14bfb1a22e9e5 | /VGG16ForCatVSdog/utils.py | 4dce927355b576fde490706edaece63b37a3af4a | [] | no_license | Alex-1997-Wzx/Transfer-Learning | 068789af4faf9da5b5544a8529f0c83264b96baf | e937f196b1c4510c77cf09d3aa06b0985666378a | refs/heads/master | 2021-03-22T16:06:39.609271 | 2020-03-15T05:19:42 | 2020-03-15T05:19:42 | 247,380,840 | 2 | 0 | null | 2020-03-15T01:24:26 | 2020-03-15T01:24:26 | null | UTF-8 | Python | false | false | 949 | py | import matplotlib.image as mpimg
import numpy as np
import cv2
import tensorflow as tf
from tensorflow.python.ops import array_ops
def load_image(path):
# 读取图片,rgb
img = mpimg.imread(path)
# 将图片修剪成中心的正方形
short_edge = min(img.shape[:2])
yy = int((img.shape[0] - short_edge) / 2)
xx = ... | [
"noreply@github.com"
] | noreply@github.com |
97a5753a08bfc4d281706851f42601f4e8b12d15 | 5533630a8ac679002c73595c3bad4c24dfbb4ad1 | /main/private/migrations/0003_playlist.py | abcc8d2dba464be2f6456d4603f6c4b3f034adc7 | [] | no_license | Vladaf/Diplom_django | a89ce6849d2fcfbcd74ba5b97925ca442c1de55d | f046005db6cbd527d03f2d0f820235d339726fb2 | refs/heads/master | 2023-08-22T04:27:13.255240 | 2021-10-29T07:31:18 | 2021-10-29T07:31:18 | 375,027,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Generated by Django 3.2.4 on 2021-09-15 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('private', '0002_song_counter'),
]
operations = [
migrations.CreateModel(
name='Playlist',
fields=[
(... | [
"vladaf1999@tut.by"
] | vladaf1999@tut.by |
6122257987dd5761f105b8deeeaeab9066434f1c | 376ec47e3d5fec16493b1bf9e75b10caf92f8474 | /hw3_skeleton/untitled.py | 9d120dd636bbbf6ddd65b081cd865aeb5e912385 | [] | no_license | mongazer/4641-MachineLearning | f0815b2a12169b964fd80e0a4f27b637bfbd2975 | 1478ca965217723c8855d497618b4f98f455b5d1 | refs/heads/master | 2021-01-11T10:38:07.203157 | 2016-12-10T21:54:31 | 2016-12-10T21:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from boostedDT import BoostedDT
from sklearn.svm import SVC
import numpy as np
from sklearn.metrics import accuracy_score
filename = 'data/challengeTrainLabeled.dat... | [
"noreply@github.com"
] | noreply@github.com |
9dce403fd0a95cf1630555d797f78315313c6029 | c2a2e40309bb86e36ec1cd283c5aaa3149e28afd | /dev/_import.py | caad219057d7da4bd4fc66308afeedc8fa245d1a | [
"MIT"
] | permissive | ossdev07/asn1crypto | 5fc9f864eec3f109812050fa4ed50d1f343a6aad | 213e4fb24f5f1a7f78c9f08862b0b8728fec1510 | refs/heads/master | 2020-12-03T23:33:55.056818 | 2019-12-29T06:46:19 | 2019-12-29T06:46:19 | 229,199,270 | 0 | 1 | MIT | 2019-12-20T05:53:29 | 2019-12-20T05:53:29 | null | UTF-8 | Python | false | false | 3,279 | py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import imp
import sys
import os
from . import build_root, package_name, package_root
if sys.version_info < (3,):
getcwd = os.getcwdu
else:
getcwd = os.getcwd
def _import_from(mod, path, mod_dir=None, allow_er... | [
"will@wbond.net"
] | will@wbond.net |
53cb7d33e641b7fdcd3fdfc1a9a913ee04b280c2 | 83d24a2c530220125923d6e27737434bfbb5b6bf | /nbastats/nbastats/urls.py | ad14073dd85e5f4c969cf64a92ffce5f18c70e14 | [] | no_license | SamirSingh22/NBA-stats-website | 7f59e7855b300344b66e44796c76aaf16d4930ff | 0eb3bcde01bebbc4e644b2741d8bb3523ea7d86c | refs/heads/master | 2022-11-12T00:55:16.864418 | 2020-06-18T21:54:14 | 2020-06-18T21:54:14 | 265,691,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """nbastats URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-base... | [
"tuh03649@temple.edu"
] | tuh03649@temple.edu |
a285078b484c69bd8ed5c87ab10b6da5ede6f928 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/metrics/v1/urls.py | 94ae63aec636a2d71a2111dd8c53dd21cbddec4c | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # coding=UTF8
from django.urls import path
from rest_framework.routers import SimpleRouter
from apps.metrics import views
router = SimpleRouter()
router.register('hourly', views.HourlyStatsViewSet, base_name='hour-aggregate')
router.register('daily', views.DailyStatsViewSet, base_name='day-aggregate')
urlpatterns = ... | [
"rk@23doors.com"
] | rk@23doors.com |
965a36556d235089f57754d8beabc12806664cd3 | 211833ed645cdbee278fe04b0448c67ef39d4060 | /healthyways/__main__.py | fd376e3f348c183a5543f17eafc79fab31225d22 | [
"MIT"
] | permissive | frederiksemmel/euvsvirus-healthyways | bf2384008ad6248a758907171e6d58071031043e | b6f0676b822905c2ef876043b430d0641d5bba1a | refs/heads/master | 2022-04-24T03:59:10.769063 | 2020-04-26T21:21:28 | 2020-04-26T21:21:28 | 259,125,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | from datetime import *
from pprint import pprint
import time
import sys
from healthyways.path_evaluation import *
vbz_context = get_vbz_context()
halteList = get_stations()
capacities = get_caps()
dirs = get_directions()
if len(sys.argv) == 1:
finished = False
while not finished:
try:
... | [
"frederiksemmel@gmail.com"
] | frederiksemmel@gmail.com |
b4e837341ad2ead1653cd1863d71a44210732c3f | a463f5858c663199b6f6e38d9b2dc93e9a9ae730 | /problem/2003/00_200316/3143_가장빠른문자열타이핑-1.py | cac1f53330c94396e5da0297c859ffa05c118f54 | [] | no_license | do-park/swexpertacademy | 4993f79e3a73697ecdc71e0f654306466626b00b | 7cbbb0957ce5191cb44cd35094da5b0d29783e49 | refs/heads/master | 2020-12-22T19:26:35.257666 | 2020-10-19T02:02:32 | 2020-10-19T02:02:32 | 236,907,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | for tc in range(1, int(input()) + 1):
A, B = input().split()
t = A.count(B)
print(f'#{tc} {len(A) - t * len(B) + t}') | [
"dohee.pa@gmail.com"
] | dohee.pa@gmail.com |
f5e375e99b0730d782fd2e5d0ba13d46113a0354 | 173e0af5c08469ec7fcc06020b2ecece9e511f2c | /predictions_lstm.py | 0f85ee2583b0aa7df1d422e63be3237071715d06 | [
"MIT"
] | permissive | codedecde/BiLSTM-CCM | f6726b025560c5027c3be807cee1a1d250a95048 | a89719e97dfe1221f018d60106b75393cddf5f7c | refs/heads/master | 2021-08-16T03:24:37.454184 | 2020-03-05T08:49:08 | 2020-03-05T08:49:08 | 100,819,812 | 2 | 1 | MIT | 2020-03-05T08:49:10 | 2017-08-19T20:31:41 | Python | UTF-8 | Python | false | false | 9,442 | py | import lstm_model as lm
import keras
from keras.layers import Input, GRU, Embedding, Dense, Dropout, concatenate
from keras.models import Model
from keras.layers.wrappers import Bidirectional
from keras.callbacks import *
import keras.backend as K
from keras.optimizers import Adam
import numpy as np
import sys
from ker... | [
"barunpatra95@gmail.com"
] | barunpatra95@gmail.com |
2c0ae8a4900e9a3dbe5fc23d17c814448e073a6d | eb0bb5267035c0222da0c072c5dcd85b46099904 | /test/tw-1630.t | c4c0bd1e81926ba3b08e72cc170987370ae53fb3 | [
"MIT"
] | permissive | bjornreppen/task | 6d96f578eec7b9cceeb4d728caeda87e7a446949 | a9eac8bb715ac8f51073c080ac439bf5c09493e8 | refs/heads/master | 2021-05-30T07:48:39.263967 | 2015-10-21T20:50:42 | 2015-10-21T20:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | t | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentatio... | [
"paul@beckingham.net"
] | paul@beckingham.net |
56e87f4fc50a6ab6d04d831e7c14cef48f18cc8e | a20180060f4361568107081ac02973b49581334e | /planar_ising/lipton_tarjan/bfs_tree.py | 291dc973d56e3e3ebb91012e4a5a77a41ec7a003 | [
"MIT"
] | permissive | ValeryTyumen/planar_ising | 99c09a057ab790d18f01b9bfaaa1d2755b15b317 | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | refs/heads/master | 2020-03-20T02:31:23.883601 | 2019-09-03T18:25:45 | 2019-09-03T18:25:45 | 137,115,503 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,115 | py | import numpy as np
from .. import common_utils
from ..planar_graph import PlanarGraphEdges, PlanarGraph, PlanarGraphConstructor, search_utils
class BFSTree:
@staticmethod
def construct_bfs_levels(root, graph):
levels = common_utils.repeat_int(-1, graph.size)
levels[root] = 0
used_v... | [
"v.lihosherstov@gmail.com"
] | v.lihosherstov@gmail.com |
9a018adca7b1a97951fb143681204040c3196bd7 | 48964f034fcf2d92b03af4ab8397346714746457 | /sensordata/urls.py | 7933cf4765905902671d153355e0c07fd19eca64 | [] | no_license | vignesk70/sensordata | ddf097b049ef195cd4ee541ba8eb7f95e6832f37 | a879ced627ab547d163af7e36c365dfba2d96bf7 | refs/heads/master | 2021-01-01T16:42:40.817178 | 2017-07-21T02:50:27 | 2017-07-21T02:50:27 | 97,898,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | """sensordata URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"vignes_k@yahoo.com"
] | vignes_k@yahoo.com |
d0a29c7afe337a79323bf19b985229a3ece4daa7 | 6ef5bc92b5c72a873317d71ef4989d2c4ef9f75e | /ojosfd/datasets/FallDetection.py | 907ad27be28c8b99f7b45c49e29cadcea8799d58 | [] | no_license | myojos/fall-detection | bdedc17d687833e0d2d22c791629511b7646c600 | 0434c08eee7d29888871bfca70ffb952783a16ab | refs/heads/master | 2022-12-04T12:08:32.358563 | 2020-08-24T19:52:39 | 2020-08-24T19:52:39 | 290,025,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,681 | py |
# system
from __future__ import print_function, division
import os
from tqdm.notebook import tqdm
# common
import numpy as np
import pandas as pd
# opencv
import cv2
# torch
import torch
from torch.utils.data import Dataset
from torchvision import transforms
SPLIT_RATIO = 0.8
class FallDetectionDataset(Dataset):... | [
"khaledkee0@gmail.com"
] | khaledkee0@gmail.com |
30f0a3b24b86f107e8c8d52f94a12a339ecbec3c | 05a3465dbf2ef00585046e2d7583d6b9ab40c019 | /blog/urls.py | 09944a64cbe272136626a742c84d5acf600de8b0 | [] | no_license | brotherchris65/blog | 6c90d78064539101fe822b659084449e135bef5a | 6a439a246f36b22752e98ff9cbd180b04172c76e | refs/heads/master | 2023-01-12T07:35:00.095251 | 2020-11-20T00:48:18 | 2020-11-20T00:48:18 | 314,063,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from django.urls import path
from .views import (BlogDeleteView, BlogDetailView,
BlogListView,
BlogCreateView,
BlogUpdateView,
)
urlpatterns = [
path('', BlogListView.as_view(), name='home'),
path('post/<int:pk>/', BlogDetailView.as_view(), name='post_detail'),
path('post/new/', BlogCreateView.as_view()... | [
"brotherchris65@gmail.com"
] | brotherchris65@gmail.com |
3a51822baafc23044111a837cfa2333102d2ba8b | a869f208770692f65c265563a11333d6577b1d94 | /callback_python.py | 6a4dbd97f0cd0194b3e8584e457ad764ef6c765d | [] | no_license | malep2007/python-scripts | 8ea1c7fb78b5111348f5c4f54e084612f82647e4 | e57c01f79447be3dcf193a427db6bbabe4a06665 | refs/heads/master | 2020-08-03T14:53:57.424520 | 2019-09-29T12:16:01 | 2019-09-29T12:16:01 | 211,792,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def copy_and_manipulate(array, callback):
output = []
for i in array:
output.append(callback(i))
return output
def add_one(num):
num+=1 # freaking weird that python needs to evaluate this before it is returned
return num
print(copy_and_manipulate([1,2,3], add_one))
| [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
18febcc8fb69368992e5125b1013d83ecad3f43e | 9ffa2c1d9472c0d686433a353764d03da2159205 | /supertools/survey_reader.py | 665bdabfa542b11185fd826035fba2fe1fdb172e | [
"MIT"
] | permissive | zagaran/instant-census | 7c1a0ab0ff282ebc56dd3a35d18a3ab444da1bfb | 62dd5bbc62939f43776a10708ef663722ead98af | refs/heads/master | 2023-05-08T00:21:24.426828 | 2021-05-31T18:19:02 | 2021-05-31T18:19:02 | 372,590,104 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,388 | py | from mongolia import ID_KEY
from backend.admin_portal.survey_builder_helpers import choices_append
from utils.time import datetime
from constants.database import ANSWER_VALUE
from database.backbone.schedules import (Schedule, Question, Conditional)
from database.backbone.cohorts import Cohort
from database.tracking.us... | [
"iamzags@gmail.com"
] | iamzags@gmail.com |
8de65a8de6d6b0310acae5cd7b863f1d60cc11f0 | ac745f21c264522c4ba1f205a3ef7455fad2848b | /accounts/views.py | d196646f9d055bd88a01bfe80985aa276f878502 | [] | no_license | Nurs312/blog-app | 1823993f5cdb3bf871673249cc525a472514cb05 | 7784a920977e32e7c9d10a818af7b8ac6ee6f290 | refs/heads/master | 2023-01-30T06:20:24.220054 | 2020-12-11T05:58:35 | 2020-12-11T05:58:35 | 320,173,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
# Create your views here.
class SignUpView(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = 'signup.html' | [
"nursultan22.11.02@gmail.com"
] | nursultan22.11.02@gmail.com |
fbbf8bc17952ed474d3e92ba055aae292980a3a7 | 2ce1d6294ceb732ca58a54def034e40757b2f3c0 | /movie/migrations/0001_initial.py | 6e206637c7e1af2c4db18936d5dd2efdd4591652 | [] | no_license | Seunghak-Kwak/my-first-blog | b9c45c97376e6433a790afcaa432e739b89a1961 | b383c99ac9e23caf0135acd102346936612d7a60 | refs/heads/master | 2020-04-16T17:41:03.748547 | 2019-02-26T06:59:45 | 2019-02-26T06:59:45 | 165,785,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-02-21 04:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"kdhak2@gmail.com"
] | kdhak2@gmail.com |
3cc478f803acbd5f954b8c07d203c0337c867a5f | fa0979a268fcded26e97cb6fa70ed1cf707be5b3 | /releasetools.py | a298e1a5eb13fd4f9c556af359f4f33ac5159ed1 | [] | no_license | P013onEr/patchrom_u8860 | 29b22ebe7705ef5b00c8f5062b1573e78d7be27d | 27b714e02bf49d3db63eb77a8aeeac8a65a072ff | refs/heads/master | 2021-01-23T02:54:27.837438 | 2013-05-28T07:51:15 | 2013-05-28T07:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | import common
import edify_generator
def WriteRawImage(info, *args):
info.script.Print("Writing boot.img...")
info.script.Mount("/cust")
info.script.AppendExtra('package_extract_file("boot.img", "/cust/image/boot.img");')
#info.script.AppendExtra('run_program("/sbin/busybox", "rm", "-rf", "/cust/image/... | [
"oxcoder@c0debot.com"
] | oxcoder@c0debot.com |
fa99e97dc5432443906d266bce72c8f58384fe5f | 8b169099a880e3a597c50c501016bd2603a6fc6f | /src/train.py | bd43eea76f3ab91959be9433d828483734c760f8 | [] | no_license | shaheerzaman/mlframework | 02fa138c778a425aa5c8ab54318808a355c2e016 | 5f034747d4df751fe33db1dc878092f9c3b23e31 | refs/heads/master | 2022-11-27T13:07:40.950571 | 2020-07-26T17:54:40 | 2020-07-26T17:54:40 | 281,369,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | import os
import pandas as pd
from sklearn import ensemble
from sklearn import preprocessing
from sklearn import metrics
import joblib
import dispatcher
TRAINING_DATA = '../input/train_folds.csv'
TEST_DATA = '../input/test.csv'
MODEL = 'extratrees'
FOLD_MAPPING={
0:[1, 2, 3, 4],
1:[0, 2, 3, 4],
2:[0, ... | [
"shaheer_zaman84@yahoo.com"
] | shaheer_zaman84@yahoo.com |
819345a97832aa639f6546b62fdf55b669d9d39a | 5639e9d4614759756c9d1d4a29c1992c6e1f633f | /12_to_14_data_pipelines_with_airflow/lesson_14_15_ex3_sub_dags_exercise/airflow/dags/lesson3/exercise2.py | 6b8cacd84f7387eb2f860cb1b50249a75445d9ee | [] | no_license | 6DvD9/data_engineering_nd | 77d391c2973903c15b9bea2d125052c2b8487414 | c30a2c1e8878dfc82b1d2d8ea3f96b1ba5f86c78 | refs/heads/master | 2022-03-26T13:10:34.346773 | 2020-01-02T19:11:13 | 2020-01-02T19:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | #Instructions
#In this exercise, we’ll refactor a DAG with a single overloaded task into a DAG with several tasks with well-defined boundaries
#1 - Read through the DAG and identify points in the DAG that could be split apart
#2 - Split the DAG into multiple PythonOperators
#3 - Run the DAG
import datetime
import logg... | [
"ivalderrama@gmail.com"
] | ivalderrama@gmail.com |
6e93c2643e6548dad0624b73fc814a2b62bc57e5 | 86cf0e6a425a54452d3a401f0193d60b692e99cf | /chat/consumers.py | a6e528b2be9c89d72e1174cc03ff87139d01c4a4 | [] | no_license | Chandan746/felixora | 336242c1115f31b77cdccdc8499a1ccdc8954131 | 7980e4be6c91f2d37ab45632b1b4561b1b6186de | refs/heads/master | 2022-12-15T07:48:28.354297 | 2019-07-03T10:31:20 | 2019-07-03T10:31:20 | 193,481,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | from django.contrib.auth import get_user_model
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
import json
from .models import Message
import json
from ibm_watson import NaturalLanguageUnderstandingV1
from ibm_watson.natural_language_understanding_v1 import Feature... | [
"chandan@gtpl.com"
] | chandan@gtpl.com |
d6fe144db743cefccee68f8094e6098598ddbc19 | ded689b36fd765e0a881c500e5a960c42e2f9b2e | /kr_nol/main1.py | 7225d3c7b05519a9024324fcb69f37e733b834fc | [] | no_license | GriZZly457/aprog | 41c5dfdf5d247300568a79b04eb28b9437aefb6e | 8fac86ba552671dad946cff3e0d7c68299a8a821 | refs/heads/master | 2021-01-19T12:11:57.245682 | 2017-04-11T19:32:27 | 2017-04-11T19:32:27 | 82,293,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.properties import ListProperty, NumericProperty
from kivy.uix.modalview import ModalView
class TicTacToeApp(App):
def build(self):
return TicTacToeGrid(... | [
"noreply@github.com"
] | noreply@github.com |
7901f6aa6769f3d8f9e37ecf4bc0004a1f83b4aa | c2e297027cfe0abdeb9e8aaf87869f9e69f12330 | /lesson_two/views.py | 43461a0085afa7636eef7ec5a95e7d22c6892889 | [] | no_license | zinpy/courses_django | b59b9bb6086211ec8e69fde04cd36ab2361481d8 | d5d55944bbbd4e0366bcb7ea69181b6a714b9800 | refs/heads/master | 2020-05-31T16:48:01.535171 | 2019-06-19T17:35:03 | 2019-06-19T17:35:03 | 190,390,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return HttpResponse('Home Page!')
def items(request):
return HttpResponse('Welcome to localhost/items')
def special_case_2003(request):
return HttpResponse('Welcome to localhost/items... | [
"mmm.kherson@gmail.com"
] | mmm.kherson@gmail.com |
e0e43c4676c47e3d279becd52e71ccb165ad2706 | d25b972663622567b2821425540535cbb743edd6 | /store/templatetags/store_extras.py | a2b2400034706bd5c00e0f49ef83076819cfc01b | [] | no_license | dlin99/E-Commerce-Website | 4216d31b0caaaf39d87ec8fa2b1239c871842f81 | 7ff4015517ca039c91d217e3c3adf1396b7232f4 | refs/heads/main | 2023-02-08T05:52:42.254310 | 2020-12-30T13:37:59 | 2020-12-30T13:37:59 | 317,258,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django import template
register = template.Library()
from .. filters import ProductFilter
from .. models import Product
@register.inclusion_tag('store/search_bar.html')
def myfilter_search():
products = Product.objects.all()
myFilter = ProductFilter(queryset=products)
return {'myFilterSearchBar': myFilter... | [
"linycdanny@gmail.com"
] | linycdanny@gmail.com |
552877857c701781809eee505c222d299fae243a | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/1032--Stream-of-Characters-Hard.py | 9ce827464f36efa080a24e21215caae9b4642bae | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | class TrieNode:
def __init__(self):
self.children = defaultdict()
self.isWordEnd = False
class StreamChecker:
def __init__(self, words: List[str]):
self.root = TrieNode()
self.maxLen = 0
for word in words:
self.maxLen = max(self.maxLen ,len(word))
... | [
"akualajayaprakash@gmailcom"
] | akualajayaprakash@gmailcom |
f1fee6cf1300cdb73b74efeaee8d74defbdbb0a6 | f5082776d591b0fefe68d47b70f70ab5554c84ee | /coursebuilder/tools/etl/mapreduce.py | 6e71cd200733dba5993492773ae39093b689d6cc | [
"Apache-2.0"
] | permissive | PerceptumNL/cb-taaltransfer | e5034cb5ac46619cf9b3db54374e1d22b27e30a7 | 09cb701a9dc71a417f05ec66f2eca5b92fd8f30b | refs/heads/master | 2021-06-30T18:23:05.082782 | 2020-07-22T06:51:06 | 2020-07-22T06:51:06 | 15,673,739 | 0 | 0 | null | 2021-06-10T19:23:07 | 2014-01-06T12:44:04 | Python | UTF-8 | Python | false | false | 2,856 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"johncox@google.com"
] | johncox@google.com |
513a69288bd9e84c8eb4fe2151161344ad85ab08 | 0b8c187f15d4aa440b70a68bd1d6dab233042b06 | /manythings/data/util.py | 675152fe116e6b1efde374a95bcc8faa07b0a17b | [] | no_license | ZithaChitra/seq2seq_lstms | 0d5af8ef043920da403fe9df6ceebf99037d4203 | 33b49e73475dc98703029465ea7358187e9ac5c7 | refs/heads/master | 2023-04-22T21:01:34.952387 | 2021-05-12T08:33:23 | 2021-05-12T08:33:23 | 362,598,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import tensorflow as tf
from zipfile import ZipFile
import os
import pandas as pd
def download_data(download_dir, filename, url, unzip=True):
# download file from given url
# download dir is an absolute path
file_path = os.path.join(download_dir, filename)
_ = tf.keras.utils.get_file(
file_path,
url,
)
if ... | [
""
] | |
1fabc8198a77fa765958a48dbafe737d2ad323d9 | 81bfc2fe935d1b173cb92b4020cdee575cd5d268 | /Flashcards/flashcards_api/urls.py | b3dee1b4f9b3d321f7a28c24d8c629f80f4e3aaf | [] | no_license | jdbooth9516/flashcards-backend | 27deff2c7af4062228d958eed69b86a6c41030bd | 13848d5386a0cbb780d8b77140dd6096a53e60f0 | refs/heads/main | 2023-06-12T04:13:52.520358 | 2021-07-02T16:52:30 | 2021-07-02T16:52:30 | 381,786,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from django.urls import path
from . import views
urlpatterns = [
path('categories/', views.CategoryList.as_view()),
path('category/<int:pk>/', views.CategoryDetail.as_view()),
path('cards/', views.CardsList.as_view()),
path('cards_category/<int:category_id>', views.CardsByCategory.as_view()),
path... | [
"jereimah.boothphotog@gmail.com"
] | jereimah.boothphotog@gmail.com |
65ed4e161dfa15a766e3541d97ca7beeebb6d745 | 1d9595555d45c9f31edc164275c392f9d4fc001a | /xmlutils/renderer/base.py | 39d84cc6c8f5ddd5e1bce3a6a9d138dc13bd919a | [
"BSD-2-Clause"
] | permissive | tokibito/python-xmlutils | 9a0f364df3c32b15d4ae58e3ccf07fb3c9e004e0 | f173b8ef01fb740d097d1875f205f714982b5829 | refs/heads/master | 2020-07-25T07:52:37.899389 | 2010-03-30T11:55:52 | 2010-03-30T11:55:52 | 208,221,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | class BaseRenderer(object):
def __init__(self, *args, **kwargs):
pass
def render(self, node):
raise NotImplementedError
| [
"xxshss@yahoo.co.jp"
] | xxshss@yahoo.co.jp |
0024580195b1682d85835c6550fe74fb339acd05 | 58958291be6c116a821c23d10c128eb1a3d5b647 | /try1.py | 6b1c07958ba8100f469b096c73d4fb051a44c49a | [] | no_license | jshen28/IE511_Project | f28afd295344a7ae7a5fad296d0ae012ff39a0b5 | 63fffc5a91d5a70b18bb63c4381e9efaa125e529 | refs/heads/master | 2021-01-10T09:25:20.683571 | 2016-04-06T04:13:49 | 2016-04-06T04:13:49 | 55,574,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import matplotlib.pyplot as plt
import csv
from sklearn.cluster import KMeans
import time
start_time = time.time()
travel_rate = 20000/60
time_start = 0
time_end = 60*24*7
max_delivery_time = 60*4
# import data from .csv file
csv_file = 'finalProject.csv'
f = open(csv_file, 'r')
reader = csv.reader(f)... | [
"yshxxsjt715@gmail.com"
] | yshxxsjt715@gmail.com |
ce2930ab81c89075512993b021e488aa0415ac59 | 5ba324712de939bfac77f90f034170e45a9cabf8 | /lib/solutions/hello.py | 783895ac860c834f05226e78bbafe0eed362346d | [
"Apache-2.0"
] | permissive | DPNT-Sourcecode/CHK-tzfm01 | d9e994469159a660e3e16519035781be1224ca24 | 38971d6b00ba2382e5d3ec2b1837307ffc2f81fe | refs/heads/master | 2021-04-06T20:49:26.257611 | 2018-03-15T03:52:22 | 2018-03-15T10:28:53 | 125,350,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py |
# noinspection PyUnusedLocal
# friend_name = unicode string
def hello(friend_name):
return 'Hello, {}!'.format(friend_name)
return 'Hello, World!'
| [
"sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal"
] | sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal |
2362ca8375d6a7ef12b56fa11fedf41761d527b1 | 59bccc3e51a75d75553816750f28b1852a1a92c3 | /scraper/src/util.py | d00e91d0a7f0ba1c98eb5441f2984a982ae25358 | [
"WTFPL"
] | permissive | I4-Projektseminar-HHU-2017/i4-projekt-wissenstechnologien-juma-1 | 7f537f98b3281b11dac27f9c9eee094776788c47 | 2ac42913d1b670dfcd5eb77fad2a61287c605c0f | refs/heads/master | 2020-12-30T12:00:46.673851 | 2018-10-23T21:07:48 | 2018-10-23T21:07:48 | 91,489,533 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | def is_empty(string: str):
return string == "" or string is None
| [
"MarcoKluin@gmx.de"
] | MarcoKluin@gmx.de |
5b76d4be90b266d54034487eb30f407f5d36d8ce | cf179a36a1241c7254d341ae9607741ab0550669 | /config/settings.py | cb1656d55af5ab51b37a18741a2f60f121e4f50f | [] | no_license | kmnkit/airbnb-clone | 118815d3cda01d0cd1ba6fee30b3c7176557a270 | 951e7b49a66ed775351820af2a111dda61d33584 | refs/heads/master | 2023-01-10T05:53:15.913483 | 2020-11-09T02:11:00 | 2020-11-09T02:11:00 | 291,705,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,503 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from ... | [
"tokyobuy2020@gmail.com"
] | tokyobuy2020@gmail.com |
c6ddb80fc7ad55e16f7e31c3afd45024cca8d9a0 | ea9e9756f6b5b7022015049d92c399ee03cfde67 | /知吾煮/AutoTest_DL/interface/test_upload.py | e094f84e214ffe6d284efa82d6cc51de6ce3045b | [] | no_license | Godlovesli/jiaojiewendang | 724e0f01028cc5cbcc9ce5807bd057e15172eb91 | 579551eabfc83226804ccfbf8b868192614d7166 | refs/heads/master | 2020-04-05T03:38:41.212627 | 2018-11-07T09:31:51 | 2018-11-07T09:31:51 | 156,521,937 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | #!/usr/bin/env python
#_*_ coding:utf-8 _*_
# -*- __author__ = 'feng' -*-
from base.base import MyTest
from base.login import Login
import unittest
import json
from HTMLTestRunner import HTMLTestRunner
import urllib, urllib2
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
fr... | [
"1107095622@qq.com"
] | 1107095622@qq.com |
a26c1d9dfd41824c8f409eb5017d9a597fd99b2c | aadd41b3fe882d1ee97f6444abfa4dffa36f6901 | /ch9_files_I/O/ch9_prob5.py | 91dd43597c661d309afcf364a864ebd32700fe23 | [] | no_license | Varsha1230/python-programs | 92f731ec7cf2cff35a8130a979b869b708bd0440 | 75fb6bb97158461d958c447e905ca6f6de2a37c9 | refs/heads/main | 2023-05-02T11:05:20.913636 | 2021-05-21T12:35:55 | 2021-05-21T12:35:55 | 369,519,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | words = ["donkey", "kaddu", "mote"]
with open("ch9_prob5_sample.txt") as f:
content=f.read()
for word in words:
content= content.replace(word, "$%^@$^#")
with open("ch9_prob5_sample.txt", "w") as f:
f.write(content) | [
"varsharuhela978@gmail.com"
] | varsharuhela978@gmail.com |
a883655d8a3bb0994ede721e1eb19c5f49814972 | 17856275ae788e15d3b089dd2f9f291488a0af78 | /modules/post_details.py | 30721d6d9358938a23693f952d8171cc9c022371 | [] | no_license | Bawya1098/OfficeCafe-Projects | 71a603cb1e307b039ed414ebc8421e25d46811f6 | 346be83bcdee9e410e4ba6980bed49b24f70ca2c | refs/heads/master | 2020-04-22T03:17:33.667193 | 2019-03-11T06:40:31 | 2019-03-11T06:40:31 | 170,081,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def post_data(connection, user_data):
cursor = connection.cursor()
cursor.execute("""insert into orders(employee_id,cart_items) values(%s,%s);""",
(user_data['employee_id'], user_data['cart_items']))
connection.commit()
cursor.close()
| [
"admin@Intern3-MacBook-Pro.local"
] | admin@Intern3-MacBook-Pro.local |
36e18af1da99dfdcd27ba32f8099959b32fc5c3c | ea8fe9eb1c9071af603101340eb30d50602df1ac | /components/openindiana/illumos-gate/depend_dups.py | 6e0a8925c694df62dc7e474cf172ba404cecc258 | [] | no_license | PluribusNetworks/pluribus_userland | b3c01c63f631df09220434a863267cd5a1709b6f | 3872db628cd187cdada40aa3b3607b143160ef7c | refs/heads/master | 2020-05-21T14:05:39.640281 | 2019-01-31T19:53:43 | 2019-01-31T19:53:43 | 53,575,878 | 1 | 6 | null | 2019-01-31T19:53:44 | 2016-03-10T10:27:19 | Python | UTF-8 | Python | false | false | 1,255 | py | import os
import sys
#
# A simple python script to prune duplicate dependencies in
# the given manifest. The longest matching dependency entry
# for the fmri is retained.
# This also strips java dependencies. We have a transform rule
# but somehow that does not work properly.
#
mfname = sys.argv[1]
print "Checking m... | [
"moinak@ike.pluribusnetworks.com"
] | moinak@ike.pluribusnetworks.com |
69038c5cd386aad26d7eb219c993cb3471a94ddf | 726869ae8de57c92f2942aa483238e97d05a90c1 | /migrations/0030_auto_20210225_0654.py | 164cf214d31e734c1bab82be00c6ecc58195eb1e | [
"MIT"
] | permissive | PyUnchained/books | f32f69549eced5bf296b23bd5dabb93909b45993 | dd0732f17a9486d47de3f4378014109242a85841 | refs/heads/master | 2023-07-24T04:26:48.228650 | 2023-07-03T09:26:39 | 2023-07-03T09:26:39 | 95,307,435 | 0 | 0 | null | 2023-07-16T00:38:48 | 2017-06-24T15:54:31 | Python | UTF-8 | Python | false | false | 843 | py | # Generated by Django 3.1.7 on 2021-02-25 04:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0029_auto_20210225_0600'),
]
operations = [
migrations.RemoveField(
model_name='billingmethod',
name='day_o... | [
"tatendatambo@gmail.com"
] | tatendatambo@gmail.com |
81d99025fa0bdf8cff8384fb4efdb344ec76391d | 7fc02abc6db27c091c3162b11cfb415b44e0e8d2 | /Simulation.py | 9890da1f0416562e314517014d6d2e3b5d7ec35a | [] | no_license | dariaugin/gruppa_oop | d7b42fc0ac7c17ab7ec0db4dee4d57354e1abdcc | 6ae4b5e26e8e24a3586ec732f4af2e6f1a417209 | refs/heads/master | 2023-02-08T01:02:49.381335 | 2020-12-29T09:01:42 | 2020-12-29T09:01:42 | 294,990,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,610 | py | import Animal, Map, Statistics
from Communicator import Communicator
import keyboard, random, copy, math, asyncio
def sin(day, T):
return abs(math.sin(day * (math.pi / T) % math.pi))
class Simulation:
mode={"sin":sin,"const":None} #T=30
def __init__(self, ID, statistics, environment, occupyPerce... | [
"noreply@github.com"
] | noreply@github.com |
4244464b126a7248ccabc7b6b8b89075af0ce22d | 36b59fc29ca90f2508ed1585e49bc760a531744a | /src/LR.py | f945a8b44b416e0bf29f0c0f700ff6402dd39fa9 | [] | no_license | robert1636/Naive-Bayes-and-Logistic-Regression | 92864fa30cb7a94cbadaf72e238be76e28f2f5f7 | ae2736fd37538003bfb761cdb11fe3cb39a5c9fc | refs/heads/master | 2020-05-02T16:53:37.443351 | 2019-03-27T22:12:55 | 2019-03-27T22:12:55 | 178,081,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | # LR solution
# Load libraries
import os
import numpy as np
import math
def sigmoid(scores):
return 1 / (1 + math.exp(-scores))
# iterate over files in Ham directory in Train folder
# path to training sets
path_train_ham = "../train/ham"
path_train_spam = "../train/spam"
# path for testing files
path_test_ham = ... | [
"robertyu1636@gmail.com"
] | robertyu1636@gmail.com |
1050b82b9da5873cf6dc09d0c329233dc7c57e01 | 8bcffa4eb3bcc413985994891a4f9b4435faba1f | /Product/Product/settings.py | 3bdce450139c84cff10621c1c19f3fa7af011d67 | [] | no_license | HoangUkr/JIL_Week_4 | 6e377907528de67f45af699cd458950112f75640 | d41da81aa9f7176a72c879241b118c9ffb63c69b | refs/heads/main | 2023-04-23T19:08:00.836467 | 2021-05-10T00:54:43 | 2021-05-10T00:54:43 | 345,107,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | """
Django settings for Product project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"hoangukraine@gmail.com"
] | hoangukraine@gmail.com |
bc15a2f6e4d4c50df75459fb05f4519681855012 | 0edebba2aa370036fe8432b4681384699c51b44c | /fileup/auth.py | f4c3498fcf8980932454138f778a8b7c568215be | [] | no_license | ypmagic/fileapp | 694494b53cbcc9fad2d3c986c5d6bfa02b8dc3ab | 8f26001e005063311e9788e2a7526c36c0a4ceea | refs/heads/main | 2023-01-24T21:06:39.168489 | 2020-12-09T13:00:05 | 2020-12-09T13:00:05 | 319,921,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import functools
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from werkzeug.security import check_password_hash, generate_password_hash
from fileup.db import get_db
bp = Blueprint('auth', __name__, url_prefix='/auth')
@bp.route('/register', methods=['POST', 'GE... | [
"young_park@brown.edu"
] | young_park@brown.edu |
b736d4da8c40ee8114f2dd66bf8029979c964015 | a75b102f9d4151a23c8c71a80f8899a182ec24c3 | /addColumns.py | 5a72f852cf47431b06af817639d5d65803eb1308 | [] | no_license | Anuja04/Big-Data-Visualization-Made-Easy | f145cc4801a68b44a196d16e49cdf6279419a204 | b0e1760f7cd3282604c83140a564887eae16b62b | refs/heads/master | 2020-03-19T11:00:07.763185 | 2018-06-07T04:10:14 | 2018-06-07T04:10:14 | 136,420,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,101 | py |
import pandas as pd
import numpy as np
pd.options.mode.chained_assignment = None
# Load data
df= pd.read_csv("/Users/anujatike/Documents/sem3/CS235/Project/data/us-traffic-2015/new_data copy.csv")
#df=df[:1500]
# Adding column "month_name_of_data"
df['month_name_of_data'] = np.where(df.month_of_data == 1, 'January... | [
"noreply@github.com"
] | noreply@github.com |
5b3c899903378bc31aeee6e2a698d7b316d2b9ed | a1352de184b2a60295b90ba5472579c6dc8abb29 | /misc/python/strucdump.py | a7ea13d9294eccf04d1da1d6211a77fe61beb026 | [] | no_license | gunmetalbackupgooglecode/corkami | 2b5e99b1cfd94f716e35293e915d536e468aec75 | 1a52e71ec205f1cb7ce493789474209dd1b47911 | refs/heads/master | 2016-09-16T06:33:52.261541 | 2015-02-11T18:41:13 | 2015-02-11T18:41:13 | 32,167,637 | 25 | 11 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | #simple hex structure viewer
#TODO: classify!
# Ange Albertini, BSD Licence, 2011
import struct
import sys
fn = sys.argv[1]
last = -1
lastdata = []
lastrend = -1
INDENT = "\t"
COLS = 2
tags_types = [
('BOGUSTYPE', 50829),
]
TAGS = dict([(i[1], i[0]) for i in tags_types] + tags_types)
for i,j... | [
"ange.albertini@gmail.com"
] | ange.albertini@gmail.com |
86ce0c464dc5c3d4926f32b3d14004dc7865e36e | a854938dac471452c40e73922ebfa6f30a07bbbd | /src/word_vector_functions.py | 3c90fa8691c5a936688e9326c3c7237f46383596 | [] | no_license | christineegan42/apple-m1-sentiments | 921f91f6649c83ef21cb93658c817cef439d4c25 | 76425b42e451165db5d491de6d86fba713c7e22f | refs/heads/main | 2023-05-08T21:31:20.134889 | 2021-05-25T15:31:22 | 2021-05-25T15:31:22 | 355,280,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,173 | py | import pandas as pd
import numpy as np
import re
import os
from os import listdir
from os.path import isfile, join
from datetime import datetime
from gensim.test.utils import common_texts
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
import general_functions
import eda_visualizations
def create_vocab... | [
"noreply@github.com"
] | noreply@github.com |
29d42d1bff3dd0bdf00a02dbe0b8c100d712d1c3 | 41a153802eca2f0ae42afbeac1ff39d10f0ba819 | /apps/randomWord/views.py | 06573e7cf28d3c1666df1571dc99a287d3a9471b | [] | no_license | JonathanBallard/Coding_Dojo_Django_Dojo_Survey | b4850049f8ff9e8c40d74e176831766ccd267fee | 9381dfb636980b6f3cc9873f256e712656f29189 | refs/heads/master | 2022-04-16T12:35:21.656288 | 2020-04-14T02:27:46 | 2020-04-14T02:27:46 | 255,434,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.shortcuts import render, redirect
from django.utils.crypto import get_random_string
# Create your views here.
def randomWord(request):
if 'counter' in request.session:
request.session['counter'] += 1
else:
request.session['counter'] = 1
request.session['word'] = get_rando... | [
"asgardschosen@gmail.com"
] | asgardschosen@gmail.com |
e3863a265db5c7c39dd3f86727766c78fc33f2b4 | d498d66fbe9bae2f86161f5c157d52c9433c6a8c | /mysite/mysite/urls.py | a577c6e46d6f5fde2d75a5260689f6c54dccb1ee | [] | no_license | sulembutproton/promosys | 9330176d175f29d1e86991d93570981f6cad8317 | 2f67f08e2f07ab9ae0f25d9ac67905ebb1bbbda2 | refs/heads/master | 2023-03-11T20:31:06.152814 | 2021-03-01T15:52:31 | 2021-03-01T15:52:31 | 343,463,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | """
samples URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-base... | [
"sulembut@protonmail.com"
] | sulembut@protonmail.com |
98951e852f9895d02244f403cf8c68a4f9120a45 | 289f2181257f1414c768d855d8e0775f7a999f0c | /simple-backend/nlpviewer_backend/migrations/0008_crossdoc.py | 0c7f1ea9a0062e42cee0a0a6a82e257f105677ef | [
"Apache-2.0"
] | permissive | stevezhang1999/stave | 3bf8fed3499572005f51dc6825b65825e7c54c55 | 3380fe22cbd02e1d0b85f59663765f8010c47340 | refs/heads/master | 2023-03-12T04:53:44.337214 | 2021-02-22T08:41:57 | 2021-02-22T08:41:57 | 273,274,069 | 0 | 0 | Apache-2.0 | 2020-11-12T09:17:56 | 2020-06-18T15:26:55 | TypeScript | UTF-8 | Python | false | false | 795 | py | # Generated by Django 3.0.4 on 2021-01-12 01:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nlpviewer_backend', '0007_auto_20210111_1741'),
]
operations = [
migrations.CreateModel(
name='... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.