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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da1c774acc5561d55c44153d527b7870d3edd240 | 7b710b60437eb4fbde32c616492f9a0466a899cf | /saludo.py | 3c2d9e45eec02617bb8a184a3a74b364a155c399 | [] | no_license | 1000VIA/Platzi---Curso-de-Python | 04586ab57f69868384f683e1aea7be850432acef | 7b7d4dd759e2785f7de4fd090b7459c5f71e7326 | refs/heads/master | 2020-07-13T21:14:30.596897 | 2019-12-13T00:55:31 | 2019-12-13T00:55:31 | 205,156,148 | 2 | 1 | null | 2019-12-13T00:55:32 | 2019-08-29T12:13:01 | Python | UTF-8 | Python | false | false | 71 | py | name = str(input('Cuál es tú nombre?'))
print('Hola: ' + name + '!') | [
"milvampa1@gmail.com"
] | milvampa1@gmail.com |
b2e2db887089fa40f37121da6294b059dbddd07e | d873d529a24a30e2a9fc3e5a15ef6fe595c1423e | /blockchain-env/Lib/site-packages/Cryptodome/Signature/PKCS1_v1_5.pyi | 5851e5b47145e14378defa599a936c27b33312d2 | [
"MIT"
] | permissive | AdityaStark7/blockchain_backend | 2731d733a0029614565b484ec5820d04f615bfe7 | a019dda3bd4160ae962ced5bd95d060ad33f7f07 | refs/heads/main | 2023-08-19T12:26:38.211892 | 2021-10-15T05:31:18 | 2021-10-15T05:31:18 | 385,313,460 | 8 | 1 | MIT | 2021-10-11T17:28:22 | 2021-07-12T16:31:53 | Python | UTF-8 | Python | false | false | 157 | pyi | from Cryptodome.PublicKey.RSA import RsaKey
from Cryptodome.Signature.pkcs1_15 import PKCS115_SigScheme
def new(rsa_key: RsaKey) -> PKCS115_SigScheme: ... | [
"ak511046@gmail.com"
] | ak511046@gmail.com |
6d149975d5e7fc54cb3bb401ac3053f567a095d5 | e029672997da3c81d756bd66108c33322184ee3b | /data_convert.py | 2330bda6d670b43da88063637651d5cd6b5a051a | [] | no_license | jisangyu/K-Anonymity | 3bc6d29592b62b49df883eec46c7d59995620bf6 | bec6a2afed2de46e6b4ea6e217563ff5131fc0cc | refs/heads/master | 2020-05-18T12:29:54.818318 | 2019-06-05T13:28:22 | 2019-06-05T13:28:22 | 184,410,448 | 1 | 2 | null | 2019-06-05T13:26:52 | 2019-05-01T12:05:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,635 | py | import pandas as pd
import csv
def load_distance(coloum_name):
distance_dict = dict()
with open('./data_distance/distance_' + coloum_name + ".csv", newline='') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
distance_dict.update({row[1]: row[2]})
return distance_di... | [
"ssinzo@gmail.com"
] | ssinzo@gmail.com |
6c47582b4db897b64b9c851989f2ebaf2c0c1813 | c804db17b29c5929c87768b7fa6ebb28f937fc36 | /eu135.py | 2d8087d06adc1d916ec3c880789f9bf2b1d6f41f | [] | no_license | ishandutta2007/ProjectEuler-2 | a1f07329fd895828e740d0cf71b0b0a4de261b4c | 29265e4e3dccc67d05ef8d6129363cea1705d970 | refs/heads/master | 2023-03-17T03:19:35.220761 | 2019-04-18T13:39:40 | 2019-04-18T13:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | # ------------------------------------------------------------ Same differences --------------------------------------------------------------- #
# #
# Given the positive i... | [
"roee.sefi@gmail.com"
] | roee.sefi@gmail.com |
780eef6e690917e25c77c3a334d9886de47514aa | 358d5fcb1e9709b946097b9b291573a0a83a7b94 | /src/gui.py | 9d9d8450475b41f1f2442529785192254dcf8011 | [
"Apache-2.0"
] | permissive | MakeNTU/2021_team06_ | 9b452e652da44b7dafc8abe7519c5f64ebaab900 | 4fecd8651227d2fe3cc2b3e5ab31d182fafe368c | refs/heads/main | 2023-05-01T00:42:26.017576 | 2021-05-25T01:56:07 | 2021-05-25T01:56:07 | 351,734,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | from vpython import *
import time, serial
COM_PORT = '/dev/cu.usbserial-0001'
BAUD_RATES = 9600
ser = serial.Serial(COM_PORT, BAUD_RATES)
ser.readline()
scene = canvas(align='left', width=0, height=0, background=vec(1, 0, 1))
v_graph = graph(align='left', width='700', xtitle='t', ytitle='時速(km/h)', background=vector... | [
"noreply@github.com"
] | MakeNTU.noreply@github.com |
2b6f8dff268c3503dbf74f2003923095f66d1922 | c5d5c36636c4ea7b05bbb65aa9981ab1749baf43 | /foods/models.py | f9ae3584600a81da95db5a5531c73360a360482e | [
"MIT"
] | permissive | akuprik/foodgram-project | fd770bed208ee828b62e3e38b040e95c05403301 | 4eb1c79fc9147a04fb675a74df86e67c95ae6c68 | refs/heads/master | 2023-04-14T04:43:06.508649 | 2021-04-24T05:45:57 | 2021-04-24T05:45:57 | 346,740,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Ingredient(models.Model):
name = models.CharField(max_length=256)
unit = models.CharField(max_length=64)
def __str__(self):
return '{}, {}'.format(self.name, self.unit)
class Recipe(models... | [
"akupr@yandex.ru"
] | akupr@yandex.ru |
d2553312d3639d7b24781b350bb59dc90989953b | 2cce9bca5cbe600ce87a8dc34dc9222704bbc98a | /training/train_cfm_512_deeplabv3_mobilenetv2.py | c052a3caf064c88835cec80b350bd6d919db5535 | [
"MIT"
] | permissive | daniel-cheng/CALFIN | ea335ed0799ceeafc148c54cb748fbed364aeb4d | fbe5090d0ab4d48016a4f66bcb441a7c8faa56a2 | refs/heads/master | 2023-05-15T07:05:27.451758 | 2021-04-20T23:03:37 | 2021-04-20T23:03:37 | 185,285,507 | 17 | 7 | MIT | 2022-06-03T15:48:39 | 2019-05-06T23:22:54 | Python | UTF-8 | Python | false | false | 3,200 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
from keras.utils import plot_model
from keras.models import Model, Input, load_model
from keras.layers import Concatenate, Conv2D, MaxPooling2D, Conv2DTranspose, Dropout, Up... | [
"dcheng334@gmail.com"
] | dcheng334@gmail.com |
1a20152a4e9f3a965e26b539ee8d244aba84e05e | 854c71acb6696d0ba6ff957aeb8f5db63ad47567 | /pr4/settings.py | 7a76ba83f811a6ee9c5f96b5f4f7013b4cc32444 | [] | no_license | ivan-emtsov/ind9 | 87d1ca68ff85fe55882c1c1f040b8a915cf7d2ae | 9ca9a9c568e44d4b1d3f74afdbcdd1937fec3fa7 | refs/heads/master | 2020-11-27T18:03:35.965163 | 2019-12-22T11:10:36 | 2019-12-22T11:10:36 | 229,554,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | """
Django settings for pr4 project.
Generated by 'django-admin startproject' using Django 1.9.1.
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
import... | [
"nikita.mihaylov@waltex.ru"
] | nikita.mihaylov@waltex.ru |
2657dd3f3e69d9a929e71eb62f1987ad44ad513f | 6f3790b00ddf3a90fa8a8310fb1257be0d685e7a | /socialhub/useraccounts/views.py | 4a1faaa1034a032042cc928bb1af2d8497b45ade | [] | no_license | Erikfj/socialhub | 76954c17a9378d5b2eb3bf4c281c60ec9aaee355 | fb3bd1799ff0d32ea1dbd1f7d67266b3762284c2 | refs/heads/master | 2021-01-23T02:28:49.728538 | 2015-06-03T09:13:23 | 2015-06-03T09:13:23 | 34,781,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from django.shortcuts import redirect
from django.contrib.auth import authenticate, login, logout
# Create your views here.
def user_login(request):
context = {}
if request.method == 'POST':
username = request.POST['username']
passwo... | [
"filip@adminisatorsmbp.lan"
] | filip@adminisatorsmbp.lan |
c768e9f572a0fb4718a5cd16dcba759dba8ba8e0 | 8dc4724260d097d7bd785d45dbab0c95e91e95ff | /manage.py | c14cf40bcd00bc7c338736b75ce3530a3c080916 | [] | no_license | ManuDIY/Learn-Django-Authentication-System | 38cc9dbff08fb34fbccff4a816cd8b0b23fdae55 | 4af6776cea41c072a9703b04aa454054ac705f46 | refs/heads/master | 2022-09-20T16:13:14.787540 | 2019-06-23T06:51:47 | 2019-06-23T06:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webbasedauth.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"henrymbuguak@gmail.com"
] | henrymbuguak@gmail.com |
2c753b738f062d9b1794b3b800ad4d2abbeb9aeb | 64085c1c9c9993048d7de5e56064bc1a7ea6ca22 | /hash.py | 8f403e9edbf5ba80102a4537896e963971456fa6 | [] | no_license | 1ckov/Web_A-5_Project_Repo | f298188de1082356f4d497a4dac450b4e8c22fc4 | 432f726aa9f6b7fd693ed7c583ffd817b8b285f5 | refs/heads/main | 2023-06-10T13:55:47.319251 | 2021-07-04T02:18:37 | 2021-07-04T02:18:37 | 352,611,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import hashlib
password=(" ")
salt=(b"100000")
key = hashlib.pbkdf2_hmac(
'sha256', # The hash digest algorithm for HMAC
password.encode('utf-8'), # Convert the password to bytes
salt, # Provide the salt
100000, # It is recommended to use at least 100,000 iterations of SHA-256
dklen=128 # Get a ... | [
"sa6o.hristov96@gmail.com"
] | sa6o.hristov96@gmail.com |
2e86b740ae0c926fe248bb6620ce44b4e1e3d9a0 | 8e589cd52e92ca1f2c085e435f2e5fe88389b1d6 | /correlation-master/coffeeVsSleep.py | 70cb24d987e0732a3f863490a054b5df662c383b | [
"MIT"
] | permissive | vmarques339/Cups-of-coffee-vs-hours-of-sleep-Students-marks-vs-Attendance | 9923290bb48da8ea979c1b92d9c0ca484cd68ce8 | 84a7fa4eea79bcf9536c651548eec360f029c9df | refs/heads/main | 2023-09-02T01:54:47.749960 | 2021-11-20T19:32:23 | 2021-11-20T19:32:23 | 430,192,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import plotly.express as px
import csv
with open("cups of coffee vs hours of sleep.csv") as csv_file:
df = csv.DictReader(csv_file)
fig = px.scatter(df,x="Coffee in ml", y="sleep in hours", color="week")
fig.show()
| [
"noreply@github.com"
] | vmarques339.noreply@github.com |
a9257397276aca8e36cb069196d0038845d1f29c | f8bf7e9efdc2027f18da77026902a24b2ebb2bc7 | /test_rc.py | 99fa579df0d9af8116daa8af35e01bfcfc4cbfd4 | [] | no_license | zhaomr13/TheStandardModelGame | 5767e0b57c8162655d6e7fae1acc1ed816c0b621 | 36a939e97053cb7bd7e235dcc5a125d3ba2d266b | refs/heads/master | 2021-01-23T03:58:59.162339 | 2017-04-01T14:32:25 | 2017-04-01T14:32:25 | 86,139,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,022 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.6.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x22\x19\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x64\x0... | [
"mingrui.zhao@cern.ch"
] | mingrui.zhao@cern.ch |
eb5023ec4fb7c8bc7ec1220eec4973aa2f48faeb | 0a602f99463e233666d0d95d033da51664bbf31d | /Chatbot 4/training.py | ede6cded656ab933496bcd8834c22845f5cebaed | [] | no_license | MarkoMarcelo/JIRA | 9a952c736312b7fcbb2966c765e5bbe19cc5fe7d | 7f8301521a6c68e440930620476348acbc85e94e | refs/heads/main | 2023-06-30T10:56:16.671076 | 2021-07-29T21:21:35 | 2021-07-29T21:21:35 | 367,192,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | import random,json,pickle
from re import S
from typing import Pattern
from nltk.chunk.util import accuracy
import numpy as np
import nltk
nltk.download('wordnet')
from nltk.stem import WordNetLemmatizer
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Dropo... | [
"noreply@github.com"
] | MarkoMarcelo.noreply@github.com |
92ea62dd911a2970488e170fdfdb662b2d03f718 | 7caf540d2cf71e27c130f5cc791345b73774af50 | /failed_attempts/migrations/0003_auto_20180503_1147.py | bd3b1cb80a16963d816629d65da30675a82dc165 | [] | no_license | eyetea-solutions/django-failed-attempts | b1e87c003cd82fb6d76e31ca39feb35eee745b38 | 8c1fffbc39c040b0460c227743521a47599962a0 | refs/heads/master | 2020-03-17T05:33:06.010389 | 2018-05-15T14:42:16 | 2018-05-15T14:42:16 | 133,321,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-05-03 11:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('failed_attempts', '0002_auto_20151224_0058'),
]
operations = [
migrations.A... | [
"martin.taleski@gmail.com"
] | martin.taleski@gmail.com |
8a59c51857c46c7ae343c70e1e3b12a38ff518e7 | fd6051cd3b4d757083ab7bff376d6cdf654f7202 | /e2e/Vectors/Generation/Merit/TwoHundredSeventyFour/RespondsWithRequestedCapacity.py | 516b9a69c935498f84f6fe320f11eaf5ed59b6d1 | [
"MIT",
"CC0-1.0"
] | permissive | MerosCrypto/Meros | aa4532547ba61f06d2560a30a069a57d2c254584 | 5c282509fed18e8b23d466022787b017991e51b9 | refs/heads/master | 2023-05-31T02:08:40.653223 | 2023-05-30T21:33:28 | 2023-05-30T21:33:28 | 134,137,513 | 69 | 20 | NOASSERTION | 2023-05-30T21:33:29 | 2018-05-20T09:36:33 | Nim | UTF-8 | Python | false | false | 1,107 | py | import json
import e2e.Libs.Ristretto.Ristretto as Ristretto
from e2e.Classes.Transactions.Transactions import Data, Transactions
from e2e.Classes.Consensus.VerificationPacket import VerificationPacket
from e2e.Classes.Consensus.SpamFilter import SpamFilter
from e2e.Vectors.Generation.PrototypeChain import Prototyp... | [
"noreply@github.com"
] | MerosCrypto.noreply@github.com |
04e56972a44469997666bf7a0521933ba1f6a34a | 442dae288109b9b202fecbe728eb61cba6de83d4 | /tests/testcase.py | cfc30dd7551917b6e638cb5e35ba658ea8e4f229 | [
"MIT"
] | permissive | capy-inc/django-stdnet | 751e4b28a6cdc1065647056132fcab955c21e250 | 9b8ab02ec73692f867947168ee0b88d41e603d82 | refs/heads/master | 2021-01-25T10:05:51.580249 | 2015-10-13T05:13:44 | 2015-10-13T05:13:44 | 24,475,688 | 3 | 1 | null | 2015-10-13T05:13:44 | 2014-09-25T21:19:33 | Python | UTF-8 | Python | false | false | 2,554 | py | from distutils.version import LooseVersion
from django.test import TestCase
class BaseTestCase(TestCase):
app_label = 'test'
def _setup_redis_db(self):
from djangostdnet import models
from djangostdnet import mapper
from . import redis_server_info
models.mapper = mapper.Mappe... | [
"yusuke@jbking.org"
] | yusuke@jbking.org |
1bc8d97bb3d425a6081356f805a0fe3124198083 | a80a31418ce85348d886b8b2a6135b3c4d294407 | /docker-project-run.py | 93bcf266964c1616c09f69655014d6c1cd561b2d | [
"WTFPL"
] | permissive | lku/docker-project-run | cc154d3de0760a1a79c555519919d87e09517244 | d863fba99b19b36ca5e7de146a4abb847538b12e | refs/heads/master | 2021-01-21T03:50:17.204464 | 2015-06-27T11:17:42 | 2015-06-27T11:17:42 | 39,071,180 | 0 | 0 | null | 2015-07-14T11:34:24 | 2015-07-14T11:34:24 | null | UTF-8 | Python | false | false | 1,020 | py | #! /usr/bin/env python
# Copyright 2014 Jan Markup <mhmcze@gmail.com>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.
import glob
import os
import sys
if... | [
"mhmcze@gmail.com"
] | mhmcze@gmail.com |
6ccc7fea6fff8c7c66af04903599608f969a0107 | 4c403ba3d9880e52945083447f9c1bdf8e6dd2c5 | /openssl_x509_verify_example.py | f911cca2b8ab8dbf263d3d16fb064795df943f02 | [
"MIT"
] | permissive | mk-j/Py_openssl_x509_verify | 1618f4e23a1de53ca1d584f85b3f7e4894e9951a | 6d877cc14efb23cff00142640a57850cc9afa442 | refs/heads/master | 2021-09-19T08:48:02.482871 | 2018-07-25T20:07:11 | 2018-07-25T20:07:11 | 111,472,562 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/python
import x509tools
import os
def file_read(filename):
content=''
if os.path.exists(filename):
fp = open(filename, "r")
content = fp.read()
fp.close()
return content
def check_openssl_cipher():
v = x509tools.openssl_cipher_iv_length('AES-128-CBC')
print("ope... | [
"mark@zedwood.com"
] | mark@zedwood.com |
0a72067d6495c2f7fdd93431093b9b9eb1ade8b5 | 493318707fd161c5a6b8c2be5818dbbce5889f8b | /trumptwitterarchive_spider/trumptwitterarchive_spider/settings.py | 47e1f554f63028547d85257994a9ceee979c6475 | [] | no_license | marcpre/learning_python_scrapy | 17999eb781fb30fdd4a6dabfd5b822f0597a0793 | 13a22009fb3f6c95d17d7ece2f7eec4503240af6 | refs/heads/master | 2020-03-30T00:30:39.446819 | 2018-10-18T04:16:14 | 2018-10-18T04:16:14 | 150,527,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | # -*- coding: utf-8 -*-
# Scrapy settings for trumptwitterarchive_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.... | [
"marcus.presich@gmail.com"
] | marcus.presich@gmail.com |
9d1748c309ef8b2c3091a29a960d0bd680b5c3ac | 06810ff6338306fbb114a20e416d3e891e9db84c | /rve_generator/rve_gen.py | 69a4fd0c55e296830f0c87e7e58c7daee44348e5 | [
"MIT"
] | permissive | hossen-code/RVE_PY | fd88d7c7fed5e484a6ca00335acbabf00498788a | 09029f0aecbdfef25470e657baa9a103e59a569a | refs/heads/master | 2022-11-24T00:50:03.586085 | 2020-07-24T03:16:17 | 2020-07-24T03:16:17 | 282,079,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
"""
Creating random micromechanical RVE of composites
author Hossein Ghayoor
"""
from rve_generator.point import Point
from rve_generator.utility import is_colliding, calculate_all_distances, sum_n_closest_point_distance, plot_all_points
if __name__ == "__main__":
all_points = []
point... | [
"hghayoor@gmail.com"
] | hghayoor@gmail.com |
5f27d85de8ca8dac144d8acdf4b03212ec2d074c | 009a6574b3f655c607b19a5d3468dce13cd59bfa | /forms.py | df907102e628e0a0dbe896809ab585cab1d07d50 | [] | no_license | ADLIAhmed/JobifyAMOA | 29e97bec8d799e7c2b2d0e9ea74f4018b50ff2d9 | 0c76c65d4089f0929c1d6b3feb282170f6bb4e0c | refs/heads/master | 2021-05-22T21:33:02.156032 | 2020-04-05T17:17:52 | 2020-04-05T17:17:52 | 253,104,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django import forms
from .models import offre
class offre_form(forms.ModelForm):
class offre:
model = offre
fields = [
'offre_title',
'offre_contenu',
'offre_ville',
'offre_renumeration',
'offre_periode',
]
from django.contr... | [
"ahmedadli.etude@gmail.com"
] | ahmedadli.etude@gmail.com |
535820d87dd62c3fd0d9dbf0aaf588fb9b1d93a6 | 8ce656578e04369cea75c81b529b977fb1d58d94 | /clients/apps.py | 2dcd6c20d3ff5901668f0dd30dd374d114919e48 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.apps import AppConfig
class ClientsConfig(AppConfig):
name = 'clients'
verbose_name = 'Компании'
def ready(self):
import clients.signal_handlers # noqa: F401
| [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
c52b7a3785f2776a9cde133ad821bd1dc1f8affb | 9ba474c019baaded3a1918fe8723de7e8ad0ccf5 | /lga_dict.py | add798b83367611f51f293ebf79256db11335830 | [] | no_license | ait360/query_google_places | 4039643e765d9ef9f6ffcce1232ee63785240125 | 93e828019c7d47957040395caaa1daa788495ea7 | refs/heads/master | 2022-02-08T05:31:27.061705 | 2022-02-02T19:59:40 | 2022-02-02T19:59:40 | 249,086,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,608 | py | from collections import defaultdict
local_govt_area = defaultdict(list,
Abuja= ['Abaj', 'Abaji', 'Abuja+Municipal', 'Bwari', 'Gwagwalada', 'Kuje',
'Kwali', 'Municipal+Area+Council'],
Abia= ['Aba+North', 'Aba+North', 'Aba+South', 'Arochukwu', 'Bende', 'Bende',
'Ikwuano', 'Ikwuano', '... | [
"amaefunatheophilus@gmail.com"
] | amaefunatheophilus@gmail.com |
798d67a4c5573a240974eb33442594dac3882564 | e9b79a80d1eca76a2f430dc6fd63a27a971b1b1d | /Algorithms/Frahst_v6_1.py | cbac38101ba7c30846dc6ab17484dfcd58ccaa5e | [] | no_license | MrKriss/Old-PhD-Code | 3e4138f34d216b13d1febff41b0966b61ea4d1c1 | 35de436f500d5a1fe09cf4309d7e9b2e6dbddc45 | refs/heads/master | 2020-06-08T23:43:40.147486 | 2012-03-12T14:56:40 | 2012-03-12T14:56:40 | 2,950,882 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 21,541 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 05 23:19:11 2011
THIS IS THE VERSION TO RUN ON MAC, NOT WINDOWS
@author: musselle
"""
from numpy import eye, zeros, dot, sqrt, log10, trace, arccos, nan, arange, ones
import numpy as np
import scipy as sp
import numpy.random as npr
from numpy.linalg import qr, eig, norm... | [
"chris.j.musselle@gmail.com"
] | chris.j.musselle@gmail.com |
3a17d7c330985b8f290aca777695885ba4773cd1 | 48ade1b3a9f2ce51cebb5e236448c0f977efa71e | /tagmaster.py | 3e761a4f92e4ebdbe3e70d84c0db7767ac8829cc | [] | no_license | naliferopoulos/PasteCrawl | 359f2e266ec12fe80f579dc8c07da9bd8b397421 | a875547d57822e8a35b7d4ec0c5985a2c221e8d7 | refs/heads/master | 2022-03-31T10:44:59.475347 | 2020-01-14T11:31:18 | 2020-01-14T11:31:18 | 232,835,469 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import os
import importlib
# The list of taggers
taggers = []
def collect_taggers(dir):
files = os.listdir(dir)
for file in files:
if file.endswith(".py"):
module = importlib.import_module(dir + '.' + file[:-3])
tagger = my_class = getattr(module, 'Tagger')
taggers... | [
"aliferopoulos@icloud.com"
] | aliferopoulos@icloud.com |
c1ae17639a9bb83b8bf96c38ba86307c480cf464 | 4f8900cb2474282ae355a952901df4bc9b95e81c | /mooring/api_tools.py | 131a9cc627d77ad87064fd16ccd05c55de29e2f5 | [
"Apache-2.0"
] | permissive | dbca-wa/moorings | cb6268c2b7c568b0b34ac007a42210fd767620f7 | 37d2942efcbdaad072f7a06ac876a40e0f69f702 | refs/heads/master | 2023-06-09T04:16:57.600541 | 2023-05-31T05:50:55 | 2023-05-31T05:50:55 | 209,494,941 | 0 | 6 | NOASSERTION | 2023-05-22T04:56:38 | 2019-09-19T07:53:30 | Python | UTF-8 | Python | false | false | 823 | py | from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.models import Group
from mooring import models
from mooring import common_iplookup
from django.db.models import Q
import json
import ipaddress
def create_vessel(request, apikey):
ledger... | [
"jason.moore@dbca.wa.gov.au"
] | jason.moore@dbca.wa.gov.au |
1c943d111acf300d36712000062dc8efdc38d5a6 | dddbd1a49f6ecc002e37bb0682ddfc2e61b19e71 | /src/robogenerator/test/test_random_pairs.py | 6590b0c6304e2759794a907fa0f06ba723de58be | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | blueenergy/robogenerator | 1c3ea9af8adc7a74db50ee73a2051154ce5a75d5 | cd5a72a350e84f8563fa50874e8325993520840e | refs/heads/master | 2021-01-17T17:05:19.021503 | 2015-07-03T09:14:31 | 2015-07-03T09:14:31 | 6,330,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import unittest
import sys
sys.path.append('../')
from random_pairs import get_random_combination
old_parameters = {'unit_type': [ "DMCU"]
, 'state':[ "WO-EX"]
, 'restart_mode':[ "OPT","TOT","DSK"]
,'restart_level':["master","slave"]
, 'element_type':["RNC"]
... | [
"shuyong.y.lin@nsn.com"
] | shuyong.y.lin@nsn.com |
cc461be28775fdbfab839012d2de66d810dc5087 | a5a5d21751ab6e6dddda703899d891a95859f102 | /Dust Invaders B02.py | 338137316fbf89b65c14bed3011cdd8edb4297d8 | [
"MIT"
] | permissive | ecodallaluna/dustinvaders | a787f77cc762f4201eb1c3ca44e454154af10b02 | bb06d1d6d41c9169f5c35a3f01cd658f5ed0296f | refs/heads/master | 2021-06-26T01:52:40.323130 | 2020-09-24T18:00:22 | 2020-09-24T18:00:22 | 132,319,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,245 | py | #
# ______ _ _ _____ _____ _ _____ _ _ _ _ ___ ______ ___________ _____
# | _ \ | | / ___|_ _/\| |/\_ _| \ | | | | |/ _ \| _ \ ___| ___ \/ ___|
# | | | | | | \ `--. | | \ ` ' / | | | \| | | | / /_\ \ | | | |__ | |_/ /\ `--.
# | | | | | | |`--. \ | ||_ _|| | | . ` | | | | _ | | | | __|... | [
"noreply@github.com"
] | ecodallaluna.noreply@github.com |
2e9d73f47d2c9a9e999c0c451e6fbc6f6b3d80b3 | debeb32aa1ec296ac67c7b0665e8b8ee6d111efe | /combine_preds_and_analyze.py | b085a28f2eaa873f6b08d564d1424b0ba050e888 | [] | no_license | sacohen11/climate-risk-capstone | 393671098059a5f0204af9c0772ad5c25e8b6860 | e83a873c0337874464c278a3ccd64b28100c5e66 | refs/heads/master | 2023-04-18T11:46:04.824645 | 2021-05-05T20:26:09 | 2021-05-05T20:26:09 | 364,498,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,478 | py | #################################################################
# Title: Combine Predictions and Analyze
# Author: Sam Cohen
# Notes:
# These functions combine all the results of the research pipeline
# and performs joint analysis on all the results.
##################################################################... | [
"cohen.samuel@wustl.edu"
] | cohen.samuel@wustl.edu |
59ccfb00af43a84ba98ada0362d7440538825d0d | 32f02062d755d8244b23ab88a729bfc71331e3b3 | /todolist/migrations/0004_auto_20190219_0837.py | b9e772bc1c3635aab8265950aa3b2b4530dd0b2c | [] | no_license | malkoG/todoquest-server | 6a377566146a974494ed55f71ea30a748d4e38df | bfdbdd5fcf44cf815b948f952ee1ca3088eb8d9b | refs/heads/master | 2022-01-22T07:48:13.811514 | 2019-02-19T09:25:24 | 2019-02-19T09:25:24 | 156,067,845 | 3 | 2 | null | 2022-01-13T07:04:51 | 2018-11-04T09:44:01 | Python | UTF-8 | Python | false | false | 816 | py | # Generated by Django 2.1 on 2019-02-19 08:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('todolist', '0003_auto_2018... | [
"rijgndqw012@gmail.com"
] | rijgndqw012@gmail.com |
df88f160d8e3d64b52b0f4ba5bc1542d33dc16f8 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_route_filter_rules_operations.py | d8a897fed9168ffc0bf0bde43c42fdcf66d0eae4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,710 | 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"
] | scbedd.noreply@github.com |
627eadd9d8d814f6afc5bcf1f793fbd777de080d | 1c0a80b4d366003e0717e53e389b0def90914ffa | /BTD_DTB/DTB.py | 574da28237dfb56dbd52dfd5b0cfeb3737a7f9e9 | [] | no_license | AbolfazlAslani/BTD_DTB | 4a6a66cdfd0de93a8a05d3d1160f4e02b34d0eac | 97e57f4e2fce8a99ea5304c361a29f872123ea70 | refs/heads/main | 2023-01-22T21:27:38.428297 | 2020-12-05T20:52:35 | 2020-12-05T20:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | def decimal_to_binary(d):
kharej_ghesmat = 1
baghi_mande = []
answer = ""
while kharej_ghesmat != 0 :
kharej_ghesmat = d // 2
baghi_mande.append(d % 2)
d = kharej_ghesmat
for i in baghi_mande:
answer = str(i) + answer
return answer
| [
"noreply@github.com"
] | AbolfazlAslani.noreply@github.com |
6bfedf399151cd596fada9f893a54261433e2c76 | 69577168f63f53d4ca10898e9b18eec14b87c132 | /song player/guicource.py | 702654a854da59f86621bb3d42737963458249c0 | [] | no_license | ved-op/Music-player | 5ac7f8b66a7bab9203246e9fa40c9954b7963eb8 | 8543bb84bb9e0a1b156393545ee7d89b15bcc700 | refs/heads/main | 2023-02-04T09:41:31.613162 | 2020-12-25T07:17:34 | 2020-12-25T07:17:34 | 324,310,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from tkinter import *
from pygame import mixer
mixer.init()
def play(audio):
mixer.music.load(audio)
mixer.music.play(-1)
#create a window
root=Tk()
root.title("tkinter course")
root.geometry("600x700")
root.config(bg="#262626")
root.resizable(False,False)
lbl_title = Label(root,text="Please C... | [
"noreply@github.com"
] | ved-op.noreply@github.com |
893256007045a8503bce3be751d3b018b761938e | c17ed27d8862b0adecff9dde55d4a8ad0be545db | /system_tests/test_framework.py | c1548a0cfdfd4275e037139105180af6947c8101 | [] | no_license | hussainsultan/mesos-distributed | 72cb11e7728121139805899e8e1e38691ab69f17 | 88d9e840eed65f8fe26e53c639350049df49a4b2 | refs/heads/master | 2021-01-21T13:57:37.155233 | 2016-06-03T21:39:42 | 2016-06-03T21:39:42 | 47,972,700 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import unittest
import time
from distributed import Executor
from expects import expect, equal
from framework.distributed_scheduler import DistributedScheduler
from framework.scheduler_driver import DistributedDriver
from system_tests.matchers.framework_matchers import have_activated_slaves, have_framework_name
from s... | [
"hussainz@gmail.com"
] | hussainz@gmail.com |
3c46b7366cc5ea8f244b9d5f62ceca308f58388f | 5dd82b41a5d4629d9353e196a43b78b66bbf5201 | /pycoin/tx/script/Stack.py | a9720ca616ee0acad46582f84940bbca8d62c17c | [
"MIT"
] | permissive | haobtc/pycoin | 41009bd152fec29aa38a4e22f85049eb002e06ca | cba22aede3e7fc4edb742b8d6fe4d9aa198de556 | refs/heads/master | 2022-07-21T00:19:07.143110 | 2017-10-21T23:44:13 | 2017-10-21T23:44:13 | 109,953,071 | 1 | 2 | MIT | 2019-12-25T06:13:48 | 2017-11-08T09:12:09 | Python | UTF-8 | Python | false | false | 1,641 | py | """
VM Stack data structure
The MIT License (MIT)
Copyright (c) 2017 by Richard Kiss
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... | [
"him@richardkiss.com"
] | him@richardkiss.com |
8a833d65aba89aad125270ef26e31edfcd8b121c | 5be0d8a6cdfa7d5664cb750403ba0522da77967f | /app2.py | d7d9eae03ad3478fbb6159dbb2e1bbf8860ee5b5 | [] | no_license | Rajesh-mandal/predict-the-breast-cancer-result | f358827e8e4cf1923600220037e6bd31d5116504 | 567bb733a3ca12f9ffc7f599719746cff00aac22 | refs/heads/master | 2023-03-16T22:12:02.211324 | 2020-04-21T22:12:32 | 2020-04-21T22:12:32 | 257,723,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import numpy as np
import pandas as pd
from flask import Flask, request, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('breast_cancer_detector.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods=['POST'])
def pred... | [
"noreply@github.com"
] | Rajesh-mandal.noreply@github.com |
70f0f0e8bc68e514d1a62f1c3ef6de699f93c6f7 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_availabilityset_facts.py | aab729a6cf6ab48539d8af1e4d2915bbc618e22b | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 4,695 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Julien Stroheker <juliens@microsoft.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_ve... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
d336a1532cc9bd3a3f8a783f7d0fe0d8fcd1ed5a | 9b7e4ac45d454c26a572e9a059f04792017b9028 | /apps/employees/migrations/0001_initial.py | a3a6f420e17fdc6f4434a4cf7df10220e56d717a | [] | no_license | konradsofton/basic-django-setup | f3300fa4e5bc7ce8fdc147b3dd0d9544e6bf9442 | 3a10a10ee9d860e36e274e32b4e32d88876245d4 | refs/heads/master | 2020-07-28T08:38:18.697378 | 2019-09-18T17:34:49 | 2019-09-18T17:34:49 | 209,367,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # Generated by Django 2.2.5 on 2019-09-18 15:51
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EmployeeModel',
fields=[
... | [
"kjimenez@softonitg.com"
] | kjimenez@softonitg.com |
55a82f69a588e3653988ca5cbc8a7f89b73eeb30 | a2ea48005742e4eb70c3df1c2df588c9cfe160e3 | /abong/manage.py | b3d6f98f92979a956fd4270c28b4cb8384816541 | [
"MIT"
] | permissive | matheusdemicheli/tcc | fa79257fe1dc7cf989f9cb9302271919906e2b2a | 3d85db8c68b01d1a4e55cb311dcad552a60513fd | refs/heads/master | 2020-12-30T12:34:49.937308 | 2017-07-04T15:30:59 | 2017-07-04T15:30:59 | 91,387,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "abong.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"matheusdemicheli@gmail.com"
] | matheusdemicheli@gmail.com |
789ae31427a108126e1be34f17aba9e2d1a4469c | 89199143b2e566190458cabfc428d107528a5e91 | /tests/test_symap.py | 46ff01e02a040c08685658bc32737528ce4deffe | [] | no_license | msrocka/pslink | b7e650e500a4921413000d4e5ed8f89849e4e556 | 99bce2bb09b2dd553af308d56361d32b46ee59f7 | refs/heads/master | 2022-03-08T22:25:11.154473 | 2019-11-12T16:51:49 | 2019-11-12T16:51:49 | 180,141,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import unittest
import pslink.symap as symap
class SymapTest(unittest.TestCase):
def test_stopwords(self):
self.assertTrue(symap.is_stopword("at"))
self.assertFalse(symap.is_stopword("steel"))
def test_similarity(self):
self.assertAlmostEqual(1.0, symap.similarity("steel", "steel"))... | [
"michael.srocka@gmail.com"
] | michael.srocka@gmail.com |
79ada77352538c72e1c32df63bc6464785ce8e76 | 119365cbb6e632b4fc01baf627fb345a334fe6d8 | /pizza_app/admin.py | 5b99c57b48972d26129f0dbff21286674470fb61 | [] | no_license | Pythpiyush/Ezyschooling_Intern_Task | fa2a387951e6313e87411ba34e8e3e04f4fbfe68 | f89682ed4804b442a0f757dc475f92990b7ca1b6 | refs/heads/master | 2023-07-23T00:26:19.088521 | 2021-09-02T12:27:20 | 2021-09-02T12:27:20 | 402,406,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import Piz_Mod
# Register your models here.
admin.site.register(Piz_Mod) | [
"piyushagrawal111@ms.com"
] | piyushagrawal111@ms.com |
6ee93adf49a11d96f1fc6e51ebf370ecf779b5c0 | 7ecaab8f6c74e8f01d4db2655e8bdf84a09331c2 | /venv/bin/easy_install | e0b2108645b518774b5693911765c372f2d5b4b6 | [] | no_license | zhouyapengzi/apollo_analyze_tools | 11577ef8c2316e2bf89f01309665e10c3e31b0ad | f6ecf2421c1d63c3ae492d3a3bb87e47a9386aba | refs/heads/master | 2022-11-25T18:48:05.554694 | 2020-07-28T16:07:39 | 2020-07-28T16:07:39 | 273,553,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | #!/Users/zipeng/Projects/MyProject/tools/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"zi_peng@encs.concordia.ca"
] | zi_peng@encs.concordia.ca | |
1852c0762c5bdea1a2e6541b37699de565be8f1c | 5b7fd3672ca2ec2b91a21b946325de1ed62be6e8 | /python/spinn/data/snli/load_snli_data.py | 0ff2942d001c4e021cd2981684e169540dd0a42e | [
"Apache-2.0"
] | permissive | VikingMew/spinn | 8e7472dbc6bf2f088629896dccca4328b5be76c2 | e52f9a680cda28d36b32e15ee4b381912fbaccf4 | refs/heads/master | 2021-01-15T20:29:36.938472 | 2016-06-14T23:42:18 | 2016-06-14T23:42:18 | 61,280,747 | 2 | 0 | null | 2016-06-16T09:39:09 | 2016-06-16T09:39:07 | null | UTF-8 | Python | false | false | 1,465 | py | #!/usr/bin/env python
import json
SENTENCE_PAIR_DATA = True
LABEL_MAP = {
"entailment": 0,
"neutral": 1,
"contradiction": 2
}
def convert_binary_bracketing(parse):
transitions = []
tokens = []
for word in parse.split(' '):
if word[0] != "(":
if word == ")":
... | [
"sbowman@stanford.edu"
] | sbowman@stanford.edu |
f3d8f00ed640a83a5927278ffa43a11380162c80 | 52d15a041042284259a9b0793ec3d182a5024b67 | /_site/scripts/collection_data.py | 861eee6c0f9a1097d96c51d94fa29e82121fbca0 | [] | no_license | MLBazaar/mlbazaar.github.io | 745703b5e262a1d2b804caee870727554dbf8d74 | 3f9971508fe140a841f5ae3687a237a3a1285ca1 | refs/heads/master | 2022-11-06T14:47:53.785857 | 2021-10-28T14:40:04 | 2021-10-28T14:40:04 | 158,607,143 | 3 | 1 | null | 2022-10-06T03:21:25 | 2018-11-21T21:17:19 | HTML | UTF-8 | Python | false | false | 4,004 | py | import os
import sys
import glob
import errno
import operator
import json
import codecs
from urllib.parse import urlparse
PATH_TO_DATA = "_data"
PATH_TO_LIBRARY = 'data-library/'
def split_last(s, c):
words = s.split(c)
return words[len(words) - 1]
def extract_domain_from_url(url):
parsed_uri = urlparse... | [
"tai.pham@hdwebsoft.co"
] | tai.pham@hdwebsoft.co |
50f13f2b8949f3724c12ab6100cbbe40fa915d45 | 52e84a20e898345a596311f0c78a8c02adc7262e | /venv/bin/pip | 2eed03cac0b4adf31317a6b4ae54027c92bc25fa | [] | no_license | sumit-saurabh/ltv | 70b8fc90d64695754a8bf5d4f2ef166219618607 | d5082d149fb8a3d2e024de0734a0adf8a723074b | refs/heads/master | 2022-12-30T13:22:54.813954 | 2020-09-25T08:41:06 | 2020-09-25T08:41:06 | 298,218,428 | 0 | 1 | null | 2020-09-24T12:18:04 | 2020-09-24T08:37:20 | Python | UTF-8 | Python | false | false | 262 | #!/data/workspace/sumit.saurabh/hackathon/galaxy/venv/bin/python
# -*- 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())
| [
"sumit.saurabh@bounceshare.com"
] | sumit.saurabh@bounceshare.com | |
aebef1fff76ee0c51fa95840257749b0f61b431f | f1c5c43e905ebc04899da51d08ff754acc19a586 | /preprocessing.py | 3f91e3662c3badbcc82468b706a196d76f73320d | [] | no_license | SarahFLestari/Merchant-and-Bank-Mining | 5524339a82cf5a06791e00b411a8e22c229052db | 090920c971a9b8cd2dbce35942dde3a48f7ae11e | refs/heads/main | 2022-12-20T11:47:32.810835 | 2020-10-07T01:57:55 | 2020-10-07T01:57:55 | 300,483,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import os
from xml.dom import minidom
import xlsxwriter
location = os.getcwd()
counter = 0
trainfiles = []
otherfiles = []
print(location)
workbook = xlsxwriter.Workbook('datatrainpre.xlsx')
worksheet = workbook.add_worksheet()
worksheet.set_column('A:A',20)
for file in os.listdir(location):
try:
if ... | [
"sarahfauziah17@gmail.com"
] | sarahfauziah17@gmail.com |
9e51efdc26412f7a5bd036226469eeed706a488c | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/ListVulAutoRepairConfigRequest.py | 8914a8dab27048a9245aee71264c164922cb1833 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,002 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
b3bd51e7239261a5e940aee2d21bdc3eafc90bf0 | 72a146dad10c3330548f175643822e6cc2e2ccba | /ui/events/events.gyp | c2692a69bcfc92adc1fbb5e3e9b9f532c8d8d4d9 | [
"BSD-3-Clause"
] | permissive | daotianya/browser-android-tabs | bb6772394c2138e2f3859a83ec6e0860d01a6161 | 44e83a97eb1c7775944a04144e161d99cbb7de5b | refs/heads/master | 2020-06-10T18:07:58.392087 | 2016-12-07T15:37:13 | 2016-12-07T15:37:13 | 75,914,703 | 1 | 0 | null | 2016-12-08T07:37:51 | 2016-12-08T07:37:51 | null | UTF-8 | Python | false | false | 13,460 | gyp | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //ui/events:dom_keycode_converter
'target_name': 'dom_keycode_... | [
"serg.zhukovsky@gmail.com"
] | serg.zhukovsky@gmail.com |
8b2e95fe8a7669b13070f9c8b42e9a1eb2454dbd | 0e24b45eedb8166e5da1f07ebd935cc77e718523 | /project_views/project_views/settings.py | f773c2c0d7f69ec6c98f574c60f0f900fb0f9aab | [] | no_license | woka20/DJANGO_MVC | ce17724f248ad86364843a21203ef0f2f0775f34 | cfbbf8491e97caed593561979db3756aa478022c | refs/heads/master | 2020-09-28T12:26:12.741319 | 2019-12-10T16:51:26 | 2019-12-10T16:51:26 | 226,776,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for project_views 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 o... | [
"woka@alterra.id"
] | woka@alterra.id |
524c77805ed66ca0c79e0d50cfffef081ef2319b | 26b5053c5581b15571ffcedf9eae58da831f2e12 | /ledfx/api/presets.py | 878dc5a466933f0a938d8aa87f20e36ac3bb4b85 | [
"MIT"
] | permissive | camcs1/LedFx | a9453ab4309865cea09c5b28f6e92f7ce1eed452 | 1dff9e64a40d219cb6a87c2212e2e40ca8513735 | refs/heads/master | 2021-07-15T15:15:57.320084 | 2021-03-05T22:41:18 | 2021-03-05T22:41:18 | 238,537,668 | 0 | 0 | MIT | 2020-02-05T20:04:14 | 2020-02-05T20:04:09 | null | UTF-8 | Python | false | false | 5,591 | py | from ledfx.config import save_config
from ledfx.api import RestEndpoint
from ledfx.utils import generate_id
from aiohttp import web
import logging
import json
_LOGGER = logging.getLogger(__name__)
class PresetsEndpoint(RestEndpoint):
"""REST end-point for querying and managing presets"""
ENDPOINT_PATH = "/ap... | [
"m.bowley98@gmail.com"
] | m.bowley98@gmail.com |
8750b5b4618d786178b2e0ac22e0953500558b58 | f5a7e05dc40045076d7b4448c5d0c584048d7ab0 | /django/django_react/accounts/urls.py | a1d1bc082a2c9a45309d946cc92f49f7665aae67 | [] | no_license | cse442-at-ub/cse442-semester-project-tapp | b21cf6a3c85f62a1c277909258919639e82864da | e8daff694a468b5d33c5eb9fdec752cbd50d7911 | refs/heads/master | 2022-06-18T13:30:08.386552 | 2020-05-04T20:34:00 | 2020-05-04T20:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from django.urls import path, include
from .api import RegAPI, LogAPI, UserAPI, InstructAPI
from knox import views as knox_views
urlpatterns = [
path('api/auth', include('knox.urls')),
path('api/auth/register', RegAPI.as_view()),
path('api/auth/login', LogAPI.as_view()),
path('api/auth/user', UserAPI.as_view()... | [
"anrao3@buffalo.edu"
] | anrao3@buffalo.edu |
3dd58093282863966917bca26c8d879f7fd478a3 | 0ec0fa7a6dc0659cc26113e3ac734434b2b771f2 | /4.refactored/log/2016-10-03@14:03/minibatch.py | f824a9d890c1a51f5661688dfa4b6fb11a6c7377 | [] | no_license | goldleaf3i/3dlayout | b8c1ab3a21da9129829e70ae8a95eddccbf77e2f | 1afd3a94a6cb972d5d92fe373960bd84f258ccfe | refs/heads/master | 2021-01-23T07:37:54.396115 | 2017-03-28T10:41:06 | 2017-03-28T10:41:06 | 86,431,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,766 | py | from __future__ import division
import datetime as dt
import numpy as np
import util.layout as lay
import util.GrafoTopologico as gtop
import util.transitional_kernels as tk
import util.MappaSemantica as sema
from object import Segmento as sg
from util import pickle_util as pk
from util import accuracy as ac
from util ... | [
"matteo.luperto@polimi.it"
] | matteo.luperto@polimi.it |
336c5523fc52ed7484adf81479a520b8cc202c4d | 86864403fed2e21c48aa928568ed44f3479771b3 | /server/database/__init__.py | 6cdd23796807782dbd869c502f893e77a62d0525 | [] | no_license | Fourier-Transformation/Bookstore-sales-management-system | 4c30f343c5f2cd45cc33ed1d89397bc63bc468ac | bf7d99c13b3c4b350da08daac0b88f2cb0312724 | refs/heads/master | 2023-01-08T15:04:59.442770 | 2019-10-27T11:05:10 | 2019-10-27T11:05:10 | 206,248,848 | 9 | 3 | null | 2023-01-04T09:52:57 | 2019-09-04T06:34:57 | JavaScript | UTF-8 | Python | false | false | 49 | py | """
package __init__ file
"""
__all__ = ['bsdb']
| [
"oowsxq@users.noreply.github.com"
] | oowsxq@users.noreply.github.com |
ef978f568bf798274942cd80a49d72ff9f6d761f | 71e29718412db28a59a5d32bcfdd7e00c5ea66f4 | /099_Empacotamento.py | 973fed36e1f2f13f835f3769fc006c047504496a | [] | no_license | wesley-998/Python-Exercicies | 71e518ff45839473757bd73eb28ff72d877ed9ab | bc42feb1ed6e09ad659ffd35ee9d1198611f7b84 | refs/heads/main | 2023-05-11T02:04:29.536874 | 2023-05-02T19:27:36 | 2023-05-02T19:27:36 | 360,686,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | '''
Programa com uma função chamado maior que identifica
o maior valor entre vários valores/parâmetros.
'''
def maior(*num):
print('Analisando os valores passados...')
print(f'{num} Foram informados {len(num)} valores ao todo.')
print(f'O maior valor informado foi {max(num)}')
def linha():
... | [
"noreply@github.com"
] | wesley-998.noreply@github.com |
c368d7695148f2b8661d8b1af6beb4ed17f894d2 | 2f8c9e95514e4ff43ee0ecd73eec60633db4427e | /src/track.py | 31aa833b2f010cb51ce5bce33757710bbd015705 | [
"MIT"
] | permissive | zhangmo123/MCMOT | bbda421bf98abd09ab95c5f571fe28b407ff46e6 | c4979c676264bfa1939cd39b650dd7a4864df61d | refs/heads/master | 2022-11-11T11:03:12.664934 | 2020-06-29T09:57:33 | 2020-06-29T09:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,214 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from numpy.core._multiarray_umath import ndarray
import _init_paths
import os
import os.path as osp
import shutil
import cv2
import logging
import argparse
import motmetrics as mm
import numpy as np
import tor... | [
"765305261@qq.com"
] | 765305261@qq.com |
799a2860a7f3e0e3427380a6926982af973081dc | d0bf5ea5b1dc415e2e1032245c8be947f3cb670c | /courses/admin.py | 4cb23f6a67d889f8f3fc14f5b289b0439f06004c | [] | no_license | alfonsorodrigo/django_graphql_courses | 1d83b18accf5894bfa1a3cc22b82b183952ed20e | b669d01b1b1c80bf9ff0fab22401f9669fb75535 | refs/heads/master | 2020-04-27T23:56:36.281636 | 2019-03-10T08:59:23 | 2019-03-10T08:59:23 | 174,797,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Student)
admin.site.register(Course)
| [
"alfonso.feria@truehome.com.mx"
] | alfonso.feria@truehome.com.mx |
f795733d74d41d26fb9b2a2f6300e78a11afc3bc | 20ab220c093b77a57ac14c1fbd06a589e38190de | /jogos.py | c459a291f64e670f7e03238c1a9ee5791c885ffa | [] | no_license | andreyFernandoSoares/python-basic | 7a59148816d8a193aec055072b784347900cc6d1 | 42bc95162b0ba77ab4358cb23a67fcf5bbeeb9ef | refs/heads/main | 2023-01-03T10:18:39.093613 | 2020-10-26T19:10:30 | 2020-10-26T19:10:30 | 306,403,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import forca
import adivinhacao
def escolhe_jogo():
print("********************************")
print("Escolha seu jogo!")
print("********************************")
print("{1} Forca")
print("{2} Advinhacao")
jogo = int(input("Qual jogo? : "))
if (jogo == 1):
forca.jogar()
elif ... | [
"andreysykez19@gmail.com"
] | andreysykez19@gmail.com |
c551d812975147d6f6366cdefc948c4098173643 | 3c6aeb458a8bec0671c1d8be18331072ac97e05f | /ohsn/networkminer/unit-tests/get_retweets-unit-test.py | b817b7fc7c8eba0bc0c2163bd31bcc972bb9905f | [] | no_license | wtgme/ohsn | d7b17ad179a789be2325e0923026a681e343a40c | 9c165d45eefa4058e7ed2c6bad348703e296362d | refs/heads/master | 2021-08-29T06:01:20.165839 | 2021-08-12T08:51:46 | 2021-08-12T08:51:46 | 44,922,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 10:00:01 2015
@author: home
"""
import urllib
import imghdr
import os
import ConfigParser
import datetime
from pymongo import Connection
import time
from twython import Twython, TwythonRateLimitError, TwythonAuthError
config = ConfigParser.ConfigPars... | [
"wtgmme@gmail.com"
] | wtgmme@gmail.com |
999a09a25e95cf82a2364e3c6fe8341518055d4e | 8a70b361111cbd6ec9525e16bcec1969909d90cd | /dashboard/migrations/0006_auto_20160113_1558.py | 8f56c640604c984b374b977a2c1743a57fccd953 | [] | no_license | dovimotors/mysite | 7a5e71600794f2241cbc5f1230f6e5903d524892 | aff32fa5d0a018e64201e5d5069956cdc4a055a4 | refs/heads/master | 2020-04-06T07:56:13.709331 | 2016-10-07T19:48:06 | 2016-10-07T19:48:06 | 48,855,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-13 20:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0005_auto_20160113_1557'),
]
operations = [
migrations.AlterField... | [
"jesse@dovimotors.com"
] | jesse@dovimotors.com |
1125f3116aa019f2f36f7578e922ae06adf6ee09 | 5cf5ec4cec8c312c8a16efacceb3612e5d5c5fb4 | /code2022/day12/p2.py | cfc724ff50a46bffda63b8ba9dde4376cd47462f | [] | no_license | zac112/adventOfCode | a9523f4ff7dc4f3af0137807d6e09eb9692531bf | 6f5955a4c827c3513e0d83877708175976ceb204 | refs/heads/master | 2022-12-26T02:17:41.554781 | 2022-12-25T23:45:53 | 2022-12-25T23:45:53 | 160,374,492 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import string
from collections import deque
with open("data.txt") as f:
maze = [list(line) for line in f.read().splitlines()]
correction = {b:a for a,b in enumerate(string.ascii_lowercase)}
path = [[None for _ in range(len(maze[0]))]for _ in range(len(maze))]
possibleStarts = []
for y,row in enumerate(maze):
... | [
"eolokk@utu.fi"
] | eolokk@utu.fi |
9fbc893e6efab9becd109783348b0a57664316ff | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/latte_core/doctype/job_run/test_job_run.py | d0b9d9d95a655a44947e8b1fba1d3d08089abc30 | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 208 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Sachin Mane and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestJobRun(unittest.TestCase):
pass
| [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
7d0f3bd51417d76ebf705faf39481b1395711c0e | 4d376856f1513a8674d7ad276cbbcc98cb414726 | /Problem44/PentagonNumbers.py | e5e79ed13a465a6ed805d4d355c6dbef551afeb5 | [] | no_license | nixondcoutho/Python | b31b79c6c60a514d5cf46efcfdf70b16a843a665 | 53ea76b0fc285929bd1da7b6ea44110c3b26b373 | refs/heads/master | 2020-03-17T03:42:07.386052 | 2018-05-13T14:03:20 | 2018-05-13T14:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py |
def pentagonalNumber(val):
return (n*(3*n-1))/2
pentagonalList = [pentagonalNumber(i) for i in range(1,1000000)]
for val in pentagonalList:
| [
"adarshjaya12@gmail.com"
] | adarshjaya12@gmail.com |
0c3814e5faa036ed899f2c5cc7a7b040722273fa | 05279ba5f444c38d71cb830bbe83451ab186e37c | /apps/network/urls.py | aac8018294f174b3d3e74159cc4b161277a90412 | [
"MIT"
] | permissive | zzmjohn/kontrolvm | 98e22459603db95012bcf003849962f57cbe662a | 5c567ae67c3f3e67e3132e025016685dd6b810f5 | refs/heads/master | 2021-01-15T20:03:46.132089 | 2013-05-14T22:12:34 | 2013-05-14T22:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('apps.network.views',
url(r'^add/', 'add'),
url(r'^edit/', 'edit'),
url(r'$', 'index'),
)
| [
"jawr@jarrah"
] | jawr@jarrah |
0252e94435305b0b2f6efc349e988ccb1a01fa6b | 863ba19ae0fcf7e7f4e17f878c5c0dbb82ceed14 | /template.py | b712a81473879bb865aff28ddb198385e38ece7d | [] | no_license | ptrk8/usyd-2019-ai-competition | 75513ae77fbbdc4788337af39a476eb45f6c5fe3 | 386b66d441be22640f952eb485ba2474dc3ae2c0 | refs/heads/master | 2022-10-12T09:57:39.453088 | 2022-10-09T02:52:34 | 2022-10-09T02:52:34 | 199,142,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
from keras import optimizers
from keras import layers, Sequential
from keras.applications.densenet import preprocess_input, DenseNet121
from keras.utils.np_utils import to_categorical
f... | [
"patrick.hao95@gmail.com"
] | patrick.hao95@gmail.com |
22566527308ed7f74a4a7f9ca4e2df3a3c667e79 | 861e0cd03dc7f6a5bd0c470702b31c56340c84e4 | /bin/poliapp | 79ecd00e3f8f9e760a3f236c7002a35f4501fbfe | [] | no_license | ben105/DecisionTime | d3ad540a787180f7893082be676dc7fc7dc5f9bd | a5ca52993c3e7606772eed5143574fd8927b5b4e | refs/heads/master | 2021-04-29T11:00:49.030376 | 2017-01-05T06:11:43 | 2017-01-05T06:11:43 | 77,857,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | #!/usr/bin/env python3
from flask import Flask, request
import logging
import json
import sys
import psycopg2
# Modules for poliapp
sys.path.insert(0, '../lib')
import polistore
# import poliauth
# Set up the error and debug logging.
path = '/var/log/poliapp/poliapp.log'
logging.basicConfig(format='%(asctime)s - %(n... | [
"calgrove@ip-172-30-0-152.us-west-2.compute.internal"
] | calgrove@ip-172-30-0-152.us-west-2.compute.internal | |
4c4308cd1a975cb17c8f6a652f4249908cf3a911 | 05cc3a62b95ff5e6d4b265912ba3609d506c6672 | /BingYan/1.py | e07975d8d23ef470d4089ff4ed17a3daa81245aa | [] | no_license | xiong35/my_code2242787668 | 260580645093a868439f12a082798d09c8910bbe | d11d90f08bfe51dbe3dda5f2fe2e23b448bb70f3 | refs/heads/master | 2020-08-26T15:20:10.980467 | 2020-03-16T02:01:12 | 2020-03-16T02:01:12 | 217,053,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def add(num1, num2):
sum = 0
carry = 0
while (num2 != 0):
sum = num1 ^ num2
carry = (num1 & num2) << 1
num1 = sum
num2 = carry
return num1
input = (233,455)
print(add(*input))
| [
"2242787668@qq.com"
] | 2242787668@qq.com |
26cdbeaddf498b499551e36dcd9502c0a8fb2ed3 | 81e69cddb319516b4ebd92ed5df905f028412cd7 | /test.py | 381fdb36bc9de9499ae2d428e159696a9e592554 | [
"MIT"
] | permissive | jjpulidos/Programming-Languages-2020 | 3c76782ae642cb66f89062ae59c600c62ecd5224 | 42b9455b5697b07756f8c29e22409161f34bd283 | refs/heads/master | 2021-05-22T19:45:09.982604 | 2020-05-27T18:06:01 | 2020-05-27T18:06:01 | 253,063,712 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def prueba():
s = 6
def prueba2():
print(s)
s = 4
prueba2()
print(s)
prueba() | [
"jjpulidos@unal.edu.co"
] | jjpulidos@unal.edu.co |
74fa69cc54bdacba5a85a799decf55e31a4a8f38 | 73de523bde0c9e8398c63a924b44aadc46d11202 | /test/test_nfs_alias_extended.py | 26d6921cf5970e7291ef4a348ae8b8ec80c317b9 | [
"MIT"
] | permissive | Feyd-Aran/isilon_sdk_python | 1c2fae306c1a95a99024dd13dc0fc3b120f9c1de | 24e85a5577d15ac3db06862d07d5a261658c67b7 | refs/heads/v8.0.0 | 2020-09-23T00:16:36.684270 | 2019-12-02T13:45:12 | 2019-12-02T13:45:12 | 225,351,700 | 0 | 0 | MIT | 2019-12-02T10:51:54 | 2019-12-02T10:51:53 | null | UTF-8 | Python | false | false | 904 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 3
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_0
from isi... | [
"brandonfkrueger@gmail.com"
] | brandonfkrueger@gmail.com |
30777ecad10702e2914965fe062767b4cfc793be | d93a37864885a095f19256b011e5984797ca8d6e | /app/__init__.py | 07c2838079ff6cc5bd0e522404fe4d108371d0c9 | [] | no_license | thesmith4734/gswebsite | b5c6373bf228b31d326d4ae2176c200d22b41470 | 52723728c0a40d835fd5719da357bf1ad0447ec1 | refs/heads/master | 2023-03-17T01:37:12.947799 | 2021-02-26T03:09:11 | 2021-02-26T03:09:11 | 342,079,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flask import Flask
from flask_bootstrap import Bootstrap
app = Flask(__name__)
from app import routes
bootstrap = Bootstrap(app)
| [
"thehellhound4734@aim.com"
] | thehellhound4734@aim.com |
3c5cf103baa0e5a07248d93bb2d7996712be4dac | bc6af1797e2200fe649ef1a6517f032fd3bd2484 | /main_app/views.py | cf42ba979bc461fbd82701ecdae833c124f1a512 | [] | no_license | zfinnan/catcollector | dd38f3a6c3adf044ef7495499711b2b18b0d03a4 | e617b61191a63b72e35f7605a4e06157ad25e6eb | refs/heads/main | 2023-02-18T16:47:37.755472 | 2021-01-15T17:22:22 | 2021-01-15T17:22:22 | 329,660,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,194 | py | from django.shortcuts import render
from .models import Cat, CatToy
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
f... | [
"63361320+zfinnan@users.noreply.github.com"
] | 63361320+zfinnan@users.noreply.github.com |
f3cc74839fd1e068538d6ef45bd477d14669beb1 | 8cdc63b549f5a7f1aca7b476a5a918e5c05e38c5 | /app/notifier/views.py | f6290b484aa499c56d76805c924c8c55f4cbb991 | [
"MIT"
] | permissive | rogeriopaulos/gep | 984e3bcd8bd4569031577e1d28a8c47c6aace91f | e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2 | refs/heads/main | 2023-08-14T08:41:19.558899 | 2021-09-15T02:51:46 | 2021-09-15T02:51:46 | 402,270,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,337 | py | import adm.models as adm
import core
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.core import serializers
from django.core.exceptions import PermissionDenied
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.vie... | [
"rogeriopaulos@gmail.com"
] | rogeriopaulos@gmail.com |
cc4b81158428b5039951c734cb8ff5b0800851a5 | c31ec40b6dcb90861e8aee2dd4b9db641937ccf5 | /src/PredictCreditCardDelinquency/inference.py | 4ae19a4fa84e844343f1d98ba68d8f87e91783f2 | [
"Apache-2.0"
] | permissive | leeeejunnnn/PredictCreditCardDelinquency | 158af84995c9491c1acb060ca12f83f7d6ee6fe5 | ed4e599bed277d138bded3660d2b75c8e76d0d52 | refs/heads/main | 2023-08-27T16:34:16.359746 | 2021-10-09T00:03:30 | 2021-10-09T00:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import argparse
import pandas as pd
if __name__ == "__main__":
path = "../../input/predict-credit-card-delinquency/"
parse = argparse.ArgumentParser("Ensemble")
parse.add_argument("-w1", type=float, default=0.98)
parse.add_argument("-w2", type=float, default=0.1)
parse.add_argument("-w3", type=flo... | [
"leewook94@naver.com"
] | leewook94@naver.com |
eb9f92818f4a34f8b18330ac495349d7015c8939 | ba09463fcf9144df29958026c82a4b5cb7090291 | /siftNearestN2.py | 2cc8e0d8885591db459665e6f6123e056899a5ca | [] | no_license | EricCheng2222/BagOfSiftFeatures | 62accf21acc39c5b1ba7c6366521dbc0ff84b6c3 | c9d2e456e63ead7429d35722f7b836446fb6454d | refs/heads/master | 2020-03-17T15:15:54.685896 | 2018-05-16T17:51:39 | 2018-05-16T17:51:39 | 133,703,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py |
import math
import cv2
import numpy as np
import glob, os
fileList = []
keypointList = []
dirList = getAllDirIn("")
#readDir
for dir in dirList:
tmp = getAllFileIn(dir)
fileList.append(tmp)
#readImg, extractFeature and use Kmean to extract important feature
importantFeatureList = []
for pict... | [
"noreply@github.com"
] | EricCheng2222.noreply@github.com |
74d926edb734c14ed48d62777ea99cd69278b441 | aa43c361cc3c99445166c05e17b0150ada991d55 | /re.credit.py | d152c5dba1d145125a893b40267914338daa707c | [] | no_license | surendra-3085/code_challenges | 5a4eb8679a3edd39f5c3d877c32fbb1d02d7b4f6 | f216275b19330e8594f51b1eb4a58c96fb7b2c8e | refs/heads/master | 2020-04-11T22:08:38.300330 | 2018-12-17T19:44:54 | 2018-12-17T19:44:54 | 162,126,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import re
credit_number = input("enter card number")
cardnumber = re.match('^[0-9]{4}[a-z]{4}',credit_number)
if cardnumber:
print("valid number")
else:
print("invalid number")
| [
"surendrakumaryadav3085@gmail.com"
] | surendrakumaryadav3085@gmail.com |
2c3b30d76b84c1ec9910af37cc9a7eb984c7586d | 10665bd276fee3e8734a8d8d0354d62af69c699e | /ISCE2StaMPS_run_steps.py | a137a49700d2e1a716a31f9becfb9ea124b59618 | [] | no_license | LuyenKhacBui/ISCE2StaMPS | 0474c23ab13759f137e0b51c08bb0279d5fafede | 6ae4c3717f760c834a20ebad23cb9175006dd76e | refs/heads/master | 2021-09-08T09:43:50.452651 | 2021-09-02T18:48:57 | 2021-09-02T18:48:57 | 243,200,747 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,141 | py | #!/usr/bin/env python3
'''#!/usr/bin/env python'''
'''This is a script used to run steps listed in directory "run_files" in order to adapt ISCE to StaMPS.
Parameters:
Input parameters
Returns:
Output results: multi outputs
'''
import os, sys
import datetime
import subprocess
import glob
import logging
appdir = ... | [
"buikhacluyen@humg.edu.vn"
] | buikhacluyen@humg.edu.vn |
2e7f3da0cce5a64c561d84c71c1d0db03b83b50d | 1076553541e344ff6f76f55ef8cf05c597fbc493 | /Bishop.py | c4b6a466a6b0cb819b2e0d13dcd571fd5f2f686b | [] | no_license | Jinsung1022/Chess | a6a84390143d4cf5108877fdc4d204ff4fb05dc1 | 3cfd4c0b32a84c817f8805e29bac8b084c33c180 | refs/heads/master | 2020-08-29T17:41:38.345480 | 2020-02-06T00:36:32 | 2020-02-06T00:36:32 | 218,114,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from Piece import Piece
class Bishop(Piece):
def __init__(self, color, x, y):
super().__init__(color, x, y)
def possible(self, board):
move_array = []
directions = [[1, 1], [-1, 1], [-1, -1], [1, -1]]
for direction in directions:
blocked = False
pos_x ... | [
"57107998+Jinsung1022@users.noreply.github.com"
] | 57107998+Jinsung1022@users.noreply.github.com |
12029d039aa01c3481d6b33bd0fb592149d486d9 | fd173195d07b5a5ce229a0c1a20ee61884d8c8a1 | /python_practice/Basic_programs/11_is_fibonacci_number.py | b01f3ff8f77b38095c2c85b79ada9315f3692ad7 | [] | no_license | anitrajpurohit28/PythonPractice | f7e71946144e04b7f9cb9682087e5d4f79839789 | 8b75b67c4c298a135a5f8ab0b3d15bf5738859f1 | refs/heads/master | 2023-04-12T07:04:12.150646 | 2021-04-24T19:52:24 | 2021-04-24T19:52:24 | 293,912,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # 11 Python Program for How to check if a given number is Fibonacci number?
# Following is an interesting property about Fibonacci numbers that
# can also be used to check if a given number is Fibonacci or not.
# A number is Fibonacci if and only if one or both of
# (5*n2 + 4) or (5*n2 – 4) is a perfect square (Sourc... | [
"anitrajpurohit28@gmail.com"
] | anitrajpurohit28@gmail.com |
11e95e1867e6a6d94774ee2e948e6019a0046f49 | 86d10b2e24863ab841280cb1a81b54f82ca8f480 | /machamp/util.py | 14551bba3d261b9bdf68cc18aedc8b6ccd9e9ff2 | [
"MIT"
] | permissive | ml-ai-nlp-ir/machamp | 897a1d5769052ffafa874c5e9803853e6918d468 | 406cc0010dfd6eb370ada4658a6b899539321076 | refs/heads/master | 2022-09-28T07:01:18.935350 | 2020-06-04T11:44:56 | 2020-06-04T11:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,823 | py | """
A collection of handy utilities
"""
from typing import List, Tuple, Dict, Any
import os
import glob
import json
import logging
import tarfile
import traceback
import torch
import pprint
import copy
import numpy
from allennlp.common.checks import ConfigurationError
from allennlp.common import Params
from allennlp... | [
"robvanderg@live.nl"
] | robvanderg@live.nl |
58b605d380f94963234ff94707b96eb6474edbc1 | b2aa1fe639381fc7d6499b3e8b3cafb0930ecbb0 | /Arrays/3.py | 653974d08f8068474d173bf051d507bcefcb7e4e | [
"MIT"
] | permissive | Nadeemk07/Python-Examples | 7c02290778643776b434ea7eb824c229bf90ade6 | 07e44dd406048887920a8be92b12cbc685592117 | refs/heads/main | 2023-05-11T11:22:14.608875 | 2021-06-06T18:19:32 | 2021-06-06T18:19:32 | 350,406,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Python3
m, n = [int(i) for i in input().split()]
if n <= 1:
print(n)
quit()
lesser_n = (n+2) % 60
lesser_m = (m+1) % 60
def fibo(n):
a, b = 0, 1
for i in range(2, n+1):
c = a+b
c = c % 10
b, a = c, b
return (c-1)
if lesser_n <= 1:
a = lesser... | [
"noreply@github.com"
] | Nadeemk07.noreply@github.com |
699fe08801a753c20beaa4d2bddb839dc645687e | d546e27891f3637336a7b9f2222d1c0b0edb7c87 | /pycsvschema/checker.py | 30f46879965c5ff811ad9337669683a9579be0cb | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | crowdskout/PyCSVSchema | 66d40389e321550f88d091974b60dd728de4c4df | d5d44ace9bfe84e1001577caf4d933827143d124 | refs/heads/master | 2021-03-22T04:52:06.320896 | 2020-05-18T01:23:40 | 2020-05-18T01:23:40 | 119,094,452 | 13 | 3 | MIT | 2020-05-18T01:23:42 | 2018-01-26T19:32:37 | Python | UTF-8 | Python | false | false | 7,699 | py | #!/usr/bin/python
# -*-coding: utf-8 -*-
import csv
from itertools import chain
import json
import jsonschema
from pycsvschema.validators import header_validators
from pycsvschema import defaults, _utilities
from typing import Dict, Optional
class Validator:
_CSV_DEFAULT_PARS = {
'delimiter': ',',
... | [
"bot@guangyangli.com"
] | bot@guangyangli.com |
3ee4399592389c469e7d560ccbd2ad7609a0a702 | 29db67145af7749df38a80b016253e8a8bf78941 | /BooleanWeatherRecs.py | fdad5a1dcd0c115244bdf437643cc33eea6ddf97 | [] | no_license | holtsho1/CS1301xI | b42e78d80904641afb98b75c314ecc38cc075cab | e87a11ceb4e77cb10745ab072e723c50ad8bfd0f | refs/heads/main | 2023-07-30T20:39:44.985990 | 2021-09-22T17:57:40 | 2021-09-22T17:57:40 | 406,101,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | hot = True
cold = False
rainy = True
windy = False
snowy = False
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#Imagine you're writing a clothing-recommendation app that
#makes suggestions bas... | [
"noreply@github.com"
] | holtsho1.noreply@github.com |
99fcf0218276618b74ea510ce25cbc262f3247aa | 545b6fbd3d6e3ad62e0eaaa294bffba3a0335f23 | /securityheaders/checkers/xframeoptions/checker.py | 8be95b97597714bfa42bc5fa7d9964706a7ce82d | [
"Apache-2.0"
] | permissive | xl-sec/securityheaders | f345071f2cabe0b57ab9bc5cfb40e8e2ac7f5196 | e2f40f888b8f476dd98f939e1b624e4b7621f4a0 | refs/heads/master | 2023-08-09T08:09:01.650477 | 2022-06-02T22:53:10 | 2022-06-02T22:53:10 | 151,466,324 | 0 | 0 | Apache-2.0 | 2018-10-03T19:11:10 | 2018-10-03T19:11:10 | null | UTF-8 | Python | false | false | 285 | py | from securityheaders.models.xframeoptions import XFrameOptions
from securityheaders.checkers import Checker
class XFrameOptionsChecker(Checker):
def __init__(self):
pass
def getxframeoptions(self, headers):
return self.extractheader(headers, XFrameOptions)
| [
"koen@buyens.org"
] | koen@buyens.org |
b5edce9801df1c032936c25cd34f33b8c4ed1dc2 | 343dc9d92b4f7be849209965c12c2920240afd9e | /migrations/versions/38aa8ac3902e_.py | f40cc88ae3bbb6ca9adfe2d31b00158ab8c63dcd | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | CodeForFoco/volunteercore | f64d92072c64c348553a662226fd8e9fbe7decd5 | d6bea86e0478982a557b4cd8cc0e7c87aefe9e9a | refs/heads/master | 2021-06-26T23:10:03.620131 | 2020-01-11T16:16:26 | 2020-01-11T16:16:26 | 150,109,394 | 2 | 4 | MIT | 2020-09-18T02:22:09 | 2018-09-24T13:46:43 | JavaScript | UTF-8 | Python | false | false | 894 | py | """empty message
Revision ID: 38aa8ac3902e
Revises: 911f36815f83
Create Date: 2019-05-05 10:34:40.692805
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '38aa8ac3902e'
down_revision = '911f36815f83'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"steven@anothernewthing.com"
] | steven@anothernewthing.com |
d517bf7a86a6bb8f4e1fea27fe749fd4ad2c761f | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /darc/darc_agent.py | 2b939e99ed8352d2240d70709327f8fdd8866a42 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 8,358 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a2c93f0c69b633cb865672b1f91cd082bed3ff02 | d22b5c06488ba2930238d2676e1d84ddcf32f60f | /project.py | 9aa923cb5f6bb097fa72f5db28b8e7ef7eacab77 | [] | no_license | ninad-41/p-127 | 10974cf2adceb5c46a4582a52a9e7f4d42c88581 | be51f199cd32e472c3395d2769a94a0feaf0d5a4 | refs/heads/main | 2023-07-01T02:01:08.288094 | 2021-08-10T09:28:41 | 2021-08-10T09:28:41 | 394,596,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from selenium import webdriver
from bs4 import BeautifulSoup
import time
import csv
import requests
import pandas as pd
start_url="https://en.wikipedia.org/wiki/List_of_brightest_stars_and_other_record_stars"
page=requests.get(start_url)
print(page)
soup=BeautifulSoup(page.text,"html.parser")
star_table=soup.... | [
"noreply@github.com"
] | ninad-41.noreply@github.com |
1a4079aced3f8fe3308367ca5f2560c677775692 | 290dbf0107d93ebc8d50790b267f9552c13d810f | /generator/char_manager.py | 6e451e0b1574291507ce9073b03287ba2c4477ca | [
"MIT"
] | permissive | codebox/homoglyph | a01cb0de3570b6ad8a0bdb8ff7a50e10374a4a51 | 0209d35fe8ad79348b520401da8affe8df188909 | refs/heads/master | 2022-09-30T13:17:52.559898 | 2022-09-07T09:45:54 | 2022-09-07T09:45:54 | 45,297,276 | 472 | 63 | MIT | 2022-09-07T10:20:25 | 2015-10-31T10:14:22 | JavaScript | UTF-8 | Python | false | false | 1,038 | py | class CharacterManager:
def __init__(self):
self.chars_to_sets = {}
def add_pair(self, a, b):
a_set = self.get_set_for_char(a)
b_set = self.get_set_for_char(b)
if a_set and b_set:
if a_set is b_set:
pass # do nothing, this pair of chars are already a... | [
"rob@codebox.org.uk"
] | rob@codebox.org.uk |
3faa37a4fbec6153f7d042d062f13089108f84d8 | 0cfe2999149e1e9baf527b0b47e2a4cd6b862ade | /lcf/migrations/0093_auto_20170506_1651.py | 2584477384fad2d4c0a43db376b9a583d41a744a | [] | no_license | gamzatti/lcf | c7234ab96aa349013c3d90bd482c83087071e219 | ebff02b1e6c95b653f027f0e05125b754c6af5af | refs/heads/master | 2021-01-22T18:07:52.286504 | 2017-07-20T09:41:17 | 2017-07-20T09:41:17 | 85,061,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-06 15:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lcf', '0092_auto_20170506_1407'),
]
operations = [
migrations.AddField(
... | [
"emilycoats@riseup.net"
] | emilycoats@riseup.net |
6ccf52a98e441ab08c92a13eed7214827dd041dd | 1a487105a8a4d243da17dad0b08b695ed34df01a | /config.py | 2408ce4fecdb706acfc0a2f4b9d82d537aafd5be | [] | no_license | AlgoMathITMO/cashback-calculator | 2a397d061bbd0b6ed8707da3a747e6871e88d4bf | caefc85e4c6bc5c220205423b87039e52341aef6 | refs/heads/master | 2023-06-09T15:10:35.304776 | 2021-06-28T10:11:05 | 2021-06-28T10:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from pathlib import Path
ROOT_DIR = Path(__file__).absolute().parent
DATA_DIR = ROOT_DIR / 'data'
assert DATA_DIR.exists()
TESTS_DIR = DATA_DIR / 'tests'
TESTS_DIR.mkdir(exist_ok=True)
| [
"jurasicus@gmail.com"
] | jurasicus@gmail.com |
ef32aacc9511c647540dc788179a9be704e20e44 | b8bafaece6c194a34b30189a3d141aa02314907a | /DynamoQueryLambda.py | 01b1ceb41906f352b3697575d253430921c83405 | [] | no_license | jacobnpeterson/s3ImageSearch | 75b2482aa5d92c063af18df53282441960763d3e | 7ed95bbcde8790db2d1e92cbd55a3ff1944aae36 | refs/heads/master | 2020-04-12T04:59:22.165017 | 2018-12-18T16:12:16 | 2018-12-18T16:12:16 | 162,312,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import json
import boto3
def lambda_handler(event, context):
# # TODO implement
dynamo = boto3.resource('dynamodb')
table = dynamo.Table('group-project')
response = table.query(
KeyConditionExpression = "tag = :t",
ExpressionAttributeValues = {
":t": event['tag']
... | [
"jacobnpeterson@gmail.com"
] | jacobnpeterson@gmail.com |
4acec193263138ac1651bf0f9f7c57922ac476d4 | d9b3289354d8f75ae8dd9988a89b08596bd4cae9 | /forms.py | 592959eee5e797b4187808e7b99722b3236eb761 | [] | no_license | DataCraft-AI/pgdevops | 8827ab8fb2f60d97a22c03317903b71a12a49611 | f489bfb22b5b17255f85517cb1443846133dc378 | refs/heads/master | 2023-02-10T05:44:00.117387 | 2020-01-22T13:40:58 | 2020-01-22T13:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | from wtforms import StringField, ValidationError, HiddenField
from flask_security.forms import RegisterForm, EqualTo, password_required
from wtforms.validators import InputRequired, Email, Length
from Components import Components as pgc
import os, sys
import subprocess
import json
PGC_HOME = os.getenv("PGC_HOME", "")
... | [
"denis@lussier.io"
] | denis@lussier.io |
5081e077eb0dae2d1b8968d7690c6ecb973aaa5d | 08cd91baf0179885c43e1c1e24ec6f93aad25914 | /Part 2 - Regression/Section 5 - Multiple Linear Regression/MultipleLinearRegression.py | a42b5a3511da3407bfe8344578e69e43838007aa | [] | no_license | iamsid2/Machine-Learning-using-Python | f34fe253af04280d28b93daa378d55c37e65673d | f60d0b972f0ba4e991e81c3fb20aff679910befb | refs/heads/master | 2020-03-19T02:54:07.703055 | 2018-07-28T12:12:59 | 2018-07-28T12:12:59 | 135,672,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | import numpy as np
#import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('50_Startups.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 4].values
# Encoding the Independent Variable
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
labelencoder_X = Lab... | [
"shaktimund97@gmail.com"
] | shaktimund97@gmail.com |
b47801f335526193b4673fd6f1d466b8847a845f | 3ecfd36938e3202ea64087f01c8afeaa1baf7e29 | /am_conf.py | 48cf0f3b05ce160d1d458560f84e972062b9e038 | [] | no_license | zycsmile/IRP | 32b6bd1d8019d8f47c4f487ea51f65c6d74f62ad | 592cf8f006edf80e5ad9d0adc7dd18f823ca9523 | refs/heads/master | 2020-07-01T08:14:39.114904 | 2016-11-18T02:57:15 | 2016-11-18T02:57:15 | 74,089,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""method that read global conf
"""
__author__ = 'guoshaodan01@baidu.com (Guo Shaodan)'
import ConfigParser
import logging
g_conf = None
class AmConf(object):
def __init__(self, parser):
self.zk_server = parser.get("zookeeper", "zk_server")
logging... | [
"zycsmile@163.com"
] | zycsmile@163.com |
f5e13893b6f731b53d834d8641a0aba4d7dad8b9 | 81fddd04069c358f90b4e1788f5aec9151112147 | /pybullet_tools/pr2_problems.py | 978a2c2c2d48644d96ba2ad93c785a940dbb5fd8 | [] | no_license | yijiangh/ss-pybullet | f61a83b139155d195d105fd6d00c3e10c2b963be | 8eb8fd468b4364f85b037ab5b24738b255a2418c | refs/heads/master | 2020-04-02T22:07:03.264780 | 2019-02-08T16:38:34 | 2019-02-08T16:38:34 | 154,822,036 | 1 | 0 | null | 2018-10-26T11:09:06 | 2018-10-26T11:09:06 | null | UTF-8 | Python | false | false | 7,565 | py | import numpy as np
from .pr2_utils import set_arm_conf, REST_LEFT_ARM, open_arm, \
close_arm, get_carry_conf, arm_conf, get_other_arm, set_group_conf
from .utils import create_box, set_base_values, set_point, set_pose, get_pose, \
get_bodies, z_rotation, load_model, load_pybullet, HideOutput
class Problem(ob... | [
"caelan@mit.edu"
] | caelan@mit.edu |
faba4ffd24bf024a2248fe641d65689e162ec028 | ab189562f36bc1cbd723964795020864f0cee979 | /twisted-benchmarks/pb.py | efc8c65e00f2c97dbc81d69824ca8b93b9c829b9 | [
"Apache-2.0"
] | permissive | mksh/greenreactor | 20a007b51ad182e20ceefdd0b607992997cf1eb9 | 99e9ed7a5d7ebb8a8cbd1307009749bb08907c10 | refs/heads/master | 2020-09-19T21:51:51.944632 | 2019-08-07T04:21:37 | 2019-08-07T04:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py |
"""
Benchmark for Twisted Spread.
"""
from twisted.python.compat import _PY3
if _PY3:
raise ImportError("Doesn't work on Py3 yet")
from twisted.spread.pb import PBServerFactory, PBClientFactory, Root
from benchlib import Client, driver
class BenchRoot(Root):
def remote_discard(self, argument):
pa... | [
"859905874@qq.com"
] | 859905874@qq.com |
9896d9e937f830fdecc5cc3f58a94b7412122654 | fa93a9c8db537b819349234b17d0c3ffe4824a28 | /docs/code-completion/uio.py | 0a3071f423a62295538b51d799b98aaa23dc0b9e | [
"MIT"
] | permissive | yanshanqingyuan/micropython | b37fa36b09196f25ee9fef76a8368e598aa285da | bb57a344967391d22f3430f720bcd0a5882e4a1a | refs/heads/master | 2020-07-11T15:57:07.922531 | 2019-08-27T02:51:15 | 2019-08-27T02:51:15 | 204,589,958 | 0 | 0 | MIT | 2019-08-27T09:04:44 | 2019-08-27T01:04:43 | null | UTF-8 | Python | false | false | 1,297 | py | """
uio 模块包含流类型 (类似文件) 对象和帮助函数。
"""
def open(name, mode='r', **kwargs) -> None:
"""打开一个文件,关联到内建函数open()。所有端口 (用于访问文件系统) 需要支持模式参数,但支持其他参数不同的端口。"""
...
class FileIO(...):
"""这个文件类型用二进制方式打开文件,等于使用open(name, “rb”)。 不应直接使用这个实例。"""
...
class TextIOWrapper(...):
"""这个类型以文本方式打开文件,等同于使用open(name, “rt”)不应直... | [
"SummerGift@qq.com"
] | SummerGift@qq.com |
fe19fe390ebd3184b79651ce1040786507a3415d | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /tests/acceptance/reset_password_redis/reset_password_redis.py | c5a945c74fc5c1a666f3b673ebc6546cc26afcd7 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
from lettuce import step
from lettuce import world
import redis
from scalarizr.api.binding.jsonrpc_http import HttpServiceProxy
@step(u'Given I am connected to Redis server')
def given_i_have_mysql_server(step):
world.conn = HttpServiceProxy('http://localhost:8010',
... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
3832bf0b5e08f61420b382a1239102a482dc651f | 9c2f8ee697d8b764a58aa8c9a85df5ad019a4b77 | /homelyapp/migrations/0004_renter.py | fafadd6bb307ef910c03ae4c5f806ec73a2813ee | [] | no_license | asifvs447/code_test | 9ef133edf2eed3ce409661390552bc66c5a817e2 | c2a10b6298962f00379d27b51a4ab348e76fbb7d | refs/heads/master | 2021-08-29T01:27:53.779903 | 2017-12-13T09:05:09 | 2017-12-13T09:05:09 | 114,096,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-13 02:36
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"asif.vs447@gmail.com"
] | asif.vs447@gmail.com |
16af6ef192e459b123626a361db1399c2838121e | c8da432f164ef398dece0dcbf5f22b070f8f4c40 | /migrations/versions/db2b1f6271e5_.py | 5c54c5b7f0e98fce21398952275807952b976758 | [] | no_license | OmarYehia/Bank | 33ae12bd048877472e4174bea7377773da5f78d8 | 5c694489ed87052a0cb409dddf11d457666d96ea | refs/heads/master | 2023-03-10T09:44:47.991345 | 2021-02-20T16:55:40 | 2021-02-20T16:55:40 | 283,049,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | """empty message
Revision ID: db2b1f6271e5
Revises: aab43e821e31
Create Date: 2020-07-28 00:35:07.538771
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'db2b1f6271e5'
down_revision = 'aab43e821e31'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"oyehia94@gmail.com"
] | oyehia94@gmail.com |
83af5547275e89119ec1508ac22cb24b2d333c5b | 82bffecc5c829a9ae7f3cf825bd1334954c3d59f | /0x00-python-hello_world/2-print.py | 6381f3b6abf9b1cf24f169876636f77e59f5d975 | [] | no_license | Bereket-ferde/alx-higher_level_programming | 38f1af4cbcf64ade603c03a8c0b9844beb6cdb4b | ad3b1baccb14aec9d83b928ac5d8fb5e8a81b24c | refs/heads/main | 2023-07-22T08:37:20.306632 | 2021-09-08T18:28:02 | 2021-09-08T18:28:02 | 404,119,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #!/usr/bin/python3
print('"Programming is like building a multilingual puzzle\n')
| [
"noreply@github.com"
] | Bereket-ferde.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.