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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00c9949db590246f66d2bb3310ffbfe39a1fee79 | 9b24eb3a15e9acd4aaf7af00d88488f5a056438f | /backend/home/api/v1/viewsets.py | c7c28c17f806e899fca335a7c524c6cb75b776a2 | [] | no_license | crowdbotics-apps/dashboard-app-18025 | b8fb28008d42371c7d74102b78ae380725b3221a | 202f33b00e14f65adfc9dbf84f748ad5cc051652 | refs/heads/master | 2022-11-15T12:16:12.733390 | 2020-06-15T17:24:52 | 2020-06-15T17:24:52 | 271,619,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from rest_framework import viewsets
from rest_framework import authentication
from .serializers import (
AddressSerializer,
CustomTextSerializer,
HomePageSerializer,
XYSerializer,
)
from rest_framework.authentication import SessionAuthentication, TokenAuthentication
from rest_framework.authtoken.seriali... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a1d4abecf6810db269fd34712f27f857a5b34edc | 7f57aa11f807c1d440b46c94bb4b493a1540ce55 | /SIIC/usuarios/urls.py | 16968d1a51ba2bd1444fb173db896c6bd0f0f306 | [] | no_license | Aletrip-dev/OPE2 | 0a498a266bd78d16a0568686004023d72e57c506 | 9ed21a69c30d6c376a6a0c05ff0586f2a747aacf | refs/heads/master | 2023-04-20T10:44:58.204839 | 2021-05-15T20:44:42 | 2021-05-15T20:44:42 | 343,137,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | from django.urls import path
# MÓDUDO PARA AUTENTICAÇÃO DE USUÁRIOS
# (passar um alias para não conflitar com a views da aplicação)
from django.contrib.auth import views as auth_views
from .views import UsuarioCreate, PerfilUpdate, alterar_senha
urlpatterns = [
path('login/', auth_views.LoginView.as_view(
... | [
"aletrip@msn.com"
] | aletrip@msn.com |
612f3220df184b463f51fd5d95a6580cca79748d | 4ad3624c676defcf75a3235cc014534806dde50b | /baranovperictyrant.py | f60ee7cfb02dc67a198b3934d2a99733a1b8f959 | [] | no_license | gbaranov99/BaranovPericCS407Program1 | 5ca2b0eeb3b290d0142eb8e4b9a4da0acf7a4bf1 | ab29da5887f5f1ff1fda4b2e3dd4bdb3209e7b88 | refs/heads/master | 2023-02-27T20:47:03.196996 | 2021-02-13T01:07:38 | 2021-02-13T01:07:38 | 338,470,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | #!/usr/bin/python
# This is a dummy peer that just illustrates the available information your peers
# have available. The setup script will copy it to create the versions you edit
import random
import logging
from messages import Upload, Request
from util import even_split
from peer import Peer
class BaranovPeric... | [
"gbaranov99@gmail.com"
] | gbaranov99@gmail.com |
2bd8ed87c34f5106c1bf3d36425d3ecae107c5ea | 43f5332bfc67e67ddb1e52e7eae40306ce7ef1e2 | /12/tests.py | a072532fc33103350a0c1c5c0b21149b8b84a7d9 | [
"MIT"
] | permissive | remihuguet/aoc2020 | 943d9713c5edf2a80aa9e11a46d89ad3ef72b88c | c313c5b425dda92d949fd9ca4f18ff66f452794f | refs/heads/main | 2023-04-13T05:07:31.317561 | 2021-03-30T20:36:48 | 2021-03-30T20:36:48 | 317,330,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | import rainrisk
def test_compute_new_direction():
direction = (1, 0)
assert (0, -1) == rainrisk.compute_new_direction(direction, 'R90')
assert (0, 1) == rainrisk.compute_new_direction(direction, 'L90')
assert (-1, 0) == rainrisk.compute_new_direction(direction, 'R180')
assert (-1, 0) == rainrisk... | [
"remi.huguet@gmail.com"
] | remi.huguet@gmail.com |
76795df80dc41e3af67b42a73904e5675010ac9a | ccb8b706ca940c86ce96a212f01797586db90158 | /run | 67464cba3cc4dd0c42fe1537dee80d4a70807432 | [] | no_license | ChrisWaites/theorem-prover | 35e4733309bb2d5fc814a7634a991868712d7940 | ae7f3fd474c81531dd1d77ebbae2c7ff353e029b | refs/heads/master | 2021-09-10T09:09:50.263916 | 2018-03-23T09:35:26 | 2018-03-23T09:35:26 | 50,534,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | #!/usr/bin/env python
import argparse
from theoremprover.theorem_search import find_theorem, peanos_axioms
from theoremprover.expression import parse
def main(args):
axioms = set(map(parse, args.axioms))
theorem = parse(args.theorem)
path = find_theorem(theorem, axioms)
print(path[0])
... | [
"cwaites3@gatech.edu"
] | cwaites3@gatech.edu | |
81e3da142f2a706ac4fbe041c6cc6057c44a4027 | 9be1ab6f7cc9e1e8474b7c76ef89284b54782c46 | /chapter17_errors/8_custom_exception.py | 8441acb47c175019e2ace90a11dcdee1fd945443 | [] | no_license | Nateque123/python_tutorials | 8d9842d46570e6cecd7aa5419b9f77bc4468d391 | 83743acf4862155c5837c154d0422f74d0629043 | refs/heads/master | 2022-11-20T11:39:02.565456 | 2020-07-24T11:08:34 | 2020-07-24T11:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # how to create custom exception
class NameToShortError(ValueError):
pass
def check(name):
if len(name) < 8:
raise NameToShortError('you enter short name...')
else:
print(f'Hello {name}')
name1 = input('Enter your name: ')
print(check(name1)) | [
"noreply@github.com"
] | Nateque123.noreply@github.com |
a07369e5917c7c67c2f793f80ed4d1023bafb477 | 0b12a3aab3b06a9ff007eaf6daaca0a696be84c1 | /phase-0/classify.py | cdecf02a2e4252e324b6225b05f950a25d64ba8c | [] | no_license | fariszahrah/crypto-twitter | 1cfdaa7db8f14d9a5280d68280690c7aa70162c3 | 2eef22a5e1d71d89d0f1e5f7d344cbb7c929b91d | refs/heads/master | 2021-01-08T23:45:00.693390 | 2020-02-21T16:27:36 | 2020-02-21T16:27:36 | 242,178,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | from sklearn.ensemble import RandomForestClassifier
import sklearn as sk
import re
import nltk
from sklearn.feature_extraction.text import *
import pandas as pd
import numpy as np
import pickle
from collections import Counter
'''
the train dataset was created from the following lines of code:
****
... | [
"fariszahrah@Fariss-MBP.attlocal.net"
] | fariszahrah@Fariss-MBP.attlocal.net |
14117448fe850d69ae5fcf1bd41049c19247b557 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /appmesh_write_2/virtual-router_delete.py | db6df7702ffc69ca7d3bbf5c3eda2b1680913ce2 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/delete-virtual-router.html
if __name__ =... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
bda2afa73a058eb395fe5552b635d84a6d2f2e4d | c8e365146804863c90d0d37114008078514ab3df | /db_creation/rules/cluster_category_stats.smk | 72e47686e0c94208e5c59aba2cba652aa7d7b683 | [] | no_license | nvt-1009/agnostos-wf | 67fc9ac7e20af82d2ee4244debb66a6cb0657dd4 | ece12b0cb2b55f67f4e468cb55b60dbddd11fc41 | refs/heads/master | 2023-04-25T19:45:06.315050 | 2021-06-06T11:08:58 | 2021-06-06T11:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,142 | smk | rule cluster_category_stats:
input:
k_db = config["rdir"] + "/cluster_category_DB/k_cons.index",
cl_cat = config["rdir"] + "/cluster_categories/cluster_ids_categ.tsv",
threads: 28
params:
mmseqs_bin = config["mmseqs_bin"],
kaiju_bin = config["kaiju_bin"],
mpi_runner =... | [
"chiara.vanni5@gmail.com"
] | chiara.vanni5@gmail.com |
005b11fedd1241560633f3f19ce4ab82b6cf9068 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /resize.py | 306400848b45f96d2ec9be96bbc1dbae1a9871f7 | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import cv2
import argparse
import numpy as np
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="Path of image")
ap.add_argument("-w", "--width", default=100, help="Width of resized img")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
width = int(args["width"])
ratio... | [
"geegatomar@gmail.com"
] | geegatomar@gmail.com |
fbf27bd442478db50ae76d53ff9eeda876dab945 | 35150c23e611588b506851d7bb33049682e667f2 | /hotelapp/dao.py | 0fce97739b963a380a00e047225a25e2bcc68375 | [] | no_license | hienhuynhxuan/HotelManager_KO | 4fd9dda2dc21a6d7254884b215af02c12af3d2c2 | f0f362be1ae91462f987a86f5dff4c39f401dd80 | refs/heads/main | 2023-01-22T04:47:07.132558 | 2020-11-19T02:48:01 | 2020-11-19T02:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from sqlalchemy import extract
from hotelapp.models import *
def read_room_info(name=None, kind_of_room_id=None, status=None, amount=None):
room = Room.query.all()
kind = str(kind_of_room_id)
if name:
room = filter(lambda tt: tt.name == name, room)
if kind_of_room_id:
room = list(fi... | [
"hien.hx133@gmail.com"
] | hien.hx133@gmail.com |
6576a596822baf4eb435a1fe47e11d479398497b | fd878bcdaa9489883894c942aae5e316a15c2085 | /tests/dataset_readers/sst_test.py | 477e1a51ec7a5efbd55ddd0006bc58ee474d6ddc | [] | no_license | Shuailong/SPM | a12d18baa39a72a9243ad9cd4238168ab42b96d1 | 0105dae90a4acdebfc875001efab7439b3eb8259 | refs/heads/master | 2020-04-26T04:51:14.279859 | 2019-06-24T03:55:11 | 2019-06-24T03:55:11 | 173,315,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | # pylint: disable=no-self-use,invalid-name
import pytest
import pathlib
import random
import os
from allennlp.common import Params
from allennlp.common.util import ensure_list
from allennlp.common.testing import ModelTestCase
from allennlp.data.dataset import Batch
from allennlp.data.fields import TextField
from allen... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
a4b5aa67b31a6384126ccb1f35d8fff5774c6f6b | bf6626d2f70ef72963eb6290bdcf44dc75531aa1 | /hoodwatch/settings.py | 77ae46e54251375fc08635b55d0fde36cbd22c3e | [
"MIT"
] | permissive | amtesire/Hood-project | c70930f110668a9549809f329543e62d9c036750 | 8078a2c85ba06cdddab54a4960168fb2e237e122 | refs/heads/master | 2023-02-23T19:50:39.233884 | 2021-02-02T14:53:28 | 2021-02-02T14:53:28 | 334,227,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | """
Django settings for hoodwatch project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"tesiregisele@gmail.com"
] | tesiregisele@gmail.com |
d27b115ccb6e7ef16a5a8dc0e95cc0d084f526b3 | 1d9d6f72b10dd34fd501b8ba58b1b8bfcb2ebb72 | /spraying/detect_blobs.py | 0efb6f21908c7287a1b7ba03fbcdda00698467ab | [] | no_license | crushendo/spraying | eb684ae0a1691e39f74978c2556a000e394920c2 | 93644410a17351ee8ae85f66fe8622887670f2c3 | refs/heads/master | 2021-01-19T22:46:57.663738 | 2017-08-11T19:11:00 | 2017-08-11T19:11:00 | 88,867,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | import cv2
import numpy as np
class blob_detector():
def main(self):
blobs = blob_detector()
img, params = blobs.initialize()
all_keypoints = blobs.all_drops(img, params)
single_keypoints, diameter_list = blobs.single_drops(img,params)
double_keypoints = blobs.double_drops(i... | [
"ryan.ackett@gmail.com"
] | ryan.ackett@gmail.com |
ad937e5bdb44e8c8d3bb32af90bd346163310b48 | b99ce2b1bc8ac32976cf1762c8df7bc74365e403 | /models/networks.py | c816a0edf200d1544f3b93f4aa93110c3d40a629 | [
"Apache-2.0"
] | permissive | KoryakovDmitry/TGRNet | 8a7b2ad34cc2cc481f90bd9f9b0745368cdcc705 | afef2835a8f3ff0d2f6573dda025e3115e0d3400 | refs/heads/main | 2023-08-04T02:29:29.361763 | 2021-10-05T15:03:12 | 2021-10-05T15:03:12 | 413,845,598 | 0 | 0 | Apache-2.0 | 2021-10-05T14:11:32 | 2021-10-05T14:11:31 | null | UTF-8 | Python | false | false | 29,516 | py | import torch
import torch.nn as nn
from torch_geometric.nn import GCNConv
from torch_geometric.data import Data as GraphData
from torch_geometric.data import Batch as GraphBatch
import torch.nn.functional as F
from torch.nn import init
import functools
from torch.optim import lr_scheduler
from torchvision import models... | [
"15120452@bjtu.edu"
] | 15120452@bjtu.edu |
4067ade06122e3a02c1b9d764ce69d8d86e992ac | 833c09e68b7dca5b71bee89c81578404d05feaf0 | /ch5/a57.py | 1e9c4188b3d65218c2ba064780cbfee244d370d7 | [] | no_license | muu4649/NLP100nock2020 | 669fa68f2f3b7f7a7deb4402cdaf7d9fd8aaf372 | 0031ac9b82135a81787dc3e5c77728a6d30c06c6 | refs/heads/master | 2022-10-24T22:27:30.785381 | 2020-06-11T22:31:06 | 2020-06-11T22:31:06 | 268,445,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #52で学習したロジスティック回帰モデルの中で,重みの高い特徴量トップ10と,重みの低い特徴量トップ10を確認せよ.
import pandas as pd
import joblib
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import confusion_matrix
#X_train = pd.read_table('train.feature.txt', header=None)
#y_train = pd.read_table('train2.txt', header=None)[1]
clf = joblib.... | [
"noreply@github.com"
] | muu4649.noreply@github.com |
4c61a7aae73fa64897e0df01720f5f1eed93b6dd | 16de2efcba33961633c1e63e493986bad54c99bd | /test.py | 73b7e8d90f6b8b0378a1486d70f70ac2af704483 | [] | no_license | thakur-nishant/Algorithms | a0cc45de5393d4cbb428cccdbf81b6937cdf97d7 | 1a0306ca9a9fc68f59e28ea26c24822c15350294 | refs/heads/master | 2022-01-07T22:22:09.764193 | 2019-05-17T20:10:24 | 2019-05-17T20:10:24 | 109,093,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from math import log
from random import random
import matplotlib.pyplot as plt
import numpy as np
l = 2
T = 24
curr = -1/l * log(random())
arrival = [curr]
while curr < T:
curr = curr -1/l * log(random())
arrival.append(curr)
arrival = arrival[1:]
t = np.arange(0.0, T, 0.01)
N = len(t)
X = np.zeros(N)
fo... | [
"nt.nishantt@gmail.com"
] | nt.nishantt@gmail.com |
6dcdc505bde9ee4996f62e4c6d83879c0f9d77ab | 1d4cdffde9e2cf750b0fbe0cc06f4f4455393762 | /Chapter09/Python/02-geocoding-parallel-with-python.py | ad3faa246f40c105739ee455cf75e592df013813 | [
"MIT"
] | permissive | ndarvishev/Extending-Power-BI-with-Python-and-R | 59b3a82bb7bf863756c71d8bff11c41ad9164fe3 | d52b7064128ff086c315335d780df3dde1fb13d5 | refs/heads/main | 2023-07-20T07:27:22.377184 | 2021-09-05T14:29:09 | 2021-09-05T14:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | # %%
import os
import requests
import urllib
import json
import pandas as pd
import dask.dataframe as dd
import time
# %%
def bing_geocode_via_address(address):
# trim the string from leading and trailing spaces using strip
full_url = f"{base_url}query={urllib.parse.quote(address.strip(), safe='')}?key={AUTH... | [
"lucazavarella@outlook.com"
] | lucazavarella@outlook.com |
53fa6c563e9983afb729af1af3be08c9c03dd4a1 | 8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7 | /51player.py | 470f81860462904d56f98294142a2c26cd476828 | [] | no_license | aarthisandhiya/aarthisandhiya1 | c19c1951c9ba01cd97eeddd44614953088718357 | e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b | refs/heads/master | 2020-04-15T17:17:07.151242 | 2019-05-20T05:24:19 | 2019-05-20T05:24:19 | 164,868,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | a=int(input())
s=[int(a) for a in input().split()]
s=list(s)
z=[]
for i in range(0,len(s)):
val=s[i]
i=i-1
while i>=0:
if val<s[i]:
s[i+1]=s[i]
s[i]=val
i=i-1
else:
break
print(s[1])
| [
"noreply@github.com"
] | aarthisandhiya.noreply@github.com |
4481446207abde7e6ba8f0c16de738b7d78e0e02 | 2a7b79c98aa6f8b36a68c96937cd8f4577ff48be | /neural_network/californiaHousingNeuralNet1.py | 2a8956b56cc13ec401ebb1d7395c90045c79c2f1 | [] | no_license | Utlak88/California-Housing-Dataset | 6935a207e465d48e3fcef2930d8e65bc7d9c4c99 | 6aae815d323e39d041586fdc54da6c7f83809995 | refs/heads/main | 2023-02-01T16:37:53.305730 | 2020-12-23T07:40:25 | 2020-12-23T07:40:25 | 323,824,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,676 | py | # Neural network based on the Google Machine Learning Crash Course
################################################################################
# Importing modules
import numpy as np
import pandas as pd
import tensorflow as tf
from sklearn import metrics
from sklearn.model_selection import train_test_split... | [
"noreply@github.com"
] | Utlak88.noreply@github.com |
c5c0efac5b659bbee446fae9d8a327987f1d99ea | 222ffb1996699dc5e0cb5e1c239698b872003c8d | /03_Multiply.py | 25ef5ced75ea4642a8dfeba6f61b0335756cb142 | [] | no_license | AdityaSA99/IoT-Programs | 3dcbf8ff24a978b530b0ada02a2b7ad5ed378462 | 20c5e910e20529bff648fa5523296f8712c6faeb | refs/heads/master | 2020-05-31T06:27:28.901576 | 2019-06-10T15:40:43 | 2019-06-10T15:40:43 | 190,142,164 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | a = float(input("Enter value of A :"))
b = float(input("Enter value of B :"))
c = a*b
print(("Product of {0} and {1} is {2}").format(a,b,c))
| [
"noreply@github.com"
] | AdityaSA99.noreply@github.com |
4b28b8979101e0dd287e1c26d062c0b3d58b0f82 | 6ebe5412b16bb48d89b9e7e3268dc5712a05bc75 | /app.py | 8a1442f41d1d633179a3f29ae8847204b1becb0e | [] | no_license | Nishanbuyo/car_prediction | d850cf2f6d61ea181a27ed17e31a1c991e71937f | d7f7552db39e5b54950f6f39679e13d3f2c42149 | refs/heads/master | 2023-01-12T15:47:14.556471 | 2020-11-06T11:31:57 | 2020-11-06T11:31:57 | 310,578,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | from flask import Flask, render_template, request
import jsonify
import requests
import joblib
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = joblib.load('linear-regressor.joblib')
@app.route('/',methods=['GET'])
def Home():
return render_template('... | [
"nishanbuyo05@gmail.com"
] | nishanbuyo05@gmail.com |
6811c35128a21908b5e7d9975bb069e9cf91036d | efcf8a7309aab135dd127f9466ce5110556b5fbc | /chat_app/urls.py | ca3fe12efbf63cbf00cb953fc9cb23087bb54222 | [] | no_license | garizs/chatApp | 62371d035b32c80cd1322848ecc4c82ea91a3d1b | 8eb3d5b509f317cb40295e7d4d37f14c0bd2d855 | refs/heads/master | 2023-07-08T18:55:50.504650 | 2021-08-23T08:39:24 | 2021-08-23T08:39:24 | 395,544,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('<str:room_name>/', views.room, name='room')
]
| [
"i.kolesnikov@ritg.ru"
] | i.kolesnikov@ritg.ru |
a3dc231f3dbd0e2e1ef4dbdd546e09d37e950ff2 | f224fad50dbc182cda86291c83954607bbb60901 | /inference.py | ce98cbf4d15f6bc1e05363be1db9afeb1e519de5 | [] | no_license | Hongpeng1992/pytorch-commands | 7fd26202b7cf7d46a0ac8e1241336e8ca5dad30e | 5853625d9852e948c1ac337547f8078d048699a0 | refs/heads/master | 2020-05-04T15:38:26.704013 | 2019-02-07T07:04:01 | 2019-02-07T07:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import argparse
import io
import os
import csv
import time
import numpy as np
import pandas as pd
from collections import OrderedDict
from datetime import datetime
from dataset import CommandsDataset, get_labels
from models import model_factory
from utils import AverageMeter, get_outdir
import torch
import torch.auto... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
36a1be7242226800cc31878126d2dc7d4c40a3c6 | 5ae1aff4d4b8c6e7d8aa0cb2065cdd42335c9250 | /a.pyw | 5f9d312fb6ef84c3e6c0383715f2a857102234eb | [] | no_license | ShadowMaker07/Python-Keylogger | 108d6a4991e7170f202f620119f0882ce1ba90a3 | eaa22f43b9aacdc35556762b994d69f15d838936 | refs/heads/main | 2023-07-12T00:51:33.486743 | 2021-08-12T03:35:28 | 2021-08-12T03:35:28 | 395,184,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | pyw | from pynput.keyboard import Listener
def anonymous(key):
key = str(key)
if key == "Key.f12":
raise SystemExit(0)
if key == "Key.enter":
key = "\n"
if key == "Key.alt":
key = "\n"
key = key.replace("'", "")
with open("log.txt", "a") as file:
file.write(key)
print(key)
with Listener(on_p... | [
"noreply@github.com"
] | ShadowMaker07.noreply@github.com |
25eaf0a29411821417765885863acfd5166a02e3 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog99/catalog-configs/Vocab/ihm_residues_not_modeled_reason.py | 9a62ee7fbe832a6a342ee44c46b17d4607a9f500 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 5,585 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {
'pdb-reader': 'https://auth.globus.org/8875a... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
24c9430411ba12db5d1fb7f0ac009a54a6d48284 | f69aa4ac2d92102a2cc9081f6acde24f5a1125ae | /base/session5_dict.py | c9db5095044fdba3c2658c0bb787834a39e60224 | [] | no_license | jobpool/python_learning | 9af5fd102c7698b417763c6c80947a276fc3db89 | 4e4c96d9eb1be31339c5675b6878f7ca4be83d09 | refs/heads/master | 2022-12-08T13:15:16.586731 | 2020-09-05T03:52:23 | 2020-09-05T03:52:23 | 287,920,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # #字典的定义
# d1 = {"a":1,"b":2}
# print(type(d1),d1)
# #键值是唯一的
# d2 = {"a":1,"b":2,"a":3}
# print(d2)
# #键值为字符串、数字、元组,不能是列表,要求不可变数据类型
# d3 = {"a":1,2:"b",(3,4):"c"}
# print(d3)
# #访问字典
# d4= {"a":1,"b":2}
# # print(d4["c"])
# # print(d4.get("c",0))
# print(d4)
# print(d4.pop("b"))
# print(d4)
# #添加键值到字典
# d5 = {"a":... | [
"feilongs@microsoft.com"
] | feilongs@microsoft.com |
fdad88fdb6c73ddb643e0f4ef0fbe3221a259018 | 7afbfd3bd0f6c205546b5b159a03f5a10637d28e | /Part2B_hsn1017_eunzle95.py | 7e3b94be6a3fae139fffd3c35ca501ab8e2d8529 | [] | no_license | eunzle95/Project1_blog | 9bbf84707502701f9b94457d03f40b9809f6e232 | 71a97fc48658dcae31db212520f857ea18869ee8 | refs/heads/master | 2020-08-11T07:02:12.054980 | 2019-10-11T21:42:14 | 2019-10-11T21:42:14 | 214,514,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | import re
symbols = ['AAPL', 'HP', 'IBM', 'AMZN', 'MSFT', 'GOOGL', 'INTC', 'CSCO', 'ORCL', 'QCOM']
# example input
# (34 AAPL shares buy at max 780, 24 IN shares sell at min 228) for account Hokie123
# (AAPL shares cancelled, IBM shares cancelled) for account Hokie123
s = raw_input()
# trades = 34 AAPL shares buy a... | [
"hsn1017@vt.edu"
] | hsn1017@vt.edu |
98244b23e0ce113db9acb33b85781abda3504fab | 82115f52db1783a2ce963e2621bf185c61ceb419 | /Teoría/03 Widgets para formularios/3-1 Etiquetas/programa.py | f824e536fbaa1c1de04e3356c2ce610ec1b992ff | [] | no_license | lesclaz/curso-qt-pyside-udemy | ce227df451a7cff40d90543ee6c892ea1a6b131c | 8b9bbf5d45e916f1d7db9411728b2759b30d2fd9 | refs/heads/master | 2023-07-01T18:11:47.959668 | 2021-08-03T09:38:12 | 2021-08-03T09:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from PySide6.QtWidgets import QApplication, QMainWindow, QLabel
from PySide6.QtCore import QSize, Qt
from PySide6.QtGui import QFont, QPixmap
from pathlib import Path
import sys
def absPath(file):
# Devuelve la ruta absoluta a un fichero desde el propio script
return str(Path(__file__).parent.absolute() / fil... | [
"hcostaguzman@gmail.com"
] | hcostaguzman@gmail.com |
80c27b9d221f59ad4887eeb126cb5bc7715df2fd | 0bb0bf1326fb0111816c92193de5bf83201f5895 | /Desafio 2 (Lista telefonica)/Resolução Python/telefonica.py | 8402e49621faa8f1c714a52e6490c6ca9cdb535d | [] | no_license | pipefep/EstruturaDeDados | 3c668d014f7979fae1e4a3720caafbbc24f4ed80 | 4c05263b76d5d6fbbe20d8cf88e9c25107f74e83 | refs/heads/master | 2020-08-02T16:07:55.823833 | 2019-03-05T21:02:59 | 2019-03-05T21:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # Versão: Python 3.6.7
from os import system # Importa da biblioteca OS a função System, para atividades usando o sistema operacional.
vetA = [] # Declarar que existe um vetor/lista em "vetA".
# Função para imprimir uma linha.
def linha():
print("----------------")
# Função para adicionar o número da pessoa.
de... | [
"noreply@github.com"
] | pipefep.noreply@github.com |
0fcc5a13fd81c3f9c2206bd9e4d9545b3032f2f3 | 7954a82026c982aba15c5195317fb49231cc6937 | /code/SSVIUnconstrained.py | 5f23dfa3b6d45d64e1b951977f0ee1677293ac2b | [
"BSD-3-Clause"
] | permissive | mChataign/Beyond-Surrogate-Modeling-Learning-the-Local-Volatility-Via-Shape-Constraints | 81c7f2639e9ac3d57d2c29ba10be0596a6514ce9 | 63304824c5775927b7495383ec2c9cd0277e5845 | refs/heads/Marc/GP | 2023-05-25T04:48:45.665335 | 2021-06-15T10:06:59 | 2021-06-15T10:06:59 | 314,231,951 | 17 | 10 | BSD-3-Clause | 2021-04-14T17:20:15 | 2020-11-19T11:48:47 | Jupyter Notebook | UTF-8 | Python | false | false | 39,035 | py |
import numpy as np
import pandas as pd
import scipy
import matplotlib.pyplot as plt
import scipy.optimize as opt
from sklearn.metrics import mean_squared_error
from datetime import datetime
from scipy.optimize import minimize
from scipy import integrate
import BS
import bootstrapping
import sys, os
import time
imp... | [
"marc.chataign@gmail.com"
] | marc.chataign@gmail.com |
9b73734f9b2847b7b4edc6471bd2b3c3589280cf | 94e210718afb2e9d5b4babc938adf89cd387bae7 | /Una_Quest/users/models.py | 62dc738dd4521ecb83a5907786b0af4d63aa7fc1 | [] | no_license | davidapdf/UnaQuest | 8c1da0a553a580846eaab839dd3d49ae9b3c8f38 | c725caaab5d79499e540d612f500d99bf409005a | refs/heads/master | 2022-11-02T15:06:18.254716 | 2020-06-15T23:46:01 | 2020-06-15T23:46:01 | 263,780,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
from django.forms import CheckboxSelectMultiple
class Unidade(models.Model):
cidade = models.CharField(max_length = 200)
estado = models.CharField(max_length = 2)
descricao = models.TextField()
... | [
"davidalexandre@live.com"
] | davidalexandre@live.com |
3a5e3c2e15f0e9ec3f7c4f139ac435cef942c429 | 84b08a60e49e702e51b8c3bd0c558fbd957e11ae | /LatestAlgorithms/SVM.py | 28692dc75e49da2349af66a00b5e9ad5073e963c | [] | no_license | akhalayly/GoldenBoy | 787732656250bc52ad0076dca35f15abbd2f4f14 | fb88b656525c3bc614a24b982acf4d1ae745aa8b | refs/heads/main | 2023-02-06T02:17:53.197336 | 2020-12-28T20:07:14 | 2020-12-28T20:07:14 | 304,894,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.model_selection import KFold
from sklearn.feature_selection import SelectKBest, c... | [
"noreply@github.com"
] | akhalayly.noreply@github.com |
f4144879abb95c5a24464b291c1a13b6c973d8f5 | 9ca1ed4689a90b880c2ffcf18661bccedc62e8d6 | /BeautifulSoup1.py | c714f658017e46b5fa77706a6ce92e554085bcfe | [] | no_license | Beena1995/hello-world | c7e77a6b1569cbf7988f21f8dd4a4509a080ac60 | 1fd207bc2fb49dd7ae537645cffe17fc6900e41c | refs/heads/master | 2021-05-03T12:15:08.527619 | 2016-10-06T08:17:26 | 2016-10-06T08:17:26 | 70,133,029 | 0 | 0 | null | 2016-10-06T08:14:15 | 2016-10-06T07:39:03 | null | UTF-8 | Python | false | false | 292 | py | import urllib
from BeautifulSoup import*
url=raw_input('Enter url:')
html=urllib.urlopen(url).read()
soup=BeautifulSoup(html)
tags=soup('a')
for tag in tags:
print 'TAG:',tag
print 'URL:',tag.get('href',None)
print 'Content:',tag.contents[0]
print 'Attrs:',tag.attrs | [
"noreply@github.com"
] | Beena1995.noreply@github.com |
b83f94235e23af5608c2cf8417a4d8a871840a23 | ae8e406cd4ece587f124895193661da66ae051d7 | /Bigflow/BranchExp/tasks.py | f8feb188a780afaf447db6e29870528e7ff4c46d | [] | no_license | vigneashvicky/Bigflow | 9dfaa4b94426973ef2f2972e84ed87dfeda93771 | eec202312b482f191dd40111c473e636e0aa6978 | refs/heads/master | 2022-12-12T00:14:04.619978 | 2020-03-17T09:43:10 | 2020-03-17T09:43:10 | 235,542,581 | 0 | 0 | null | 2022-12-08T01:05:14 | 2020-01-22T09:47:31 | HTML | UTF-8 | Python | false | false | 558 | py | from __future__ import absolute_import, unicode_literals
from celery import task
from django.db import connection
import pandas as pd
@task()
def task_number_one():
cursor = connection.cursor()
parameters = ('SUPPLIER_DETAILS',2,1, '')
parameters = ('COLUMN', 'ECF_INSERT', '{}', 'Y',
'{"Entity_Gid": [1]}'... | [
"vigneasraju@gmail.com"
] | vigneasraju@gmail.com |
d3ae04ec689b0df5817ece49cecea5ae6c4698d0 | 54fb38832e2f06a376c02d0fb106b5a9321279c9 | /korwin.py | 201dbde8a11525196493caad24f9bfb329365908 | [
"Unlicense"
] | permissive | sqbi-q/korwin | 6c73cbf5c93fe6a0cdebb68505ebfa3d4e364849 | c3762e1c9210710c59d7d59644bd023ab7ea4856 | refs/heads/master | 2023-01-23T03:40:57.526261 | 2020-12-04T08:38:14 | 2020-12-04T08:38:14 | 261,270,327 | 0 | 0 | Unlicense | 2020-05-04T18:57:21 | 2020-05-04T18:57:20 | null | UTF-8 | Python | false | false | 6,051 | py | from random import choice
parts = [
[
"Proszę zwrócić uwagę, że",
"I tak mam trzy razy mniej czasu, więc prosze pozwolić mi powiedzieć:",
"Państwo się śmieją, ale",
"Ja nie potrzebowałem edukacji seksualnej, żeby wiedzieć, że",
"No niestety:",
"Gdzie leży przyczyna p... | [
"stefankar1000@gmail.com"
] | stefankar1000@gmail.com |
e752a0802891174af75fc03ead6bf8975f0782ba | 19274b29218a3bff5342c725cd667992fb6bb449 | /stage1_classify/classfication.py | 966db8a36f2e554e0684602416064a7e37538a8b | [] | no_license | qvbit/News-Event-Extraction-System | 64dcae715fce5e33503f039734c8c218bce6630e | e592917891bcfb361c367ddad7c13247e95378ef | refs/heads/master | 2020-04-05T20:47:22.779473 | 2019-02-04T14:54:12 | 2019-02-04T14:54:12 | 157,195,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,378 | py | import pandas as pd
import numpy as np
import pickle
import itertools
import functools
import collections
import random
from sklearn.linear_model import LogisticRegression
from sklearn import svm
from sklearn import tree
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import Stratified... | [
"noreply@github.com"
] | qvbit.noreply@github.com |
d8eaaea2b3882116225b2f51d86ed91ade2b2d10 | 3df6fe86c55315e4c29a06c7ce010999ef2bd219 | /my_app/migrations/0005_auto_20200814_1856.py | 8d45533ee18d59287d6c27ddcb3ce598782e00fa | [] | no_license | sjyothip/my_projects | 05ae591717caa95da598f23cfc93868cd380855b | 3755854519221ab08e89e7b0de3cff04ce8bc418 | refs/heads/master | 2022-12-08T09:38:44.878420 | 2020-08-31T11:52:38 | 2020-08-31T11:52:38 | 290,250,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Generated by Django 3.1 on 2020-08-14 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_app', '0004_messages'),
]
operations = [
migrations.AddField(
model_name='messages',
name='profile_pic',
... | [
"jyothis1304@gmail.com"
] | jyothis1304@gmail.com |
7d8b85fbd6ee38f75738a568080c51ef08cbef54 | 2499c41e3c8cee44cdf5fed3ac917b921306c537 | /features/environment.py | d0b7b79184a56b0bab57707c098a15764dfc3126 | [
"BSD-3-Clause"
] | permissive | aduston-snaplogic/nextbus_client | 27fb4f45f5b9ab6b0b8d0af532db192235d17c81 | b9f69e38683d22a832d93bbd98f561a1b7e51358 | refs/heads/master | 2021-09-03T09:14:41.069777 | 2018-01-08T00:47:50 | 2018-01-08T00:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | """
environment.py - Set up the environment for the behave tests.
"""
import nextbus_client
import pickle
def before_all(context):
# Configure the client
context.client = nextbus_client.Client()
context.base_url = context.client.api_url
context.headers = context.client.headers
def before_feature... | [
"adamduston@gmail.com"
] | adamduston@gmail.com |
8e04da130720a7160ddbfe0643e293f23d80cc2b | f158e45c3359882b68b00bdf11b44ed5e2ef509e | /myvenv/bin/markdown_py | 5448d827bfe118ca7bacdac8c5f8d872d1e48159 | [] | no_license | idie11/delevery | 65b7ce7682f0e5e403df244407fdc3ad2d51a588 | 9f0715e53a4d09f02477a5f3629ce9a13d9db86b | refs/heads/master | 2023-06-04T02:41:25.280341 | 2021-06-23T14:39:15 | 2021-06-23T14:39:15 | 379,633,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/home/idie/Desktop/delevery/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"aidaitazabekova@gmail.com"
] | aidaitazabekova@gmail.com | |
24b2aea0aa16cdbdddcd6e00440f47ffd682e8d4 | ddb48f204fefb1886818d8f337e64b608a874f78 | /mymodule.py | 4bb8392762ed4a6703e01012adc7cba9421d76ba | [] | no_license | AlexandrKarpov712/Projects | 71edb63b6a3bafdbf20e4ce274ecbbee89f5f74d | 057c3f78245b3fcf2edb4155067692a8b11b4b49 | refs/heads/main | 2023-03-26T01:49:20.622688 | 2021-03-28T20:06:27 | 2021-03-28T20:06:27 | 345,642,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | """Module for the most frequently used operations in homeworks.
Classes: TreeNode
Functions: text(g), write_to_file(data, filename="./text.txt"),
read_from_file(filename="./text.txt"),
choose_task(step, func1, func2), __init__(self, value),
choose_task_3(step, func1, func2, func3)
"""
def text(g... | [
"noreply@github.com"
] | AlexandrKarpov712.noreply@github.com |
d403e1d92d5fada8b340149b66f4add0b2857bc3 | 3e9830b5db4e2a51885e4481f75f8b367ef90c69 | /app/app/seeder/seed_pasien.py | 772366ed47c3bb30a666208844adfdd70198b406 | [] | no_license | dickymahfudin/sistem-rumah-sakit | 280c2b296440798da85109b57b7033a18e57a1cd | b1ff1c146b666e04258ce7fc34c389b4c261691e | refs/heads/master | 2023-04-05T16:49:08.790493 | 2021-04-22T05:21:24 | 2021-04-22T05:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import random
from sqlalchemy.orm import Session
from .base_seeder import faker
from ..crud.crud_pasien import crud_pasien
from ..schemas.pasien import PasienCreate
def seed_pasien(iter, db):
for i in range(iter):
pasien = PasienCreate(
nama=faker.name(),
alamat=faker.address(),
tanggal_lahir=f... | [
"hadyanadamn@gmail.com"
] | hadyanadamn@gmail.com |
6b671ac29a86fe4af2a6cb41bb64ef17873657cf | c82e0c7ccb30e4f36c58957799e3a771efaff489 | /btre/btre/settings.py | a71715265daa4ef05e5fe3d6ebfebc1bf7ad5098 | [] | no_license | kneeyaa/btre | 36bf54811281d8c1a9918e9f39a44e9096324cb5 | c3973e0c231d0f3d28c00b193e742a82408e0d29 | refs/heads/master | 2022-03-29T11:09:14.263730 | 2019-11-03T07:17:26 | 2019-11-03T07:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | """
Django settings for btre project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
from django.con... | [
"220497+KrNiYa@users.noreply.github.com"
] | 220497+KrNiYa@users.noreply.github.com |
d2a83892c3da43a12e920ca1f2e2c8d6ddbaa060 | 0578860df5538f6e3ab6d65809566fd19012923f | /drf_demo/settings.py | acbb4408afe336945960369b6294efc2e557b23d | [] | no_license | otykhonruk/drf_demo | 735e7686003ed3c8ec95ebec735b350a111beb12 | 8037492519b205b7601d01a9cc2dc319a85cff1e | refs/heads/master | 2022-07-20T15:16:28.178062 | 2016-07-26T13:39:25 | 2016-07-26T13:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for drf_demo project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"a.tihonruk@gmail.com"
] | a.tihonruk@gmail.com |
f204104b60002eee4665f79f8e218ef2c862bc5a | 9cb6c9f95449e6321566d65081d7b83ad1923ed7 | /src/item_recommender.py | 68d9f4b3968e50eeea4336c2300de43009684722 | [] | no_license | yamasjose11/tedtalk-recommendation-system | 8bf866c5cc697c6e8b81572368e1c77afa629524 | 8d37dbbced9987d02c1af3f3403106994608cfa4 | refs/heads/main | 2023-02-24T22:42:02.336433 | 2021-02-02T18:18:19 | 2021-02-02T18:18:19 | 333,611,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | from sklearn.metrics.pairwise import cosine_similarity
import pandas as pd
import numpy as np
class ItemRecommender():
'''
Content based item recommender
'''
def __init__(self, similarity_measure=None):
self.similarity_matrix = None
self.item_names = None
if similarity_measure ... | [
"yamasjose11@gmail.com"
] | yamasjose11@gmail.com |
8b5ba43ea0cb1a80285b264a1c64c0896cc7703c | 6f7e55851425097567637e0667d8407a6c7c6666 | /tweets/migrations/0009_auto_20210602_2211.py | 128ac2f934c458857c1952004d640810e5b88369 | [] | no_license | sumit9mishra/tweeter-clone | 00733e7aa4c92c13b55abd79bb0703bbe7570428 | 0b64e50907eb32c07dc0099b9144514af18a13ef | refs/heads/main | 2023-05-07T08:00:22.068384 | 2021-06-02T23:42:20 | 2021-06-02T23:42:20 | 372,466,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Generated by Django 3.0 on 2021-06-02 16:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tweets', '0008_auto_20210602_2159'),
]
operations = [
migrations.AlterField(
model_name='tweet',
... | [
"sumitmishrab@gmail.com"
] | sumitmishrab@gmail.com |
f0170ac151345298ff4e2d5ba825617e0b46da30 | 597c0143c3ff325f2bd13e915623f6b5b29dcec9 | /p35.py | fdb51ee0232a5b205bdcf312e25061b3b43391d0 | [] | no_license | jpgerek/projecteuler | 77949426d629c0be629857958c28f451961d1608 | 79e35a8e6149946769149714607556238bfe12ed | refs/heads/master | 2016-09-05T14:09:45.821755 | 2013-02-01T19:34:41 | 2013-02-01T19:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | import math
import itertools
from euler import is_prime, gen_primes
def is_circular_prime(prime):
digits = [c for c in str(prime)]
for x in xrange(0,len(digits)):
digits.append(digits.pop(0))
rotated_num = int(''.join(digits))
if not is_prime(rotated_num):
return False
return True
print len([prime for pr... | [
"juanpablo@guereca.com"
] | juanpablo@guereca.com |
ff6e723cffc4626cbc971d1900ff2668dc155b64 | 5ea8955f860a3a664a8c778e7cf41f024949b73d | /blog/migrations/0001_initial.py | fe1ace398611955eb95b0e25c016002fb3ec2724 | [] | no_license | deolands/my-first-blog | 3a881c4a1051442cf424a9724d728fdc3528d8e0 | b14051d8ca336d813d68cc92207dc19d3c703771 | refs/heads/master | 2020-06-19T11:58:55.592977 | 2016-11-27T20:58:51 | 2016-11-27T20:58:51 | 74,906,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-27 18:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"deolands@gmail.com"
] | deolands@gmail.com |
51655665cb92a20e135645e272c7062cdcbd2bed | cf2fa0441e83e246c406afacd153b060069da757 | /setup.py | 842336cf8a796d8bd5d3270b0496cc9c20739777 | [] | no_license | NSO-developer/ncs_pycli | c41b7d586bc4ba5fd24f9cdfb95dd9324be9360e | 1a2415136c3f2d2495d7f28b06a2a36831592a67 | refs/heads/master | 2022-09-04T06:12:02.889927 | 2022-08-08T05:31:13 | 2022-08-08T05:31:13 | 137,266,751 | 21 | 6 | null | 2022-08-08T05:31:14 | 2018-06-13T20:25:20 | Python | UTF-8 | Python | false | false | 1,662 | py | from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
reqs = []
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, '.version'), encoding='utf-8') as f:
version = f.read... | [
"kirankotari@live.com"
] | kirankotari@live.com |
87029e6698765d7c798ef1ff788ce84fbba0d878 | e120a272e3a94170f013af5a8f763519ccedc725 | /backend/api/tests/tests_user.py | 4afc7b7014801b58142611a9c71b4f85eeac039a | [
"MIT"
] | permissive | ardilom/project_template | e318248fc4182fbb32819f255543c65e30bc4103 | e42fbf73da7037074f160a31201cae70d7a027dc | refs/heads/master | 2022-12-11T13:29:49.072417 | 2020-09-13T12:31:08 | 2020-09-13T12:31:08 | 295,138,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # django
from django.urls import reverse
# models
from backend.api.models import User
# django rest
from rest_framework.test import APITestCase
class OKUserCreationTestCase(APITestCase):
def setUp(self):
self.name = "Test"
self.last_name = "User"
self.email = "testuser@gmail.com"
... | [
"fardila120@gmail.com"
] | fardila120@gmail.com |
c2f4971c5d784ab25b2d6261a4fdee728004dbae | 92a69414a998830520d8b3de2eb708f61e472249 | /venv/Scripts/pip-script.py | d6835ac03f979f48e608277442cd85665aa3fe10 | [] | no_license | DiegoMeruoca/Python5-Funcoes | cb8e78e8312f0c0d9dc0534d1cdfe5cf50c6bf82 | b5f3def59daa2d5bbf4139eb2670be9214af6409 | refs/heads/master | 2021-01-26T10:55:07.963072 | 2020-02-27T02:30:48 | 2020-02-27T02:30:48 | 243,412,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!D:\ETEC\DS1\Exemplos\Funcoes\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"diegomeruoca@gmail.com"
] | diegomeruoca@gmail.com |
9bc0203a5ad7b9018aa6800ff71449d5b924bcca | d34f3c73c4ed804f48fbed476f22013e5d951daa | /web/django_poll/polls/urls.py | ad26bb531c0dfb24ffe05ff50e2e6a77acc9fa63 | [] | no_license | brxue/sandbox | 7ad7ea76130f0edc2ff9fc62c192131fce1242d1 | a9cc9edd9e2233b1b90c822edd43c3c480385c58 | refs/heads/master | 2021-06-18T17:14:18.698560 | 2017-06-19T15:25:53 | 2017-06-19T15:25:53 | 13,215,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.conf.urls import patterns, url
from polls import views
urlpatterns = patterns('',
# example: /polls/
url(r'^$', views.index, name='index'),
# example: /polls/5/
url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),
# example: /polls/5/results/
url(r'^(?P<question_id>\d+)/res... | [
"brxue@outlook.com"
] | brxue@outlook.com |
bf77986a8e164ee56fb39537757225beeb6c2aff | ad8de5acb466940c53c92fdd08f3003581e76f56 | /BookStore/admin/models.py | 9cb346042f295eae21bfc9c2ed130bc7a37d6f1b | [
"Apache-2.0"
] | permissive | peter-dinh/Bookstore | 0343e3be9aff079589c728f6e97fa53e27b16a7c | b46b2d6a74f7182128f37ad86afc594ef888a153 | refs/heads/master | 2022-12-11T16:03:47.745078 | 2019-01-14T18:19:36 | 2019-01-14T18:19:36 | 162,212,257 | 0 | 0 | Apache-2.0 | 2022-12-08T01:30:12 | 2018-12-18T01:26:36 | JavaScript | UTF-8 | Python | false | false | 313 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Account(User):
display_name = models.CharField(max_length=200)
phone = models.CharField(max_length=10)
address = models.CharField(max_length=200)
is_admin = models.BooleanField(default=False) | [
"dinhtruong018@gmail.com"
] | dinhtruong018@gmail.com |
53b3420227436ab63200c35eefa33a3bff01cdd4 | ab933602ef9f962e7626edc2b4a600be4bc15a31 | /test/test.py | dff54603e85627ff201e11d4de530ded9236d0d6 | [] | no_license | ksahlin/scaffolder | 0f0d2c00214c103937b8e8d2e44f3fa156caa2b5 | cd4f12aa974e352359a8be8b631c83a5b1a358f7 | refs/heads/master | 2020-03-30T10:31:08.149995 | 2014-01-05T20:09:27 | 2014-01-05T20:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py | from besst.sequence import Scaffold
from besst.sequence import SubSequence as ss
from besst.sequence import Contig
from besst import score
from besst import interval
from besst.graph import SequenceGraph as g
from besst.graph import LinearPath
from besst.util import parse_input
# we are reading lines from a file with ... | [
"kr_sahlin@hotmail.com"
] | kr_sahlin@hotmail.com |
beed92594803d776a2364c3b3f53324fd5b2ace0 | 2d6940c2560d89f2fc9bf2015c502ad0f1946824 | /Class_Python.py | 5be935c66354d4f43af8c77ac38c4d164dc59259 | [] | no_license | 101guptaji/Python-programmes | 40b12de60d75f31254ec9a52580142a17ea3f214 | 81a5d8ea8ce498e4e1f2884818a0e39762832fa2 | refs/heads/main | 2023-04-02T06:42:39.177640 | 2021-03-23T18:01:02 | 2021-03-23T18:01:02 | 350,808,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | class Apple:
def __init__(self, color, flavor):
self.color = color
self.flavor = flavor
def __str__(self):
return "This apple is {} and its flavor is {}".format(self.color, self.flavor)
myapple=Apple("red", "sweet")
myapple.color="blue"
print(myapple) | [
"noreply@github.com"
] | 101guptaji.noreply@github.com |
e6ae49348338fd374b8ee8d340fdec8e4ded1ca5 | 76655119513727111fa16890640a46ec143f3290 | /Lab-4/lab4.py | 58fcd8952c64803676011d63ab109c2567193084 | [] | no_license | HovishBalgobin/SYSC3010_Hovish_Balgobin | 6daac4edc0d291fb20fb5d65af8917302c417282 | 4bb2305fdbaebb59b3a498082861bac0d0bda757 | refs/heads/master | 2022-12-26T21:02:48.841069 | 2020-10-09T19:08:05 | 2020-10-09T19:08:05 | 295,850,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from sense_hat import SenseHat
from time import sleep
counter = 0
sense = SenseHat()
## creating a variable to make use of the SenseHat in-built functions
sense.clear()
## clearing the display
purple = (148,0,211)
##creating purple using the RGB values
def show_H():
sense.show_letter("H",back_colour= purple)
#... | [
"hovishbalgobin@cmail.carleton.ca"
] | hovishbalgobin@cmail.carleton.ca |
7421d257613858f51cd4d9f3382df003b0be3f51 | e7ea4919d8663b0c69c57106be2d1e2c0d1aecb6 | /greedy_20.py | 5e7732f22d3a30b7451c097dd5b3689c541cd0a3 | [] | no_license | johnrso/new_170_proj | 74ad6a0b6be53583e1b284bed57365ecc6798483 | d73676947e8059c9f6d5129e474f698b8f21ced2 | refs/heads/main | 2023-01-22T07:05:10.798575 | 2020-12-07T00:20:11 | 2020-12-07T00:20:11 | 319,007,434 | 0 | 1 | null | 2020-12-06T11:11:49 | 2020-12-06T10:35:42 | Python | UTF-8 | Python | false | false | 3,800 | py | import sys
import os
import getopt
import glob
import math
import timeit
import random
import multiprocessing as mp
from utils import *
from parse import *
from os.path import *
ITERATIONS = 10 ** 5
def greedy_solve_20(G, s):
curr = {}
rooms = {}
best_happiness = 0
for i in range(20):
curr... | [
""
] | |
a74af5013611c1d1945d2e4250a4c532a725e0bd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/kawasaki/solve.py | 13028d9808e7f822dbd94054186f11d1384f2212 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | T = int(raw_input())
for test_index in xrange(T):
N = int(raw_input())
m = map(int, raw_input().split())
y = 0
for i in xrange(N - 1):
y += max(m[i] - m[i + 1], 0)
d = max(max(m[i] - m[i + 1], 0) for i in xrange(N - 1))
z = 0
for i in xrange(N - 1):
z += min(d, m[i])
pr... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2e730b1cf94aef703f29d97960597a7988937916 | 110287a9411047697fdb1371a7034f8781363562 | /f2c_file_read_write.py | a392fc974d2deb44fd6599367d9e620dfe4290c3 | [] | no_license | chipperrip/IN1900 | d791c04f94607cedfe5a4ae5fb34b83475cb73cf | 76603e6a6cbf1022913e435a217a45032c02b6fc | refs/heads/master | 2020-03-29T09:30:57.714458 | 2020-02-03T17:23:30 | 2020-02-03T17:23:30 | 149,761,841 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | infile = open('Fdeg.dat', 'r')
for i in range (3):
infile.readline()
Fdegrees = []
Cdegrees = []
for line in infile:
F = line.split()[-1]
F = float(F)
C = (F-32)*5.0/9
Fdegrees.append(F)
Cdegrees.append(C)
print (Fdegrees)
print (Cdegrees)
infile.close()
outfile = open('F2C.txt', 'w')
fo... | [
"36035495+chipperrip@users.noreply.github.com"
] | 36035495+chipperrip@users.noreply.github.com |
73cf7cad52d0463b57d1ecf16f881b12da289fbd | 102f42fc41326e89ff2cfdfb227d57e122c78800 | /prime.py | 04aef932140d124e6731a95f3f03b0590956fdd7 | [] | no_license | yamatharman/guvi | ca741917385cc6c4ef8631308397f8ca5865060f | 3351ab1af30a62c052ba9a385679f0b6b33cf47b | refs/heads/master | 2020-03-27T17:42:43.390166 | 2019-02-20T05:48:28 | 2019-02-20T05:48:28 | 146,868,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #prime.py
num = int(input())
if num > 1:
for i in range(2,num):
if (num % i) == 0:
print("no")
break
else:
print("yes")
else:
print("Invalid")
| [
"noreply@github.com"
] | yamatharman.noreply@github.com |
be25ea7ab890f57eea2e7098823dc03d47143732 | 473ecdb25e6b877cacc66028b9834f1cef7b4ffa | /C_extractor.py | 6b3ee513f489ac53d579239b23812f6ffefc5e34 | [] | no_license | Charlie-Toro/automate-Python | 0affa1b173eb0025572c60bb2bd1be97b6267c4d | 373621b21ac16ab88a4fd149e46789527c54613c | refs/heads/master | 2021-01-23T10:44:32.788218 | 2017-06-05T01:40:37 | 2017-06-05T01:40:37 | 93,088,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # Contact Extractor
# Caleb Bell
# Extracts phone number and email address from text
import re,pyperclip
class Extractor:
"""uses regular expressions to extract data from clipboard"""
def __init__(self):
def email_extract(text):
phone_regex = re.compile(r'\d{3}-\d{3}-\d{4}')
| [
"charles_toro@mail.com"
] | charles_toro@mail.com |
de883cc1f5cdb1aea8cfe37ce4a51db19552238b | 0937aff71737318be1535917deed0b87987c40f7 | /training_model.py | db69e61b187f571bf71b7b6e659790a3dd2e89f2 | [] | no_license | smemadi/aws_test | 6d6d90fa7f7c06bfafe68495b7d44a7e18e1db08 | 248818b0ad89217d29a3ecbb66d40c2e07bab15f | refs/heads/master | 2023-08-02T16:43:58.945227 | 2021-09-11T14:12:39 | 2021-09-11T14:12:39 | 405,395,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | import pandas as pd
import numpy as np
df=pd.read_csv("train.csv")
df_test=pd.read_csv("test.csv")
def get_title(name):
if "." in name:
return name.split(",")[1].split(".")[0].strip()
else:
return "No title"
titles=set([x for x in df.Name.map(lambda x: get_title(x))])
def shorter_titles(x):
... | [
"sid.emadi@gmail.com"
] | sid.emadi@gmail.com |
26604b1e653b586dcc138356474bf5459ea54e2e | 604fdb2c4fa24237d206e7c8835bb2c21b0a2fb7 | /ari/v1/client.py | 0f438dfd979c9fed793cc6fef8f04f0b37e2bc6d | [
"Apache-2.0"
] | permissive | SibghatullahSheikh/python-ari | d8d87d213c1a52b0ed46a8ea50362b93c772325b | f4a6f870513bc74bf96606168e0d2173ed2f2ebb | refs/heads/master | 2021-01-22T00:13:37.707863 | 2014-01-29T21:06:52 | 2014-01-29T21:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # -*- coding: utf-8 -*-
# Copyright 2012 OpenStack LLC.
# Copyright (c) 2013 PolyBeacon, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | [
"paul.belanger@polybeacon.com"
] | paul.belanger@polybeacon.com |
7cb9bdbdeb9ae40bcb7cd2e41b2b4ef986fe95bb | 2cfe7df2684bae48175bc5fcdf9a56bc0f07f27f | /dm/tags/models.py | 89033b9a2f01152d593e75a1f0ea9ee606e44414 | [] | no_license | naveen0492/digital | b1bedc6fb99c54eddd681bc9a24dc134374310ad | 5eefb59314de3b8d6f5d5ea791d10826170e8f87 | refs/heads/master | 2021-01-01T07:40:38.746977 | 2017-08-07T20:48:53 | 2017-08-07T20:48:53 | 97,566,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import pre_save, post_save
from django.core.urlresolvers import reverse
from django.utils.text import slugify
# Create your models here.
from products.models import Product
class TagQuerySet(mo... | [
"naveen0492"
] | naveen0492 |
68416e62dea54f46e7ba4cf6455434a962307eaf | a079a2b493095b354d3f5ec09a9fccddd4de0a6a | /youtubetracker/management/commands/populate_viewsapi.py | b222d8b0289179e5433387a662063abd4caf6022 | [] | no_license | benjo430/youtube-tracker | 96d5f2798f93214abd9d61e1b5a6925a3c4c5186 | 9392df7406b55cb72fad7a7eedd476c4ef0ec761 | refs/heads/master | 2021-01-19T08:46:16.332966 | 2017-04-11T03:34:35 | 2017-04-11T03:34:35 | 87,673,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | from django.core.management.base import BaseCommand
from youtubetracker.models import Video, Viewcount
import requests
from lxml import html
import time
import datetime
import urlparse
import json
from parse import *
from datetime import timedelta
class Command(BaseCommand):
# This class allows us to run database pop... | [
"benjo430@gmail.com"
] | benjo430@gmail.com |
5d64b3ec43f8f8706fbb5bc2f4c1dea3573739ee | d6d87140d929262b5228659f89a69571c8669ec1 | /airbyte-connector-builder-server/connector_builder/generated/models/stream_slicer.py | 56c37db2c82d4d65076de8f3b5e19e85d772378d | [
"MIT",
"Elastic-2.0"
] | permissive | gasparakos/airbyte | b2bb2246ec6a10e1f86293da9d86c61fc4a4ac65 | 17c77fc819ef3732fb1b20fa4c1932be258f0ee9 | refs/heads/master | 2023-02-22T20:42:45.400851 | 2023-02-09T07:43:24 | 2023-02-09T07:43:24 | 303,604,219 | 0 | 0 | MIT | 2020-10-13T06:18:04 | 2020-10-13T06:06:17 | null | UTF-8 | Python | false | false | 527 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, Field, validator # noqa: F401
class StreamSlicer(BaseModel):
"""NOTE: This c... | [
"noreply@github.com"
] | gasparakos.noreply@github.com |
a304c942ed7c7626de03bb882fa1f3874e28c124 | c9aa803d2aac3f68f8b7b43e1cb4b7eeeb808292 | /framework/interface_expert.py | bb183a46ad71a0111191c8f58940e5f44731cd7b | [] | no_license | JannisWolf/deep_q_learning_trader | 6bc1e60aba61a82005025b0827746551ba1816ce | 5daa9b7c28b884d261674a499455ea2face0776a | refs/heads/master | 2022-11-25T07:59:41.659295 | 2020-05-17T12:15:39 | 2020-05-17T12:15:39 | 199,337,826 | 5 | 2 | null | 2022-11-21T21:31:56 | 2019-07-28T21:14:07 | Python | UTF-8 | Python | false | false | 594 | py | from abc import ABC, abstractmethod
from framework.stock_data import StockData
from framework.vote import Vote
class IExpert(ABC):
"""
Expert interface (abstract base class), that forces experts to have a vote method
"""
@abstractmethod
def vote(self, data: StockData) -> Vote:
... | [
"jannis.wolf@fau.de"
] | jannis.wolf@fau.de |
635432b0aa0919407d0eb764a68554525275005c | fb1e23ceaccb3d4b5b648bdc8b6996ad17e46b38 | /murr/settings.py | af9ec47dc3d9835d5ca1ff3537ba312861af195f | [] | no_license | 100ika/murr | 91e7fb6c39ab505a5f883995db0195ac34f1b047 | cc60b95fdac9416a2ce3d00ec2589ae1a99444d9 | refs/heads/master | 2021-09-23T12:23:11.952888 | 2020-02-04T17:41:48 | 2020-02-04T17:41:48 | 238,261,720 | 0 | 0 | null | 2021-09-22T18:30:27 | 2020-02-04T17:15:42 | Python | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for murr project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"59304702+100ika@users.noreply.github.com"
] | 59304702+100ika@users.noreply.github.com |
4263c48ffd860e12a9590234e84baa57b8698a54 | 1d49dd44b5cadc173bacbfbbbfc8facd5665066f | /utils/preprocessing.py | b03f803fee123f87d685d033c90c89344bf5c714 | [] | no_license | anushalihala/text_analytics_propaganda_detection | eee34d23589c4fdb2580ddfabb9b54c828137424 | bf6d64ed84d8ab79e5509c63bec7844b395b4436 | refs/heads/master | 2021-05-23T08:53:03.200357 | 2020-04-12T13:24:43 | 2020-04-12T13:24:43 | 253,207,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import numpy as np
from nltk.tokenize import sent_tokenize
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
def map_target(df, col_name='target'):
return df[col_name].map({'propaganda':1,'non-propaganda':0})
def tokenize_text(text, word_to_idx):
text = text.lower()
tokens = word_tokenize... | [
"35848893+anushalihala@users.noreply.github.com"
] | 35848893+anushalihala@users.noreply.github.com |
deda890d588f085cc6b869fe7ddee7392ab6638d | 6dd524bf9d7879db62f86a62cceff3c5525fb2df | /setup.py | 3690959e6d5cf0d67db6cfa9e455099ee10f14b4 | [] | no_license | ecbaldwin/git-replay | 77a50ebc435f1d77f5f2f40bab8fb60aafc35236 | dbc6da675542c77ff6fd95d073bb637677987bb1 | refs/heads/master | 2020-04-03T23:52:50.085883 | 2018-11-01T02:27:10 | 2018-11-01T02:27:10 | 155,632,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/env python
# https://setuptools.readthedocs.io/en/latest/setuptools.html
from setuptools import find_packages
from setuptools import setup
setup(name="git-replay",
version="0.1",
description="Prototype utility to track a change in git",
author="Carl Baldwin",
author_email="carl@e... | [
"carl@ecbaldwin.net"
] | carl@ecbaldwin.net |
cc1215a5f8506aa20763f0de669445ebd84802b5 | d76b52cdddad23c0c5746a71e16978350c84d359 | /src/model/inception_v4.py | 7cdf540d3a1903548d01bb3c53fc22b1b1846f77 | [] | no_license | Mahedi-61/kaggle_dogs_vs_cats | af24454c9bcf3ae21657a4fa2c98394791fd3878 | 2604d5ffef0f347c55030c741fbd99789b435b1e | refs/heads/master | 2021-09-07T06:07:00.960617 | 2018-02-18T13:45:33 | 2018-02-18T13:45:33 | 118,255,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | '''
Copyright 2017 TensorFlow Authors and Kent Sommer
'''
#########################################################################################
# Implements the Inception Network v4 (http://arxiv.org/pdf/1602.07261v1.pdf) in Keras. #
#############################################################################... | [
"mahedi0803061@gmail.com"
] | mahedi0803061@gmail.com |
04a004618f6c38d9bfac1befca74c661217cb50f | d300d3953fb55eb271c8afcf5cf03b2635ca4e4c | /D A/python/关联apriori.py | 6e25145eb90fe4fa307a0e7441fb41434e8005b2 | [] | no_license | JamesBrowns/data-analysis | fc1bc61d797f0d7e985280b62e617c86322a3ea3 | 119adb5570ab68560744dd516577b07f947ca1aa | refs/heads/master | 2020-03-18T04:29:51.185087 | 2018-03-08T07:18:12 | 2018-03-08T07:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | #coding=utf-8
import pandas as pd
from sklearn.cluster import KMeans
'''
#聚类离散化
datafile='chapter8/demo/data/data.xls'
outputfile='chapter8/out/processed_data.xls'
typelabel ={u'肝气郁结证型系数':'A', u'热毒蕴结证型系数':'B', u'冲任失调证型系数':'C', u'气血两虚证型系数':'D', u'脾胃虚弱证型系数':'E', u'肝肾阴虚证型系数':'F'}
k=4
#读取数据并进行聚类分析
data=pd.rea... | [
"noreply@github.com"
] | JamesBrowns.noreply@github.com |
e188fe3e8363af471d648137e1b454dd8bea97e5 | bc9ecde6f62bf8b8f1217737c0b14d87c5e52ce2 | /ANN.py | f906cf0326f626712e9759bf56153486158d2673 | [] | no_license | Akshusharma7/Air_Quality_prediction | b2806c366b0e69a111f51858e00eac4e13f04fd1 | e90160446a4c2e1412679f46706d68ae814d7ae5 | refs/heads/master | 2020-09-23T14:29:35.506005 | 2020-02-23T12:42:35 | 2020-02-23T12:42:35 | 225,521,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | #Importing library
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LeakyReLU,PReLU,ELU
from keras.layers import Dropout
NN_model = Sequential()
#The Input Layer:
NN_model.add(Dense(128,kernal_initializer='normal',input_dim= X_shape[1]))
#The Hidden Layers:
NN... | [
"noreply@github.com"
] | Akshusharma7.noreply@github.com |
e49a598e24fcb2f3fe8cef6e157406fdbc6f48e5 | b87cb4f34de3e02232b2a55d655f9942a7b545c7 | /get_alerts_config.py | a83f4c76a76e52df9afb6603e3fe1c856fb90615 | [] | no_license | flowness/python | 9aa787f4e17b2d32288209a8e883242a91e310ad | 3c1c6a08daecdfcf828c4b6df9569ec51ac289ec | refs/heads/master | 2020-03-18T06:20:45.459224 | 2018-06-11T16:35:26 | 2018-06-11T16:35:26 | 134,390,320 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from __future__ import print_function
import json
import boto3
import get_alerts_utils
dynamo = boto3.client('dynamodb')
def respond(err, res=None):
print ("res"+ str(res))
print ("json res"+ json.dumps(res))
return {
'statusCode': '400' if err else '200',
'body': err.message if err else j... | [
"noreply@github.com"
] | flowness.noreply@github.com |
31c62fc913b614a426a1d11bfdb7c02603bd6e2b | 6096f62297b072c566a6572ac460eb75c4e439f3 | /人工神经网络实现/opencv预处理.py | fe350e967ffe833fedcbaa55a2d309d7a41056a6 | [] | no_license | kenan666/learngit | 7397810dc76b5fa5ec9d24ae060a7f8528f687f7 | e8da383991c21ae0e1ec28510d04f0cc76f1c729 | refs/heads/master | 2020-04-07T08:07:23.430761 | 2019-01-06T09:04:40 | 2019-01-06T09:04:40 | 158,199,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # 步骤 -》 load xml 文件 -》 load 图片 -》灰度处理 -》 检测 -> 遍历并标注
import cv2
import numpy as np
# load xml file
face_xml = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_xml = cv2.CascadeClassifier('haarcascade_eye.xml')
# load jpg file
img = cv2.imread('face.jpg')
cv2.imshow('src',img)
#... | [
"1746740633@qq.com"
] | 1746740633@qq.com |
e5d021f764bf2a500658c2a962784f56ffc0f864 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pod100_sa/pareto_arch2/pareto_ff/pareto8.py | c934f4633c223ab3a0093473ad66da38262a6453 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch2_decomposition_new import Arch2_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
0332f7b4ea3e1b6e128be195810588f7d85744a6 | e2affa48dd79a57b06e6ef14900e4b527597fa25 | /src/delegation_module_tests/goal_wrappers_unit_test.py | 89d8966d91b834218b7e7d58c82018f45f9cba7d | [] | no_license | ros-hybrid-behaviour-planner/delegation_module | 0119983dc36f0d1ed81b362b79606695a081f99c | 2b88fef67dacf2b46bc443ce8e66cdaec01e3e2c | refs/heads/master | 2020-07-01T01:51:09.973767 | 2019-08-25T21:34:32 | 2019-08-25T21:34:32 | 201,012,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | """
Unit tests for the GoalWrapper
@author: Mengers
"""
import unittest
from delegation_components.goal_wrappers import GoalWrapperBase
class GoalWrapper(GoalWrapperBase):
"""
Version of the GoalWrapper without abstract methods
"""
def get_goal_representation(self):
return
def send_goa... | [
"v.mengers@campus.tu-berlin.de"
] | v.mengers@campus.tu-berlin.de |
469f0de51f71a670c2c97c116840ceeee506d79d | 896f619c7a0ec175dc982c6741f3f5339972170f | /SuningPhones/SNPhones/settings.py | 63c7930b1467b33a3fe662ee2e3c76f4ad7e2227 | [] | no_license | guowee/Spiders | f80c360e1a31a5fad99875b4114f913b26fa4c95 | 6a0eca5aae8bb967e3ae2f91184884411328960c | refs/heads/master | 2021-05-31T03:03:47.003915 | 2016-02-24T08:09:49 | 2016-02-24T08:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | # -*- coding: utf-8 -*-
# Scrapy settings for SNPhones project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | [
"guowei@hipad.com"
] | guowei@hipad.com |
b0af8012a757037991610dc7af5768f0004a892a | d40aa60243a9c378adf7fee3e4a48639ac8d293c | /Session2/homework2/turtle2.py | 00df8f2bb6ee2130b3cab15669efea67221049b4 | [] | no_license | peekachoo/dangthuhuyen-fundamental-c4e25 | 0bc0a83b515518d1a50bf2bbf67d628c1eeae990 | 372b17e65fc19d1c80da85e8ca94c0579904c0ae | refs/heads/master | 2020-04-13T09:10:06.250844 | 2019-01-04T17:01:20 | 2019-01-04T17:01:20 | 163,103,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from turtle import *
pencolor('red')
for i in range(4):
left(90)
forward(100)
for i in range(5):
left(60)
forward(100)
pencolor('blue')
left(120)
forward(100)
right(120)
forward(100)
left(132)
for i in range(4):
forward(100)
left(72)
mainloop() | [
"dhuyen135@gmail.com"
] | dhuyen135@gmail.com |
6b97a43edfe028b659923528eaadd406c208290f | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/lldb/test/API/functionalities/completion/TestCompletion.py | 11f0e387245e0fc659032f8b1323c5e4f7f230db | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | Python | false | false | 33,655 | py | """
Test the lldb command line completion mechanism.
"""
import os
from multiprocessing import Process
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbplatform
from lldbsuite.test import lldbutil
class CommandLineCompletionTestCase(TestBase):... | [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
7912f7822fc55994073ac442f700ada40f6fe975 | 0cdd98e4ca426b38797781b37cee4cf059cd0500 | /heapqo.py | 2c700b2871ebc515540a4977e4746a18d676e575 | [] | no_license | SeanTKeegan/DeepCompression | 0c205ec45d6f7f3daf6730360e8e47c48a93aa33 | d0f9aa6c7d5173f21ae4dd93d0b772aaa6eb2c27 | refs/heads/master | 2020-04-09T09:02:55.374889 | 2019-05-22T08:29:25 | 2019-05-22T08:29:25 | 160,218,908 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from __future__ import print_function, absolute_import
import functools
import heapq
__all__ = ["Heap"]
def _with_docstring(source):
@functools.wraps(source)
def _with_docstring_wrap(target):
target.__doc__ = source.__doc__
return target
return _with_docstring_wrap
clas... | [
"noreply@github.com"
] | SeanTKeegan.noreply@github.com |
173430881189eee39a6784e04ac5bea75aad27ec | 683bf84a00834a946416c96a0c311f6c8a56825a | /4.7_working_with_files.py | 9da5d0da773269ceb98f36ea7e6246a1f0664f2b | [] | no_license | ravinder79/python-exercises | 39404cbd3cf1259d13cd51afa4dd92a98afdbd19 | 0db0499486f393b4957b72114aa6fc572043e55e | refs/heads/master | 2021-01-06T18:04:02.977079 | 2020-11-03T02:30:12 | 2020-11-03T02:30:12 | 241,430,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | #Print out every line in the file.
#Print out every line in the file, but add a line numbers
with open('4.6_import_exercises.py', 'r') as f:
data = f.readlines()
for i, line in enumerate(data):
print(i+1, line)
#Print out every line in the file, but add a line numbers
#count = 0
# with open('4.... | [
"ravinder79@gmail.com"
] | ravinder79@gmail.com |
dd2e5c7bb3b8cf73d47ad7e62b333762de574f25 | 7a7b8dc77ce5f1a59270fb6d262e354f998175f5 | /old_contrib/v2/my_models.py | 29561edb0331873edf23b6889734b36d63eb8bb1 | [] | no_license | ismail0T/CE7454_project | 2b8f686f4e631293d0206b4edd62cadbd2d676b7 | d4c247d06633dcbd95c99fd00a83693103636a22 | refs/heads/master | 2020-08-01T22:40:29.072696 | 2019-11-17T03:53:37 | 2019-11-17T03:53:37 | 211,141,219 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32,052 | py | import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from tcn import TemporalConvNet
class ConvSimple(nn.Module):
def __init__(self):
super(ConvSimple, self).__init__()
self.n_classes = 5
self.conv1 = nn.Conv1d(1, 32, kernel_size=10, padding=1, stride=3)
... | [
"ict.lotfi@gmail.com"
] | ict.lotfi@gmail.com |
d6d0d58f05ad22c9474ef9804ec088549a68f841 | 5b6b2018ab45cc4710cc5146040bb917fbce985f | /200_longest-palindromic-substring/longest-palindromic-substring.py | 60710ba54ef2ad0d3d20d4f30fd1db4aec65a148 | [] | no_license | ultimate010/codes_and_notes | 6d7c7d42dcfd84354e6fcb5a2c65c6029353a328 | 30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c | refs/heads/master | 2021-01-11T06:56:11.401869 | 2016-10-30T13:46:39 | 2016-10-30T13:46:39 | 72,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # coding:utf-8
'''
@Copyright:LintCode
@Author: ultimate010
@Problem: http://www.lintcode.com/problem/longest-palindromic-substring
@Language: Python
@Datetime: 16-06-28 14:08
'''
class Solution:
# @param {string} s input string
# @return {string} the longest palindromic substring
def longestPalindro... | [
"ultimate010@gmail.com"
] | ultimate010@gmail.com |
0df2bc1b85cc7cc16ad4f5c3476a7bcbe79fa94c | d50a7ffef5fde766e6d97b9b1f8cc49ad2b54630 | /latplan/puzzles/model/hanoi.py | 0630f6eeb9128a8caaac80ab6272c3defe37f66d | [] | no_license | pucrs-automated-planning/latplan | 3c31527bacd49cbe4501a9a13be8d02e3547747b | fadeaee0a49da92263dd72fb171b7f114b1cffd1 | refs/heads/master | 2021-07-15T19:16:44.571705 | 2019-01-24T17:38:00 | 2019-01-24T17:38:00 | 111,113,712 | 3 | 2 | null | 2018-09-10T17:20:09 | 2017-11-17T14:39:13 | Python | UTF-8 | Python | false | false | 1,771 | py | #!/usr/bin/env python3
import numpy as np
# config encoding:
# A config is a sequence of x-positions (towers)
# [0,2,1,2,1,0]
# since there is an implicit order that is enforced,
# the assignments of each disk to some tower defines a unique, valid state
# [0,2,1,2,1,0] == [[05][24][13]]
# random config is available ... | [
"leonardo@lsa.pucrs.br"
] | leonardo@lsa.pucrs.br |
60c88d77b0d2bfbd373891e2dbb359a5c6e1d25c | 95c1d95350a9c2741b99ff8ac2e0bdfcbe638c6d | /leads/migrations/0008_contactus.py | fc677ccd8c95a5796d0104803901dfe083bb884a | [] | no_license | jeevanc161/leadapp | 67e0aa4e371878296a96447556294d04e1c5c4c0 | 8f801bdc02cc9a5ac136936b098ab747ae026173 | refs/heads/master | 2023-06-16T07:36:34.113816 | 2021-07-12T06:06:24 | 2021-07-12T06:06:24 | 380,223,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 3.1.2 on 2021-07-11 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0007_auto_20210615_1002'),
]
operations = [
migrations.CreateModel(
name='Contactus',
fields=[
... | [
"jeevanc162@gmail.com"
] | jeevanc162@gmail.com |
3fa5ddad1d1612a8b0d4168c59f4f0549f95f6ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02937/s033330652.py | 6b68eb0299616b86752097386250b1b8f9320039 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import bisect
s = input()
t = input()
n = len(s)
m = len(t)
indices = [[] for _ in range(26)]
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i)
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i + n)
ans = 0
p = 0
for i in range(m):
c = ord(t[i]) - ord('a')
if len(indices[c]) == 0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5913393d13501aaea1b1b337a3fd465a3da7f4a5 | 9fbc93493617fb4d5b1c18ee3771095928ac917a | /association_model_and_GAN/evaluate_cross_model.py | f1b2d49bdf65d850ab48404c782dd385d44624dc | [
"MIT"
] | permissive | CorneliusHsiao/FoodMethodGAN | 0883ab6e09ff71544f9d067ee3a0288646ca8c83 | 9e68dfabd48afe337ac95189a728dfdab075afe5 | refs/heads/master | 2020-09-04T08:51:35.506411 | 2019-12-26T10:57:44 | 2019-12-26T10:57:44 | 219,697,249 | 0 | 1 | MIT | 2019-12-06T04:54:00 | 2019-11-05T08:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 3,749 | py | import os
import json
import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader
from tqdm import tqdm
from args import args
from networks import TextEncoder, ImageEncoder
from utils import transform, Dataset, rank
######################################################
# preproc... | [
"apple@appledeair-3.home"
] | apple@appledeair-3.home |
58eef740f0a71ad36123660a1cea5be91fcd8b15 | fdee1ecf7cdf11c15771bd325897775060fed64c | /app/errors/__init__.py | f139f1d53be91d9cbf4e98a335b4ca7ab36b4c6d | [] | no_license | SIRLA-FJULIS/LIS-Lib-Shift-Arrangement-System | 67feda105c16e085b28bbd64fec048c92e5c2dec | 707644ab48df857630a404c4d017b19d786d6694 | refs/heads/master | 2020-05-22T04:49:07.575629 | 2020-04-10T09:40:05 | 2020-04-10T09:40:05 | 186,222,486 | 1 | 0 | null | 2021-01-23T09:01:20 | 2019-05-12T06:59:36 | Python | UTF-8 | Python | false | false | 100 | py | from flask import Blueprint
errors = Blueprint('errors', __name__)
from app.errors import handlers | [
"opp40519@gmail.com"
] | opp40519@gmail.com |
7b1f422a0751188ab3254f50f1c2e5c5b56b4a51 | 41e69a2c4802e038841948f49854f6e72c472179 | /bin/pip | 7f00391542197da72f764c63753ec02da696125b | [] | no_license | edisonik/artesanato_brasileiro.github.io | 6d4246ef9cafac0e749d6c1e44afd0a1e28cca77 | 2ad99cadf5ab6c6afe5544fcc267975b230add96 | refs/heads/master | 2020-05-07T13:57:46.227961 | 2019-07-15T02:19:22 | 2019-07-15T02:19:22 | 180,570,562 | 1 | 0 | null | 2019-07-15T23:55:29 | 2019-04-10T11:50:12 | Python | UTF-8 | Python | false | false | 241 | #!/var/www/artesanato_brasileiro/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@ip-172-31-6-208.sa-east-1.compute.internal"
] | root@ip-172-31-6-208.sa-east-1.compute.internal | |
5b9637487e45d95d05cd2fac74ca279bc4cf8938 | d0befba20015501fbd57888abf78eeb24389ac40 | /prac1b.py | 5530fe3d9cd1635b5ae73798c763acd3f7587816 | [] | no_license | satyamthaker/Data-Structure | 0de59a24cbcdf9472a3546c52dc2c534b1c947df | fdbbc2c7b601037e71e482dcf08bf02ae69641ef | refs/heads/master | 2023-01-03T05:26:33.761829 | 2020-10-29T05:01:55 | 2020-10-29T05:01:55 | 295,732,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | m1 = [[1,2,3],
[4 ,5,6],
[7 ,8,9]]
m2 = [[10,11,12,13],
[14,15,16,17],
[18,19,20,21]]
res = [[0,0,0,0],
[0,0,0,0],
[0,0,0,0]]
for i in range(len(m1)):
for j in range(len(m2[0])):
for k in range(len(m2)):
res[i][j] += m1[i][k] * m2... | [
"noreply@github.com"
] | satyamthaker.noreply@github.com |
fc07069a46f82e9a773e82a5a7eb0fb9601e5399 | 6782adf725cd62576310e3b017be4c8e9703efea | /users/views.py | 7d3046389893cfb666bd52f4ef2a4b01d3a19a78 | [] | no_license | momentum-team-4/django-final-project-jacqueline-harrison | e2b566dd28221e4f3ccf3bb5d58a267a05f39f21 | 355d6e14914cb1c9126dddc7b351834713c7d29e | refs/heads/master | 2023-07-31T22:13:12.027385 | 2020-10-01T17:11:45 | 2020-10-01T17:11:45 | 298,834,657 | 0 | 0 | null | 2021-09-22T19:43:35 | 2020-09-26T14:44:18 | Python | UTF-8 | Python | false | false | 1,273 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.messages import success, error
from .forms import UserCreationForm
from .models import User
def create_user(request):
if request.m... | [
"jacqueline_25@hotmail.com"
] | jacqueline_25@hotmail.com |
b9948cf1676e6d0a8275b85e3147d5465083dffc | b89ce172f2a793924f3a159ab15541342d4c989e | /hw5/best.py | 063dc3d08f6206a32384219d2855c68308d06e1f | [] | no_license | KiyoM99/ML2019SPRING | 42e63cc06136f4db673ad3940ae35d83ce5046e6 | a9157759f00bb3f36be785513c969027cfe2dca7 | refs/heads/master | 2020-04-24T07:18:44.353378 | 2019-06-07T14:53:33 | 2019-06-07T14:53:33 | 171,795,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py |
# coding: utf-8
# In[1]:
from PIL import Image
import numpy as np
import pickle as pk
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torch.nn as nn
import torch.utils.data
import random as ran
import time
import torchvision.transforms as transforms
import sy... | [
"noreply@github.com"
] | KiyoM99.noreply@github.com |
45ff2731d524714c05b51daf9bc57ef935b6cb18 | d26a82e8e72bb945a45082f69c19e571c9b49240 | /yohanneswebsite/settings.py | bb397b409ed51085af6859339cdac6a489bdfac9 | [] | no_license | Yohannes27/mathias | cc5fab8a0830f7a81a653a3eee618123afd24487 | 6beea7ddb293f1f9dc7d8f5d17dbe2407584f7fa | refs/heads/master | 2023-05-31T20:11:57.551715 | 2021-07-15T20:52:32 | 2021-07-15T20:52:32 | 386,419,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | """
Django settings for yohanneswebsite project.
Generated by 'django-admin startproject' using Django 3.0.
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... | [
"joelawro@gmail.com"
] | joelawro@gmail.com |
0d316c17ae6205c8d67b07880fd12e2b2f84359c | 76ce1e3f85aff9fcd5e7a902b535af352922a9c5 | /main.py | 404c9fcd147cb256e475dc78941c04b772de1e16 | [
"MIT"
] | permissive | f-grimaldi/CivTableGame | 3d8900417382bb0c890a1c1b994428d1083086bc | e4f73098f74db6f45f6e57faf0260c20c0c13a1e | refs/heads/main | 2022-12-31T20:30:28.567302 | 2020-10-20T14:06:30 | 2020-10-20T14:06:30 | 305,722,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,077 | py | import src.Table as Table
import src.Player as pl
import numpy as np
import pygame
import time
def plain_load_icons(player_number, resolution):
size = get_cell_size(player_number, resolution)
water_icon = pygame.transform.scale(pygame.image.load('imgs/water.png'), size)
mountain_icon = pygam... | [
"f.grimaldi.94@gmail.com"
] | f.grimaldi.94@gmail.com |
267f051b5e058cd2c27f5c5f7de155cd7f7c48c0 | 142c458d4e9fee7f5dd810d75763903d6789ad34 | /classfy_id_new.py | 1fde20b270abe1550c51dee27fb75d9d257cef70 | [] | no_license | Pengfight/testfile | c5bfb5fbc2cc77072f48521a85b1e7b6cec9c456 | c067995495f5a119f7cea4ddd49bb14dd40e9a3d | refs/heads/master | 2021-04-26T22:14:13.598400 | 2018-03-24T02:32:08 | 2018-03-24T02:32:08 | 124,047,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | import json
import os
class lda_learning():
def classfy_city_data(self):
'''
Divide the data set according to the number of days of trip,
divided into 4 days, 4-5 days, 6-7 days, 8-10 days,
10 days and above,five kinds of situations.
the format of each line:id tri... | [
"noreply@github.com"
] | Pengfight.noreply@github.com |
ffcfbf0bf4d986773c415aa90c4c6801a6d49e20 | ef50f38a4bba1f34ae1bc8f74b962088e2cce6e7 | /form.py | 71bd8903253793e0f6020dd12b8158731d712203 | [] | no_license | PeterSanctus/Slave_Success-V2 | b71f340cc76d41f542f45836ea70881c920e3090 | 2d9212612199562f5c243c157a1efaaa917be6e4 | refs/heads/master | 2020-03-06T22:45:48.483387 | 2018-03-28T08:04:50 | 2018-03-28T08:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,152 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'form.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.... | [
"plsm.mail@gmail.com"
] | plsm.mail@gmail.com |
d0caa854e9e28624cdfc1352f608b8d07a7986a3 | 6267694634f09f7bb4372e3c335bc805fa1bde6c | /fig_3/prej_prej_8.py | 268d0540319d020e5ccb5a0bb016c443ec82ce07 | [] | no_license | deep-inder/prejudice_model | 3707a9814bbe0fff7b9b885281aaefe3f0778b4a | 6a1cd4df38b297d7bd39cfbd760a8f50dccc0e1f | refs/heads/master | 2023-06-07T00:00:28.668466 | 2021-06-27T19:08:53 | 2021-06-27T19:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,388 | py | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
from twoGroups.baseClass import *
from twoGroups.biasedAgent import *
from twoGroups.unbiasedAgent import *
from twoGroups.tftAgent import *
... | [
"mohan.deepinder@qgmail.com"
] | mohan.deepinder@qgmail.com |
94f78ff7515cedf224519e07f552630acac3127a | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/estate/DistributedFireworksCannon.py | d5691917f5a2a6d4d53e4cdd97782a58257a8ec5 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 4,308 | py | from toontown.toonbase.ToontownGlobals import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from HouseGlobals import *
from toontown.effects import DistributedFireworkShow
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
from panda3d.co... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
77825d5d7d96d2954670502979e01b35cbeae203 | 3cb4f8e967cd21bad7c0f026c9799d901bc1fb73 | /gutter/artist.py | d36f6223c3628f0bc120ba575bbfbbf60eb18838 | [] | no_license | OEP/gutter | ffbba9c69ac92cbc2c3dae31ad62f8a9b24fd1fd | 747092561359f4c9da59c7609232dd8abbc1c7b6 | refs/heads/master | 2021-01-16T18:07:49.844498 | 2013-07-16T12:53:40 | 2013-07-16T12:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import album
import song
class RainwaveArtist(object):
'''A :class:`RainwaveArtist` object represents one artist.
.. note::
You should not instantiate an object of this class directly, but rather
obtain one from :attr:`RainwaveChannel.artists` or
:attr:`RainwaveSong.artists`.
'''... | [
"william@subtlecoolness.com"
] | william@subtlecoolness.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.