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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32b78eb1f1df9810ef6d6a8e263d2c892c314d86 | 8eb81737683f25f3cacf4319807ae75ed506f8fc | /entrega/codigo/competencia/spam_filter.py | ce089a429547180342743c533f4f8a7c4d34994e | [] | no_license | manucosta/aa-tp1 | 269e884662574067f691d83df8bc767601be0bce | af59d0b6b41f376617346e2df6ebd06c4fb94bca | refs/heads/master | 2021-04-30T22:22:24.194361 | 2017-07-09T23:15:30 | 2017-07-09T23:15:30 | 66,563,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | from utilities import *
from scipy.sparse import coo_matrix, hstack
from sklearn.cross_validation import cross_val_score, KFold
from sklearn import ensemble
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import fbeta_score, make_scorer
import numpy as np
import pickle
import sys
json_mails = sys.arg... | [
"manucos94@gmail.com"
] | manucos94@gmail.com |
5bbb358a632d9bba20e2078a0a95695607f33fff | 1a87d286396a2c6f6b6ac7c53495f80690836c7b | /LC/LC_testJustification.py | e1b9c5fe604fe74fbcb2713c10b062f9b244c481 | [] | no_license | kickbean/LeetCode | 14d33eea9dd70821114ca6d7e1a32111d4d64bf0 | 92e4de152e2aae297ef0e93c9eea61d7ad718f4e | refs/heads/master | 2016-09-10T14:38:33.692759 | 2014-04-08T00:26:51 | 2014-04-08T00:26:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | '''
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces ' ' when necessary so that each line has exactly L ch... | [
"songfan.yang@gmail.com"
] | songfan.yang@gmail.com |
1030b34272f32e34932e1f87a1940f711b6194bb | d3c4dd428f7d73b75e59668257b1f56e3b7f9c04 | /practice_package_distrubtion/Lib/site-packages/pylint/checkers/similar.py | d87a2b132358472fdda70db24559fb562e1499c1 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"bzip2-1.0.6",
"Python-2.0",
"TCL",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyl... | permissive | chrismigut/python_packagingPythonProjects | d67dc2d7d9222337f52704c4563b24dcf0bd8d0c | e8bc9eec075b77413d31d4640a7feb6c82ddc96c | refs/heads/master | 2022-10-25T23:05:53.882654 | 2019-09-29T18:47:52 | 2019-09-29T18:47:52 | 211,695,918 | 0 | 1 | MIT | 2022-10-14T22:21:44 | 2019-09-29T16:58:15 | Python | UTF-8 | Python | false | false | 15,015 | py | # Copyright (c) 2006, 2008-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2012 Ry4an Brase <ry4an-hg@ry4an.org>
# Copyright (c) 2012 Google, Inc.
# Copyright (c) 2012 Anthony VEREZ <anthony.verez.external@cassidian.com>
# Copyright (c) 2014-2018 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (... | [
"cmiguthere@yahoo.com"
] | cmiguthere@yahoo.com |
336fca8c8867658fc290a050e6d3a2aebefbdc44 | 4bd84ccf165322003c79ae7239b212b7d03fe43f | /account/migrations/0001_initial.py | 8eeff2d110c502d2264e1f3527c2c8ee45c2ddf2 | [] | no_license | sanudatta11/Project_PUR | 5fb1b1cac123f2ed3c26138d0757752279efd050 | d5a8d4f202347715dd948158c4463611dee11e08 | refs/heads/master | 2021-01-19T00:27:45.226577 | 2017-08-23T09:24:57 | 2017-08-23T09:24:57 | 100,568,543 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-17 10:08
from __future__ import unicode_literals
import datetime
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
in... | [
"sanudatta11@gmail.com"
] | sanudatta11@gmail.com |
5947d1f33371f5d3309ccd9cad4b3241edda9364 | 1203b1506cc296a3f83984ffbffc122418f6b04b | /libs/incomplete/preproces.py | ad830b5b4368c39bc4433f6ed1709ce67e905b26 | [] | no_license | mak12776/py-libs | ca7c4ad46e4d501ae7a65aedddb5cd452e010eb5 | 6575d03d6d5c5541368134e45b90679892cdc3e8 | refs/heads/master | 2020-09-24T18:28:02.395151 | 2020-01-03T04:15:18 | 2020-01-03T04:15:18 | 225,816,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py |
import sys
import collections
class dotdict(dict):
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
__delattr__ = dict.__delitem__
def starts_ends_with(string, prefix, suffix):
if string.startswith(prefix) and string.endswith(suffix):
return string[len(prefix): len(string) - len(... | [
"mak12776@gmail.com"
] | mak12776@gmail.com |
1d5da1d2a4909417e66239a19f9f1020df5f7380 | ddc73535eb55d212387e609f7f49e889ca8f6c70 | /src/core/data_utils.py | 8de33e5bf24b194c965e8dc4eba1b01436976918 | [
"MIT"
] | permissive | erdl/legacy-scrape-util | b1a0aac18c1d7c6c196d9d8b9f7b84f63f3c271e | c2d777a222d842690b37532a984844768bba23b7 | refs/heads/master | 2021-01-15T17:49:57.785803 | 2018-05-22T18:58:38 | 2018-05-22T18:58:38 | 99,758,670 | 2 | 3 | MIT | 2018-05-21T23:18:56 | 2017-08-09T02:54:37 | Python | UTF-8 | Python | false | false | 8,076 | py | #!/usr/bin/env python3
import src.core.file_utils as file_utils
import src.core.error_utils as error_utils
from collections import namedtuple
import time
import toml
import os.path as path
import os
import sys
import csv
# Default data type to be returned by all data-acquisition
# scripts. Key requirement for interop... | [
"fspmarshall@gmail.com"
] | fspmarshall@gmail.com |
19d91b4694cc3976e5f8967c38c3a97745a77613 | ee300f9ca140da45165bb633fe25e2b6b3689354 | /function_global.py | 44454d76358b40211731b1c52aad2715f6cb21b5 | [] | no_license | zhengknight/pyExise | b20c64e4fdd64178d9e99b3bf9622b0a93943a73 | d5261f5025b8603385dcbb0d4042ef631b002119 | refs/heads/master | 2022-11-15T00:25:46.716871 | 2019-06-27T07:40:44 | 2019-06-27T07:40:44 | 192,630,777 | 0 | 1 | null | 2022-10-26T21:49:02 | 2019-06-19T00:35:43 | Python | UTF-8 | Python | false | false | 112 | py | x=50
def func():
global x
print('x is',x)
x=2
print('x changed to',x)
func()
print('x is ',x) | [
"zhengknight@qq.com"
] | zhengknight@qq.com |
7b32668abbb4ee08d72874dd26afb1570d2575f9 | 72fa9e96e9eeae6ac213e9355407168483f1a447 | /lecture2.py | 1c8186e0fc0694f8a369ba921be13081247e4b51 | [
"MIT"
] | permissive | kendallsmith327/IA-241 | d65dca1773692730836192725520642c3e1e0c1b | 7c1492ff635249849c20c083b5d7fc0518c1ab8a | refs/heads/main | 2023-05-02T11:50:35.945176 | 2021-05-04T14:40:08 | 2021-05-04T14:40:08 | 332,523,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """
this is a regional comment
"""
# print('hello world') # this is a single line comment
# print( type('123') )
# print("it's our second python class")
#print('Hello' + 'World')
my_str = "hello world"
print(my_str)
my_str = 'second str'
print(my_str)
my_int = 2
my_float = 2.0
print(my_int + 3)
print(my_in... | [
"noreply@github.com"
] | kendallsmith327.noreply@github.com |
d4fe23b89890cf6d0dbee3005299fab053b48463 | 57b7c55b9732ce7d2b0eb30eae2ba71557f29333 | /noticias/pipelines.py | 04eed63ac60a57e61a6527be5db4e4cf2c6bdbd8 | [] | no_license | raianyrufino/WebCrawler-Tecnoblog | ef59aa35c96282caaf73c5e6101c806606858a4b | c7cb239aa66855f002fbcd76fdc12b0aacbffa40 | refs/heads/master | 2020-07-06T15:43:52.641654 | 2019-08-19T00:29:18 | 2019-08-19T00:29:18 | 203,070,948 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class NoticiasPipeline(object):
def open_spider(self, spider):
self.file = open('notices.txt', 'w')
... | [
"raiany.paz@ccc.ufcg.edu.br"
] | raiany.paz@ccc.ufcg.edu.br |
4d3d41431710f0190e8a8cfd9f2adc2e4f2ee89c | 7e0ea1a29084f9536e02f6d7dcf9a0fb80babf58 | /api/migrations/0004_auto_20160111_1311.py | a94f2bd5eabfbc507e888914844666d8c97079e5 | [] | no_license | ABYARTH/mywallet | a5b0bdbd0d08d22eb55fbc55e61147b92fcc5805 | 8eb0ce84422b55d0211e391269a7716b4f9c90a7 | refs/heads/master | 2021-01-16T20:00:05.470714 | 2016-01-14T15:17:26 | 2016-01-14T15:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0003_auto_20160110_2120'),
]
... | [
"s.mohanty.006@gmail.com"
] | s.mohanty.006@gmail.com |
b0294d968ec5dd4977c310aa196900c015299619 | f678f5a4882a6f1988ecacbcece487f782ac1fec | /mybook/mybook/urls.py | 64f277c984dfe033e863e6c2733e9eda19e69f7e | [] | no_license | a3636tako/django-test | bbad1667895bd441d77b50b0f100fa7b93570a1a | ea213b22eb704134e5ca6d38ff827179380c189b | refs/heads/master | 2020-04-18T02:38:02.608459 | 2016-09-07T06:42:37 | 2016-09-07T06:42:37 | 67,034,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """mybook URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"a3636tako@gmail.com"
] | a3636tako@gmail.com |
015f23d3858690ee7470909983c15dd848b5709a | 46f91363f5cc43b1644a7da93938aef3c0de29c5 | /leonardo/module/media/__init__.py | 233a0f5b0e426c65d5e8688c40baf9bf33e3e777 | [
"BSD-2-Clause"
] | permissive | shinichi81/django-leonardo | 55e1f7492813b8a877dac92aadb114785ea2eb83 | 152ad02ba23b8bc94f676a7221c15338181c67b7 | refs/heads/master | 2021-01-14T12:45:14.400206 | 2015-11-01T09:38:55 | 2015-11-01T09:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from .widget import *
default_app_config = 'leonardo.module.media.MediaConfig'
class Default(object):
optgroup = 'Media'
@property
def apps(self):
return [
'leonardo.module',
'le... | [
"6du1ro.n@gmail.com"
] | 6du1ro.n@gmail.com |
47652a71e3b9b2b701a573c654088f48cdd6007c | b54ed58e5a6e9d8f468c1f36544d6782b276f3be | /tag_11.py | 18d0352a503bcc41c6d6699d07184ae0183713f6 | [] | no_license | JensGutow/AdventOfCode2020 | c69ff3d1be5ff6cf399c4a3ecb14fa1c70323d74 | 9e116175f0042dacdde182424f1286801e7da131 | refs/heads/main | 2023-02-08T10:00:43.584837 | 2020-12-31T06:57:18 | 2020-12-31T06:57:18 | 322,389,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | import time
def get_puzzle(file_name):
d = {}
z = 0
with open(file_name) as f:
for zeile in f:
for s, c in enumerate(zeile.strip()):
d[z,s] = c
z += 1
return d
def get_number_occ_seats(d):
return list(d.values()).count("#")
def get_number_oc... | [
"jens_gutow@web.de"
] | jens_gutow@web.de |
0ea35b60098989cbad8bece1f505638fa7a685d2 | 01ed217a3c3c028e6cf4e3675cb86f4eef992e13 | /SimG4Core/PrintGeomInfo/test/python/runPrintSolid_cfg.py | bb9e7a06455f3f00c6cc1a434b1f718f2240c745 | [
"Apache-2.0"
] | permissive | dtp2-tpg-am/cmssw | ae318d154779c311e2e93cdffe0c7bc24d6d2593 | 7a32f48e079f78b501deee6cc9d19caba269e7fb | refs/heads/AM_12_0_2_dev | 2022-11-04T12:05:05.822865 | 2021-10-28T07:25:28 | 2021-10-28T07:25:28 | 185,209,257 | 2 | 1 | Apache-2.0 | 2022-04-26T07:18:06 | 2019-05-06T14:07:10 | C++ | UTF-8 | Python | false | false | 1,897 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process('G4PrintGeometry',Run3)
process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
#from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
#process = cms.Process('G4PrintGeometry',Run3_dd4h... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
e2a0f1050ad9f87f032cba917ce82b55116395fc | a39dd95321b26e464d103981440b6721f0b8ade9 | /Proxy/DB/__init__.py | 5fac9315feb12c294920c375485a11e13b024367 | [] | no_license | willame/Myproxy | 351b4b640238f17cce172267b3294283d3a5f09d | 952d71b19b8b5270573d97aa9366fc0bd3ce926f | refs/heads/master | 2020-12-30T12:23:21.034547 | 2017-05-10T15:34:55 | 2017-05-10T15:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from Proxy.DB.mongodb import Mongo
DBNAME = "database"
COLLECTION = "proxy"
db = Mongo(DBNAME, COLLECTION) | [
"706543191@qq.com"
] | 706543191@qq.com |
9188d34a74f7a78c4794794f5866b1a927835e9a | e8291b4582453879d856b75ba0caf8d9328119a4 | /src/config/network.py | 6b3948623ad0c3447c43c3397f7d5b99c00640da | [] | no_license | Blito/ESP32-DHT22-temperature-humidity | a17971c090c71a7238f029104713008ce8cb6d6b | 6c77424e8d37a9a6f66f58a52c84aea00011f413 | refs/heads/master | 2022-08-27T16:17:54.787393 | 2020-05-29T04:04:35 | 2020-05-29T04:55:02 | 267,769,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | SERVER='your.server.ip.here'
SSID='Your SSID here'
PASSWORD='yourpasswordhere' | [
"pabloarubi@gmail.com"
] | pabloarubi@gmail.com |
1fecbec5373dd163ef54b1223cc735a39bcb3d4d | b99863dc391f0b959cbea12bce26eb7021a3c594 | /Crawler/splitSqlToFile.py | 37195911c3c24a3137ca2802cea9a9f51dd5d403 | [] | no_license | choakai/thesis | 3c180b2740866fb31c5cff69c2a9eb28e3ef9814 | f456b5ed28e5cc06da4a1a04bd9b9f47768f2fdc | refs/heads/master | 2020-05-16T14:21:31.254755 | 2015-01-27T18:01:43 | 2015-01-27T18:01:43 | 26,497,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | # -*- coding: utf-8 -*-
#coding=utf-8
import sys
import pyodbc
import codecs
import win32com.client
connStr = 'DRIVER={SQL Server};SERVER=localhost;DATABASE=thesis;UID=sa;PWD=P@ssw0rd'
conn = pyodbc.connect(connStr)
FilePath = 'D:\\Crawler\\CKIPClient\\thesis\\in\\'
#conn = win32com.client.Dispatch(r'ADODB.Connecti... | [
"choakai@gmail.com"
] | choakai@gmail.com |
823203975452d074cb1a81ae7f37b18b0a3fbb53 | 35844c887d6da13d5b72e297183991aa0cea1b52 | /experiments/I-FGSM-eval.py | 8330e159fd2609e8d8b6f5596e7385f416e42842 | [] | no_license | soarlab/AAQNN | 5c5f87cf594ddb6f6c800907fa11d452bc88b4dc | ea6627ad9f0d55196d0dde90d7dbe5472be99d66 | refs/heads/master | 2022-01-21T08:11:44.616642 | 2019-06-24T08:42:45 | 2019-06-24T08:42:45 | 178,188,010 | 0 | 0 | null | 2022-01-13T01:08:45 | 2019-03-28T11:17:56 | Python | UTF-8 | Python | false | false | 16,650 | py | '''
This experiment is structured as follows:
1. Train QNNs for all quantization levels
2. Load samples that are correctly classified by all the QNNs from step 1 (accuracies are 100% on these samples)
3. Run the iterative FGSM attack for different Q levels
4. Evaluate the QNNs on new adversarial samples
Original paper... | [
"martin.matak@gmail.com"
] | martin.matak@gmail.com |
677564fe5565b9383265cc420c7714182563d206 | fe1f0631ee492dca4ec4485f66c8b40f05f3178c | /anagramofpalindrome.py | eb34ee2de25a8dca039ffcddecda1adaa7dce558 | [] | no_license | ashleyabrooks/code-challenges | ad92d23eb98e2889609df79d7a5b107da12fbc67 | 7123ae9b2d2a3098f1678a6ea11acb8d917bc562 | refs/heads/master | 2020-05-23T08:27:24.735700 | 2017-05-04T18:45:10 | 2017-05-04T18:45:10 | 84,757,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | """Is the word an anagram of a palindrome?
A palindrome is a word that reads the same forward and backwards
(eg, "racecar", "tacocat"). An anagram is a rescrambling of a word
(eg for "racecar", you could rescramble this as "arceace").
Determine if the given word is a re-scrambling of a palindrome.
The word will only ... | [
"ashley.brooks.a@gmail.com"
] | ashley.brooks.a@gmail.com |
3a72acdecca2753879d1c90b4a2dd713327a6573 | 74081fd60cea91ef2153c54559c2bba1ef494d18 | /task_4/src/calculate_5sma.py | 78a01108cdd0b1f348873e1ccf559e2555e3426e | [] | no_license | Avvallack/ML_Engineering | a59c8a5872263bf0b88e2b7d0aa25bf2c2270e70 | 8247a677b36874207bdf94f92aa43a23fe5faac0 | refs/heads/master | 2023-06-20T08:53:22.984821 | 2021-07-19T13:10:28 | 2021-07-19T13:10:28 | 366,710,222 | 0 | 1 | null | 2021-06-09T07:37:05 | 2021-05-12T12:37:07 | Python | UTF-8 | Python | false | false | 987 | py | import os
import pandas as pd
import datetime as dt
from argparse import ArgumentParser
def calculate_5sma(tick_name, date):
date = dt.datetime.strptime(date, "%Y-%m-%d-%H")
date = date - dt.timedelta(hours=1)
hour = str(date.hour)
str_date = date.strftime("%Y-%m-%d")
df = pd.read_csv('/opt/airflo... | [
"avvallack@gmail.com"
] | avvallack@gmail.com |
f5b462ddc5e915ef1e194c4b624b990cb536d53b | 673b2f10e156e1cb4c351b27e7ce582ba0646caa | /views.py | 6edecbd37afe25cf2e09c99fe424be09fbec9312 | [] | no_license | NegativeDearc/PartsChangeInformation | eef38d6b21efd62a34a68b095091ff01862bed0f | 526223b5600564f04a364cff76f7ce8d54bed4a3 | refs/heads/master | 2021-01-21T04:30:55.708843 | 2016-07-21T07:13:56 | 2016-07-21T07:13:56 | 49,067,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | from flask import Flask,render_template,request,redirect,url_for,session,abort
from xlrd_extra_info import extra_info
from get_schedule import get_schedule
from AddDataToDataBase import add_data_VMI,db_to_dat,add_data_MAXX
from os import urandom
import datetime
import pytz
app = Flask(__name__)
app.secret_key... | [
"datingwithme@live.cn"
] | datingwithme@live.cn |
b829831b94ca8a1f3262021ef1aab5dcd77a1e7a | e57d7785276053332c633b57f6925c90ad660580 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_08_01/aio/operations/_managed_clusters_operations.py | 56d3e44113621eb06dcba8abc584742b0bad79cf | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 62,898 | 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"
] | adriananeci.noreply@github.com |
2a9646791ee6802bbac9b128a86e9e6c4b356ad7 | 38613a48d1dbef6859189b539937e75ff6c5c9e9 | /Kivy/imagepane.py | 734f5946b13b1e1ef6bc44652fe860d30b103bfd | [] | no_license | denim5409/covid-19 | 4925254436abb08a3b83e9bb639c8f5d25704b8f | c6ca5c112d7796a6f317bc6160316cf688ff1177 | refs/heads/master | 2022-11-19T23:00:49.315233 | 2020-07-22T06:22:31 | 2020-07-22T06:22:31 | 280,999,243 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py |
from kivy.uix.image import Image
from kivy.lang import Builder
from kivy.app import App
from selectionbox import SelectionBox
Builder.load_file("imagepane.kv")
class ImagePane(Image):
drawing_rectangle = None
rectangles = []
def __init__(self, **kwargs):
super(ImagePane, self).__init__(*... | [
"denim3@hanmail.net"
] | denim3@hanmail.net |
1897d9ce65665335394d0b57ff2ccf5a2082d7f6 | 5f2608d4a06e96c3a032ddb66a6d7e160080b5b0 | /week6/homework_w6_q_c1.py | 406a821246f24f931111b8aadf5a01215a8e8aea | [] | no_license | sheikhusmanshakeel/statistical-mechanics-ens | f3e150030073f3ca106a072b4774502b02b8f1d0 | ba483dc9ba291cbd6cd757edf5fc2ae362ff3df7 | refs/heads/master | 2020-04-08T21:40:33.580142 | 2014-04-28T21:10:19 | 2014-04-28T21:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import math, random, pylab
def rho_free(x, y, beta):
return math.exp(-(x - y) ** 2 / (2.0 * beta))
def levy_free_path(xstart, xend, dtau, N):
x = [xstart]
for k in range(1, N):
dtau_prime = (N - k) * dtau
x_mean = (dtau_prime * x[k - 1] + dtau * xend) / (dtau + dtau_prime)
sigma ... | [
"noelevans@gmail.com"
] | noelevans@gmail.com |
06ffea8d37e7baecbc877318ae07f0960176aa71 | 1255cedc3b8c486f07fb12b90b75b8773b4714be | /xnote/app/migrations/0002_auto_20210704_1851.py | ab7cafc76b864f0fe4f3aa7f3cbd0fcd44849f6c | [
"Apache-2.0"
] | permissive | sebastianczech/Xnote | 81c4cd00b2759037b2e538172ca70abdfba2740c | 6b6785f5d1db37322b74818aa355eddad3a7a8a9 | refs/heads/main | 2023-07-19T14:22:43.026363 | 2021-09-18T14:15:54 | 2021-09-18T14:15:54 | 376,524,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | # Generated by Django 3.2.4 on 2021-07-04 18:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='walletaccount',
name='month',
... | [
"sebaczech@gmail.com"
] | sebaczech@gmail.com |
70e34f850771c4cfeaa578be02d172c9455bbe17 | b1445fff58b40103cf689721992315a6631c2c28 | /telegrasp.py | 7fc7c07304cdee826a2e47dbe1d5be51508f86b9 | [] | no_license | pratyush19919/Raspberry-Pi-and-Telegram-App-Control-GPIO-s | dc0ad14f0e3612922d203d6f810995b05bf86bef | f560c9c5a69da477f6f01d1c99ab7e99b4f9a340 | refs/heads/master | 2022-12-15T04:02:24.287637 | 2020-09-10T19:08:30 | 2020-09-10T19:08:30 | 289,351,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | #import required libraries & packages
import telepot #for telegram
import time,datetime
import RPi.GPIO as GPIO
import requests #for web-scraping
import random
from bs4 import BeautifulSoup # for parsing
from telepot.loop import MessageLoop
GPIO.setmode(GPIO.BOARD)
#setting & initializing pins
Relay1=16
l... | [
"noreply@github.com"
] | pratyush19919.noreply@github.com |
eba0cd90799ab695a36c1fe7f44805e350c2d266 | 45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0 | /znake/systest/data/fails/systest/tests/test_systest.py | b8cd8024868589412413ece7cb15171aecabc6bf | [
"Apache-2.0"
] | permissive | per-bohlin/opensourcelib | 3923165982ae1b2c78602a3485684ded75c28c36 | e48427fd0b5d87ea21484e85d2575c8b8879b9a3 | refs/heads/master | 2020-05-21T21:34:15.112527 | 2019-05-11T16:57:58 | 2019-05-11T16:57:58 | 186,156,987 | 0 | 0 | NOASSERTION | 2019-05-11T16:34:39 | 2019-05-11T16:34:39 | null | UTF-8 | Python | false | false | 37 | py | def test_systest():
assert False
| [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
57c678204bd439cd4206439a9a1b42192f35babd | 356d9ac141206f98f991bd3d136b35485b228d21 | /advance_python_class_3/Homework1/misha_textgame.py | 76231f641c5858197ec327a7e7246173e5f64a6e | [
"MIT"
] | permissive | mishka28/NYU-Python | bd86eaa8096e487d9639fb16e426074d6593630a | 7309ac6890ddaa86a6e2d0113e99d8633477e503 | refs/heads/master | 2021-01-25T09:10:48.320431 | 2019-02-24T18:32:02 | 2019-02-24T18:32:02 | 93,797,349 | 0 | 0 | null | 2017-06-24T14:43:09 | 2017-06-08T22:38:49 | Shell | UTF-8 | Python | false | false | 3,838 | py | #!/usr/bin/env python3
from random import randint
class Character:
def __init__(self):
# self.name = ""
# self.type = ""
# self.health = 1
# self.health_max = 1
# self.mana = 1
# self.mana_man = 1
# self.defence = 0.5 #Percentage from 1 to 100
# self.attack = 1
# self.healpower = 1
... | [
"mishiko28_chigo@yahoo.com"
] | mishiko28_chigo@yahoo.com |
45a096453041251fe1c13b08d4e0f339ccb45baf | 469cb03e5e88da9abdca3802081b1814259bdb46 | /pysstv/__main__.py | ac1e7f1a09689b8dad809ae451fd65cb25e2c11a | [
"MIT"
] | permissive | omkolhe/pySSTV | 089e9f3ed46385a58abde5e5392513a4a84b23aa | da8d8f16ba61bab4fc3c35754c81687f76365b01 | refs/heads/master | 2021-09-01T18:41:42.525613 | 2017-12-28T08:49:33 | 2017-12-28T08:49:33 | 115,403,676 | 0 | 0 | null | 2017-12-26T08:43:16 | 2017-12-26T08:43:16 | null | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
from __future__ import print_function
from PIL import Image
from argparse import ArgumentParser
from sys import stderr
from pysstv import color, grayscale
SSTV_MODULES = [color, grayscale]
def main():
module_map = build_module_map()
parser = ArgumentParser(
descri... | [
"omkolhe026@gmail.com"
] | omkolhe026@gmail.com |
a4f391c12ed7d15a453b0b814ea0c2e443125c85 | 02b26f97f268c9b52d0680373d116ca375985f0e | /button.py | 0f0262f1fd43e30f1fa84e2d31a17ed44d27d588 | [] | no_license | JacekWajdzik/alien-invasion | 0883c0b9bfcd99a8092dc289d596d7b5380ac931 | c04fb2fd3ccf0b3603dc41b80f1ecf40c1803519 | refs/heads/master | 2022-10-28T10:47:57.329306 | 2020-06-11T19:40:53 | 2020-06-11T19:40:53 | 271,631,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | import pygame.font
class Button():
def __init__(self, ai_settings, screen, msg):
'''Inicjalizacja artybutow przycisku'''
self.screen = screen
self.screen_rect = screen.get_rect()
#Zdefiniowanie wymiarow przycisku
self.width, self.height = 200, 50
self.button_color = (230, 230, 250)
self.text_color = ... | [
"66798436+JacekWajdzik@users.noreply.github.com"
] | 66798436+JacekWajdzik@users.noreply.github.com |
ef1c3842e4def65a489bb02d1b5e6ceffb8692bf | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_appliance_upgrade_ref.py | 1ae1a993fdadb83c88a412f85ab4532318492641 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,923 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
62dd346e363b9f7c5eec5996953aa62a4899e307 | bc958f72cb3d385001e1952b853f34f341c908e8 | /dvwa_bruteforce.py | a628b8c189666df2ca94fe5c0d3c98490772ded0 | [] | no_license | AndreMessi/security_tools | 458cf12e2e7aa21afb68b193e2f76388b53ff45f | 506071198640e2502fe9ec31d21b7eb3c3cbc1c8 | refs/heads/master | 2020-04-21T13:32:20.596892 | 2019-04-22T06:15:26 | 2019-04-22T06:15:26 | 169,602,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,450 | py | #!/usr/bin/python
# Quick PoC template for brute force HTTP GET form
# Target: DVWA v1.10 (Brute Force - Low)
# Date: 2015-10-25
# Author: g0tmi1k ~ https://blog.g0tmi1k.com/
# Source: https://blog.g0tmi1k.com/2015/10/dvwa-bruteforce-low/
import requests
import sys
import re
from BeautifulSoup import BeautifulSoup
... | [
"hninja049@gmail.com"
] | hninja049@gmail.com |
1950ca67c91e388304f292a61ab1f1f8d45060a8 | 85690414e489c1f3473c261c25a53cb888b58a52 | /exercises/ex2_factorial_given_number.py | 76517172b1c2ef15b455d27bf61b294255025c8a | [
"MIT"
] | permissive | ivanleoncz/PythonEggs | eb95c16b8632fd7782f707defca2295c871c06ff | 540843dcf6fba4b3fe0d6d57dd19654f33cccb74 | refs/heads/master | 2022-01-13T06:15:04.315564 | 2019-06-06T05:40:11 | 2019-06-06T05:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py |
""" Write a program which can compute the factorial of a given numbers.
The results should be printed in a comma-separated sequence on a single line.
Suppose the following input is supplied to the program:
8
Then, the output should be:
40320
"""
number = int(input("\nProvide a number for Factorial calculati... | [
"ivanlmj@gmail.com"
] | ivanlmj@gmail.com |
4d28d031c27a0637460b632a9b19cba410228c5b | ebe29aa1cc69cd4de540f1310086bac47f3bbc38 | /fakturo/billingstack/auth.py | 637df96d8fe8f8a7f0b3a14ac9b442e3569ba857 | [
"Apache-2.0"
] | permissive | billingstack/python-fakturo-billingstack | b352262adc5c7046c46ff464290abafd709e8049 | fb641b43ee0ab2a92aea64cc010c989bfbfe5436 | refs/heads/master | 2021-01-10T21:39:35.998727 | 2013-04-05T22:01:15 | 2013-04-05T22:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | import logging
import simplejson as json
from requests.auth import AuthBase
from fakturo.core import client
LOG = logging.getLogger(__name__)
class AuthHelper(AuthBase, client.BaseClient):
def __init__(self, url, username=None, password=None,
account_name=None):
super(AuthHelper, self... | [
"endre.karlson@gmail.com"
] | endre.karlson@gmail.com |
20e95818e7318e08fa18ba1273624083ab2189e1 | 55cb9e38dac8abb5745fddd17958ad05d69f1aae | /3 if states/3-1/8.py | 35c6e5dbf26cfa05be3991f5f636b84f53321ef7 | [] | no_license | gry-kiu/python-tutorial | 24ef6f47304b96af7b8fcd652565f431fc64f434 | 313c08c1441f64c146da22a6be2732a5869b8609 | refs/heads/master | 2022-11-16T03:10:09.714737 | 2020-07-13T06:07:20 | 2020-07-13T06:07:20 | 272,834,702 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # 입력을 받습니다.
number = input("정수 입력> ")
last_character = number[-1]
# 짝수 조건
if last_character in "02468":
print("짝수입니다")
# 홀수 조건
if last_character in "13579":
print("홀수입니다")
| [
"gry17@kiu.kr"
] | gry17@kiu.kr |
ff6ba23c9da3046c81bff48de8dc5c284b850763 | 0db8df4e153e3ea187847819661de880e196eca6 | /practice22.py | 99a8a60cb5eb9f823234f4039142a9913546a1e5 | [] | no_license | cis-04/primitive-python | 4763e2c74f0f354dd19942bedabb7ddec3a73c13 | 44f0c498b6bdce3eff26fb59ac04cdd04af87f37 | refs/heads/main | 2023-03-21T19:51:24.863405 | 2021-03-21T01:55:20 | 2021-03-21T01:55:20 | 349,877,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | try:
R = int(input("정수를 입력하세요."))
except:
print("정수를 입력하세요!")
else:
if R % 4 == 0:
print("{}를 4로 나누면 나누어 떨어진다.".format(R))
elif R % 4 != 0:
remain = R % 4
print("{}를 4로 나누면 나머지는 {} 이다.".format(R,remain)) | [
"noreply@github.com"
] | cis-04.noreply@github.com |
b6c702423ffc356145e87486403b518ff17dc23a | 6562a388b69e50c0ff4641dd25724c7c5fd89edd | /python/2018_Edaily/counting_edge01.py | ec03b7b977f89d0b6d8f3db17ee07595da3e0e16 | [] | no_license | jangjooch/Python_study | 84555cd3a200eb07e8ff8557e401d99fe24e4ef5 | d4f85b0446daf150f37ed27510817591c4a0c569 | refs/heads/master | 2021-06-26T07:59:47.976992 | 2019-07-16T02:52:05 | 2019-07-16T02:52:05 | 152,009,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py |
init = input()
init = int(init)
array = list()
sum = int(0)
contents = int(1)
for i in range(init):
for j in range(init):
array.append(contents)
contents = contents + 1
print(array)
maxidx = len(array)-1
storage = list()
for i in range((init*2)):
if i<init :
storage.append(array[i])
... | [
"37062379+jangjooch@users.noreply.github.com"
] | 37062379+jangjooch@users.noreply.github.com |
81db3d91a8388fbfdc455bfb6d31a7581320f80b | 6222d83f32d24ea742eca7973017e4819a282a8f | /clone_Projet/Project_4/delivery_order.py | 5c585fc122e7f005d0f015fe789da2938d403d0f | [] | no_license | enjoyone8/My_Code | 00d1e7006ed65b4791499af3e383fe65a79a7382 | 8e16fbb4c7f36a6daae8194e41fae70f32ff82ef | refs/heads/master | 2021-01-20T12:58:20.820900 | 2017-08-09T12:08:00 | 2017-08-09T12:10:03 | 90,435,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # -*-coding=utf-8-*-
__author__ = 'Rocky'
#交割单处理
import os,datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
pd.set_option('display.max_rows',None)
class Delivery_Order():
def __init__(self):
print "Start"
path=os.path.join(os.getcwd(),'private')
if os.path.exi... | [
"enjoyone8@163.com"
] | enjoyone8@163.com |
e8598e0daa782c80295ffe2b35fbb064e4fb5a6b | 6e015b8c884847a812ef5ec51181f7dc7cf5ad4c | /model/eitr/transformer_decoder.py | 6e4ff06a1c9576911c659a35b0c89c92071bb1cb | [] | no_license | tlwzzy/ET-Net | f67b9c9bb0b639a49781c35abb0fa76902a77057 | 3806acdf27d3534498f9e49c38a93b1de12d9b93 | refs/heads/master | 2023-08-13T09:32:41.573687 | 2021-09-29T09:26:58 | 2021-09-29T09:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | import torch
from torch import nn
import torch.nn.functional as F
import copy
class transformer_decoder(nn.Module):
def __init__(self, d_model=256, nhead=8, num_decoder_layers=6, dim_feedforward=2048, activation='relu', dropout=0.1):
super().__init__()
self.d_model = d_model
self.nhead = n... | [
"wengwm419@163.com"
] | wengwm419@163.com |
b0789b65346da9d46568ef7fc745efe52ce14c2c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_rhetoricians.py | b82e3e2f934329cba730d00cb0c53fa56ef00f97 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py |
from xai.brain.wordbase.nouns._rhetorician import _RHETORICIAN
#calss header
class _RHETORICIANS(_RHETORICIAN, ):
def __init__(self,):
_RHETORICIAN.__init__(self)
self.name = "RHETORICIANS"
self.specie = 'nouns'
self.basic = "rhetorician"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
47ca804a3d8883b44e584a1195f25679b610f48e | 505cc4a10a4aa7ce6becbff10e6ac1b5037a825b | /consensus_input.py | 7a87960f5e5376eb7e393902b408bacae94b3b12 | [] | no_license | Dirivian/Current-Work | adbf86f1390ca9833d6cb0c156edac1aa2d2d7fc | 14f61f6fe9572ccaad4ea000cb49490a75794b15 | refs/heads/master | 2021-01-21T06:14:00.601567 | 2018-07-05T06:51:34 | 2018-07-05T06:51:34 | 82,861,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 7 16:07:26 2017
@author: user
"""
import numpy as np
from scipy import integrate
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
N =3
def Laplacian(X,t):
L = np.ones((5,5))
for i in range(5):
L[i,i]=-5
... | [
"jithindgeorge93@gmail.com"
] | jithindgeorge93@gmail.com |
fee51756e1d2f35a94346391ab6947669f32f3e5 | e09ca015952d06ad35342660f42a53edbb19fa2b | /urls.py | 81f56fdec39758cb7db23674d613f88880be9edf | [] | no_license | bartdob/weatherApi | 9b313147202a48c62ca85f595ba3652f2d27db22 | a545adf7409fdb6ebc9caa4c492a9c7773aab012 | refs/heads/master | 2022-12-16T21:00:38.713628 | 2020-09-08T17:58:47 | 2020-09-08T17:58:47 | 298,189,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
path('delete/<cityName>/', views.deleteCity, name='deleteCity'),
] | [
"dobry1@pm.me"
] | dobry1@pm.me |
4b7c937f22f3014ec84bad9e620ce8522f0d431f | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /bin/jupyter-qtconsole | 488a1d74540d18578cde9d0aa14b719fbdb5f409 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 101 | #!/usr/bin/env python
from qtconsole.qtconsoleapp import main
if __name__ == '__main__':
main()
| [
"wgyumg@mgail.com"
] | wgyumg@mgail.com | |
3043f1af617ce163e4a21e756bc266e9fb7c522f | 647ad66aa2371cfa506db0b0779c2b98a98ed293 | /KingdeeDataExport/qt_test/Ui_main_form.py | d6cfe6250cc7288b3bff978c87a12900befc5a38 | [
"Apache-2.0"
] | permissive | Gatorix/accounting_tools | e5780cfc5c80e7ab6463f8dd226cd4b8700d98f8 | 926ee446048c435f648c2461631a4d663f74828f | refs/heads/master | 2021-08-09T12:17:01.816599 | 2020-12-10T10:04:21 | 2020-12-10T10:04:21 | 230,381,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\ZCY-CW\Documents\GitHub\KindeeDataProject\ui\main_form.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):... | [
"caosheng0000@outlook.com"
] | caosheng0000@outlook.com |
103274d4dd7e04e72642cbed173b1a399eb4a13c | 6d311428fde9389f552a46784b26576f1ff52092 | /thirtyseventh.py | e0644ab8454acd08dcaa82b4c063f7108ec2075d | [] | no_license | hemanrnjn/CoriolisAssignment | c0e9c096e6a59c30dbcac5d76e70424c905fcd93 | ed5fb3af60a66db6e83fbf064022c701b007511d | refs/heads/master | 2020-03-28T06:11:23.988699 | 2018-09-10T09:57:09 | 2018-09-10T09:57:09 | 147,819,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def enumerate_file(file_name):
file = open(file_name, 'r')
new_file = open('enumerated-' + file_name, 'w')
for i, line in enumerate(file):
new_file.write('{}. {}\n'.format(i+1, line.strip()))
file.close()
new_file.close()
file_name = input('Enter the file name\n')
enumerate_file(file_name)... | [
"himanshurnjn04@gmail.com"
] | himanshurnjn04@gmail.com |
67b408b0da1d63f7d5a38668a182b9bfb8e691d0 | f90e26811ec80a0ad6c82261e237d81067d344a5 | /PyExp/folderTool.py | f55e6dc0d639d0c0b223dca98f28097a9d910d75 | [] | no_license | JeffHabe/PythonWorkspace | 0cccd83ab0bff6bd8e59e27ef0cb04f0bc457b6f | 4bd0f46aa77e1882ba8a913ea9c3acf7e4b7ec2d | refs/heads/master | 2021-06-02T15:09:11.294191 | 2019-11-22T07:37:32 | 2019-11-22T07:37:45 | 132,264,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 2 13:52:32 2018
@author: Jeff PC
"""
from os import walk,makedirs
import datetime,time
import os.path as pth
#mypath ='excelFolder/'
import csv
def getFileName(mypath=''):
for (dirpath, dirnames, filenames) in walk(mypath):
f=list(filenames[i][:-4] for i ... | [
"sadhabe118@gmail.com"
] | sadhabe118@gmail.com |
352121d56b8a5bb9fa3eec78314000a59d9186b6 | b50508302647ad849029210bff200930b1902987 | /apps/articles/migrations/0001_initial.py | dcee0bc7423816df2b8733388e92bfed9f9a7652 | [] | no_license | tianjiajun123/myBlog | a46718ed3fde114bfa282428d0c8b7f36b5adce9 | 2cd67bc0e85974cda477c366db9f7051b8b11132 | refs/heads/master | 2023-02-15T11:12:37.266980 | 2021-01-06T10:58:50 | 2021-01-06T10:58:50 | 326,363,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | # Generated by Django 3.1.4 on 2021-01-03 20:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"you@example.com"
] | you@example.com |
d0999586ccbd5cec385e34f8a7edbf19decb2542 | 4443d08048f9980045e5f0541c69db0d756391d1 | /partner_ngos/programs_management/doctype/project_indicator/test_project_indicator.py | 886c2b9e33e38f60e194f3c716e3dc39fa36f037 | [
"MIT"
] | permissive | mohsinalimat/partner_ngos | dea0db6e0f9718e7ffc69f7171bdb1603a055d72 | 4a345fb6989ff5a21db7fca07aa4e5174dca8f59 | refs/heads/master | 2023-03-15T13:15:40.571368 | 2020-07-09T07:22:59 | 2020-07-09T07:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Akram Mutaher and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestProjectIndicator(unittest.TestCase):
pass
| [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
5f65a914e6bae62808bebcdf2aac4be3d08d6c66 | f5b0db4a88e5d0e0aa4d43a7b6df0cccd227887e | /genetic/helpers/__init__.py | 735e7e82c7643c41570a290036fe6fe701ef8a73 | [] | no_license | balbok0/nn-arch-opt | 1bd70ac9f1c2c561c94f89dd839b62a90972de04 | c329ee96ff56d83fc41dbdeb368ccd93b5462552 | refs/heads/master | 2020-03-29T04:45:09.487622 | 2018-11-06T00:31:16 | 2018-11-06T00:31:16 | 149,546,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import sys, os
sys.path.append(os.path.realpath(__file__)[:-11])
import helpers_other
import helpers_data
import helpers_mutate | [
"jakubflpk@gmail.com"
] | jakubflpk@gmail.com |
1846244645603c3069beec9522f089c045a558a3 | a86a1ccce08d1321f50fff61dc3b7533ce8910a2 | /core/management/commands/rename.py | e7633d7e297c267b3e3be96918420178934013f9 | [] | no_license | Allabergen/django-boilerplate | 19be29a6728b4dad3c35745340afaceb2beb20a5 | 906460dff74f49ad4882d1cc0e1264a0deedfae1 | refs/heads/master | 2021-06-17T18:37:32.877399 | 2019-07-25T16:23:04 | 2019-07-25T16:23:04 | 198,864,531 | 0 | 0 | null | 2021-04-16T20:43:59 | 2019-07-25T16:16:28 | Python | UTF-8 | Python | false | false | 950 | py | import os
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Renames a Django project'
def add_arguments(self, parser):
parser.add_argument('new_project_name', type=str,
help='The New Django Project Name')
def handle(self, *args, *... | [
"allromis@gmail.com"
] | allromis@gmail.com |
7759138da9134b5790a90c7571b79f439e325980 | 773b96a8e4c956269aaa36e97d55b3dbf3723ce4 | /test_GDA.py | 38d5c2e8b3955fe1fc1ccb9a22ad43eb67ae10c8 | [] | no_license | stojiljkovicbre/cat2dog | e5e911bcd569c1059b7289f1f41a9d86c91ca713 | 1bf168eeef0291925bc3a15e5fe678ed78548029 | refs/heads/master | 2022-07-16T13:37:44.774194 | 2020-05-19T20:04:31 | 2020-05-19T20:04:31 | 265,298,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from src.GDA import test_LDA
def main():
test_LDA(['cat2dog/testA', 'cat2dog/testB'])
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | stojiljkovicbre.noreply@github.com |
48ab043b60392099b39e2970a820ebb238c4e530 | 5eb2440d889040253381f53fbd6c02fc40459af9 | /main.py | be89e6a83514ee627f3c73928fbf2c4d251d8e09 | [] | no_license | wmm1002/CanAI-Name2Vec | 6dc0174e31b549509fc5bcde09768825500827b1 | 439ea63135fe15e9f7396469c080c8f1e3f9f159 | refs/heads/master | 2020-08-11T00:16:46.717913 | 2019-04-20T21:29:49 | 2019-04-20T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from create_model import train_model
from gensim.models.doc2vec import Doc2Vec
from os import makedirs, path
from results import save_results
from sys import argv
#ensure output directories exist
makedirs('models', exist_ok=True)
makedirs('histograms', exist_ok=True)
makedirs('matching_name_distance', exist_ok=True)
m... | [
"foxcroftjn@gmail.com"
] | foxcroftjn@gmail.com |
6d43981f925598e96edfe736f9319522da0ac931 | 897d4ddb90c22cbe2ac5d823f53970dc585ee2d6 | /Prime.py | 0960c8d23ea3311b1010c5959993a0ecf7d939ac | [] | no_license | mfsyed/Prime | efcaf01a0facc614531807bf567fb8c5c9829711 | d5fe2ceb968834ea8563a3e08d27a04dd98b7fba | refs/heads/master | 2020-03-27T18:15:52.660809 | 2018-08-31T15:26:27 | 2018-08-31T15:26:27 | 146,909,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
number = int(input("Pick a number between 1 and 100 and we'll let you know if it's prime."))
count = 1
divide = 1
for i in range(1,number):
if number%i == 0:
count = count + 1
factor = (number/i)
print(str(factor) + " x " + str(i) + " is " + str(number))
if co... | [
"noreply@github.com"
] | mfsyed.noreply@github.com |
7edccf28dd33aa5d5e68e9748141bf717e1182c5 | 8ebd1f4496d2bd1fae3e4e958b29cc2065efee5a | /examples/new_theme.py | 26ad89083825f337bf28655bd36ab5b9f71bfa2e | [
"BSD-3-Clause"
] | permissive | Czaki/napari | 015381339d016ece8137c6fc67e076f9f1fdbd41 | d043abc924441a5f842b4dd699d7c522b2e4b2c8 | refs/heads/master | 2023-08-31T09:46:46.589131 | 2023-07-20T20:07:21 | 2023-07-20T20:07:21 | 248,206,469 | 0 | 0 | BSD-3-Clause | 2023-09-13T22:06:09 | 2020-03-18T10:55:43 | Python | UTF-8 | Python | false | false | 924 | py | """
New theme
=========
Displays an image and sets the theme to new custom theme.
.. tags:: experimental
"""
from skimage import data
import napari
from napari.utils.theme import available_themes, get_theme, register_theme
# create the viewer with an image
viewer = napari.view_image(data.astronaut(), rgb=True, nam... | [
"noreply@github.com"
] | Czaki.noreply@github.com |
65f33c030f4337590dc31247c63430a37eed2e53 | 372767d4b1b759b153632cf3d42a696bd6ee878d | /scripts/HiCtool_TAD_analysis.py | 9bda970e0e94a8d1ce7cbe5ece601a1edeee7e4b | [] | no_license | szymanska/HiCtool | 4f1629e913bc4b85b0d2ec3d28c741c2f799043c | 528e865ce0a3139bc17d07c78ced4e44a7b399d2 | refs/heads/master | 2022-09-06T16:52:11.294186 | 2020-05-31T20:27:20 | 2020-05-31T20:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,722 | py | # Program to perform TAD analysis:
# - Calculate the DI, HMM states and topological domains coordinates.
# - Plot the observed DI and true DI (Hidden Markov Model).
# Usage: python2.7 HiCtool_TAD_analysis.py [-h] [options]
# Options:
# -h, --help show this help message and exit
# --action ... | [
"rcalandrelli@eng.ucsd.edu"
] | rcalandrelli@eng.ucsd.edu |
c5ef9f3c896720bfe3cbcd8bf8087394c0635cc3 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0101_0200/0140/0140.py | fcfbf5535dac6588d0fb41901a5501b3284bd7d6 | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from math import inf
with open("input.txt", "r") as f, open("output.txt", "w") as q:
n = int(f.readline())
m = [[int(x) if x != "100000" else inf for x in f.readline().split()] for i in range(n)]
for k in range(n):
for i in range(n):
for j in range(n):
if m[i][k] < inf an... | [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
e3777872b94428267992a01b44c30ba2643b99bc | c91b68be796a9835c528856b6f5fa7b56d2af451 | /examples/mnist_convnet.py | d9e994d350811b397b81ced710890fceedbf32db | [
"Apache-2.0"
] | permissive | syzh1991/tensorpack | fe61cb46fd40aa0cb9f8a0a3ea4ea3bb833cb3c5 | 174c3fc9d60b0cbeccac2ae3e73e73d6e788dbe0 | refs/heads/master | 2021-01-17T00:24:08.366350 | 2016-04-19T06:25:57 | 2016-04-19T06:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,520 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: mnist_convnet.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import tensorflow as tf
import numpy as np
import os, sys
import argparse
from tensorpack.train import *
from tensorpack.models import *
from tensorpack.utils import *
from tensorpack.tfutils.symbolic_functi... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
d06d7c4a50a9d2ed62e1339c2c422ef078e2e611 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/69_Sqrt.py | 4f2aa947d9e808ddbc9837a59a51ea6e638dbf3b | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # #Implement int sqrt(int x).
# #Compute and return the square root of x.
# #x is guaranteed to be a non-negative integer.
# #Your runtime beats 81.07 % of python submissions.
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
"""
Method 1: ... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
5486ec3f9035cc8d5ab182d372bd09effbdc81d9 | 60afeba07c0c8e86f53a057b2358e8448f1ad97c | /python/TestFor25.py | 277ecabca5dc33827e15edd9fcfcf7fe38e14725 | [] | no_license | umn2o2co2/DivisibilityTestPrograms | 202c07176f67534553e12c1f0ccfd9b78a1b59ec | 67f734efd86051b8c954de6ce01047d2a92973a7 | refs/heads/master | 2020-03-31T04:58:48.072800 | 2018-10-07T10:07:03 | 2018-10-07T10:07:03 | 151,912,701 | 0 | 0 | null | 2018-10-07T06:30:30 | 2018-10-07T06:30:30 | null | UTF-8 | Python | false | false | 177 | py | endin = ['0','25', '50', '75', '00']
n = input('Input to test for divisibility by 25: ')
if n[-2:] in endin:
print('Divisible by 25')
else:
print('Not Divisible by 25') | [
"primeoptimus98@gmail.com"
] | primeoptimus98@gmail.com |
73d070902483280a7fc45ae6ffdbc811594dd9e2 | 02ae54de0a3e508bf7b94548916b7ec61e077d57 | /lib/LogicOperators.py | 3eb1b1300877a45bb848234a368153b7fdd111e5 | [] | no_license | Livruen/-home-livruen-Neural-Network-Dokumentation-Backpropagation-Code-NeuralNetwork_Backpropagation_Facer | b1449f864525805f55e2601a01cd27128096b363 | 9c29e10c5b2af90e137f9062b4b9405338db14db | refs/heads/master | 2020-06-19T23:36:42.603167 | 2016-11-26T13:42:46 | 2016-11-26T13:42:46 | 74,827,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | __author__ = "Natasza Szczypien"
class LogicOperators(object):
inputNodes = 2
hiddenNodes = 10
outputNodes = 1
target = 0
def __init__(self, target):
self.target = target
def target(self):
return self.target
def inputNodes(self):
return self.inputNodes
def hi... | [
"kiya.natasza@gmail.com"
] | kiya.natasza@gmail.com |
ebfe12ca6885e70c9bc5fc09d36ec026e5bad8d6 | 248e0e0a28dd3640331c4ffc581781cb8edad42d | /py-etl/main.py | 246e76e482ed6bbc57fa90e8b65dbdbfab0d45a5 | [] | no_license | danmcquillan/cosm | 70d3ea91f43e72b035af659059554af36707beed | ceec0db731f479084075626ed8b2508da65c3816 | refs/heads/master | 2021-01-24T23:34:18.014070 | 2012-09-19T14:51:02 | 2012-09-19T14:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from sqlalchemy import *
# from sqlalchemy.orm import *
# from sqlalchemy.schema import *
from app import *
# ========
# = Main =
# ========
if __name__ == "__main__":
getDb().echo = True
initDb()
| [
"martin@dekstop.de"
] | martin@dekstop.de |
a3ab3c0e572b348740cdbbea4546af673b20815e | f01834a702d1cc6524cacaa7fabc8be251ecf35a | /fibonaci series using recursion.py | 5b60a510fc97a55cc20c1bdc077e791f6dad53ad | [] | no_license | shiwanisingh9818/Python | 00f75565cbb22ca2a8d99622e07d0b8b89eb44b6 | e522a4f6f65d4b00e4ddecdcbe11209d5a91b71f | refs/heads/master | 2022-11-15T19:55:32.742862 | 2020-07-10T17:19:24 | 2020-07-10T17:19:24 | 272,676,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 16 19:56:53 2020
@author: shiwa
"""
def recur_fibo(n):
if n <= 1:
return n
else:
return(recur_fibo(n-1) + recur_fibo(n-2))
# take input from the user
nterms = int(input("How many terms? "))
# check if the number of terms ... | [
"noreply@github.com"
] | shiwanisingh9818.noreply@github.com |
873f832b9b4a502cdab6b718ab5f202b53555a0a | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/datetime/rsntpprovtontpauthkey.py | a7e4bb2cc3d0c51d834f75f92edff686fd33660f | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 8,541 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
440ab0d752b375b01d698c86a67743b7d9488307 | 8c6fa70bae915c70268c1180281b2b6d78399ce4 | /venv/Scripts/easy_install-script.py | 1ee2e312ba7ec426dc962ae681c830661f851f1f | [] | no_license | cha-n/PG | 6aad26fe32521e4713c0b0828b1365da7dcd1613 | 681051fff24f37302c2bba2f4614dc07386b3f89 | refs/heads/master | 2022-11-18T14:34:58.439384 | 2020-07-03T07:30:41 | 2020-07-03T07:30:41 | 276,623,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!C:\Users\JCY\PycharmProjects\PG\venv\Scripts\python.exe
# 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)?$'... | [
"chan01115@naver.com"
] | chan01115@naver.com |
828a231c05e4668229f8e782b16eaab5f32a9e37 | 963f1008aa3c770d8d15e794109912f44b1e3fd7 | /Advice/apps.py | aedd80c33b03b43341abee5a342fadc904353599 | [] | no_license | 12mohaned/callForHelp | e4dea90f6c38d8fcae7d8f8eebc18fb62260c6b3 | 170531f2cc8788e52309d0f14622c6474379399a | refs/heads/master | 2022-12-31T02:12:01.624542 | 2020-10-14T16:56:06 | 2020-10-14T16:56:06 | 299,133,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class AdviceConfig(AppConfig):
name = 'Advice'
| [
"mohaned_boss@outlook.com"
] | mohaned_boss@outlook.com |
7524a59a073e25d6a4d924978ce923d29697289e | 631bda6c763448162fd3f6663d201e97cbfda36a | /static/ml_evening/homeworks/homework3.py | 12e69ad0f5e6b0b0716e3fcfcbdeba0d71d08b63 | [] | no_license | mamikonyana/mamikonyana.github.io | 47451086d87743817bd097a484f5280a199a81b9 | 7f9d5f2507f59b8e655a3de544e7dfb57cbd7784 | refs/heads/master | 2021-01-19T02:35:51.607792 | 2018-01-16T22:32:04 | 2018-01-16T22:32:04 | 12,716,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | #!/usr/bin/env python3
"""
Homework3, template code
If you have any questions ask in #homeworks channel on slack.
"""
from __future__ import print_function
import numpy as np
import sys
def fit_ridge_regression(X, Y, l):
"""
Calculates and returns analityc solution for ridge regression.
:param X: data ma... | [
"arsen@mamikonyan.am"
] | arsen@mamikonyan.am |
95b6b45adf278de736f8812369a3a7ba4ecd6f7a | 12ddc8c067f364335a2b602a3f098310f810c04b | /Arithmetic Arranger.py | c9d27e35067cdbbe0d5022f00b6abcb10dc37459 | [] | no_license | Radoslav681/Arithmetic-Arranger-freeCodeCamp-Project | 2ad9fb621ac0d51300e02b3ba5ec9c41bc9e64fa | b575c0959384005150292e4f1f53f1b76e0af3ff | refs/heads/main | 2023-01-14T02:13:08.913267 | 2020-11-14T00:25:53 | 2020-11-14T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | def arithmetic_arranger(problems, solutions=False):
# Arranging vertically an arithmetic problem.
l1 = ""
l2 = ""
l3 = ""
l4 = ""
for pair, case in enumerate(problems):
numb1, symbol, numb2 = case.split()
if not numb1.isdigit() or not numb2.isdigit():
return "Error: Numbers must... | [
"noreply@github.com"
] | Radoslav681.noreply@github.com |
74108a22b91ad3b4c6b46bc638f052f5195fb339 | e030b26ea0f45eda5a25bf18051e9231e604fdd5 | /doc/source/sphinxext/numpy_ext/docscrape_sphinx.py | bcf7e70731cc798b73e4f22a48c25d361f65c6d1 | [
"CECILL-B",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | neurospin/piws | d246dc1925c563964309e53f36fc44e48f929cf7 | 4ec6f60c6343623a82761c90c74642b4b372ffd1 | refs/heads/master | 2021-01-17T03:49:35.787846 | 2018-10-15T09:44:39 | 2018-10-15T09:44:39 | 32,163,903 | 0 | 17 | NOASSERTION | 2020-10-14T12:56:38 | 2015-03-13T15:29:57 | HTML | UTF-8 | Python | false | false | 8,004 | py | import re
import inspect
import textwrap
import pydoc
import sphinx
from docscrape import NumpyDocString
from docscrape import FunctionDoc
from docscrape import ClassDoc
class SphinxDocString(NumpyDocString):
def __init__(self, docstring, config=None):
config = {} if config is None else config
sel... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
51439ebd8e1773b758429994ad7c5900941e9235 | 99ae8cc30885cb5345ee896792418f4793b5a0b4 | /result_analysis/views/subject.py | 342baf001aa379b8460dc29abdcb9b1736d66ee1 | [] | no_license | hishamalip/asd_lab | 9c4b50cd6fc6d9d65c093aa9875df08f92a0e81d | 86682c2f94deb738dd129f1ea4c6f0365a9207a3 | refs/heads/master | 2020-07-10T02:57:13.339222 | 2019-12-16T04:28:33 | 2019-12-16T04:28:33 | 204,149,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36,222 | py | # importing tabula python library for extracting data from PDF
import tabula
# storing data to 'df' variable
df = tabula.read_pdf("s4.pdf", pages='all')
# converting input pdf to csv format
#tabula.convert_into("s4.pdf", "subject.csv", output_format="csv", pages='all')
# storing data to x in array format
x = df.to_n... | [
"hishamalip@gmail.com"
] | hishamalip@gmail.com |
d03994c74bdd9312e76cb0d873668757922371ac | a2bb841d56d652bfd55a1a4f153031b8c033d65d | /MNSIT.PY | 91682c0904ac7707485a44c77ad0091f45c5259e | [] | no_license | zhangyihao91/Neural-Network | ad91377e78ef30e86ee50b6fd6fa44de9418dbbd | 613939ee0e8c9dc895f6acbaa84126211f19c713 | refs/heads/master | 2023-01-05T08:55:13.531901 | 2020-11-04T04:33:18 | 2020-11-04T04:33:18 | 263,895,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | import torch
import torchvision
import numpy as np
import torchvision.transforms as transforms
torch.backends.cudnn.benchmark = True
transform = transforms.Compose(
[transforms.ToTensor(),
transforms.Normalize((0.5),(0.5))])
trainset = torchvision.datasets.MNIST(root='/home/zhang/Model',
... | [
"noreply@github.com"
] | zhangyihao91.noreply@github.com |
9030f24508ffc10dd013107931f14a0db38a1947 | b7a1a01b667c0b27b5f70f8c99c74a331de48817 | /learning_log/urls.py | 6069a82d176cc8015097199fef904c001e06c019 | [] | no_license | baha312/django_learning_log | 051f534d374f5e1a74f82245faf312bfbdf30012 | aee0a11c2c5d624e79755c1704021c5c31befd0f | refs/heads/master | 2023-08-15T15:00:30.582100 | 2020-04-19T19:39:54 | 2020-04-19T19:39:54 | 256,122,280 | 0 | 0 | null | 2021-09-22T18:53:26 | 2020-04-16T05:53:50 | Python | UTF-8 | Python | false | false | 898 | py | """learning_log URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"bahtiyarbolotbekov@gmail.com"
] | bahtiyarbolotbekov@gmail.com |
4de9520429448320a3720b569ff6ae90c4bae5ea | be33b68808ba8f4744c4ba970357e34362747ae1 | /videos_search/urls.py | c6ea7ad7e71991ca95a0e02bc17a66c9b2bc9604 | [] | no_license | apoorvkhare07/Youtube-search-apis | a37c2f065367c1ec79c72c17a6d409040a2b90cf | 4b023fbb80bf8a5ba6a9b1bcb162099055be0958 | refs/heads/master | 2020-05-03T14:52:47.142360 | 2019-04-16T15:02:17 | 2019-04-16T15:02:17 | 178,690,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.urls import path
import videos_search.views as views
urlpatterns = [
path('',views.VideoListView.as_view(), name='video-list-view'),
path('api/',views.ApiListView, name='video-list-api')
] | [
"apoorvkhare007@gmail.com"
] | apoorvkhare007@gmail.com |
8db98c466976482d52ff8c44c908d36a78a4830c | 66ba8fe37044b65313164a98614b28ef4a220873 | /core/tests/msfrpcdev.py | b1a1c10ac8251eab000225117bc3180c17a48ad9 | [] | no_license | eroa/reconator | 022d64b59882427064738bbf242b82a56c8de760 | 33c767155508ec49a5536977f8e16a06823c3853 | refs/heads/master | 2021-10-27T04:15:20.383146 | 2019-04-15T22:20:48 | 2019-04-15T22:20:48 | 30,401,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | import nmap
import msfrpc
client =msfrpc.Msfrpc({})
client.login('msf','caillou')
# TODO msfrpc support
# def sshenum(ho, po):
# try:
# res = client.call('console.create')
# console_id = res['id']
# except:
# print "Console create failed\r\n"
# sys.exit()
#
# cmd = """use au... | [
"toxic@murene"
] | toxic@murene |
e4c2ae41b7aec6371b17182c26cbfda22f852b60 | b466a62a6b8151937212688c09b3a5704eaa7466 | /Python OOP - Exam Preparation - 2 April 2020/tests/test_battlefield.py | 86b729b594d2a13d2cc6756a5da43117a61aedc9 | [
"MIT"
] | permissive | DiyanKalaydzhiev23/OOP---Python | 89efa1a08056375496278dac3af97e10876f7728 | 7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0 | refs/heads/main | 2023-07-08T08:23:05.148293 | 2021-08-13T12:09:12 | 2021-08-13T12:09:12 | 383,723,287 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | from unittest import TestCase, main
from project.battle_field import BattleField
from project.controller import Controller
class TestBattleField(TestCase):
def setUp(self):
self.c = Controller()
self.c.add_player("Beginner", "pesho")
self.c.add_player("Advanced", "ivan")
self.c.ad... | [
"diankostadenov@gmail.com"
] | diankostadenov@gmail.com |
ed4963184ecbbb28726f2833700b4965372f42e3 | 8109c33444dafc35a9e8399e3b69d1e51278c65f | /second_experiment/rename.py | 834a0635e6f47a0b064aeacce231864cfcf2115d | [
"MIT"
] | permissive | jcchouz/Paste-Video-Classification | 8a320366e2c57614a21869b7c0ab0f77b731ac40 | 58af07a343bcd4f95f26a71d6ae9791552b2fe6e | refs/heads/master | 2023-02-08T23:01:33.378138 | 2020-01-08T10:01:07 | 2020-01-08T10:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -_- coding: utf-8 -_
import os
density = 200
while density <= 780:
path = './images_ash_sand_1_16_gamma_test/' + str(density)
files = os.listdir(path)
i = 1
for file in files:
source_file = os.path.join(path, file)
os.rename(source_file, os.path.join(path, '%d_%s.jpg' % (density, os.... | [
"a774845313@163.com"
] | a774845313@163.com |
ac4c91a50fd1f04ce141715e5289aa64f8765f8f | 0bb474290e13814c2498c086780da5096453da05 | /agc034/B/main.py | dcdc2a07ea70836db87eccb7f03314c35c2aad03 | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 721 | py | #!/usr/bin/env python3
import sys
def solve(s: str):
s = s.replace('BC', 'X')
ans = 0
cur = 0
for i in range(len(s)):
if(s[i] == 'A'):
cur += 1
elif(s[i] == 'X'):
ans += cur
else:
cur = 0
print(ans)
return
# Generated by ... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
9db0f9f6112cc72d53b679c65473ed67a818e2db | 1b216d412c462d4df8ba0c2c116cac07d73f8949 | /webapps/tragether/models.py | 3091a80fde662c606e2cd801e34adb40264fb612 | [] | no_license | liangxt/webapps | 4c52a03e9c77624d6bde466db6b06e5082b7e30a | 65add918d2281a791d712dc2abe6bbee52648c39 | refs/heads/master | 2021-01-17T15:43:31.841848 | 2017-03-06T19:16:08 | 2017-03-06T19:16:08 | 84,110,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MinValueValidator, MaxValueValidator
from django.db.models import Max
from django.utils import timezone
from django.utils.html import escape
from vote.managers import VotableManager
from tragether.choice import ... | [
"liangxt07@gmail.com"
] | liangxt07@gmail.com |
bcfd51a123e43b32031694c438997f975b4979b3 | 859fb05b3e806c338aa0df6d235b351e7f4cfe4e | /src/jobs/migrations/0002_auto_20210117_0256.py | f6ff1c985e46834f5c25c0cd4e5427ee23649609 | [] | no_license | mahmoudshaheen1988/django-project | 3a7c2e365bc9ef8d9ec66dfaaa1f6a3e05f71ee1 | 28d3bde5c7e13d8308d620d344de099b28bdbd5e | refs/heads/main | 2023-02-23T18:14:28.838113 | 2021-01-17T00:14:33 | 2021-01-17T00:14:33 | 330,227,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # Generated by Django 3.1 on 2021-01-16 23:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='job',
name='descripctions',
fiel... | [
"mahmoudshaheen198811@gmail.com"
] | mahmoudshaheen198811@gmail.com |
18169718282ec7bfbfb2b7d2c8bd1613b7b9aa52 | 9b8e2992a38f591032997b5ced290fe1acc3ad94 | /lcs4t.py | ede392018cce26478bbc4a6e676503d973b8be70 | [] | no_license | girishdhegde/aps-2020 | c694443c10d0d572c8022dad5a6ce735462aaa51 | fb43d8817ba16ff78f93a8257409d77dbc82ced8 | refs/heads/master | 2021-08-08T04:49:18.876187 | 2021-01-02T04:46:20 | 2021-01-02T04:46:20 | 236,218,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | from collections import defaultdict
import math
t=int(input())
for i in range(t):
n, total=map(int,input().split())
coin = []
values = defaultdict(list)
y = list(map(int,input().split()))
for j in range(n):
coin.append(y[j])
values[y[j]].append(0)
coins = []
for j in range(... | [
"girsihdhegde12499@gmail.com"
] | girsihdhegde12499@gmail.com |
3a4e8511ec4573a3af2a109c2b6a3a74de8d20f4 | c480cdcab43a81afc06e269d6624b7d1b2700941 | /venv/Scripts/pip3.6-script.py | e8cbc0879a669968ae190b96363ab39703e9d07d | [] | no_license | jiangbiaoah/Stocks | d2f3946ee70a7b7c1ab7a9a58c4621d4c778108f | 0c71a753fd7402ad53db846944abbb4b294424fa | refs/heads/master | 2020-03-24T13:13:20.709291 | 2018-08-10T04:13:30 | 2018-08-10T04:13:30 | 142,739,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | #!D:\Workspace\Python\Stocks\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"jiangbiaoah@163.com"
] | jiangbiaoah@163.com |
413febb5de0ea3bcfb0e88911e7ad6f7de1162fa | bff3e02509c2a0f2ed1e250ef64c6c82b672f8f6 | /lahma/services/db_connector.py | 1324ee8a5124d4107d4b9bc41ac65c430cc8d83b | [] | no_license | gdamaskos/flask_with_sql_connector | e7f5ca3e8c644c39191325853568bd473e3d5a36 | 2c26b064b8373e0cd5de195cdba4c35f251e3a04 | refs/heads/main | 2023-05-28T13:04:48.624255 | 2021-06-10T16:40:35 | 2021-06-10T16:40:35 | 362,398,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,465 | py | #!/usr/bin/python3
import mysql.connector as mariadb
import concurrent.futures
from flask import json
#import json
import os
from lahma import app
class IdNotFoundError(ValueError):
pass
class NoProteinError(ValueError):
pass
class CalphaTraceError(ValueError):
pass
def query_database(pdb_id):
"""
... | [
"georgedamaskos@gmail.com"
] | georgedamaskos@gmail.com |
91675a4da299a7d70adac40d236e890674f592c0 | b3f5df499f06fb0bf19fbcc862485b4a298cb185 | /week_9/2020_07_13.py | ffbeabdfcfafab4d1725985511349632f0dc3ca3 | [] | no_license | AlanJYLi/leetcode_practice_python | f9f6c703ca0a7aadbfd795985b722e8e8e5460d1 | 9e7a647de9430672de73223e1c07632879289d1e | refs/heads/master | 2022-12-21T01:01:54.062191 | 2020-09-21T20:43:55 | 2020-09-21T20:43:55 | 268,670,845 | 0 | 0 | null | 2020-07-13T14:12:44 | 2020-06-02T01:21:25 | Python | UTF-8 | Python | false | false | 2,683 | py | # 1119. Remove Vowels from a String
class Solution:
def removeVowels(self, S: str) -> str:
a = {'a','e','i','o','u'}
res = ''
for s in S:
if s not in a:
res += s
return res
# 1122. Relative Sort Array
class Solution:
def relativeSortArray(self, arr1: ... | [
"lijingyu.rg@gmail.com"
] | lijingyu.rg@gmail.com |
cad475eef10b3d96e45bef653a7b8069696be5a3 | 448b7ff400c0537ddd6ab8343a7d721d13d58b58 | /apps/users/forms.py | eccef96e27dd64d2a88d3c9cc692309c4a84e6cf | [] | no_license | leonhj17/muxue | 1f88662c0681ab0ca3eb3aae783d6eafc4b7a052 | bf588a6f1aa6022a5245fabbf413300223416195 | refs/heads/master | 2021-01-20T10:10:02.382183 | 2017-08-10T06:29:16 | 2017-08-10T06:29:16 | 90,328,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # _*_ encoding:utf-8 _*_
from django import forms
from captcha.fields import CaptchaField
class LoginForm(forms.Form):
username = forms.CharField(required=True)
password = forms.CharField(required=True,min_length=5)
class RegisterForm(forms.Form):
email = forms.EmailField(required=True)
password = f... | [
"huangjian17@outlook.com"
] | huangjian17@outlook.com |
eda051d72d323b88e5d07e61bdabdbd16c2948e5 | d6a3186af0aaa86b3936f1d98730b7120918b962 | /testing_practice/tests_django/car_v2.py | 91228379ab91290fe1f4b03df8524ddd44bd8be1 | [] | no_license | kranthy09/testing | edd6376733723ef58a8a5ecece31cbaf030ca45d | ecdd5ce3b3688b42181d5ccb74003ed97e79fbc9 | refs/heads/master | 2022-07-02T23:58:09.308746 | 2020-05-05T16:58:45 | 2020-05-05T16:58:45 | 261,354,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,592 | py | class Car:
def __init__(self,max_speed, acceleration, tyre_friction, color = None):
self._color = color
self.is_valid_data("max_speed", max_speed)
self.is_valid_data("acceleration", acceleration)
self.is_valid_data("tyre_friction", tyre_friction)
self._accelerat... | [
"g.kranthi2507@gmail.com"
] | g.kranthi2507@gmail.com |
a7719bec1ea22f590bd6c01cb8ac40b983df3eda | 25fac06a7b6ad96681390a97a3e3909f5fabee20 | /about/urls.py | 088ddae564f971e162317175f1c2814f253c0f98 | [] | no_license | zynpnd/Restaurant | b68a81960d6b672994a2df46341b148f96cd6921 | 97f8dbdf15c927b367b5e86aecec5a0e3a46baae | refs/heads/master | 2023-06-10T03:45:24.495885 | 2021-06-26T18:35:45 | 2021-06-26T18:35:45 | 380,490,759 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.urls import path
from about import views
urlpatterns = [
path('about/', views.about),
] | [
"zsarican997@gmail.com"
] | zsarican997@gmail.com |
cd4b1c12109167b270b0c0cf0d8698ee6af197c5 | eb7e1ad96a713213c2dbbae4f53ba6ae4d619f91 | /data_loaders.py | 678f858ef3ace0ea97d42c029654047fc99f4f83 | [] | no_license | omarsayed7/Deep-Emotion | 8e8c2699ee3781407b0c06858c7fb598f4eb9669 | 7b9e45c087813b4339ad9b7030b790802e59ca9f | refs/heads/master | 2022-07-26T17:20:12.404318 | 2022-07-21T12:29:06 | 2022-07-21T12:29:06 | 240,705,758 | 199 | 86 | null | 2022-07-21T12:29:07 | 2020-02-15T12:23:56 | Python | UTF-8 | Python | false | false | 2,248 | py | import os
import pandas as pd
import numpy as np
from PIL import Image
import torch
import torchvision
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
class Plain_Dataset(Dataset):
def __init__(self,csv_file,img_dir,datatype,transform):
'''
Pytorch Dataset class
... | [
"sayedomar74@gmail.com"
] | sayedomar74@gmail.com |
de7ce52b41660eee7eea8ff7603241674cd09c47 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/622A/cdf_622A.py | 696901db63211acbb043bb8a0098147f0db843e9 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import math
class CodeforcesTask622ASolution:
def __init__(self):
self.result = ''
self.n = 0
def read_input(self):
self.n = int(input())
def process_task(self):
n = int(math.sqrt(self.n))
a = (n + n ** 2) / 2
while a < self.n:
n += 1
... | [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
7047569f62d60dc9c4e5bdb7e3177aabf9c79323 | 0ebe27ae590942f0efe56078ec4ee4c56c0312ad | /configV2.py | 360f188ce9aa7841bcc018de148adbdc1c1740e3 | [] | no_license | 7Osman7/BiClassifierInsects | ef265c548365adb0da3cf99700a6778a8a97e8e8 | dcdd6e4cd00b39e29137f703972aa38e708637eb | refs/heads/master | 2022-12-08T03:19:11.475401 | 2020-08-26T08:06:23 | 2020-08-26T08:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #This is where hyper-parameters and paths are edited
#Hyper-parameters
EPOCHS = 200
BATCH_SIZE = 128
LEARNING_RATE = 0.0001
#Paths
TRAIN_PATH = 'C:\\Users\\MONB1\\Desktop\\Gluxkind_CNN\\training'
VALID_PATH = 'C:\\Users\\MONB1\\Desktop\\Gluxkind_CNN\\validation'
TEST_PATH = 'C:\\Users\\MONB1\\Desktop\\G... | [
"noreply@github.com"
] | 7Osman7.noreply@github.com |
975273c217e092f254fb0412e8511e805ff5f3e7 | 3616a4046ec50c77eb5b117a678a7b233db18aac | /Python/Delete Node in a BST/main.py | 1930e78a896d875be38a85ced0217fdca145ffbe | [] | no_license | briansu2004/MyLeet | fe38cd10928d5faa3f449a65f13b2b87415d960e | 233d12deca34f51c3bb0406831cc07f3b72b50cf | refs/heads/master | 2023-06-01T05:04:07.685603 | 2021-07-01T17:57:40 | 2021-07-01T17:57:40 | 360,516,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | """
https://leetcode.com/explore/learn/card/introduction-to-data-structure-binary-search-tree/141/basic-operations-in-a-bst/1006/
Delete Node in a BST
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the BST.
Basically, ... | [
"brian.su@cplcloud.com"
] | brian.su@cplcloud.com |
f424a1af31ed5989adad0175193e06d4087950fb | 95a1711ae2c903e10cf8c752341c2780f9674738 | /implementation3.py | 70ebe5eebb189c4e12fc099a650f693d11cfe4af | [] | no_license | aaronsamuel137/legal-scrape | fb305e7575bdcc41899850edbf5c70fc895beaac | ae06a7a68c8e159a670a8837878bc4ef5f74e02e | refs/heads/master | 2016-09-05T09:24:25.006822 | 2014-04-16T16:50:39 | 2014-04-16T16:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | from multiprocessing import Process
from multiprocessing.managers import BaseManager
from concurrentqueue import ConcurrentQueue
from spider import Spider
from BeautifulSoup import BeautifulSoup
import os
import random
import json
import requests
import re
import time
import redis
import pickle
from pymongo import Mo... | [
"aaron.davis.samuel@gmail.com"
] | aaron.davis.samuel@gmail.com |
249ce324bde793fd41492fa2f8d1d0c2ce88c9cd | ed97fb5c71da7ed89235432e3971bb0ef6064f8b | /algorithms/python/290.py | 3c1bbff0685733f3cd42f905b78b0d011cbfcd85 | [
"MIT"
] | permissive | viing937/leetcode | 8241be4f8bc9234a882b98ada2e5d13b0ebcca68 | b07f7ba69f3d2a7e294f915934db302f43c0848f | refs/heads/master | 2023-08-31T18:25:06.443397 | 2023-08-31T15:31:38 | 2023-08-31T15:31:38 | 37,374,931 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | class Solution(object):
def wordPattern(self, pattern, str):
"""
:type pattern: str
:type str: str
:rtype: bool
"""
arr = str.split(' ')
if len(pattern) != len(arr):
return False
hashmap = {}
for i in range(len(pattern)):
... | [
"viing937@gmail.com"
] | viing937@gmail.com |
b6d4e48bf52987ff27d8fbcd9b632965f79c0c57 | 84b05c3de823110c73d8a408ba646fdda0d6471d | /model/input_embedding.py | f0356ae3dd8d2ac478d35ed6c617a0d20be23064 | [
"MIT"
] | permissive | hyzcn/pmn_demo | dfe69a23a9cd0139ba0e14c2d7002b03173c4b67 | c3c60e55927e982f90cfa10dffd42584bf712616 | refs/heads/master | 2020-04-26T23:32:29.460862 | 2019-01-30T15:34:04 | 2019-01-30T15:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import math
from torch.autograd import Variable
import sys, os
sys.path.insert(0, '..')
class InputEmbedding(nn.Module):
def __init__(self, vocab_size, vec_dim=300, glove_wemb=None):
super(InputEmbedding, self).... | [
"seungwookkim@Seungs-MacBook-Pro.local"
] | seungwookkim@Seungs-MacBook-Pro.local |
f61dda7d7991beabe13b928194d318a49672a28e | 05b265cf6359e99f3953a827cc6b1f7c74418ef7 | /predict.py | 25b91d2500f57fb3fa0b3c4461abdd4878c0a53e | [] | no_license | ChunChiehHuang18/Image-Sentiment-Classification | e42259c4d3014aad7cd5dd1d13dd131241fb7183 | bbf99823bc31c2e7866f9350d3953b1f5acaebe4 | refs/heads/master | 2020-04-13T15:17:15.984956 | 2018-12-27T11:35:19 | 2018-12-27T11:35:19 | 163,286,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | from tensorflow import keras
import pandas as pd
import numpy as np
import csv
TARGET_MODEL = 'Best/64%_0.9799_VGG-7/cp-005-0.65.h5'
print('Loading ' + TARGET_MODEL + ' model')
model = keras.models.load_model(TARGET_MODEL)
model.summary()
#test_loss, test_acc = model.evaluate(validate_data, validate_labels, batch_s... | [
"ChunChieh_Huang@asus.com"
] | ChunChieh_Huang@asus.com |
101a8894fb2fcb5f7139da788cb6cf2e8c2aaa6d | 407238eb7639325caddeb87d056fac2e32e707ec | /cli/parser/volt/volt.py | dcf9a30e84c3204023bba6c62a890353cdca4bc7 | [] | no_license | penlooktmp/cmd | a6383a8b0a08977acfd47adb51d8857474c0f3da | c63802b866e3c15a2ba24609241bebaad1a3451e | refs/heads/master | 2021-01-21T02:21:23.925366 | 2015-09-06T08:03:10 | 2015-09-06T08:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | #!/usr/bin/python
#
# Pengo Project
#
# Copyright (c) 2015 Penlook Development Team
#
# --------------------------------------------------------------------
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License
# as published by the Free S... | [
"loint@penlook.com"
] | loint@penlook.com |
f5fccd5cf37b249aa0bd6ec0df11050ccceac4ba | 226b1c73a706f4734834196d18305d4d2c873589 | /synlib/descriptions/INVX12.py | d9548d8ad876fcb48facd24d7fd0a2450a47ae9a | [] | no_license | ocakgun/vlsistuff | 43b4b07ae186b8d2360d11c57cd10b861e96bcbe | 776c07f5d0c40fe7d410b5c85e7381017d4dab64 | refs/heads/master | 2022-06-13T14:40:22.641310 | 2020-05-08T11:09:00 | 2020-05-08T11:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | Desc = cellDescClass("INVX12")
Desc.properties["cell_leakage_power"] = "3253.878540"
Desc.properties["cell_footprint"] = "inv"
Desc.properties["area"] = "43.243200"
Desc.pinOrder = ['A', 'Y']
Desc.add_arc("A","Y","combi")
Desc.set_job("inv") # (!A)
Desc.add_param("area",43.243200);
Desc.add_pin("A","input")
Desc.add_pi... | [
"greenblat@mac.com"
] | greenblat@mac.com |
26c9c98daf102bdfdc926aacc59124df803a03cd | d1ef7fb88284dc8e108a9e38023b863f2b8d605e | /apps/demo/models.py | c90779b8bbab12d5ddc1e594db26763756665749 | [] | no_license | jcaladlean-tech/lean_tech_backend_test | 27cbb2803cca1b37fc4411f45aa7e9d63409e0f8 | 82faea2500af97756061fc7d5297d00494ac0eea | refs/heads/master | 2021-09-30T00:05:37.572493 | 2020-04-06T01:41:44 | 2020-04-06T01:41:44 | 253,083,319 | 0 | 0 | null | 2021-09-22T18:49:55 | 2020-04-04T19:32:25 | Python | UTF-8 | Python | false | false | 1,090 | py | from django.db import models
class Carrier(models.Model):
"""docstring for Carrier"""
scac = models.CharField(max_length=30)
name = models.CharField(max_length=30)
MC = models.IntegerField(null=True, blank=True)
DOT = models.IntegerField(null=True, blank=True)
FEIN = models.IntegerField(null=T... | [
"juanpablo.calad@gmail.com"
] | juanpablo.calad@gmail.com |
66cba7b1d697df1b112e0741f078b2d82f7853cf | a0801d0e7325b31f0383fc68517e208680bb36d6 | /ProjectEuler/113.py | 67180d3f1e179379f2c22641ec3d5bb209b71d03 | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Problem 113
def cnt(length, inc):
end = 10 if inc else -1
step = 1 if inc else -1
dp = []
dp.append([1] * 10)
dp[0][0] = 0
for _ in range(length - 1):
dp.append([0] * 10)
for cur_position in range(1, length):
for cur_digit in range(10):
for next_digit in range(... | [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
214a8a89374011f125649cb61730f186d5928be4 | 6ea2ed800fd3d014dbc713f89d4f1de73a9047a8 | /app/user/user_comments/views.py | d4fa26f3c8721226de8a8564849a1df7bac47286 | [] | no_license | kishoresvk21/tech_blog_flask | d805f7d773cfd00f9c0b891b73c43c4b56567b89 | 6f16450ca09d726d49faf33abbc67f1c37fc5f3a | refs/heads/master | 2023-08-15T16:41:47.607908 | 2021-10-22T19:23:25 | 2021-10-22T19:23:25 | 419,964,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,078 | py | from flask import request,jsonify
from app import app,db
from datetime import datetime
from flask_restplus import Resource
from app.authentication import authentication
from app.models_package.models import User, Queries, Comments
from app.serializer import comments_serializer
from app.pagination import get_paginated_l... | [
"svkrishnakishore2000@gmail.com"
] | svkrishnakishore2000@gmail.com |
b4957067aa8c6473420b3275cc28d7451f8b51dc | 3b74f69fb2e244df8758c7f658c49a27ba404a4c | /media/migrations/0001_initial.py | 200a385c80e25d067bd27ef201dbda32e67235b9 | [] | no_license | rummansadik/Social-Media | f5eb82985f551d99c5990930402e47db01f2f47c | d3e3b0b5e979a3943154235c569f36af5d6b9d43 | refs/heads/master | 2023-08-28T08:21:32.130743 | 2021-10-03T06:32:27 | 2021-10-03T06:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # Generated by Django 3.2.5 on 2021-07-17 05:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"rummansadik@gmail.com"
] | rummansadik@gmail.com |
e5752efd326b351a01e04ea38dbc3983966cfb74 | a7cc210b0a8b3b7526e1364c7304c07824437f17 | /graphdata/serializers.py | 2e4842c49b52993e419f962a332f5079cd72fec9 | [] | no_license | aryamanpsingh/Stat-Comparison-Stat90 | ac8c9a25878436e6abbe62338614b985890e1366 | a5d2dc52b93e85352d39fcfcb57f39b0ca51e247 | refs/heads/master | 2022-12-14T02:27:22.577667 | 2021-03-30T21:03:58 | 2021-03-30T21:03:58 | 206,934,842 | 1 | 0 | null | 2022-04-22T22:21:21 | 2019-09-07T07:51:21 | JavaScript | UTF-8 | Python | false | false | 200 | py | from rest_framework import serializers, permissions
from .models import Player
class PlayerSerializer(serializers.ModelSerializer):
class Meta:
model = Player
fields = '__all__'
| [
"aps010@ucsd.edu"
] | aps010@ucsd.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.