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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df03c92bcf943088682c7ef45eb2bcc34e478d71 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/distribute/python/one_device_strategy.pyi | 5c91f768c011f01a98b97b3846eb1ca4d2acf93e | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | pyi | # Stubs for tensorflow.contrib.distribute.python.one_device_strategy (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib.distribute.python import values as values
from tensorflow.python.framework import constant_op as constant_op, ops as ops
from tensorflow.... | [
"matangover@gmail.com"
] | matangover@gmail.com |
4e53a630899bd08654d57a6180f85aaf4deb47f9 | 1c22f63512c6b62e431f01e909778ffa51a50d1b | /Sentiment/Model/sentiment.py | f544f1bc0e5d292dde2a30994396fea694419008 | [] | no_license | Alex-Mathai-98/Sarcasm-Detection-in-Product-Reviews-Using-Deep-Learning | 4550deda84ac35709f064ee9ef8a7410c238edd2 | 339079d18cbb00b85c43637a095e58da2c1e109a | refs/heads/master | 2020-03-21T15:04:28.107078 | 2018-06-27T19:36:14 | 2018-06-27T19:36:14 | 138,692,928 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,119 | py | import numpy as np
from nltk import sent_tokenize
import json, requests
# java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000000
class StanfordCoreNLP:
"""
Modified from https://github.com/smilli/py-corenlp
"""
def __init__(self, server_url):
# TODO: ... | [
"noreply@github.com"
] | Alex-Mathai-98.noreply@github.com |
ae159a9c1c63ed349e494c12b82634191cd28e0a | 1950ade9ea5c8b43762125ce335a2d7a32cac32c | /Kafka-json-serde/producer/producer.py | 5e125028cdfcdbfe5144f3441f9b64f8eedf5d9a | [
"MIT"
] | permissive | mydevground/ApacheKafkaPython | a5cfd3ea9cc09b6e311bd88cc5a5f8164b743680 | 96da0e5d0294a9823776f9622fca6a3b46ff06bb | refs/heads/main | 2023-08-17T08:05:52.526064 | 2021-09-26T06:26:15 | 2021-09-26T06:26:15 | 410,462,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | from uuid import uuid4
from confluent_kafka import SerializingProducer
from confluent_kafka.schema_registry import SchemaRegistryClient
from confluent_kafka.schema_registry.json_schema import JSONSerializer
from confluent_kafka.serialization import StringSerializer
from model.user import User
from utils.config import... | [
"noreply@github.com"
] | mydevground.noreply@github.com |
2a0ecdeb2210d0fd6692bd55462c96df7219bc49 | 97a001f06ff21dd3a5370aa68a603bab5bcfc0cc | /I18NSystem/provisionadmin-service0/provisionadmin/db/user.py | f2d39a5d3e8fd1217e04870395030a57afbda7d8 | [] | no_license | vincentchivas/authdesign | 4bd7e5122cfd686c953bc2ee1d653e65838f5fbb | a4e471930615dba010416ee314c73bdccc150585 | refs/heads/master | 2021-01-25T08:49:20.848617 | 2014-07-12T09:09:36 | 2014-07-12T09:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from provisionadmin.db.config import USER_DB
from provisionadmin.model.user import User
from provisionadmin.db.seqid import get_next_id
def save_user(user):
assert user
if not user._id:
# assign sequential id
user._id = get_next_id('user')
USER_DB.user.save(user)
return user
| [
"vincentchivas1989@gmail.com"
] | vincentchivas1989@gmail.com |
82f581965a073f92160c11b4648ddcdaa19e8699 | f14c815cd34f4a64beec88bf79c03a216827ce1e | /aboutme/mainapp/migrations/0005_auto_20161220_1209.py | 86dd510b9b7ced2188cb92e75f31ae96bf59e9e0 | [] | no_license | malmax/django-lessons | ae4206c9bd9f56a4f3a2ee07d7688015ac0736df | 7b0c4c1c697ec58a685b1e69b795023a976c6b4b | refs/heads/master | 2020-06-12T20:06:57.930445 | 2017-06-24T21:18:56 | 2017-06-24T21:18:56 | 75,756,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-20 09:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_auto_20161220_1203'),
]
operations = [
migrations.AlterFiel... | [
"malmax.spb@gmail.com"
] | malmax.spb@gmail.com |
6066f7edce7a8f90fc3fe6ca88de13ea77e332f1 | 2c61671ad98b9336bd6ef2801d8545fb111626fd | /search_core/phash.py | ed246b1ce51938b95a092dd7a7a8ce5e1515c40c | [] | no_license | FelixFox/phash-implementation | d8d79a4ccd85bc26c35e62dcb8d3c63bb2f13f31 | 224205f4f74e1059b192c89c6a3c5d14132aeb69 | refs/heads/master | 2020-05-22T16:07:29.244790 | 2019-06-13T17:09:36 | 2019-06-13T17:09:36 | 186,423,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | """
Author: Anastasia Kriuchkovska
E-mail: staceyhooks0@gmail.com
This is an implementation of PHash algorithm for computing image hash.
The algorithm has next steps:
1. Reducing size and color of a given image to 32x32 resolution.This is done to simplify the DCT calculation and other computations.
2. Ap... | [
"a.kryuchkovska@cvrndteam.com"
] | a.kryuchkovska@cvrndteam.com |
4d492009405f6df5596c3c4c0deb1ca2ec744a00 | df23284eec33049dfc4d823ca8f8b707b3295fba | /Problem Solving/Sherlock and Squares.py | 6af512c2a6983e2ba0f2bbb70be5a7ff5b748385 | [] | no_license | Rishabhjain-1509/HackerrankSolution | 668e2054ad0e6a293c84703e039f7c341a541881 | 38bbae666dd91dba6a8d7412864306127d630a64 | refs/heads/master | 2022-11-12T14:34:01.669220 | 2022-11-09T18:02:36 | 2022-11-09T18:02:36 | 256,114,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the squares function below.
def squares(a, b):
count = 0
i = 1
while(i):
if(i*i >= a and i*i <= b):
count = count + 1
if(i*i > b):
break
i = i + 1
return count
... | [
"noreply@github.com"
] | Rishabhjain-1509.noreply@github.com |
a3c08650b204ab32b825981c0860702bce98423a | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/83_3.py | 12698b43c4778dfb9ad52c496eddfefd80ad857b | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | Python | Reverse Interval Slicing String
Sometimes, while working with strings, we can have a problem in which we need
to perform string slicing. In this we can have a variant in which we need to
perform reverse slicing that too interval. This kind of application can come
in day-day programming. Lets discuss ... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
c3fcf3efdc21c63082a9599387f5ee9286f23048 | 83f1f89258cb19f49321210e2760f0c0e61962b3 | /cervicam/settings.py | a036d968cc6eb5c17ae74a36c54fd299a13ac669 | [] | no_license | CerviCam/CaMLER-Main-API | c1864336a704b42485c9b86700d02ccbb7a1410d | efc60672cc801cea4f56b81b992a363948fd5bf2 | refs/heads/master | 2022-12-12T12:28:42.949125 | 2020-09-02T09:14:46 | 2020-09-02T09:14:46 | 279,703,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | """
Django settings for cervicam project.
Generated by 'django-admin startproject' using Django 3.0.7.
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/
"""
# Load loca... | [
"nann011530@gmail.com"
] | nann011530@gmail.com |
c590d814b62bb521395703100ef03566fda4202d | a7e89bc0436f67e2160905e7d1becd681acc42c1 | /vueshengxian/settings.py | 0ce8c80f10148ebc04eeebb879d5e6082a5d80b8 | [] | no_license | supermanfeng/shengxianproject | 6cc718a99d17054a959af264aae88c02d75be10b | dba59227e918653c5e6b5d4dd892afc4477eccd1 | refs/heads/master | 2020-03-10T13:30:47.214241 | 2018-04-26T13:20:34 | 2018-04-26T13:20:34 | 129,401,909 | 1 | 0 | null | 2018-04-27T12:26:08 | 2018-04-13T12:52:08 | JavaScript | UTF-8 | Python | false | false | 4,679 | py | """
Django settings for vueshengxian project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"2252506855@qq.com"
] | 2252506855@qq.com |
022fa9467f8e1bb59b76e87ce8ea9203150c0ea2 | 8999b3620b307a9d4d32385a4946552614031289 | /wv-ner/utils/classifier.py | f87431e77f64369d3f8e44f3681b0d6f575a091b | [
"MIT"
] | permissive | nishankmahore/Bio-NER | 8169d7780cc1f29f389ab793e876ef3cb0ca6d86 | cc36d2871e70d416300a5ac8ac498fbd87b50cd9 | refs/heads/master | 2021-06-13T23:17:30.216361 | 2017-03-26T12:39:40 | 2017-03-26T12:39:40 | 86,139,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,345 | py | import numpy as np
import multiprocessing
from multiprocessing import Pool
import operator
import idf
import math
import generate_vector as gen_vec
import cPickle
UNCLASSIFIED_ID = -1
# Classifies the entity candidates
# into one of the predefined categories
# Input: entities - is a list of entities ... | [
"noreply@github.com"
] | nishankmahore.noreply@github.com |
cdb4e7a702048cc9880d517fa50965096560ac74 | 9c26f77c96d5d3b23a7c7e3f266b50dc17783a87 | /Regist/models.py | 141100d6e1c0cca26073354baee1e01c3f2483ef | [] | no_license | gysxl/sportTimeServer | eb2664cefe388571365cc2fd0fbd70d9dcd6aa97 | d1010b9354d6881751d01814a4fae5ff0f06bd37 | refs/heads/master | 2020-04-05T12:08:35.355872 | 2017-07-03T10:52:51 | 2017-07-03T10:52:51 | 95,221,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class UserInformation(models.Model):
uid = models.CharField(max_length=200)
phone = models.CharField(max_length=200)
password = models.CharField(max_length=200)
user_name = models.CharField(max_length=200... | [
"shanxiaolan@didichuxing.com"
] | shanxiaolan@didichuxing.com |
32d349fdae719b7d00ff419d829cbf443f06200b | 47a9218ef23194f36428452a8aa18d33528f6e44 | /utility_class.py | c9747a07a6e0ed0b6643c44592e2b8ef8afe215e | [] | no_license | AhmedEldib/Realtime-Patient-Heartrate-GUI | 43595a51c1b37c919e7cfb702e164c993cbf9585 | 709da1f10b771ce0933f7fb2502f8bde43c549af | refs/heads/main | 2023-02-19T12:39:05.050434 | 2021-01-24T10:23:08 | 2021-01-24T10:23:08 | 332,417,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import numpy as np
class Plot_Data(object):
def __init__(self):
self.Plot_Stop = 1
self.GraphIsWav = 0
self.Gmin = 0
self.Gmax = 0
self.data_X = []
self.data_Y = []
self.data_stop = 0
def Stop(self):
self.Plot_Stop = 1
... | [
"noreply@github.com"
] | AhmedEldib.noreply@github.com |
8bcabbeb501546724c29278bc074a0352026e866 | f2f5d06d6b6e51ad669232b38c131569158e2c55 | /tests/models/__init__.py | 7c39409b0f0bb3b1b237931383d888faade65dc5 | [
"Apache-2.0"
] | permissive | nickspring/architect | 070131a96bd9e4cfddd468c41ec55e0b2cb1e2af | 2e320249da6986e5fcc0060819d8b210bc6dd8a7 | refs/heads/master | 2021-01-16T20:06:32.387896 | 2015-01-29T07:34:10 | 2015-01-29T07:34:10 | 22,872,673 | 0 | 1 | null | 2015-01-30T18:19:29 | 2014-08-12T09:53:49 | Python | UTF-8 | Python | false | false | 532 | py | from architect.orms import BasePartitionableMixin
class AbstractPartitionableModel(BasePartitionableMixin):
"""Abstract partitionable model used for tests not connected to specific ORM"""
@property
def model_meta(self):
return {
'table': None,
'pk': None,
'data... | [
"tepkeev@gmail.com"
] | tepkeev@gmail.com |
e56f53592022d142eab866b93632c4aab530b95c | 288902fa603d234a5785620ab45f9a180d7139b8 | /Entity_extraction/entity_extraction/code/BiLSTM_model.py | 0d0b12cc27b7df204e554c826b6db49356f85b43 | [] | no_license | ItsPavan/Entity_extraction | e3c1309fa73e1470f5459db59e949a4449414155 | e83d021c0a71be98a4a32d3a02be56796f4915f1 | refs/heads/master | 2020-05-15T17:07:40.705092 | 2019-05-22T15:18:27 | 2019-05-22T15:18:27 | 182,400,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,204 | py | import numpy as np
from validation import compute_f1
from keras.models import Model
from keras.layers import TimeDistributed,Conv1D,Dense,Embedding,Input,Dropout,LSTM,Bidirectional,MaxPooling1D,Flatten,concatenate
from data_preprocessing import readfile,createBatches,createMatrices,iterate_minibatches,addCharInfor... | [
"noreply@github.com"
] | ItsPavan.noreply@github.com |
fa9fbb603c16db9e26e7e660c7ff3e4fa90630e1 | 543437ea84eb375dfa57df2aa8f4e311e9908d61 | /kyu7/Exes_And_Ohs.py | ba2438c1d478ffcc9025c6851b2617f58a7958eb | [] | no_license | GabrielCernei/codewars | cd1ef8d3875fc463cc8f7fdadeb7ba21a3ea6a1c | 5795028a358423f1f3bcab2f2fa1292482945ee8 | refs/heads/master | 2022-02-21T20:10:29.071148 | 2019-09-29T14:42:02 | 2019-09-29T14:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # https://www.codewars.com/kata/exes-and-ohs/train/python
def xo(s):
return s.lower().count('x') == s.lower().count('o')
| [
"ldunbar@mac.com"
] | ldunbar@mac.com |
85b948d2703e272f744671e008a744a9bd8c6d65 | af83f15a1ffb57b148fe641bde29359615797e9b | /data_visualization/line-charts.py | d3fc28bf6cb708abb29ea4f241385bc9035a2808 | [] | no_license | umeshkrishna19/data_science_python | 150c3df74f56364ca423430070d2ac8b269bfe1d | c082f9c7fa5bb48b31e18cdc210cc3c3a6df5170 | refs/heads/master | 2020-03-27T06:14:36.954945 | 2018-08-25T12:55:50 | 2018-08-25T12:55:50 | 146,091,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from matplotlib import pyplot as plt
variance = [1, 2, 4, 8, 16, 32, 64, 128, 256]
bias_squared = [256, 128, 64, 32, 16, 8, 4, 2, 1]
total_error = [x + y for x, y in zip(variance, bias_squared)]
xs = [i for i,_ in enumerate(variance)]
# we can make multiple calls to plt.plot
# to show multiple series on the same cha... | [
"umeshkrishna33@gmail.com"
] | umeshkrishna33@gmail.com |
7fc26b188d20bf6c8ef668492cbff6978181da8f | c653ba46c93dfb1a71502ff7faaa950d0477dc70 | /backend/home/migrations/0002_load_initial_data.py | 897e315a325ba64f2383ac2e9dd9456ac0b72605 | [] | no_license | crowdbotics-apps/auto-union-25946 | ce8452683dd7a9a1cdacbb572da2f15c6f813f64 | c00b77ad38870ad2e94910d279881ca02e873302 | refs/heads/master | 2023-04-06T11:23:45.366243 | 2021-04-26T14:37:43 | 2021-04-26T14:37:43 | 361,783,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Auto Union"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a1d603e38160d60eb5f9195479294dfaa110719b | a43a63616e68719338946fe8f187c83016e99abb | /data_center/check_global_metop.py | d78bcb0ce4121048f88dd80c81ea79f0d3606597 | [] | no_license | isabella232/pytroll | 172c41313109bb2d735d2acc3f700862d994cdf3 | 871438e3a32ec147b7605540fa2788e073ff339b | refs/heads/master | 2023-03-31T18:44:09.048669 | 2020-12-11T10:49:38 | 2020-12-11T10:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2011.
# Author(s):
# Lars Ø. Rasmussen <ras@dmi.dk>
# Martin Raspaud <martin.raspaud@smhi.se>
# This file is part of pytroll.
# Pytroll is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public Licen... | [
"martin.raspaud@smhi.se"
] | martin.raspaud@smhi.se |
cbd7ba5fae05ffd93fa6c536b0a752122d028cc3 | 9dfe2e76f5c40ef9e510e060fba03eb864f48bb7 | /applications/home/forms.py | a1bbe44b7f3b6eef346c31b9e20fbffe4e75d11c | [] | no_license | Rogrback/myblogs | e682c82b35337dd6db715e662512f7f842d6ab7f | 4480ab02a4a0a9a27314478d2f6aa9cfad736d66 | refs/heads/master | 2023-04-08T15:50:51.243912 | 2021-04-17T10:24:14 | 2021-04-17T10:24:14 | 358,731,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from django import forms
from .models import Subscribers, Contact
class SubscribersForm(forms.ModelForm):
class Meta:
model = Subscribers
fields = (
'email',
)
widgets = {
'email': forms.EmailInput(
attrs={
'placeholder': ... | [
"Rogrback"
] | Rogrback |
790242253551921871eed0901841dd8404a53daa | ef24c6be7a4dbff90c328252b1150f8496a8e24c | /main.py | 70e417d064d13dc9d488767d624c46dced2ef040 | [] | no_license | junruhong/Hogwarts | 097eed8d86f3c9ff5aaf932b4a649a9f03f4b0b1 | c4aeb41b1825e36fa0391f45aebf983ae0e605d7 | refs/heads/main | 2023-04-01T02:33:18.289727 | 2021-04-09T09:36:48 | 2021-04-09T09:36:48 | 352,335,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | if __name__ == __main__:
print("Hello World!")
| [
"noreply@github.com"
] | junruhong.noreply@github.com |
cd21b43044e2ba9e947604eea4e7b2d8bd78d434 | 3d825b7cab1eccade255c076ec5d4d62ca94bdb6 | /0x10-python-network_0/6-peak.py | 5e9aa8aa788610632261adefb81b34da49b3e570 | [] | no_license | banuaksom/holbertonschool-higher_level_programming | 5805710a0154943f56d47a615a27ab22a8f10577 | 3dcd23f1ab093d379f1230b0a3930bd63de28d9d | refs/heads/master | 2020-07-23T01:45:39.557838 | 2020-02-14T05:48:17 | 2020-02-14T05:48:17 | 207,405,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #!/usr/bin/python3
def increasing(list_of_integers):
""" returns True if elements are increasing in the list"""
for i in range(1, len(list_of_integers)):
if list_of_integers[i - 1] > list_of_integers[i]:
return False
return True
def decreasing(list_of_integers):
""" returns True ... | [
"banuaksom@gmail.com"
] | banuaksom@gmail.com |
9caa87c714caeb14f804b8f01a0bdfe5bd8da9f0 | 42dd44434fd104da927779f7e81992623b4b8d5b | /src/gems/urls.py | 46608ceba4fd51ad061c0f64101fbf89ac730a27 | [] | no_license | sanya9652/gems | 881185aa9b6bf34733c3af7b7b57088e83305a6e | 07c304157d7b5dc46a4a09e022d7c5c95b26c4ef | refs/heads/master | 2023-05-02T21:21:30.831049 | 2021-05-20T03:03:50 | 2021-05-20T03:03:50 | 369,046,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | """gems URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"sanya9652@gmail.com"
] | sanya9652@gmail.com |
149290fb61f26b9cd5b11e1a83017d51d7b18665 | 2b565c386993f08256f3375bc05e188728c78d3b | /NewsSection/views/delete_news.py | 5eea6db62ab338d72cb10930d71194abce08a6ea | [] | no_license | ivvlko/AI_Portal | 25f26400cf3b353ef362cbe77c5698c349cb4f51 | 4d0f96922a75e7982b1d1e44f6addec4b30f103c | refs/heads/main | 2023-02-14T19:15:01.885012 | 2020-12-30T13:12:47 | 2020-12-30T13:12:47 | 316,210,781 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from django.shortcuts import render, redirect
from NewsSection.models import News
def delete_view(request, pk):
current = News.objects.get(pk=pk)
if request.method == 'GET':
context = {'current': current}
return render(request, 'news/delete.html', context)
else:
current.delete()
... | [
"ivankoevbg@gmail.com"
] | ivankoevbg@gmail.com |
3070a319b22776752ac9bf28563a25fbf8456049 | 7693437bacd10d47f406857ac63de2928a36a561 | /py/slope/dependency.py | 2c8555f87eb5e49da1f3c942f68ca02a8389f681 | [] | no_license | oholter/matcher-with-word-embedings | d555f8f43f9bd76fedc39925fa93c2af24eaf967 | 0fe584496c61c8b9c01188c5e08c1a927b7b971d | refs/heads/master | 2021-09-10T15:58:56.215353 | 2019-06-12T10:40:57 | 2019-06-12T10:40:57 | 160,821,473 | 1 | 0 | null | 2021-09-01T18:39:47 | 2018-12-07T12:33:34 | Java | UTF-8 | Python | false | false | 1,985 | py | import numpy as np
import scipy.stats as stats
x = np.array([1, 0.8, 0.6, 0.4, 0.2, 0])
# EKAW-EKAW
#y = np.array([0.75, 0.65, 0.48, 0.31, 0.12, 0.01]) #struc best
#y = np.array([1.0, 0.97, 0.84, 0.62, 0.34, 0.03]) #struc disambiguate
#y = np.array([0.81, 0.75, 0.61, 0.42, 0.29, 0.13]) #synonyms best
#y = np.array([0.... | [
"oholter@gmail.com"
] | oholter@gmail.com |
b16686bfedad4f9cdcb9048e0edaec1658ba20f5 | fa54d74e8627fac1566f90b827c73ad5c4bc08ca | /0x07-python-test_driven_development/100-matrix_mul.py | 73fbf51abf6cebfd09a9fd89a0ae57ae05738fc4 | [] | no_license | AdrianaAriza/holbertonschool-higher_level_programming | 87b70810fc52c7c6036b92163f2b8d8e5a8568ae | ec8d1b03907c51905e7d611e71c8ff37e3892764 | refs/heads/master | 2020-09-29T08:02:58.249872 | 2020-05-17T04:51:56 | 2020-05-17T04:51:56 | 226,993,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/python3
def matrix_mul(m_a, m_b):
""" multiplies two matrix
"""
if not isinstance(m_a, list):
raise TypeError("m_a must be a list")
if not isinstance(m_b, list):
raise TypeError("m_b must be a list")
if all(not isinstance(i, list) for i in m_a):
raise TypeError("... | [
"1296@holbertonschool.com"
] | 1296@holbertonschool.com |
305bea4821d1fb35977cb803fd7bebff35361dee | 130095e322c49e513318e181f0c6a8cd65c924ef | /python-mid/zmienne_i_kod/8.enumerate_zip.py | a22296143ceb20d5308fba290f6a3cba48142b20 | [] | no_license | irekpi/lekcje | 90c8e1eeb844ae4dc90a1fa8d59c04b7596c42a6 | 56f9c831e413610ead8d793ac2f296df749e19d1 | refs/heads/master | 2022-12-14T15:00:14.684436 | 2020-09-22T07:51:04 | 2020-09-22T07:51:04 | 229,556,749 | 0 | 1 | null | 2021-06-02T02:17:49 | 2019-12-22T11:22:03 | HTML | UTF-8 | Python | false | false | 338 | py | projects = ['Brexit', 'Nord Stream', 'US Mexico Border']
leaders = ['Theresa May', 'Wladimir Putin', 'Dolan Trump and Bill Clinton']
dates = ['2016-06-23', '2016-08-29', '1994-01-01']
combo = zip(projects, leaders, dates)
for project, leader, date in combo:
print('{} project name, created by {} on {}'.format(proje... | [
"pilat.irek@gmail.com"
] | pilat.irek@gmail.com |
2bec75e97a11ef1e07664dedebdf67839fff55af | 1c64a7091770b432bc2caefea2d34933369dafda | /suduku.py | fd9bfa92c1fd4cb21664a2d01d7adf12d47d67e2 | [] | no_license | praneeth-gunti/Sudoku | 92af72fde73b991ca610c44400ba2f2ad688406b | 70037bf125c2382a180a94c2a1432e1f43a4a446 | refs/heads/master | 2021-05-17T02:40:06.117308 | 2020-03-27T16:11:39 | 2020-03-27T16:11:39 | 250,580,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | grid = [
[7, 8, 0, 4, 0, 0, 1, 2, 0],
[6, 0, 0, 0, 7, 5, 0, 0, 9],
[0, 0, 0, 6, 0, 1, 0, 7, 8],
[0, 0, 7, 0, 4, 0, 2, 6, 0],
[0, 0, 1, 0, 5, 0, 9, 3, 0],
[9, 0, 4, 0, 6, 0, 0, 0, 5],
[0, 7, 0, 3, 0, 0, 0, 1, 2],
[1, 2, 0, 0, 0, 7, 4, 0, 0],
[0, 4, 9, 2, 0, 6, 0, 0, 7]
]
... | [
"noreply@github.com"
] | praneeth-gunti.noreply@github.com |
ed9dae9ae49b4287a6a6ddc79ee23f42c03b011d | 817c9646fe8c36c858779aa52eade3e1676ccd97 | /conkit/io/rosetta_npz.py | 55b3a0c5af503354f28e921a6b316213caaf92a7 | [
"BSD-3-Clause"
] | permissive | rigdenlab/conkit | 6ce790a5a7b7f70eabb584b439b275db1f00458d | 926f194a660d95350e9172d236c9c002e8a921a3 | refs/heads/master | 2022-09-20T23:47:59.414757 | 2022-07-22T09:21:14 | 2022-07-22T09:21:14 | 30,641,512 | 19 | 13 | BSD-3-Clause | 2022-07-22T09:21:15 | 2015-02-11T09:58:20 | Python | UTF-8 | Python | false | false | 3,789 | py | # BSD 3-Clause License
#
# Copyright (c) 2016-21, University of Liverpool
# 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 notic... | [
"filo_san_rod@hotmail.com"
] | filo_san_rod@hotmail.com |
89772ac936538b983c17a068d7bd36224ddc2dd3 | 16735e2254170b5e27a5f91ae05f56eb3f31b5da | /GibbsRunner.py | 2705311e475f5f098ed7d607151ebef97bc28d67 | [] | no_license | DogaCUlupinar/GibbsSampling | 8f1518029ead6d7eff619cc62ac8a6928d2f19b4 | 3c79ba13bf291f4d89ab491a3c3c3e17383d98e0 | refs/heads/master | 2021-01-10T18:06:04.850050 | 2016-03-07T01:39:42 | 2016-03-07T01:39:42 | 53,286,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,998 | py | from sampling.gibbsampler import *
from collections import defaultdict,Counter
from operator import itemgetter
import random
import numpy as np
import logging
import math
import matplotlib.pyplot as plt
import logging
CONFIG_LABEL = "LABEL"
CONFIG_PRIOR = "PRIOR"
CONFIG_GREEDY = "GREEDY"
CONFIG_COLOR = "COLOR"
conf... | [
"doga.ulupinar@engineering.ucla.edu"
] | doga.ulupinar@engineering.ucla.edu |
8ff62fff0868018a0ce0127b70d20898d9581f9d | 351b640723bb62c92f914f95ce880dfea6911d6d | /MediService/settings.py | ca797a35cccee58af8f3eb1f9552f573f254fbb6 | [] | no_license | Piplohasankamrul/MediServices | e768383e3f489349f7fa05111eb8cf9b53d0c04a | 3aaf34d3559ab03c4b15c05bef4187b48681b5b8 | refs/heads/master | 2023-08-14T22:42:38.622169 | 2021-09-08T15:06:44 | 2021-09-08T15:06:44 | 358,980,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | """
Django settings for MediService 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/
"""
from pathl... | [
"piplohasank@gmail.com"
] | piplohasank@gmail.com |
2beded6d1c8cf44b5bbe40dff3738ac2ee1e766d | cc2182f0126905969826710fd97f39b6af932a26 | /libOSC.py | 99b6d40c8edaf384e9454dd0836c54ac34eefd98 | [] | no_license | mizumasa/HydroPumper | e1da77123a755378d7453b481b0f888de105f085 | 450de0b371a8fbc484696b4cfb148c33b16d6945 | refs/heads/master | 2020-08-29T01:34:26.669865 | 2019-11-12T13:58:39 | 2019-11-12T13:58:39 | 217,881,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py |
""" sending OSC with pyOSC
https://trac.v2.nl/wiki/pyOSC
example by www.ixi-audio.net based on pyOSC documentation
"""
import OSC
import time, random
import os, sys
import threading
IP_HEAD = "192.168.1."
TAB_IPS =[
IP_HEAD+"1",
IP_HEAD+"2",
IP_HEAD+"3"
]
TAB_IPS =[
IP_HEAD+"11",
IP_HEAD+"12",
... | [
"masaru0mizuochi@gmail.com"
] | masaru0mizuochi@gmail.com |
2faea9a51fdfb40ad39aff8d81b01e9e7b3a715f | 6864b967242eba8380fb087da7e1ad77786b27ac | /video_downloader.py | 049ac907a1a105c62a0cb28ab9391b811cbd7cca | [] | no_license | S4more/discord-drive | b875326b17551f301aeddd6086e1b112adbe85b6 | 888a8172361cc7c54caac58471c84c8ced2b5760 | refs/heads/main | 2023-03-13T11:29:40.667883 | 2021-04-03T21:27:34 | 2021-04-03T21:27:34 | 354,218,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import youtube_dl
class VideoDownloader():
def download(self, link: str, title: str) -> str:
'''
Downloads a video and returns the extension of the downloaded video.
'''
ydl_opts = {'noplaylist': True, 'outtmpl': f"./imgs/{title}.%(ext)s"}
with youtube_dl.YoutubeDL(ydl_opts)... | [
"guimsc@hotmail.com"
] | guimsc@hotmail.com |
76e68b2c58619f361a1344e8429350d3703fab75 | 5d49f51d30da3a8cf4d112619b9c75e8c01c884b | /sumSubsetRec.py | b0131497f20d6b2dd984e1c5add8fe98fcef1bbc | [] | no_license | riyag283/Dynamic-Programming | 43436262a89a3aa1c0e1390c985bc3556159ceae | 5186afd863d31f121ed2845b45606e3e6eb4b46a | refs/heads/master | 2022-12-29T23:34:20.699794 | 2020-10-14T14:57:57 | 2020-10-14T14:57:57 | 291,990,436 | 3 | 2 | null | 2020-10-14T14:57:58 | 2020-09-01T12:22:23 | Python | UTF-8 | Python | false | false | 824 | py | # Subset Sum Problem
# Recursive solution
'''
Given a set of non-negative integers, and a value sum,
determine if there is a subset of the given set with sum equal to given sum.
'''
def checkSubset(set,n,sum):
#base cases
if sum==0:
return True
if (n==0 and sum!=0):
return False
... | [
"noreply@github.com"
] | riyag283.noreply@github.com |
1b69748663c95321fecc50613a16f49a4ecc0cc7 | 64552b1a53ba1f09f88e861377fbc2cc362b47e3 | /bangumiInfoEditor/bangumiGeneralInfoEnterButton.py | fe9bcac49050cc7a041be178e79897dae5144d76 | [] | no_license | HHHHhgqcdxhg/bangumiDesktopAssistant | 736e399ac24f100ef31306f34df3a659525a04d6 | 67b8baa52c5f4ece01089f293871b995aa925040 | refs/heads/master | 2022-11-09T21:42:27.857873 | 2018-11-02T09:33:40 | 2018-11-02T09:33:40 | 172,485,424 | 2 | 1 | null | 2022-11-01T07:55:36 | 2019-02-25T10:32:14 | Python | UTF-8 | Python | false | false | 4,228 | py | from PyQt5.QtWidgets import QFrame, QLabel, QListWidget, QVBoxLayout, QPushButton, QGridLayout, QTextEdit, QComboBox,QMessageBox,QFileDialog
from PyQt5.QtCore import Qt
import datetime,json
from .makeChaptersInfo import BangumiChapters
from config import PATH
class CJsonEncoder(json.JSONEncoder):
def default(self, ... | [
"2894700792@qq.com"
] | 2894700792@qq.com |
3448e0efdb09db7afd788f27404d6fce2a0f312f | 48b61a48b829f8511ff46ca761b5730519192229 | /aircrafts/spiders/spiderUrl6.py | 58bf8c02f49e7b16e7a078b401be371830d9cb7c | [] | no_license | sirBarbouchi/aircrafts | ce32640cdf6aa13ac0ad8d1ea0139efc2bc51ec5 | 0741049edfb45ddce12799d39d3efe08cd3db134 | refs/heads/master | 2023-07-04T10:02:24.867518 | 2021-08-02T17:41:36 | 2021-08-02T17:41:36 | 392,025,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | import scrapy
from scrapy_splash import SplashRequest
from ..items import AircraftsItem
from scrapy.http import Request
import json
class BusinessairSpider(scrapy.Spider):
name = 'businessair'
def start_requests(self):
url = "https://www.businessair.com/jet-aircraft"
splash_args = {'... | [
"sirbarbouchi@gmail.com"
] | sirbarbouchi@gmail.com |
b8e1eb1ec0b16f2553edd815d9ba235dadd6d48c | 41062dd5d20c3d69411f79755e937c0b6a739826 | /tests/blueprints/slack/decorators_test.py | 9147646579327f8548e841eaaa4a3ca665219e83 | [
"MIT"
] | permissive | Thornycrackers-Forks/busy-beaver | 6dd7effda854b632f089fc5c8e991b42e83b940f | e47d481d217e137ecc2a9e450b9a101b508ce50f | refs/heads/master | 2020-04-26T01:30:44.932497 | 2019-09-20T00:39:06 | 2019-09-20T00:39:06 | 173,206,575 | 0 | 0 | MIT | 2019-03-01T00:08:25 | 2019-03-01T00:08:25 | null | UTF-8 | Python | false | false | 2,789 | py | from flask import Flask, jsonify
import pytest
from busy_beaver.app import handle_http_error
from busy_beaver.blueprints.slack.decorators import verify_slack_signature
from busy_beaver.exceptions import UnverifiedWebhookRequest
SLACK_SIGNING_SECRET = "8f742231b10e8888abcd99yyyzzz85a5"
SLACK_SIGNATURE = "v0=a2114d57b4... | [
"noreply@github.com"
] | Thornycrackers-Forks.noreply@github.com |
117c55bc7b712ce4809539178d9070e8ead67252 | e160d3922c7032044c19f295c6fd0c30a2fff724 | /supar/utils/transform.py | af629112217879eec90e5b2b8c9fbbd7be5c8b5f | [
"MIT"
] | permissive | ck624/parser-1 | 496f6979d258b3f1baf71fa62591325c0e3f7204 | d7b6ae5498bd045e34c1e1c55ab8e619cf4ad353 | refs/heads/main | 2023-01-12T23:52:59.884118 | 2020-11-24T05:59:57 | 2020-11-24T05:59:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,459 | py | # -*- coding: utf-8 -*-
from collections.abc import Iterable
import nltk
from supar.utils.logging import get_logger, progress_bar
logger = get_logger(__name__)
class Transform(object):
r"""
A Transform object corresponds to a specific data format.
It holds several instances of data fields that provide ... | [
"yzhang.cs@outlook.com"
] | yzhang.cs@outlook.com |
9b442ee2dff0befcb2ce79b6bb7765597d3657ea | b6c4c5d46635097956d5ef847027b9927be55dd0 | /django/main/apps/semirestfulusers/views.py | 7772a4aaa7a7b287c2c5cac41d3919c19851289f | [] | no_license | neelanqj/python_stack | 3938c6ff5faf37be07a7c0ba13b598bcb1fa56d6 | 4370f0eb53dab60fc2cdea5720a939aa9f5a4fb3 | refs/heads/master | 2020-04-20T09:36:48.190615 | 2019-02-01T22:35:19 | 2019-02-01T22:35:19 | 168,769,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse, redirect
from models import User
# Create your views here.
def index(request):
all_users = list(User.objects.all())
for user in all_users:
print user.first_name
content = {
'users': all_users
}
... | [
"neelan.joachimpillai@gmail.com"
] | neelan.joachimpillai@gmail.com |
a88ceda775e2945e06f7a308de2d0c24da99c175 | 987af84a0628a1eb4f9547b1a0c437f1a502789b | /donation/models.py | 486c91b1fff4ce6034a848cfafe5221ff7b7dd26 | [] | no_license | aaquib19/bookCafe | fde2012a558457097ded759c80c95d48c5793fbf | 58a0e39a2158ef0af0ee218b65e85366b809a2cf | refs/heads/master | 2022-12-16T22:45:10.049570 | 2020-07-06T15:58:39 | 2020-07-06T15:58:39 | 154,096,263 | 0 | 0 | null | 2022-11-22T03:18:34 | 2018-10-22T06:26:06 | JavaScript | UTF-8 | Python | false | false | 256 | py | from django.db import models
# Create your models here.
class donation(models.Model):
name = models.CharField(max_length=255,null=True,blank=True)
emaild = models.EmailField(max_length=255)
bookname=models.CharField(max_length=255,null=True,blank=True) | [
"aaquibniaz3600@gmail.com"
] | aaquibniaz3600@gmail.com |
d8b3dbba1e334160749255b63228fa5c84fbf3c8 | 72d57dfcda2bce8fabfbe49573cb289c666b83e5 | /SistemaVenda/settings.py | 5334ffb18d969026357c186ac0efc8881975ea67 | [] | no_license | joanerocha/Venda | 2ae7184344b73703cf7e14fdbe2516ee5fa9c192 | bcb87f42e0a2edd7ef95fb042449131652e447f8 | refs/heads/master | 2021-01-20T16:16:56.236536 | 2016-05-27T22:32:50 | 2016-05-27T22:32:50 | 59,840,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | """
Django settings for SistemaVenda project.
Generated by 'django-admin startproject' using Django 1.9.4.
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 ... | [
"joane.goncalo@hotmail.com"
] | joane.goncalo@hotmail.com |
34689d565a2134ee25dc5da17e94a9d70ff3e3c0 | 0087deff0374c9eff8c54f54d47e915e71332478 | /nsot/migrations/0037_auto_20171006_0914.py | 5138fe7ccd8816ccbeb293bed690da2657dc17fb | [
"Apache-2.0"
] | permissive | dirtyonekanobi/nsot | d6dab1ec613311a474002d927fc6530f0f2b3c86 | 96f7d02dd0bbe8c69f4807cae96c56729cb597f5 | refs/heads/develop | 2021-01-19T15:51:06.639724 | 2017-10-06T19:23:17 | 2017-10-06T19:23:17 | 88,233,293 | 0 | 0 | null | 2017-04-14T04:38:04 | 2017-04-14T04:38:04 | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nsot', '0036_auto_20171006_0118'),
]
operations = [
migrations.AlterField(
model_name='change',
name... | [
"daryn.johnson@ge.com"
] | daryn.johnson@ge.com |
ce0760bbd45cc43bbaa44f93c161b99678124989 | 9561c9c0636e02fcc79b4430de20cdf707a16863 | /application/wsgi.py | 85a254c80238113f3f21859584ba75b72ace35db | [] | no_license | rohan-amazon/Jugnoo | 53cb123be51fcd1ef8c9a77834b2468aa34c3d9e | 27a1753705164ca6951f75af09b3fe1d2ae4390a | refs/heads/master | 2021-06-18T02:48:13.032179 | 2017-06-15T12:04:15 | 2017-06-15T12:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
WSGI config for application 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"noreply@github.com"
] | rohan-amazon.noreply@github.com |
90be38ec9b9246e9e6f07b27d4acfd2fe672c1b5 | 1c31598ee93726e400a3e0793d369d6d20e92355 | /colors.py | 43cbfa10cde7984e70a5834ea7a775648fa46e46 | [] | no_license | KarinAlbiez0910/random_walk | 09dab4b9d0dc40c9f0b5973ffe6b1a3934e9957a | 7bf1c17ea2b4af7b45e76bba619e6267459f2bdb | refs/heads/master | 2023-02-11T02:13:46.334716 | 2021-01-03T11:56:00 | 2021-01-03T11:56:00 | 326,395,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,574 | py | COLORS = ['snow', 'ghost white', 'white smoke', 'gainsboro', 'floral white', 'old lace',
'linen', 'antique white', 'papaya whip', 'blanched almond', 'bisque', 'peach puff',
'navajo white', 'lemon chiffon', 'mint cream', 'azure', 'alice blue', 'lavender',
'lavender blush', 'misty rose', 'dark slate gray', 'd... | [
"you@example.com"
] | you@example.com |
a2bcf183766269b33f0bf728228309192ba4d899 | d5319f6369e96d2f027df9458fa664aac62f6523 | /Modules/M-06-Computer Vision/D-08-Projects/white_board.py | e4b4d6db243626cd06980b2ef7aed8d0e92a079f | [] | no_license | UdawalaHewageDilan/AI_Spring_2021 | 3466ad1f6c1889ab1360a3ef053e37a8be41c6ca | 6a7b791d9456442f8156f2ca9eb72fc42037b739 | refs/heads/main | 2023-06-11T21:39:33.124818 | 2021-06-21T14:27:39 | 2021-06-21T14:27:39 | 348,318,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | import cv2 as cv
import mediapipe as mp
import numpy as np
mp_drawing = mp.solutions.drawing_utils
mp_hands = mp.solutions.hands
font = cv.FONT_HERSHEY_SIMPLEX
color = (0, 255, 0)
lower_red1 = np.array([0, 150, 50])
upper_red1 = np.array([10, 255, 255])
lower_red2 = np.array([170, 150, 50])
upper_red2 = np.array([18... | [
"79456800+UdawalaHewageDilan@users.noreply.github.com"
] | 79456800+UdawalaHewageDilan@users.noreply.github.com |
4b6c6f450f5c92a61a25483419a4634ef9be7550 | 02ca82306a047faabf180a3c3a964e3a0c50cc4f | /car_detect_svm.py | 7a5e512d444b001493ef7774163a8936220bd27f | [] | no_license | amemetov/sdc-term1-prj5-vehicle-detection | 1a6f52886096e90f34048667be2d80d288de4164 | 3c316185f7914fe3c5c03741b366293f77a8aeeb | refs/heads/master | 2021-01-23T04:39:03.591198 | 2017-06-05T22:01:28 | 2017-06-05T22:01:28 | 92,934,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,030 | py | import numpy as np
import cv2
import math
import time
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.svm import LinearSVC
from features import convert_color, bin_spatial, color_hist, get_hog_features, extract_features
# Train linear SVC on passed im... | [
"arsen.memetov@aspose.com"
] | arsen.memetov@aspose.com |
d48b14029b7f955c2ea6b467745c3eb00d552755 | 0407432cac984ddc51bfc97c93444d807860859a | /链家存mongo.py | e4a9d3140c61b24db8fecbd711f9255e747863e4 | [] | no_license | Cobra9527/Spider | f325152d7a4f41669a7dd6e678166c9e4cc7bcf2 | 03d29a23ed1114f93e59b3ec5ef724b2b6ac0afe | refs/heads/master | 2020-04-08T07:37:05.977638 | 2018-12-04T02:04:57 | 2018-12-04T02:04:57 | 159,145,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import requests
import time
import re
import pymongo
class Lianjia(object):
def __init__(self):
self.url = 'https://qd.lianjia.com/ershoufang/'
self.headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0"}
self.number = 1
self.conn = pymong... | [
"wjdsam@126.com"
] | wjdsam@126.com |
75a4ccc312da8ef1bffb948875732fd79cd01f8e | 267b25ef5145d36100e1d7822e2ae49ad710cc11 | /context/prepare.py | 4243c0dfba28c9b583d08a56f9cbabe612b5005f | [] | no_license | thesfinox/ml-dev | 684c8bfd493cf68ead351514ff0cb7ca9311f367 | 8829759c1b6e8729a93e2485ea769c6a9c07cbd1 | refs/heads/master | 2023-02-26T11:57:32.050797 | 2021-02-03T10:07:49 | 2021-02-03T10:07:49 | 334,967,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | import os
import sys
import logging
import seaborn as sns
import matplotlib.pyplot as plt
import tensorflow as tf
from datetime import datetime
class Context:
'''
Define the environment in the notebook/script.
'''
def __init__(self,
context='notebook',
style='dar... | [
"riccardo.finotello@gmail.com"
] | riccardo.finotello@gmail.com |
0a634a456b386322e87b726d273d719214617a6b | 9be252fc36610589ae1bf607b0db41a9a8aaa89e | /space_invaders.py | 906430ff06bd05eb8be5cec745c6a7b2dc2fdaaf | [] | no_license | eugenNinca/space_invaders | 4eeb5a4db35275f6eacd382731108aecf36b18a2 | 1bd24f50acff99319d16fde5da7d178aacd73739 | refs/heads/master | 2022-06-24T02:33:35.810998 | 2020-05-06T13:56:24 | 2020-05-06T13:56:24 | 261,695,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,884 | py | import pygame
import sys
import time
import os
import random
# it must be done otherwise it does not know
pygame.font.init()
# SET THE WINDOW OF THE GAME
WIDTH, HEIGHT = 750, 750
WINDOW = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Space Invaders 0.1")
# load ships images
RED_SPACE_SHIP = py... | [
"nincaeugen@gmail.com"
] | nincaeugen@gmail.com |
3fc70fa68aaa5167b85b70dd2605761696f07f98 | 68699395b1b110dc995b8da9aeca7018589e7876 | /tests/test_importer.py | 8184b60d548eb7e3841c3235b379a72c91f1afeb | [
"Apache-2.0"
] | permissive | aaront/woidb | 079e2850354202a16e58b982e8d91f52a7bc925e | 65fdb85d66acf2a14e66f0225cc420ac5c39c862 | refs/heads/master | 2016-08-12T08:38:59.836897 | 2016-01-19T04:54:37 | 2016-01-19T04:54:37 | 49,221,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import os
import unittest
from woidb.db import connect, Session
from woidb.importers.woi import import_csv
from woidb.models import Base, Team
class TestImporter(unittest.TestCase):
def setUp(self):
self.engine = connect('sqlite://')
Session.configure(bind=self.engine)
self.session = Sess... | [
"atoth89@gmail.com"
] | atoth89@gmail.com |
df6028f2d62bdaba03bf389a4967ad94ee23caff | dcb723b850a1cf7f3b0ecced3c1f5abfd7ea3501 | /LogisticRegression_Model.py | fad85b466695a58fea913a8b6af485038188bc62 | [] | no_license | Sala7efelninja/Mobile-App-prediction-ML | 543c3c90071232ec6f0258e845183a317dc037f7 | d8d34ee8ecd82c1f8214ee5076d6a5a084373d8d | refs/heads/master | 2020-11-25T11:50:08.378992 | 2019-12-20T15:17:01 | 2019-12-20T15:17:01 | 228,643,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 19 17:22:05 2019
@author: Asalla
"""
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn import linear_model
from sklearn import metrics
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
import pre_pr... | [
"asallaamuhsen@gmail.com"
] | asallaamuhsen@gmail.com |
11133d30bc9c442a0c421dcf8150ee869dbfdeea | ba2edb1a5311f9effc9df37cbb0cb10255ae2679 | /fft_test.py | 640d3d882c9b783b818f437f9a9e1ce3ab5701f6 | [] | no_license | Takusei/SimMch | 947932801ed75bf73d241e26bce40aa00bc11337 | ba15a7042b401d8f492e7ac82595422762f4c160 | refs/heads/master | 2020-05-30T21:05:55.172384 | 2017-10-24T08:29:16 | 2017-10-24T08:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.fftpack as fftpack
pi = np.pi
tdata = np.arange(5999.)/300
dt = tdata[1]-tdata[0]
datay = np.sin(pi*tdata)+2*np.sin(pi*2*tdata)
N = len(datay)
fouriery_1 = fftpack.fft(datay)
print len(fouriery_1)
print N
fouriery_2 = np.fft.fft(datay)
parseval_1 = np.s... | [
"kojima@cyb.mei.titech.ac.jp"
] | kojima@cyb.mei.titech.ac.jp |
c89abde993e7a4f8133d9df5bc8d6a9445b85ba6 | bfd5d16aeb3ef1a864a14c6eca1733d9a36f9ab7 | /.c9/metadata/environment/home/models.py | cae08e85b77a1fddade654cf60a9a81161840bb4 | [] | no_license | Code-Institute-Submissions/dennyshow-milestone-project4-2 | c0a6e554dc270f9bdcf3e760baff0ae25f58e7e6 | a4144b9ccf8133c5852c44773aab6ba549218950 | refs/heads/master | 2023-08-08T20:45:13.877914 | 2020-01-11T23:19:00 | 2020-01-11T23:19:00 | 233,587,461 | 0 | 0 | null | 2023-07-25T15:41:56 | 2020-01-13T12:10:49 | Python | UTF-8 | Python | false | false | 2,475 | py | {"filter":false,"title":"models.py","tooltip":"/home/models.py","ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":6,"column":80},"end":{"row":6,"column":80},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"hash":"0f9380a6195731182fc... | [
"ec2-user@ip-172-31-47-222.ec2.internal"
] | ec2-user@ip-172-31-47-222.ec2.internal |
0434e40dad5e3e310407e0c7eb243c7331c04cf2 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.tales-Zope-3.2.1/zope.tales/expressions.py | e443f5fefb93370bb1bdb7fea9867f142833f7cc | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,101 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
a8c478d978ad61025d7b4b83c90d6ef9f1dc4f36 | e697bb1dd2c96049225b1615df8c613b8c366489 | /LPII/Atividade 03/banco_test.py | 357949408125eda7ae581d11a4bd25d248a09696 | [] | no_license | zTaverna/Cursos-Python | 9a4f67091c26e59ed0cb1534e72bc855688beb9b | 28c089229c9b63b2f6739fe52646c6d154a2adc8 | refs/heads/main | 2023-05-08T15:51:15.331995 | 2021-06-04T20:27:08 | 2021-06-04T20:27:08 | 365,034,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,391 | py | from cliente import Cliente
from conta import Conta
from banco import Banco
# ------------------------------ #
# -- Testes da classe Cliente -- #
# ------------------------------ #
def test_cria_cliente():
try:
c = Cliente('nome', 99999999, 'email@mail.com')
except Exception:
asser... | [
"noreply@github.com"
] | zTaverna.noreply@github.com |
4414e887a8a0068d38d7683dd44cb8232ff8b399 | 2c33ee7ea716fe212daebeddf97e255ba419fdbe | /ds/linkedlist.py | b881c83d617debb4459f0f0170040a85401600ef | [] | no_license | adilreza/Competitive-Programming-problem-solving | 1ef29b6a927d04d573e05aadb8837e0cd6eed26c | f96863e3cbd10d4047936088cecb91007b0331d4 | refs/heads/master | 2022-08-21T07:44:09.635007 | 2022-07-25T17:23:29 | 2022-07-25T17:23:29 | 213,891,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
if __name__ == '__main__':
linked_list = LinkedList
linked_list.head = Node(1)
second = Node(2)
third = Node(3)
# connect nodes
link... | [
"noreply@github.com"
] | adilreza.noreply@github.com |
aa2efaabcafda410600f0fd2d7c7768078daf997 | fadcf8c03dfeede5f3401263be9c7bdac91a815b | /radio button.py | 267e3a85a47242b100a90296feb2d15e55c75665 | [] | no_license | Anjalkhadka/GUIproject | 20ae867eed1a10e36a46363e216fff4e9e58cda3 | 42b03df95b72686f3cf51170a40b167508720dab | refs/heads/master | 2023-07-01T16:28:49.763623 | 2021-08-02T14:43:37 | 2021-08-02T14:43:37 | 385,206,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from tkinter import*
root=Tk()
HOTEL=[
("Momo","Momo"),
("cheese","cheese"),
("Mushroom","Mushroom"),
("Pizza","Pizza")
]
Food=StringVar()
Food.set("Momo")
for text, hotel in HOTEL:
Radiobutton(root, text=text, variable=Food, value=hotel)
def clicked(value):
myLabel=Label(root,text=value)
... | [
"Anjalkhadka"
] | Anjalkhadka |
4752ed2589db2285e40e377754a03f021ff3f54a | 550f9357b5a043c2567dc0f4f83127d14bd22d46 | /Entrega7/Entrega7_JP.py | 2be7cbab3353b87c58bf3415b0b76a402d1bd271 | [] | no_license | juansilva1/MCOC2020-P1 | 175eb828f79729a1d75aea3db6e93d4386bb16d7 | 42f8bee5fada344c088df84746d1dd3af974526b | refs/heads/master | 2022-12-12T00:40:51.129650 | 2020-09-11T16:19:11 | 2020-09-11T16:19:11 | 290,047,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,280 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 6 19:55:25 2020
@author: jpsil
"""
import numpy as np
import scipy as sp
from scipy.integrate import odeint
import math as mt
import warnings
warnings.filterwarnings("ignore")
from matplotlib.pylab import *
from leer_eof import leer_eof
from matplotli... | [
"noreply@github.com"
] | juansilva1.noreply@github.com |
bb440e15cc1e0b4db0b4460b511af4f601929c7f | c8860354053b56e1f24ebe642ccdaf7116c141e0 | /javascript/js-day08/index.py | c8ed86ed00a35bcd38830bfec329d2f80ae40d5c | [] | no_license | wangsiman0419/notebooks | fa4e3f0d55f78fe70083ac04c95fe57cc7443389 | a867efac9a5a49bc69a36ade71283e91912484a2 | refs/heads/master | 2023-01-13T18:24:41.447845 | 2020-02-25T06:00:13 | 2020-02-25T06:00:13 | 242,922,346 | 9 | 0 | null | 2023-01-07T15:14:14 | 2020-02-25T05:58:16 | HTML | UTF-8 | Python | false | false | 24 | py | {
var a:number=10;
}
| [
"1713411498@qq.com"
] | 1713411498@qq.com |
d2b403689a68070e761b5d1f555b68ec5ea11d8b | 4542db1d4955aaf7c53c9ff7282d064a066ff393 | /2020/December/18-Dec/cached properties.py | 83642392c637a53b08864ec08c3a4b3c317761f1 | [] | no_license | mohanbabu2706/100 | 7227527b0e0af1e4f69d194b7537c7aef27a810d | 3c5a8b769fd4205afb3e3fd7e9cbf2ebf053b7b9 | refs/heads/master | 2023-02-20T09:56:45.970290 | 2021-01-20T10:09:09 | 2021-01-20T10:09:09 | 297,233,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | import time
class cached_property(object):
'''Decorator for read-only properties evaluated only once within TTL period.
It can be used to create a cached property like this::
import random
#the clas containing the property must be a new-stye class
class MyClass(object):
... | [
"noreply@github.com"
] | mohanbabu2706.noreply@github.com |
e933f91edd2539de5be5866fa1bb783d5b208c95 | 454cf082f0fccac3d957ffd27f746a177995f559 | /exercise02/exercise02.py | 5239a3e9b88895bd233584ff48f8fa16e5954a0d | [] | no_license | bernardoVale/python-exercices | 414a4bf6e0a30b6afe605e15a35aa33b684d6e56 | 392ebc03c975dcb02c6d3b7ac17374507bdb979d | refs/heads/master | 2021-06-30T15:30:41.216262 | 2017-09-21T12:53:26 | 2017-09-21T12:53:26 | 103,652,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py |
def grep(pattern, content):
# result = []
#
# list = content.split("\n")
#
# for line in list:
# if pattern in line:
# result.append(line)
#
#
# return result
return [x for x in content.split('\n') if pattern in x] | [
"bvale@avenuecode.com"
] | bvale@avenuecode.com |
932d546ce883e182b14722823585c21e1e829228 | f8e3a703ab7198f4c61e5ba630b4f006850db0db | /03_dash_core/09_markdown.py | 0c7dae779a47758e88b5e94f1510314c27954e7b | [
"MIT"
] | permissive | krakowiakpawel9/dash-course | 238a09e92821c4d0a78f4cc9efe1e4dd0b004623 | 6f22d3bf8c339217e5a6c22b5567f1e67ecc2e31 | refs/heads/master | 2021-06-24T02:23:47.463648 | 2021-03-06T09:54:32 | 2021-03-06T09:54:32 | 208,616,684 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | """
@author: krakowiakpawel9@gmail.com
@site: e-smartdata.org
"""
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_styleshe... | [
"krakowiakpawel9@gmail.com"
] | krakowiakpawel9@gmail.com |
3b5a9f66bed96258c8c57f579b82332a9de54aee | efcadad286cda42766368e0e4723960382f0dcf2 | /test/test_api_response_zacks_sales_surprises.py | 024cf3720367727d924cf82308ae9d16b42f1b97 | [] | no_license | ryanleland/python-sdk | 5056016dadd1088f7fa6f54f57473015ff8f1c5b | 62504257bac27d99a59215f6b95bdd0b73461e4b | refs/heads/master | 2020-05-24T18:03:41.215215 | 2019-05-17T21:54:07 | 2019-05-17T21:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"kgmillerdev@gmail.com"
] | kgmillerdev@gmail.com |
58713acbcb618bafad559d590e6798f41d3d017b | a6f4701ac1d0e5b922961ee24f7d0ca8e2aca75b | /constants.py | 895b7a5a09b8e2feb8ef21968da8107b0fac9bca | [
"MIT"
] | permissive | MFarelS/ID_AzanBot | ce5efebfe3524a52af7ac2f8dddbe0ecbf677ee8 | e48bff507ade5e811a6bbac2bfe8615448b09e83 | refs/heads/master | 2022-01-05T04:31:50.167809 | 2019-05-05T00:02:14 | 2019-05-05T00:02:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | #Maximum sending message before increase the job to next 1 sec
MAX_MESSAGE = 25
#Lead Time of UTC in minutes
LEADTIME = 1
#Latency Limit
LATENCY_LIMIT = 30.0
#Job Limit
JOB_LIMIT = 50.0
#StoreBot review URL
STOREBOT_REVIEW_URL = 'https://telegram.me/storebot?start=id_azanbot'
#KEMENAG file directory
KEMENAG_DIR = ... | [
"bambang.untoro@gmail.com"
] | bambang.untoro@gmail.com |
2f7a90a5d8520cfe8d34d381c034931fca9f9969 | 06f9c6a9375557ace9450184808e3a6515f5527a | /repi/admin.py | d47af96b5e02d07275e9ac0da03bea13e0036dd0 | [] | no_license | nineblu/renzhijiqiren | 1fe410d2f523959c2f14a4295c53e1e05ac14e60 | cb3640c6de713f288278a57200c71d4feb5bfd6e | refs/heads/master | 2020-03-13T13:32:14.801056 | 2018-04-26T10:44:11 | 2018-04-26T10:44:11 | 131,140,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.infos) | [
"24690674+nineblu@users.noreply.github.com"
] | 24690674+nineblu@users.noreply.github.com |
5001fbf3e0ef8468a40fde339d84c9c6650ebd8c | c9e38947d7282ddde28de5ba83a8b465d9420e39 | /tapti_app/migrations/0012_auto_20190917_2156.py | 26d85ca2f007e86a3c2321a82d97334aef6e3443 | [] | no_license | ronbaddi004/tapti | 79409370c8fe39f4b74917fd98229cb75ddd3d83 | 4f1821e278482ccb3873f7ef9a479ef1d8d96c8a | refs/heads/master | 2020-07-23T21:40:50.934672 | 2019-09-17T17:48:00 | 2019-09-17T17:48:00 | 207,713,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Generated by Django 2.2.4 on 2019-09-17 16:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tapti_app', '0011_auto_20190917_2125'),
]
operations = [
migrations.AlterField(
model_name='contact',
name='created_... | [
"ronbaddi004@gmail.com"
] | ronbaddi004@gmail.com |
dff8672fc730707a8fb570bb2ccef8069937803c | b910f60b2d6a16f5bdc2156f7af78e9cc32c95f4 | /crm/migrations/0011_auto_20170823_1554.py | 85f98e847a1afdb9b60db8af4a82ebd0243cd17f | [] | no_license | Ethan30k/mycrm | 6fe9e796ed4d854ebc5c59cc44798c7f103d832a | c1e7495de6b8a5fd59897de977a876e13f340373 | refs/heads/master | 2021-01-01T06:53:22.002283 | 2017-08-29T06:06:18 | 2017-08-29T06:06:18 | 97,542,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 07:54
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crm', '0010_auto_20170822_1758'),
]
operations = [
migrations.AlterModelOptions(
... | [
"448461456@qq.com"
] | 448461456@qq.com |
8cef5c46d6db9d942d418b2016ce11f8753f4ad8 | 0b53fc8f70a54e8c856052827140ab4a57c70e09 | /HW02/Q06/wordFrequency.py | f421d98f6b03a17a070a93e983ce1858db3e4e03 | [] | no_license | ecasiano/PrinciplesOfComplexSystems | f3d307e4a5051931deb22931d6aab0a2f1739877 | 05b7a43dc48e96433abac1fc5722903c39f77d95 | refs/heads/master | 2020-03-28T03:46:27.761452 | 2018-10-29T22:09:13 | 2018-10-29T22:09:13 | 147,670,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | #Emanuel Casiano-Diaz - September 12, 2018.
#INSERT PROGRAM DESCRIPTION
import numpy as np
import matplotlib.pyplot as plt
from math import log
from scipy.stats import linregress
import colors
#with plt.style.context('../../IOP_large.mplstyle'):
#Some nice pastel colors
red = ["#e85c47"]
blue = ["#4173b3"]
orange = ... | [
"Emanuel.Casiano-Diaz@uvm.edu"
] | Emanuel.Casiano-Diaz@uvm.edu |
194ab3b60f32137818023e1575441ad58c6fcffe | 7681040d0def5247880168361671e6cde0243b4a | /1-Lesson-Plans/Unit03-Python/4-Review/Activities/04-Stu_Conditionally_Crazy/Unsolved/drinking_age.py | 72b3004f7ce56fbb41cefa26db9700ffd30fab55 | [] | no_license | aditp928/cyber-secruitiy- | 8c61d7d73ce44d31a077f594a9ee4d420684348e | e60d06487d1477fd690a13a8b4c1e19648c78d28 | refs/heads/master | 2020-03-28T01:43:47.493344 | 2018-09-05T14:20:49 | 2018-09-05T14:20:49 | 147,526,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # TODO: Set a variable, called `drinking_age`, to 21
# TODO: Prompt the user for their age
# TODO: Check if the user is 21 or older
# TODO: If so, print: "Cheers!"
# TODO: If not, print: "Your fake looks really fake." | [
"MyFolder@Adits-MacBook-Air.local"
] | MyFolder@Adits-MacBook-Air.local |
ce8d487e56f07eafc10fa20d781341c61806bd82 | ef6ea60047fbdd8e6155770dcd47dab7ab05055a | /talks/migrations/0002_auto_20150708_0959.py | cd9c0e6eb30ea0adb558b2f44836acbb958cc52c | [] | no_license | nupuragrahari/Web-app-TALKS | 1c88320b105f766b958ad0f2c4e56650d2cce6ee | 2ea03087051b57713eff7adcaf656adce8f3b746 | refs/heads/master | 2021-01-10T05:48:18.217095 | 2015-10-24T13:19:06 | 2015-10-24T13:19:06 | 44,865,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('talks', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Talk',
fields=[
... | [
"nupur.agrahari93@gmail.com"
] | nupur.agrahari93@gmail.com |
5cc89d8c3d1847674232c5db8bd22499cbc73a16 | c8e78af14250dccbb2f89214fb2bd00d3812bcdb | /DisasterResponse_code/HerokuTwillo/venv/lib/python2.7/site-packages/mercurial/dirstate.py | 2b701ab29e8730139d93ced939117135e217c637 | [
"MIT"
] | permissive | weiningb/DisasterResponse | 5d6d5e915e95da9fbab41ed051acca31196bac95 | 8068c0a5e2efb81b34e799434b52cd05cc90b0f1 | refs/heads/master | 2021-01-21T05:40:12.009792 | 2015-11-18T18:56:37 | 2015-11-18T18:56:37 | 46,703,733 | 1 | 0 | null | 2015-11-23T07:29:07 | 2015-11-23T07:29:07 | null | UTF-8 | Python | false | false | 32,961 | py | # dirstate.py - working directory tracking for mercurial
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from node import nullid
from i18n import _
import scmutil, util, ignor... | [
"kailu.luke@gmail.com"
] | kailu.luke@gmail.com |
309a53e30762913d596f126d9171294a625257d7 | 0b106c3c614e6f8fc7df4d8349ef80de38ae9d43 | /binaryTreeReverseLevelTraversal.py | a41b43a9ad978eec10eab883291b3f0266b5d029 | [] | no_license | shengng325/LeetCode.py | b28142421544ea6f04a84785429e79da46d4a1d6 | ab8f72fbec259773f1b2ddadadec52f3132908ab | refs/heads/master | 2023-02-21T08:11:56.930960 | 2021-01-17T04:00:40 | 2021-01-17T04:00:40 | 317,896,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | def binaryTreeReverseLevelTraversal(root):
queue = [root]
values = []
i = 0
while i < len(queue):
levelValues = []
levelSize = len(queue) - i
for _ in range(levelSize):
levelValues.append(queue[i].value)
if queue[i].left is not None:
queue.... | [
"shengng325@gmail.com"
] | shengng325@gmail.com |
7f5840c3f48b0f8c0c441ea843770c08e781b974 | acc9bade6e8041fe2c79c9120b732e46486cbc68 | /source/conf.py | fc8a3ae4ec8b7117fa1c579ed0fa8f4d4ed75046 | [] | no_license | 921138129/tensorflow-handbook | 592e9983a79bea0da47ebf46f46cfa0026318942 | 2ea7ffcacfdd8d2e066d02fb44dcc4455ed7ed4c | refs/heads/master | 2023-01-01T14:13:27.633627 | 2020-10-12T11:35:49 | 2020-10-12T11:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,732 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# 简单粗暴TensorFlow documentation build configuration file, created by
# sphinx-quickstart on Sat Jan 20 00:48:15 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in th... | [
"xihanli316@gmail.com"
] | xihanli316@gmail.com |
ad5f9ab8ed91f75acb5f58158279cfaa8dbf1bbe | e8cb6b396c6717332fe457f7cfbc3a7727138ba7 | /recruiting_system/settings.py | da35ad3802c8e53d2404b623c5b7fcecff7f2936 | [] | no_license | aleksey-tsyganov/django_recruit_app | 633ba725cf322af586102dc1627ffa4c802898cb | 974824a13aef1eef9dc1e8820c2c814f500f0a60 | refs/heads/master | 2021-09-27T00:14:19.533458 | 2020-02-28T14:51:52 | 2020-02-28T14:51:52 | 228,168,832 | 0 | 0 | null | 2021-09-22T18:08:30 | 2019-12-15T10:51:52 | Python | UTF-8 | Python | false | false | 3,760 | py | """
Django settings for recruiting_system project.
Generated by 'django-admin startproject' using Django 2.2.5.
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/
"""
im... | [
"aleksey_news@mail.ru"
] | aleksey_news@mail.ru |
1df5231363d599b7db0d0b58fb18abeed707e5b4 | 56cf4eb06d069e0315fbe89ce825060f109308f1 | /HerokuBlog/create_config.py | eb53bc789b3971a75a1611446fa37c312e3c9aaf | [
"MIT",
"WTFPL"
] | permissive | Lasher09/NLP | 2e9757d2174de2056502517f3ce5eb1f35072813 | 78eadcd5c65d43c51a9aee6ee6b8651a74db7a98 | refs/heads/master | 2021-01-23T03:22:05.375901 | 2014-05-02T23:11:25 | 2014-05-02T23:11:25 | 18,149,264 | 2 | 0 | null | 2014-05-02T23:11:26 | 2014-03-26T18:36:19 | CSS | UTF-8 | Python | false | false | 4,027 | py | """ utility for generating a configuration file for a simple blog """
from werkzeug.security import generate_password_hash
from os import urandom
from base64 import b32encode
import sys
import getpass
if "--help" in sys.argv:
print "create_config.py:"
print "Options:"
print " * --fresh"
print " Ove... | [
"jacobhill.mail@gmail.com"
] | jacobhill.mail@gmail.com |
b6ea7ffc2b3e4e46027e80fd3fd7deccfbd362ea | 5c9d926f2d0d28f211e29ae6901791864e1c6f15 | /04.4_foods.py | 805502920ce7bd03fc805791e2baf62471c35e09 | [] | no_license | hedongjie0917/Python_3 | 6fa48ff0fa730c8900133c4ac49503f741f55554 | 4251e488c2ee123d951bfe93e75c442b2ffdcc3f | refs/heads/master | 2020-03-09T06:55:41.348736 | 2018-04-09T14:39:41 | 2018-04-09T14:39:41 | 128,604,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #使用[:]来复制列表
my_foods=['pizza','falafel','carrot','cake','tomato']
friend_foods=my_foods[:]
print('p1')
print(my_foods)
print('\np2')
print(friend_foods)
my_foods.append('cannoli')
friend_foods.append('ice cream')
print('\np3')
print('my favorite foods are:')
print(my_foods)
print('\np4')
print('my firend foods are:')
... | [
"hedongjie0917@users.github.com"
] | hedongjie0917@users.github.com |
ed16e9ec3b200016e9c915db3bb00f5e85bbd1ca | 09b8f731cf118d4e241e9d8cd2b7ae8ba6149c6c | /myvenv/bin/pip | 0611f8990f1b17a83d4bb9a462510001a9dd515a | [] | no_license | prianthon/djangogirls | 11e152fc69910490fda6c11b30afb879a5ebda1d | d53043dd0654760cedf3150b5be25e05aaa3a716 | refs/heads/master | 2021-01-13T15:56:47.699691 | 2016-12-19T16:28:32 | 2016-12-19T16:28:32 | 76,790,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/prianthon/BakPasirPython/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prianthonsubardio@gmail.com"
] | prianthonsubardio@gmail.com | |
e68e418a9b3c3a3921cc91ba24214d4e84f94f07 | 558ed97a6529eac4148f802bc6b96003d5f0d187 | /store/views.py | 0f7b5185e16c44e2eb3a4f0143d9ea3c4cf0f06d | [] | no_license | carlosCeron/ecommerce | f067769521ae964f5bb9ad2708e273a66af68bfa | 786b239f0693d2d4e22973a087a39fd5d90a3a2c | refs/heads/master | 2023-04-20T15:18:33.417700 | 2021-04-29T05:12:17 | 2021-04-29T05:12:17 | 356,928,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
def categories(request):
categories_list = Category.objects.all()
return {'categories': categories_list}
def all_products(request):
products = Product.objects.all()
return render(request, 'store/home.html', {'products':... | [
"carlos.ceron.1986@gmail.com"
] | carlos.ceron.1986@gmail.com |
410a9f4fdbc38abdff9e31907116f90799c79832 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/aio/operations_async/_load_balancers_operations_async.py | 04d987ad2e60383b55b248cf3af0ab31c98d809b | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 21,632 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
7b21bfe2eaeaf827ca3442ea457cf38d94404b66 | f3e99347c2048312751370caeb85d8a5c31fd1d0 | /Assignment 3/Python/FakerGeneration.py | 795df619f5796494aabf3e6269e0f82d4da176e8 | [] | no_license | C-Mitch/Database-Management | ce18f17d30ce13517b57e64201dd2771d4b37ef2 | fc8c7ab0ea3c9b1425d482341e3c9e92cf24631e | refs/heads/master | 2020-04-25T00:55:46.403713 | 2019-04-17T23:30:23 | 2019-04-17T23:30:23 | 172,393,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #Chase Mitchell
#002274657
#Mitch213@mail.chapman.edu
#CPSC-408-01
#Assignment3
import sys
import csv
from faker import Faker
if len(sys.argv) == 3:
if sys.argv[2].isdigit():
rows = int(sys.argv[2])
with open(sys.argv[1], 'w', newline='') as file:
faker = Faker()
columns = ['FirstName', 'LastName', 'DateOf... | [
"C-Mitch@users.noreply.github.com"
] | C-Mitch@users.noreply.github.com |
02b751ed22fd231064bb7d2b92c0d7ec080c721e | 76cc692b34c11db1ae7e8d1c6879453c1e689eaf | /up2/pesos.py | ca07f4956bc3a09d092b288420f8a2d3fc6e912d | [] | no_license | btabuenca/sbc-1 | 440f0c2a9265db4e39cbb71f53bda661ddf24d28 | 5296b48b86d0477ad35420b29456da99fdcd3449 | refs/heads/master | 2021-02-15T00:27:03.128125 | 2020-01-30T17:27:48 | 2020-01-30T17:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | #!/usr/bin/python3
import mraa
import time
import spidev
from time import sleep
import os
spi = spidev.SpiDev()
spi.open(1,0)
luz = 0
espera = 1
# Use pin 7 by default
pin_r = 22
pin_g = 27
pin_b = 23
# Export the GPIO pin for use
pin_r = mraa.Gpio(pin_r,owner=False,raw=True)
pin_g = mraa.Gpio(pin_g,owner=False... | [
"noreply@github.com"
] | btabuenca.noreply@github.com |
5a2c1271ed984e6a51ea27f0c50420b891db695f | a7ae573e0403a0eb24bab2a787dd16ff9aa6025a | /Data_Analyst/pandas/pandas_test.py | 0c2b262ae925d2022d204016a07aafe4479379e3 | [] | no_license | isyefeng/python-test | c2538c91ad28e442f9946d999a684e8d14b5368b | 0b883cc95359562d00c4710e624a57fbc9a23fb3 | refs/heads/master | 2021-06-23T22:14:36.345281 | 2019-12-20T10:41:22 | 2019-12-20T10:41:22 | 192,188,404 | 1 | 0 | null | 2021-06-10T22:16:41 | 2019-06-16T12:29:02 | Python | UTF-8 | Python | false | false | 702 | py | import pandas as pd
'''Series'''
s1 = pd.Series([1,2,3,4,5])
print(s1)
print(s1.index) #查看索引
print(s1.values) #查看值
#更改索引index
s2 = pd.Series(['a','b','c','d','e'],index=[1,2,3,4,5])
print(s2)
#传入字典
s3 = pd.Series({'a':1,'b':2,'c':3})
print(s3)
'''DataFrame'''
s4 = pd.DataFrame([['a','b'],['c','d'],['e','f']])
... | [
"530030302@qq.com"
] | 530030302@qq.com |
f37760154f489059ee55d89018ef5d3c89eb8bbe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03031/s605906713.py | 7276915a941904b8f81053a9d5b6b9e4110970f7 | [] | 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 | 420 | py | n,m=map(int,input().split())
K=[]
S=[]
for i in range(m):
tmp=list(map(int,input().split()))
K.append(tmp[0])
S.append(tmp[1:])
P=list(map(int,input().split()))
ans=0
for i in range(2**n):
bit=format(i,'0'+str(n)+'b')
bit=list(map(int,bit))
on_den=0
for den in range(m):
on_swi=0
for s in S[den]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c8b6b5fb00eff87d9278287b58bc5e99a12029f3 | b7be705ab774860f8a5a49d756f50994a37e307d | /access-control/python/iot_access_control/hardware/grove.py | 64ab121a01fba3241ba216bba5cc2e068af1901a | [
"MIT"
] | permissive | intel-iot-devkit/how-to-code-samples | b87916f7e919d859a5f4084f40e8bd62007a8469 | 821de0727b999391131e6947868371b1424c1d39 | refs/heads/master | 2023-01-05T04:30:54.650902 | 2023-01-03T22:56:31 | 2023-01-03T22:56:31 | 45,066,968 | 204 | 161 | null | 2017-11-13T20:57:42 | 2015-10-27T20:08:02 | C++ | UTF-8 | Python | false | false | 3,155 | py | # Copyright (c) 2015 - 2016 Intel Corporation.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, pu... | [
"erik@snowcrabsoftware.com"
] | erik@snowcrabsoftware.com |
0bc7926825cc6eb9a6d7d563f069e0b7bb858835 | 68ca39ec51839c1be20bf3a05178a087f7294afc | /working-examples/udemy/fanout-consumer.py | d37ef58f27e7d94dd79d372d54bf6e042e280a7c | [] | no_license | CariZa/rabbitmq-test | 49db02420fb0fe336657054a1166d43a85c042b8 | 5bd274a193bfa7681a66b6aa2f536ea8f19b5108 | refs/heads/master | 2020-03-30T01:24:13.021028 | 2018-10-02T10:36:46 | 2018-10-02T10:36:46 | 150,574,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | #!/usr/bin/env python
import pika
import time
class consume_engine:
def __init__(self):
self._messages = 10
self._message_interval = 5
self._queue_name = None
self._connection = None
self._channel = None
self._exchange = "score.feed.exchange"
def ... | [
"liebenbc@yahoo.com"
] | liebenbc@yahoo.com |
4142a01562511f31b61f45cf79e8bee27a8961d3 | 93b4403ef6ce0d8067694d69fbdcfbb4c8107013 | /if_else_2.py | 94fe4058f6f94b5b6c53c4f6045849990098ed18 | [] | no_license | anzunming/code | 6817efe6f3f235356c7a8492ab80e17dfed2a8fe | 0b657cf264d9639c86c18331ed4219fe6dd0d16d | refs/heads/master | 2021-10-22T22:39:35.686920 | 2019-03-13T06:35:11 | 2019-03-13T06:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #!/usr/bin/env python
#coding:utf-8
num1 = 50
if num1 >= 0 and num1 <= 100:
print u"num1 在0~100之间"
num2 = 35
if num2 < 0 or num2 > 100:
print u"num2 大于100 或者 num2 小于0" | [
"2190881697@qq.com"
] | 2190881697@qq.com |
e770e7733fb63098ada0675deb5a4a5f88ddbcfa | 7a6f8c19dbe42097b12175c685278a34459301b9 | /python_codes/multiples_of_3_and_5.py | 01ee4a0ac43e7abcca64f6c9d8538b8005b12347 | [] | no_license | shripadtheneo/project_euler | 14d7f70832f7b716bdafd4c8a9309e1a21dcdf16 | f8341f65945c2792069d82cf310141eb43a56efe | refs/heads/master | 2021-01-10T03:50:17.409065 | 2016-02-25T10:31:07 | 2016-02-25T10:31:07 | 51,155,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these
multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
def alternate():
n = 0
data = 0
while n < 1000:
if not (n % 3) or not (n % 5):
data += n
... | [
"shripadtheneo@gmail.com"
] | shripadtheneo@gmail.com |
7607ffb566a61ce446317f1daf35d5b9c67d9cb7 | 5d5463c596f7f504be27edbb7d695d0a1d08972b | /NeoML/Python/neoml/CrossValidation.py | 769f24b85b91cbd54951ab0a7f4f5f0e34f80346 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"NCSA",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-arm-llvm-sga",
"Intel",
"LLVM-exception",
"Apache-2.0"
] | permissive | fernandocyder/neoml | adc48c476301012dbc2796c7c0d7f9f506fd14a3 | 881815bb105bd8893da931905fcd6e8581a63ada | refs/heads/master | 2023-04-06T10:29:20.384463 | 2021-04-14T11:15:25 | 2021-04-14T11:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | """ Copyright (c) 2017-2021 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | [
"noreply@github.com"
] | fernandocyder.noreply@github.com |
72603e37ac9301b0811965a1b3bb4fca2ecc8f18 | d677565818d7a3813c4aecc0ffd1da8af97e9513 | /2.Accessing-Text-Corpora-and-Lexcial-Resoutces/2.5-WordNet-synset.py | 25961f7a80c270a385332a16fc5c13521dce3422 | [] | no_license | laixintao/NLP-with-python-demo-code | 58f62a2a0abb80f948d09707989f9d351a794699 | 25d7987faf7c48da8ea29007c20b8bcb1c33da63 | refs/heads/master | 2021-01-23T05:39:27.506752 | 2015-07-21T04:03:17 | 2015-07-21T04:03:17 | 37,509,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import nltk
from nltk.corpus import wordnet as wn
motorcar = wn.synset('car.n.01')
types = motorcar.hyponyms()
print types[26]
# code in books forget 2()
print sorted([lemma.name() for synset in types for lemma in synset.lemmas()])
| [
"799303812@163.com"
] | 799303812@163.com |
5f590c51a421a9d6091983afe3ce5055d3d916f2 | f8a348053df9118331924c7c004714c6679098b7 | /main/veh.py | f55ff5bdc87ff5e221b7f5ce6c4512ac329c4caf | [] | no_license | duyunhe/transportDepartment | 03ec21535a4dc023b8ae7c5ff49bb3eb974a629e | 592f2364a53c60f696bdd6d4691e5a16ccfec993 | refs/heads/master | 2020-05-27T19:21:45.993701 | 2019-12-19T03:23:48 | 2019-12-19T03:23:48 | 188,760,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | # -*- coding: utf-8 -*-
# @Time : 2019/8/21 14:10
# @Author : yhdu@tongwoo.cn
# @简介 :
# @File : veh.py
import xlrd
import cx_Oracle
import os
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.AL32UTF8'
def get_filtered_veh():
fp = open("./data/filterAccOffISU.txt")
line = fp.readline()
isu_li... | [
"a_crux@126.com"
] | a_crux@126.com |
40ff09d2b118f7b5ca02371691a7edf650285340 | 3e0daa411f9c068286848b0794f0a7b42083d3ed | /tutorial/tutorial/spiders/QA_spider.py | 6a6776edf277162c4d3f0cc5bf92f9a3d2b5bff3 | [] | no_license | eyelc/- | 1dd98a370393c1e6e9539d90c45dc6cd0b5475f3 | 295ad63120f5709441446919abd73fc074b477b6 | refs/heads/master | 2020-04-13T15:20:53.650238 | 2018-12-27T11:50:14 | 2018-12-27T11:50:14 | 163,288,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | from scrapy.http import FormRequest
from tutorial.items import QA_spiderItem
import scrapy
import json
class nextSpiderSpider(scrapy.Spider):
name = "QA_spider"
allowed_domains = ["eastmoney.com"]
start_urls = ['http://ask.eastmoney.com/wenda/QAInterfaceRead.aspx']
def start_requests(sel... | [
"noreply@github.com"
] | eyelc.noreply@github.com |
eda3e0618143dbf66b6161035250d455fd62c200 | 1261bc255ed3df9ed760e1fa70ad58dbc4e52c30 | /0x0B-python-input_output/1-number_of_lines.py | 0e518a76aca688a95e4a7fc524991eb8fc8a5671 | [] | no_license | MIlenaMontoya/holbertonschool-higher_level_programming | 77ece3156d9c0490c69090665b79e1c16def02d1 | 9b6942b509bd32cd8f3570d23277404631096e7d | refs/heads/master | 2023-03-07T03:08:27.689032 | 2021-02-10T04:40:48 | 2021-02-10T04:40:48 | 291,843,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/python3
""" Docstring """
def number_of_lines(filename=""):
"""[summary]
Args:
filename (str, optional): [description]. Defaults to "".
"""
line = 0
with open(filename, encoding="utf-8") as file:
for i in file:
line += 1
return line
| [
"1852@holbertonschool.com"
] | 1852@holbertonschool.com |
cfb23408c50eb12cb0018c0b1ec33e872eb10939 | 945c892bb51681a56dc6a4dd850a712d0a4f21ed | /deepaudio/speaker/criterion/pyannote_aamsoftmax/aamsoftmax.py | 0e3ddda1d0e7e4d59e4191bd0cfd0bd0166f04de | [] | no_license | zycv/deepaudio-speaker | ac3a465ef2283287af206e987a7d01296e6fb744 | d4fd1e2ee294997b2a12245d86a88e808dc6fc7a | refs/heads/main | 2023-08-26T07:36:31.976990 | 2021-11-12T10:00:21 | 2021-11-12T10:00:21 | 420,604,779 | 0 | 0 | null | 2021-10-31T11:31:43 | 2021-10-24T06:23:12 | Python | UTF-8 | Python | false | false | 3,120 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from omegaconf import DictConfig
from .. import register_criterion
from .configuration import PyannoteAAMSoftmaxConfigs
class ArcLinear(nn.Module):
"""Additive Angular Margin classification module
Paramet... | [
"yinruiqing110@gmail.com"
] | yinruiqing110@gmail.com |
1b35c07f508e1d8555d44da1605ec5ab4e46b1f3 | f1bab6ed438915aae4786ea16542bfc53fc44f44 | /workshop.py | afc3f08b388995ea0e1dc803b82afdd3e2f1e289 | [] | no_license | kamonchat26/workshop | aefefb1ca70f529eecd17f615fb1dcea88b4844a | 19bb20f7f5947a42e6269abe00254de442d518de | refs/heads/master | 2023-02-10T08:36:39.894528 | 2021-01-09T05:10:17 | 2021-01-09T05:10:17 | 328,075,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | print("Hello world")
print("Name : kamonchat")
print("Age : 22") | [
"kamonchat2607@gmail.com"
] | kamonchat2607@gmail.com |
8a784fbde755f1cd3ed6366feb3e084114970342 | 3a76cc5ecfcfb7292236e3a49ee7e06753da5504 | /awwa/tests.py | b7365e460c8a7e26e7ce919c98618d3006541a0f | [
"MIT"
] | permissive | Emmanuel-otieno/Awward_clone | 5e0a4624f990448bc61bc68289c938e4c4266c2e | ce0fb841984cae619599b51600403d7a1d873fc8 | refs/heads/main | 2023-02-25T03:09:29.687058 | 2021-01-26T04:46:46 | 2021-01-26T04:46:46 | 331,907,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from django.test import TestCase
from .models import Project
from django.contrib.auth.models import User
# Create your tests here.
class ProjectTestClass(TestCase):
'''
Test case for the Project class and it's behaviours
'''
def setUp(self):
return Projects.objects.create()
#Testing i... | [
"sakoemmanuel4@gmail.com"
] | sakoemmanuel4@gmail.com |
bad2e9b0b94246a6809cee2a530e2dbc8cbbd7fe | 9b32d75490355e69d97008584c702cab66a221da | /payments/admin.py | 349e545a164e71bdee49e92fdb4b37618aacc16d | [] | no_license | cferreiras/mexican-delivery | 1c37d798d262d8763a183809cd2e4275d64ab33f | 54f0af0f53a14c2b0a54024225c916fc0400c265 | refs/heads/master | 2023-09-06T03:44:40.837527 | 2021-11-05T22:59:24 | 2021-11-05T22:59:24 | 406,971,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from django.contrib import admin
from .models import Payment
@admin.register(Payment)
class PaymentAdmin(admin.ModelAdmin):
list_display = [
"__str__",
"order",
"doc_number",
"email",
"transaction_amount",
"mercado_pago_id",
"mercado_pago_status",
"... | [
"caio.ferreiras@icloud.com"
] | caio.ferreiras@icloud.com |
0240e5bee41ad6c47695c4c80efebd23471e954e | 144b09ebc05ab1f157c680a5237055b57861af82 | /Warehouse/Inventory.py | b0ea9530dcd4671ea7463d475970181862734aa6 | [
"MIT"
] | permissive | upandacross/warehouse_optimization | 98ce101ed845fca7a044137fc11f9754112a8a58 | c1bae87bcb3371a7073d75e147322b4aee459f6a | refs/heads/master | 2020-06-01T03:56:41.364403 | 2019-06-22T02:56:10 | 2019-06-22T02:56:10 | 190,624,578 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,024 | py | from collections import defaultdict
from Warehouse.Bin import Bin
class Inventory:
'''
A singleton class, Inventory serves much like a factory using closure to return instances that
refer to a single hidden class within of which there is a single instance. References to the
hidden attributes are accomplished ... | [
"1205122+upandacross@users.noreply.github.com"
] | 1205122+upandacross@users.noreply.github.com |
11a2eaa85d8243be87c2e539d618f7ffa20e6b83 | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /app/eduqa/__init__.py | c7dc8af6a68d35de502955b4d708b7ed63eba6f3 | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 90 | py | from flask import Blueprint
eduqa_bp = Blueprint('eduqa', __name__)
from . import views | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
e0c8e6ddc179d4521efdc223a7e389df6781749b | 45883bbc0f6f23e01dc70cb4077800434994e78b | /docs/extensions/index.py | 7565e0b49c15e68d89246aad60b8bc519fc62599 | [
"DOC",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ddavila0/htcondor | 08441707e6482e0d92ee189a26324a77761be425 | 8835cc3bacc998d82841d14e962165cb5d3c2ee4 | refs/heads/master | 2023-08-27T11:11:13.453792 | 2021-08-02T23:13:14 | 2021-08-02T23:13:14 | 313,687,412 | 0 | 0 | Apache-2.0 | 2020-11-20T22:55:19 | 2020-11-17T17:04:54 | C++ | UTF-8 | Python | false | false | 1,665 | py | import os
import sys
from docutils import nodes, utils
from docutils.parsers.rst import Directive
from sphinx import addnodes
from sphinx.errors import SphinxError
from sphinx.util.nodes import split_explicit_title, process_index_entry, \
set_role_source_info
def dump(obj):
for attr in dir(obj):
print... | [
"coatsworth@cs.wisc.edu"
] | coatsworth@cs.wisc.edu |
bf67858f1f83c56485831f8b94b83dc6d25a7ea9 | 7f3cbde8b31cc7ef064b303de54807f59ea0d3c8 | /Algorithms/Warmup/a_very_big_sum.py | caace756e8b2e04ad881f5fd9e99bbe6db07df21 | [] | no_license | Marlysson/HackerRank | 7f9ea6a04cd7b97ba5c43c5e321b219511a64106 | 98e65be30d8e6f70ca75676441dc9b1fd7fcac1b | refs/heads/master | 2020-04-06T04:28:43.522255 | 2016-10-07T04:18:06 | 2016-10-07T04:18:06 | 55,646,873 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding : utf-8 -*-
#numbers of large numbers to sum
#Challenge : https://www.hackerrank.com/challenges/a-very-big-sum
n = int(input())
numbers_str = str(input())
numbers = []
def to_list(string_numbers):
from string import punctuation
for caractere in punctuation:
string_numbers = string_numbers.replace(... | [
"marlysson5@gmail.com"
] | marlysson5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.