blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3101dbfa94b6660b8fac02963f5b7480e805d946 | 5a612067f77ae86eea36142460e9cfae5d9e64ee | /.zsh/gitstatus.py | 964fc650f737b12292b546f5ca616bae09924f0c | [
"MIT"
] | permissive | snehesht/dotfiles | d14d9d3622506c003002445b963087413e1ae591 | aa0181ac35517c8217facd4e97ad66610a334a6d | refs/heads/master | 2021-09-28T05:59:50.195167 | 2021-09-17T23:23:49 | 2021-09-17T23:23:49 | 72,886,356 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
import shlex
from subprocess import Popen, PIPE, check_output
def get_hash():
cmd = 'git log -1 --format="%h"'
output = check_output(shlex.split(cmd)).decode('utf-8').strip()
return output
def get_tagname_or_hash():
"""r... | [
"mail@snehesh.me"
] | mail@snehesh.me |
ef2c1f1eda59fbff3084875ec80f14ae00e10fa1 | 01773eac9e1ae4b8477a1ed5b7d2c76e31ee44de | /utils/meter/msemeter.py | a696a1193821d27ebaa03acdb0194a8e9a8b958d | [] | no_license | yifanfeng97/coding | a54615025a4dfa0fa51fed313891f58b39ada128 | 9be1f58b67198a930de76b0b44569770ad0d7719 | refs/heads/master | 2021-04-03T05:53:49.809968 | 2018-03-25T13:23:49 | 2018-03-25T13:23:49 | 124,754,833 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import math
from . import meter
import torch
class MSEMeter(meter.Meter):
def __init__(self, root=False):
super(MSEMeter, self).__init__()
self.reset()
self.root = root
def reset(self):
self.n = 0
self.sesum = 0.0
def add(self, output, target):
... | [
"czqofnju@gmail.com"
] | czqofnju@gmail.com |
e4ed98e057375a8da643e377f7a420d297c0a54c | bfba1e0065ef482971941d3b1aa7eeb7bfdae523 | /visualization/new_get_model_data.py | 820dd76ab62465d9a25c77a61fb290d3b99cb7cd | [] | no_license | mcoppolino/are.na-analysis | d440c87d6320225d8892beab13342b6eb7033b9d | d8cb8ccde5a1573333fd0b02b49d66f09646cd2a | refs/heads/master | 2022-06-25T22:30:44.287120 | 2020-05-08T02:18:12 | 2020-05-08T02:18:12 | 242,257,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import numpy as np
def get_model_data(path):
with np.load(path + "/svd.npz") as data:
return_dict = {}
types_of_matrcies = ['M', 'T', 'M_U', 'M_D', 'M_V', 'M_U_trunc', 'M_D_trunc', 'M_V_trunc', 'T_U', 'T_D', 'T_V', 'T_U_trunc', 'T_D_trunc', 'T_V_trunc', 'M_hat', 'T_hat']
for t in types_of_... | [
"x.e.loinaz@gmail.com"
] | x.e.loinaz@gmail.com |
ece41af7422e8232631b6226812697070bf3291c | ab3aa69dcaee04ad1ee3f0c4b5086c02f759fa4c | /setup.py | dbb17a87378e6c2de407b53d3b7e6fd0f4f7c75c | [] | no_license | akshaygh0sh/ChessAI | 0030a94e6516c4b92f960f90badc1aebcc61ff2e | 7674ff5c3e73c8d4d847faa9162c0ca3a3f955d6 | refs/heads/main | 2023-06-24T01:09:58.543150 | 2021-07-27T19:37:52 | 2021-07-27T19:37:52 | 339,857,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from setuptools import setup
from Cython.Build import cythonize
import numpy as np
setup(
ext_modules = cythonize("ChessGame.pyx", language_level = "3", annotate = True),
include_dirs = [np.get_include()],
) | [
"akshayghosh@ucsb.edu"
] | akshayghosh@ucsb.edu |
e0a92a7830861071ff26621538d111156e36a394 | b6524221787c0bcd1a57484ce562c6bdf2b6c001 | /logger.py | 7a4fc8613dcf460a93b2f46dde1ac7678c774e29 | [] | no_license | kobimic/boiler | 9a489e8c03f37a3fecb85601bae3eac0d405c13b | 21e70158476b7baaf418b9d7da8e1f04307d8f83 | refs/heads/main | 2023-05-02T07:34:11.163150 | 2021-05-15T18:07:47 | 2021-05-15T18:07:47 | 366,294,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import logging
import os
app_name = os.getenv('APP_NAME', 'Boiler')
logger = logging.getLogger(app_name)
console_handler = logging.StreamHandler()
logger.setLevel(logging.DEBUG)
console_format = logging.Formatter("%(name)s | %(levelname)s | %(module)s | %(message)s")
console_handler.setFormatter(console_format)
logge... | [
"kobi.m@claroty.com"
] | kobi.m@claroty.com |
0f41b4c555162561f877240887369c044b1fe898 | 3d589d1c56b55fbd2b45b03564b8a9442ebf142b | /lib/src/klio/metrics/base.py | 1b50aeb1da57930cc8fba17042c72434460c2eb4 | [
"Apache-2.0"
] | permissive | spotify/klio | 1aff27412e92c9d699259e5ab1eaeb39dc3e9571 | e625565708ed846201d2e05f782c0ce585554346 | refs/heads/develop | 2023-05-25T14:33:28.348335 | 2022-03-23T20:34:09 | 2022-03-23T20:34:09 | 285,928,366 | 815 | 57 | Apache-2.0 | 2023-05-24T21:07:09 | 2020-08-07T22:02:58 | Python | UTF-8 | Python | false | false | 5,765 | py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"lynn@spotify.com"
] | lynn@spotify.com |
f89d77ec7050a0b3fad826498e49acf3dae1ad69 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4060/157004060.py | 58e52da8c9b818275d320822a6d5a4d065d5c91c | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,347 | py | from bots.botsconfig import *
from records004060 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'NP',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
280f96bebe498d018a6a7490f7d48898c669dd97 | edc0ce97f4b2a33c738a93d1b4421dab8680bd87 | /other_querying_strategies/s2_querying.py | 99226b25f7f4153c74c7dbec32b8f25701aab957 | [] | no_license | maksim96/active_graph_halfspaces | b76f5a9857c60ec3bacefab68bb8702893c20bf6 | aa6d38b56250d034ed8584d6ab73140981de5629 | refs/heads/main | 2023-06-17T16:16:57.245651 | 2021-07-10T18:26:55 | 2021-07-10T18:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,340 | py | import itertools
import graph_tool
import graph_tool.topology
import numpy as np
from labelled_graph_primitives.cuts import get_cut_vertices
from prediction_strategies.labelpropgation import label_propagation
'''
this is a naive implementation of Dasarathy et al.'s S^2 '15
'''
def local_global_strategy(Y, W, alpha... | [
"maximilian.thiessen@tuwien.ac.at"
] | maximilian.thiessen@tuwien.ac.at |
51d7428ae284b0c6df2a73dad8baa582447f9273 | 05276898508e103401ec4dba3b214e192ee38c2f | /pj_tools/test.py | 41fa5513ca3bf8653ba6ed5171f77e0ac64dcee0 | [] | no_license | yiyilinghun/pj | fe7b7ee021d59342ab33456e55fd606f0e6d692e | 70c820c9c101871b9f6b6da58d77b6a8beaaa3d3 | refs/heads/master | 2019-08-31T03:12:44.142984 | 2018-01-05T05:06:14 | 2018-01-05T05:06:14 | 94,193,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,612 | py | ###!/usr/bin/env python
###--coding:utf-8--
### import ptvsd
##import threading
##from multiprocessing.dummy import Pool as ThreadPool
##from http.server import BaseHTTPRequestHandler, HTTPServer
##from os import path
##from urllib.parse import urlparse
##import MySQLdb
##import time
##import os
##import sys
##if len(... | [
"200866850@qq.com"
] | 200866850@qq.com |
1b77f9b58df747702b7f5db704f9356a3d158fde | 1fb512a12fab72900a708bc30efa545118f7d4a4 | /freezeatoms.py | 0ce8d5cd27d287ce10ae766e9b61bc6666958dd8 | [] | no_license | mrnechay/mikescripts | e0cf5c3f5ba85e47e25c1cc5a46fdf026a1a55a1 | ea2552e2a6364234d478bc68dabb01de04d47764 | refs/heads/master | 2020-05-25T11:04:16.366633 | 2015-05-07T21:16:14 | 2015-05-07T21:16:14 | 24,625,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | #!/usr/bin/python
# usage:
# freezeatoms.py coord 1,2,5,10,20
# will freeze atoms 1, 2, 5, 10, and 20 in 'coord' file
import sys, os
coord = sys.argv[1]
frozenList = [int(x) for x in sys.argv[2].split(',')]
cartesianSection = False
atomIndex = 1
newCoord = open("__coord",'w')
with open(coord) as coordFile:
fo... | [
"michaelnechay@gmail.com"
] | michaelnechay@gmail.com |
ca5fb4440d58f32f5c49783d4b7a5aa445777168 | 430b6cc9acf78e68af427dc48822117e16012484 | /P9.py | 1598c37a5790c323d055b83fe2c37bb4b703aaf0 | [] | no_license | ManishBhat/Project-Euler-solutions-in-Python | 86da08e31b3c09b39eb5a6fededf0ef5229b8239 | ae982f4bd72adf6aafb9881c4b63f3244575287e | refs/heads/master | 2023-01-14T02:07:12.745176 | 2020-11-02T05:11:04 | 2020-11-02T05:11:04 | 233,341,400 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 25 02:03:02 2019
@author: manis
"""
n=1000
for i in range(1,n):
for j in range(i,n-i):
k=n-i-j
if k*k==i*i+j*j:
print(i,j,k)
print(i*j*k) | [
"manish.bhat@gmail.com"
] | manish.bhat@gmail.com |
1c9dd7e26081592920c899a26d9fb7f590119f91 | 867f6ad1c978af2e410742220720bb8d689a01ac | /adminapp/migrations/0006_alter_products_price.py | 0a4ec7df19e0c24370db88f9f9343153571bac89 | [] | no_license | sumisalam/Django_Ecommerce_shop | b12f0c16638de02913baf0280ef74eef604593b2 | 25a1c31aa15c8f9ef3382fd1d36575c05eed8b23 | refs/heads/master | 2023-07-18T14:43:14.338467 | 2021-09-06T13:14:32 | 2021-09-06T13:14:32 | 403,626,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.2.3 on 2021-06-21 15:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adminapp', '0005_orders'),
]
operations = [
migrations.AlterField(
model_name='products',
name='price',
... | [
"sumeenasalam746@gmail.com"
] | sumeenasalam746@gmail.com |
7da78a1be6b833505b7f856351bba9a44121d0c4 | b1c5dd3763542558e22f7e81b0cfca94b99a5da5 | /geo.py | f6ae775f7680297f3a45d2bdeffa177f862ce859 | [] | no_license | jsmcallister98/GeodataVisualization | 6d89fc9044af313396603aaa2e79c7b5eeced679 | ac6255481ffbc9b9ac7b0f5b00f40e57b239032b | refs/heads/main | 2023-05-14T12:19:19.358241 | 2021-05-13T09:21:44 | 2021-05-13T09:21:44 | 366,982,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | import numpy as np
import pandas as pd
import shapefile as shp
import matplotlib.pyplot as plt
import seaborn as sns
from datetime import datetime, timedelta
import geopandas as gpd
# set the filepath
fp = "India_Districts.shp"
#read the file stored in variable fp
map_df = gpd.read_file(fp)
# check dat... | [
"noreply@github.com"
] | jsmcallister98.noreply@github.com |
3d771670cf4e1f444d8547474dd5ddcfff23f50a | e6af27b11dc53f61f04ce0fa4761298c840b91b1 | /demo.py | 3ee73aeff055e47b0f1834bea8af54cbb0535e93 | [] | no_license | rcsevinc/hw1 | a07822a6a0af5bb7fac6d7521455b2cedaec2e9d | 7124182dfa72daffda92ef4a804dd7ddc8b3af2f | refs/heads/master | 2020-02-26T15:49:55.488678 | 2016-10-13T17:13:36 | 2016-10-13T17:13:36 | 70,799,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from flask import Flask
from flask import render_template
from flask import request
from algorithm import *
import yaml
app = Flask(__name__)
import logging
logging.basicConfig(filename='example.log',level=logging.DEBUG)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/compute', methods... | [
"rcsevinc@gmail.com"
] | rcsevinc@gmail.com |
2dd09cf0b1134b3972740048402bc6e9ee1c97be | 1ece1faa638f85c567fdb237c67340501f86f89e | /model/model_builder.py | 5bc0acb8d41370c2b1905ff26fb7f1070790eb67 | [] | no_license | seasa2016/transformer_random | 54223ee5b04a4563c7903d925436d843b8cf7f1c | e3e13c9a2ddc49558d8e991427a974848a850b9c | refs/heads/master | 2020-04-02T12:21:28.167673 | 2019-03-19T03:45:00 | 2019-03-19T03:45:00 | 154,429,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,030 | py | import torch
import torch.nn as nn
from torch.nn.init import xavier_uniform_,xavier_normal_
from .module.Embedding import Embedding
from .util.Logger import logger
from . import Constant
from . import transformer
def build_embedding(opt,word_dict,max_len,for_encoder=True,dtype='sum',tag=None):
if(for_encoder):
... | [
"ericet1234@gmail.com"
] | ericet1234@gmail.com |
afc625c1e0d85c204130fec0ec4348513bb6c180 | db8692575378366957b246a5b5938f67de936386 | /2021/feb/5feb/chef_meetings_codechef.py | 360f3315f7013ff3c4aabecde5f7d98ceb10e7f3 | [] | no_license | adarhp0/coding | 24f474f2a3ef4ef578e33509dc57514563929956 | 63db62efdcdeaae934066c337437afcf52a6e28c | refs/heads/master | 2021-07-10T20:04:54.375292 | 2021-04-03T15:11:06 | 2021-04-03T15:11:06 | 242,801,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | def time_score(ctime):
chef_am_pm = 0
if ctime[6] == "A":
chef_am_pm = 0
else:
chef_am_pm = 12*60
chef_hh = int(ctime[:2]) % 12
chef_mm = int(ctime[3:5])
chef_score = chef_am_pm+(chef_hh*60)+chef_mm
return chef_score
tes = int(input())
for t in range(tes):
chef_time = i... | [
"adarshahp0@gmail.com"
] | adarshahp0@gmail.com |
70fc859e6f0c1a2b989734ed88fb10fcc3455899 | d9936f30ec5010587fad0ac707207bb344fcac5b | /Team 2/slave.py | b8a1f504c247ee0ecf8c9100c6956e79efb6cc01 | [] | no_license | ncss/projects-2018-8 | 4aff4acdbf4f0eab9a3f2469ce084d101628cc7e | abc61f3c5d9d06546847e5e98818d076fc740340 | refs/heads/master | 2021-09-04T01:04:49.759738 | 2018-01-13T19:26:15 | 2018-01-13T19:26:15 | 114,090,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from microbit import *
import radio
radio.on()
radio.config(channel=43)
upper_th = -200
lower_th = -1600
motion_state = "not_moving"
round_start = False
while True:
message = radio.receive()
#(start transmitting time)
if message == "1":
round_start = True
#stop transmitting time
... | [
"noreply@github.com"
] | ncss.noreply@github.com |
e1c2fca2bad35624293caa5c903e7e1a37fcb96d | e35eb92b5ab6547119585004b9eea3cafe948050 | /efsw/archive/errors.py | 3b9ac8626e58cb7513fc221356b582c5bec573f4 | [] | no_license | einsfr/mmkit | 0a084db85b2cf5ba268e692676095d768733f387 | f12bc2f83254a3123e02abdc105816cc04c438b5 | refs/heads/master | 2020-12-31T05:56:19.287611 | 2016-06-10T05:56:58 | 2016-06-10T05:56:58 | 29,473,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | ITEM_LINK_SELF_SELF = 'Элемент не может иметь связь с самим собой.'
ITEM_LINK_TYPE_UNKNOWN = 'Неизвестный тип связи между элементами: {0}.'
ITEM_NOT_FOUND = 'Элемент(ы) с ID {0} не существует(ют).'
STORAGE_NOT_FOUND = 'Хранилище(а) с ID {0} не существует(ют).'
STORAGE_NOT_ALLOWED_AS_ARCHIVE = 'Хранилище(а) с ID {0} нел... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
8ea7ab0c74be4393def8866136b58beee58fb199 | e1631dec3fd691cec1f7328e073418fc55c95248 | /main.py | c9578bfe3d17798bfe098ae07abc484538032078 | [] | no_license | ZumbaIdol/build-a-blog | 68003c1bc24dc4bf9ae589c05727e9800ee6079b | 4bf8ba120c3dac809e9eb8dd8b36c652b34bae7e | refs/heads/master | 2021-07-13T19:30:45.791072 | 2017-10-16T23:25:28 | 2017-10-16T23:25:28 | 106,151,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | from flask import Flask, request, redirect, render_template, flash
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://build-a-blog:root@localhost:8889/build-a-blog'
db = SQLAlchemy(app)
class Blog(db.Model):
id =... | [
"david.a.foote@gmail.com"
] | david.a.foote@gmail.com |
b90f4ea8a1ded40bd96a10a5aa67dcb65cf04e94 | 163142df55ed85f75a7d22bbe37be42a15361d38 | /testGitGraph.py | cb9ac6d33ba940287fb0ff4f1689995709ffd7c6 | [] | no_license | Iskander508/JIRA-graph | c43a85f9e4b5c8e376f428dee6b16d2e3df0aaa5 | 25ca18d825839f4bd59964a214fd4474532ed0f5 | refs/heads/master | 2020-04-16T23:24:03.961562 | 2016-08-19T11:54:19 | 2016-08-19T12:35:24 | 45,353,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import git
import gitGraph
g = gitGraph.GitGraph(git.GIT(repositoryPath='D:\\otevrenebrno\\otevrenebrno'))
#result = g.checkout(git.Branch('master'))
#result = g.merge(git.Branch('master'))
g.add('master')
g.add('origin/document_parser')
g.add('origin/angular-leaflet-di... | [
"pavel.zarecky@seznam.cz"
] | pavel.zarecky@seznam.cz |
0488cfa80dd088af4130571c9478a61247675251 | bbfb2ab6d23629eba2dd47a007fbfbbe7b5a97b6 | /mask_detection_on_face.py | d60c52dcb5704d2ad78b67ccd588755fc5c9f88e | [] | no_license | nkrjain5/Face_mask_detection | 20a9a6edf8848b52db31ecb9432fd92e0d217647 | 0792b6a4d92730f5875e05a6e474f9e0d7b2f08b | refs/heads/master | 2022-11-22T03:43:21.649375 | 2020-07-22T13:08:27 | 2020-07-22T13:08:27 | 280,350,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | import cv2
from keras.models import load_model
import numpy as np
import os
model_01=r'J:\Udemy\DL\face_mask_detection_pyimagesearch\Face_mask_detector_nkr\Model\face_mask_model_001.h5'
model_02=r'J:\Udemy\DL\face_mask_detection_pyimagesearch\Face_mask_detector_nkr\Model\face_mask_model_002_50Epochs.h5'
model_0... | [
"noreply@github.com"
] | nkrjain5.noreply@github.com |
c35d5a098aa830d49c8bd31d6edc966e800e7473 | 98c70027eaa8881149ad700bc75bb9df75be3473 | /node_modules/scrypt/build/config.gypi | f0fab75f9945a3b8c7ef98c27865669a9a00d20b | [] | no_license | Fatima-yo/genevieve-bountypayment | 4f6406cad22f85bc6e123d13f5af7974950b1b49 | 5a5815628a79dc587d6c5678e3e02025d0036dc8 | refs/heads/master | 2020-03-16T03:31:53.321206 | 2018-05-07T16:49:36 | 2018-05-07T16:49:36 | 132,489,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"marcocastiglionem@gmail.com"
] | marcocastiglionem@gmail.com |
95357fa5d7cf18a24347b9bda601d56234546e34 | 69b72b3c9c01db229733f9a217ed0a109e916108 | /ex03-algorithm-selection/tests/test_hybrid_models.py | 687d59bf06e3b4c61d707155f43877633e19e380 | [
"MIT"
] | permissive | shushu-qin/automl-hw | 113bf698ff886374877269582b72a2ff6119f372 | 6a810a641c297ecd1d222f912274ff2654a42e99 | refs/heads/main | 2023-08-17T18:29:24.498582 | 2021-10-21T12:46:53 | 2021-10-21T12:46:53 | 409,740,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import unittest
import logging
from src.aslib import select, get_stats
class TestSelectionHybridModels(unittest.TestCase):
def setUp(self): # This Method is executed once before each test
logging.basicConfig(level=logging.DEBUG)
data = [['a', 1., 'A', 1., 'ok'],
['a', 1., 'B', ... | [
"s.qin-1@tudelft.com"
] | s.qin-1@tudelft.com |
f1f9eb86896567cf61cf6a0519daf39c6107a071 | 67214cd9c88977ab92e63acd772c08782885ff3d | /201-250/209.py | 2e851c9f98ced9d7d37a285997658cef4b8b040d | [] | no_license | AaronJny/leetcode | cdf6ea3605aef6f97d5a45524fdc75a8ed1e1500 | 989b6ae678f9aa92a7400f6c67bbfedf31465315 | refs/heads/master | 2020-04-27T20:54:51.826033 | 2019-11-06T06:40:50 | 2019-11-06T06:40:50 | 174,675,641 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | class Solution:
def minSubArrayLen(self, s: int, nums: list) -> int:
min_len = 0
if not nums:
return 0
length = len(nums)
l = 0
_sum = 0
for i in range(length):
# 如果小于,就加进去
r = i + 1
_sum += nums[i]
for j in ... | [
"Aaron__7@163.com"
] | Aaron__7@163.com |
bb9e7d7199760f8ffe314a0cf5f8be5ac8ae6737 | 449d2c420958b8f0fa7ad6df656885c17b976090 | /Python Complete course/Simple python/list and tupple.py | c0e0efd69187d28b1b8ad92466f8b38983c5266f | [] | no_license | rehanali4790/Python-Complete-Course | d577f10091d41e1454d2f9521c4107a86e194760 | 526a529f236e03940026816f33e7b0a0971ecaeb | refs/heads/main | 2023-03-27T05:46:43.537739 | 2021-03-23T12:30:06 | 2021-03-23T12:30:06 | 350,698,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | grocerry = ["potato","tomato","ketchup","roll","noodles"]
print(grocerry[::])
#grocerry.sort()
numbers_ = [1,3,89,2,90,67,82]
#numbers_.sort()
#numbers_.reverse()
#print(min(numbers_))
#print(max(numbers_))
#numbers_.append(93)
#numbers_.append(54)
#numbers_.insert(1,2)
#numbers_.insert(0,"numbers")
#number... | [
"noreply@github.com"
] | rehanali4790.noreply@github.com |
2b07e11c085a9b0619fef61a5169fb372e93c5c9 | 8f867bdc00e7e13a926cb0a404d1713384de36ab | /김성수/프로그래머스 LV1/같은 숫자는 싫어.py | 8b2ad254c13d8e9d1f7525d42619eb4e955627bd | [] | no_license | kssgit/Meerithm | 1501c276aaf0fa8c3c9b9edd4c43abe7d24ebc8e | fa979aba09d301fe1731c0df857b461e67482533 | refs/heads/main | 2023-08-26T22:06:47.748519 | 2021-11-08T15:49:37 | 2021-11-08T15:49:37 | 378,855,521 | 0 | 2 | null | 2021-11-08T15:49:37 | 2021-06-21T08:11:31 | Java | UTF-8 | Python | false | false | 250 | py | def solution(arr):
answer = []
num = arr[0]
answer.append(num)
for i in range(1,len(arr)):
if arr[i] != num:
answer.append(arr[i])
num = arr[i]
return answer
arr = [1,1,3,3,0,1,1]
print(solution(arr)) | [
"76714467+kssgit@users.noreply.github.com"
] | 76714467+kssgit@users.noreply.github.com |
a15f411bdebb64d8ba1c4f8098e1687a6eb1a2a8 | 7f9627073fb7b122155bca377d564af2bc431c53 | /access_to_aws/test.py | 15d1e0be0d64ff640db726535323ce373876269b | [] | no_license | Kevjolly/DataScienceProject | 3e52d60bbc42a355d956092a510057c1d10f9d76 | c80aa2ab3765ff6f9dbe3370246348f2e91c0563 | refs/heads/master | 2020-04-29T17:07:16.410394 | 2019-05-10T15:52:17 | 2019-05-10T15:52:17 | 176,287,613 | 0 | 1 | null | 2019-05-10T15:52:18 | 2019-03-18T13:05:48 | Python | UTF-8 | Python | false | false | 145 | py | from accessAPIdatabase import *
results = getBaseData("mallat", "MALLAT_TEST")
#print(results)
results = getNewData(False, 27)
#print(results)
| [
"kevjolly78@gmail.com"
] | kevjolly78@gmail.com |
9084c5e743b26571e62ba65a4df2d3ec5e68700c | a3972cb6ba32abd18b374975f4abd5318bc95f09 | /project/src/yosigy/api/yosigy_list_views.py | 960d32f8f54604c94ee00262c81979094695a2d5 | [] | no_license | ssr03/MiniDelivery | c57bb45e497cab34787473925663ace46dbb6b2d | 659d9757d1f369a6713aa5a66bab2aa5d6381b8e | refs/heads/master | 2020-07-30T15:05:01.401229 | 2019-09-23T11:52:51 | 2019-09-23T11:52:51 | 210,267,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import enum
from datetime import datetime
from django.core.paginator import Paginator
from django.db.models import F, Count
from django.http import JsonResponse
from django.views.generic.base import View
from accounts.mixins import LoginRequiredMixin
from restaurant.api.views import CategoryNum
from yosigy.models i... | [
"43363127+ssr03@users.noreply.github.com"
] | 43363127+ssr03@users.noreply.github.com |
3a83ed261321a3290a3fc74e77077b67d6eaa4d5 | 24d2a9af8e78fedf2e5f6297353015aaabeb98a1 | /hello.py | 4ee8b95099c6437bf2729d12444cd5dc09aa8c99 | [
"Apache-2.0"
] | permissive | AnastasiiaBlaha/python_workshop | d875a574da99add0c68630d6e3b844f4f8ad08f7 | 6fd0305c748a1c519fa09fcad8a5c336028c5e3e | refs/heads/master | 2020-09-19T19:46:25.112521 | 2019-11-26T20:34:12 | 2019-11-26T20:34:12 | 224,280,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""A tiny Python program to check that Python is working.
Try running this program from t... | [
"anastasiia.blaha@gmail.com"
] | anastasiia.blaha@gmail.com |
8ce7e115fc41ef8a70c24743cb6d49ce19361cf2 | 248ebd4dc0dbb675a898efac63d0c0a8ffa49ab4 | /Python/Basics/Python Exercises .Simple Calculations/USDtoBGN.py | 31b77e380f0df05d9d5631521988423cce46ff12 | [] | no_license | Karinacho/SoftUni | 002de33a947f95d2c06cf6e4b5a2d625ebe3199c | 4e0b72e4a59c7292a3bd44a36d80996e1207e054 | refs/heads/master | 2021-04-05T23:37:42.453007 | 2019-05-10T21:11:43 | 2019-05-10T21:11:43 | 125,027,319 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | USD = float(input())
currency = USD*1.79549
print(f"{currency:.2f} BGN")
| [
"kreativen_dom@abv.bg"
] | kreativen_dom@abv.bg |
54c39f42bb7749d582e0b83874b3e1f806019822 | 8704f40748ab2e247e16777ab0cfeaab6bacd201 | /anaconda_code/Assignment/linearAdvect.py | 6985c72a98d58f4a2367244c62e8da7898f0c033 | [] | no_license | ojp1995/Numerics_1 | e3ac8a345ebe514aefef92b5531139e613731b27 | 63eda51570f0de2bcff86ddeb8b894390e4ddb74 | refs/heads/master | 2020-03-31T13:27:55.894134 | 2018-11-21T13:54:12 | 2018-11-21T13:54:12 | 152,256,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,304 | py | #!/usr/bin/python3
# Outer code for setting up the linear advection problem on a uniform
# grid and calling the function to perform the linear advection and plot.
### The matplotlib package contains plotting functions ###
import matplotlib.pyplot as plt
import numpy as np
# read in all the linear advect... | [
"contact.o.j.phillips@gmail.com"
] | contact.o.j.phillips@gmail.com |
e27dc99b272d488e3fcae2b5bc6d125b61ef2b29 | f41ed81206a072dc3a620446acca69b52e077702 | /run/runner/contentgen_runner.py | 6e17cdf859b8f471787ae6f827049ea8de52d348 | [
"MIT"
] | permissive | dngu7/honeycode | 0f56630d9ae5a472a87ade78f33bd072dbbd2a19 | d7a00408f8370f3fea8ca1a94b239f3e4d842a7d | refs/heads/master | 2023-03-23T14:37:14.916877 | 2021-03-16T07:17:46 | 2021-03-16T07:17:46 | 277,994,349 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | import importlib.util
import logging
import os
import time
import random
import string
import pickle
import networkx as nx
import numpy as np
import torch
from tqdm import tqdm
from utils.read_config import read_config
from utils.train_helper import load_model
logger = logging.getLogger('gen')
class ContentgenRunn... | [
"5498902-dngu7@users.noreply.gitlab.com"
] | 5498902-dngu7@users.noreply.gitlab.com |
09511399f74ac3c8cf5b85cbba3f50c397a45a36 | 3c6595ed12131dfbf1e15ec0e7cebfb19d418761 | /tests/models/torch/handler_financialNet_NoReference.py | 901572a8b507531f099f1d436faa244a04afe5de | [
"MIT"
] | permissive | RedisAI/aibench | c4d3e742824df85ec9e839b8b0e94c5668aa18c0 | bf0ac872c0fa25754ecacd1322ff9d2f2146fb53 | refs/heads/master | 2023-07-24T03:22:59.587178 | 2023-07-13T07:18:20 | 2023-07-13T07:18:20 | 201,507,583 | 18 | 3 | MIT | 2023-09-07T15:05:06 | 2019-08-09T16:48:13 | Go | UTF-8 | Python | false | false | 3,377 | py | # custom service file
# model_handler.py
# https://pytorch.org/serve/custom_service.html
# https://pytorch.org/serve/logging.html
# https://pytorch.org/serve/server.html
# torch-model-archiver --model-name financialNet_NoReferenceTorch --version 1 --serialized-file torchFraudNetNoRef.pt --handler handler_financialNe... | [
"noreply@github.com"
] | RedisAI.noreply@github.com |
ac6e83fc490c1b1534068dd263f2e814cae0be01 | 9f667f39977ff32a358b2c8c4aaba4d6bb6af280 | /Lista2/Questão 7.py | d17fc5502f25d231077411f7b60ecdfe3f2d536c | [] | no_license | lucasdovale/ListasCES-22 | af2159b2b87f7567784427d391d549d008445547 | abd695b53449d459169025124c4df66c251f6745 | refs/heads/main | 2023-01-07T07:08:57.163455 | 2020-11-14T22:23:19 | 2020-11-14T22:23:19 | 312,895,224 | 0 | 0 | null | 2020-11-14T22:23:21 | 2020-11-14T20:20:05 | null | UTF-8 | Python | false | false | 589 | py | # CES-22: Programação Orientada à Objeto
# Professor: Yano
# Código utilizado para Questão 7 da Lista 2 de Python
# Escrito por Lucas do Vale Bezerra, COMP-22
class Point:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
def reflect_x(self):
self.y = -self.y
return (self.x,... | [
"lucasdovale.t22@gmail.com"
] | lucasdovale.t22@gmail.com |
b51e6caa09f683cec6c8f09fb1aca60e73ec36f0 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_25/models/resource_performance_no_id_by_array_get_response.py | dc59892d20f80e34fb26c25e0f59584a263ca562 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,240 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.25
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
1217e3e57869565f3ec42a80986e66bb1d63dbd2 | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version2/dataset_manager/create_datasets_pca.py | 0542341ca3bd78c1d9c10831c04312420e50e87c | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,155 | py | import os
import joblib
import numpy as np
import pandas as pd
from joblib import Parallel
from joblib import delayed
from pytz import timezone
from sklearn.decomposition import KernelPCA
from sklearn.model_selection import GridSearchCV
from sklearn.preprocessing import MinMaxScaler
from Fuzzy_clustering.version2.com... | [
"joesider9@gmail.com"
] | joesider9@gmail.com |
b2d24a26d42b2a0c76b31118dd956f8e49e2a7bd | f205319c1a6af71ee6433a737de4796ac7c145f9 | /task2.py | 6c0b143278a1a507e89c1aaa1f67aeb362f453dd | [] | no_license | photosartd/Math-models-Lab2 | ef1199f01dbd2d1937ff8f622f31d5f7bc7b33a2 | e1dc314ba6193a65e25e6885fbd1e7bc20f5fef9 | refs/heads/main | 2023-05-03T23:05:12.473052 | 2021-04-19T09:21:33 | 2021-04-19T09:21:33 | 359,137,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import numpy as np
round_to = 5
r = np.array([6,9,2])
C_1 = np.array([6,20,20])
C_s = 36992
T = 51
print(r*5)
def task2(r, C_1, C_s, T, t_s=None, if_print=True):
if t_s is None:
t_s = round(np.sqrt((2*C_s)/sum(C_1*r)), round_to)
q = r*t_s
D = round(sum(C_1*r)*t_s*T/2 + C_s*T/t_s, round_to)
... | [
"dmitry.trofimow2011@gmail.com"
] | dmitry.trofimow2011@gmail.com |
bf261138ee9f64a8877b605647e8315e62e71feb | 09ce79c538f6cc66a51e9fe0e032a0cb9b24f222 | /test/test_echo_udp.py | 4996930ce743f4acdfa63b485d75f83fad717629 | [] | no_license | dlaperriere/misc_utils | d33007adccbbd08a06ab463e5a39b193d8faac00 | 3e04fdfe0f692d644e43f55a8362f0456c79ee88 | refs/heads/main | 2021-08-02T09:23:28.288183 | 2021-07-31T19:05:49 | 2021-07-31T19:05:49 | 60,727,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python
"""
Description
Test echo_udp.py script
Note
- works with python 2.7 and 3.6
Author
David Laperriere <dlaperriere@outlook.com>
"""
from __future__ import print_function
import os
import sys
import unittest
sys.path.append(os.path.abspath(""))
sys.path.append(os.path.abspath("../"))
fro... | [
"dlaperriere@hotmail.com"
] | dlaperriere@hotmail.com |
961eb495d649c9820ad86fc9b038685ac0e9f0e5 | 3ad18431b18c4847e6324155209ba5b940923dd2 | /noiseProtocol/clientNoise.py | acf6386d93d73fe43fdbc3521b7ce6d036734d89 | [] | no_license | stratumv2/stratumv2 | a3aedc31474ff228d113c797c38a505ea8ceb6a1 | 3e3c730e6d56e73b55dbf1b3647dbe5ef15afd8f | refs/heads/master | 2020-11-24T00:35:22.889702 | 2020-01-23T15:21:03 | 2020-01-23T15:21:03 | 227,884,446 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import socket
from noise.connection import NoiseConnection
sock = socket.socket()
sock.connect(('localhost', 2000))
# Create instance of NoiseConnection, set up to use NN handshake pattern, Curve25519 for
# elliptic curve keypair, ChaCha20Poly1305 as cipher function and SHA256 for hashing.
proto = NoiseConnection.fr... | [
"sthiagolg@gmail.com"
] | sthiagolg@gmail.com |
c55373049933fb9294b6719e84950c730ff15db0 | e3c505f0c0029460c29166d5bcb5843a0a3dceaa | /supportportal/apps/loggers/models.py | 3cdf171e7a7ccd3ff84924126cec57c39c615a1a | [] | no_license | bensnyde/django-csa | 4db742abd95dec6780a39531cef268a4da5e662f | 17a341332f6908c75ce060f55a145a76c9db48f7 | refs/heads/master | 2021-01-01T19:07:33.040642 | 2014-10-22T21:43:46 | 2014-10-22T21:43:46 | 22,216,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | from django.conf import settings
from django.db import models
from datetime import datetime
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
import json
from django.dispatch import receiver
from django.contrib.auth.signals import user_logged_in, user_logged_out
... | [
"introspectr3@gmail.com"
] | introspectr3@gmail.com |
c13eb660a22f3919107137447a037101a0066dbd | 7e56f3f287352b6fd2d3a153202299f6c86b226a | /models/build_lr_model_tfidf_unigrams.py | 79d54443b02a1e599dfa5850ab6acc56f361c02e | [] | no_license | aschams/ImprovingYelp | f99884213a6338c0a707af5a6114dc24805fdc06 | 3f750d1c7cb824948368b712a53f5075e2b7c4d7 | refs/heads/master | 2020-07-27T00:15:10.018948 | 2019-09-16T20:26:48 | 2019-09-16T20:26:48 | 208,806,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.decomposition import TruncatedSVD
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction import DictVectorizer, FeatureHasher
from sklearn.model_selection import train_test_split
from sklearn.metrics... | [
"acschams@gmail.com"
] | acschams@gmail.com |
2682ec078d2d665c54515022a6840ddf88168001 | 7a1f6f1aae43b219cd34c3c9b907923fb839e6f5 | /Python/Udemy/FXTRADE/pyfxtrading/pyfxtrading/28/app/controllers/webserver.py | bbf2ff35ce8221762754b16b7b6dd096ee8484a4 | [] | no_license | amanoman/amanoman.github.io | b5afc80e0e49ed15db793e2ebf69003c05ab8ce0 | 141c928f6d1df0389859f663f6439d327d4c32d6 | refs/heads/master | 2023-05-28T07:22:09.735409 | 2021-03-31T15:00:14 | 2021-03-31T15:00:14 | 187,139,297 | 0 | 1 | null | 2023-05-22T23:37:24 | 2019-05-17T03:19:36 | Jupyter Notebook | UTF-8 | Python | false | false | 543 | py | from flask import Flask
from flask import render_template
import settings
app = Flask(__name__, template_folder='../views')
@app.teardown_appcontext
def remove_session(ex=None):
from app.models.base import Session
Session.remove()
@app.route('/')
def index():
app.logger.info('index')
return rende... | [
"amntkykblog@gmail.com"
] | amntkykblog@gmail.com |
3a155f5c1b2e5c5d7c96cfb5ddf83343e7bc6ea4 | 621843ab71f3cb889fd8086d6fa999fab815006b | /Gueess while.py | 125cfb09744e5a8b1c69b257bfa861ea1491bc90 | [] | no_license | Mats91/Vaja2 | bee7a92d87e817ffa0039befee407b6aa498cc71 | fcccbc8cc5b264c67d0100b0dd5aaabe5a895459 | refs/heads/master | 2020-03-12T16:45:18.809919 | 2018-04-23T16:08:47 | 2018-04-23T16:08:47 | 130,723,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | secret = 22
ponovi = True
while ponovi:
guess = int(raw_input("Guess the secret number (between 1 and 30): "))
if guess == secret:
print "You guessed it - congratulations! It's number %s :)" % secret
# ponovi = False
break
else:
print "Sorry, your guess is not correct... Se... | [
"grcar.matjaz@gmail.com"
] | grcar.matjaz@gmail.com |
7fbac519e7757dd9ec46321b52be8cec7d80d07a | f8614b19a8231e11a17dcdc2e3ff527bada0bf34 | /Lab Exercise 9.9.2021/problem5.py | 80f2b6023878b5bdce608fc0ca1e4dafa1a03f4b | [] | no_license | GOConnell04/Python-2021 | eff508db57884d383c296ba77f9b119f2fa35ce7 | bafd696ab1f11b22b51f4b06629d60400bf56e48 | refs/heads/main | 2023-08-05T01:59:36.580414 | 2021-09-25T13:39:15 | 2021-09-25T13:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | ## Lab Exercise 9/9/2021 Problem 5
## Author:
## Converts inches to feet and inches
#get height from user, convert to int data type and store in height
#Add code here
#calculate feet and store in variable feet (use integer division)
#Add code here
#calculate inches and store in variable inches (use rema... | [
"noreply@github.com"
] | GOConnell04.noreply@github.com |
26c7a8acf057a32238bd83840d9c85a9892388da | 541cb3a837c7d4a10d880f96c346adead81628f0 | /drake_modules/imgui/__init__.py | 1c026c3c50bab88c87b8243b27d851ba25c6ab04 | [] | no_license | k0rm1d/engine | ef1e9669242f89b8466481e825d7ef0bc7000304 | 3094f94190240a6642303199fc854900485fdfaf | refs/heads/master | 2021-05-12T00:56:31.941950 | 2018-02-10T14:44:47 | 2018-02-10T14:44:47 | 117,546,460 | 0 | 0 | null | 2018-02-10T14:39:34 | 2018-01-15T13:06:40 | Python | UTF-8 | Python | false | false | 2,582 | py | from .. import Module
import drake
class imgui(Module):
EXPECTED = {
"1.53": {
"headers": ["imgui.h"],
"sources": ["imgui.cpp", "imgui_draw.cpp"],
"libraries": {
"linux": ["libimgui.so", "libingui_draw.so"]
},
"others": []
}
}
def __init__(self,
vers... | [
"antony.mechin@docker.com"
] | antony.mechin@docker.com |
5778000492192034131651c7d7d3a99d974dfc42 | 0b3f84f8891069bde05f896515bb93fb8dfda365 | /tasks/zaj8/qs.py | 72ae14a9c8263032c9a0db9c0cdcaa007e8a03f7 | [] | no_license | tybur/pwzn | 69e9377c71f88f200262804a818237e8e978c14b | 26f322451741c30aae00c43a7e021d27e03e441a | refs/heads/master | 2021-01-14T14:28:35.402781 | 2015-04-04T12:36:33 | 2015-04-04T12:36:33 | 26,272,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | def partition(list, start, end):
pivot = list[end] # Partition around the last value
bottom = start-1 # Start outside the area to be partitioned
top = end # Ditto
done = 0
while not done: ... | [
"mistrzenator@gmail.com"
] | mistrzenator@gmail.com |
0703769d9b487fad66ce7c6dc02f421d17d9732c | 6f636814e48124376fb1a649ac6758f09ecaf05b | /Final_Project/catkin_ws/devel/lib/python2.7/dist-packages/turtlebot3_msgs/srv/_SetFollowState.py | 9c1ca61ffba4d64903898e570169e1ea7b2aeff6 | [] | no_license | JiaqiaoZhang/aa274 | fbb202210f7879b917ee63e7fa15a80ecae1323c | 693e1a27cbaa8eca62a05b53cf2a487f85b6610a | refs/heads/master | 2020-08-23T18:37:17.050587 | 2020-01-29T07:28:07 | 2020-01-29T07:28:07 | 216,683,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,482 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from turtlebot3_msgs/SetFollowStateRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetFollowStateRequest(genpy.Message):
_md5sum = "92b912c48c68248015bb32... | [
"zhangxiaoqiao@DN51t4mt.SUNet"
] | zhangxiaoqiao@DN51t4mt.SUNet |
12caf078872a5634ca4638aed6dbdbd7776b5062 | 6097031d8e85400214085f152164a29346d106e3 | /maxheap.py | 7e3f269c4b2365d3684fe48cdb32ec815206f9cd | [] | no_license | ekourkchi/GalaxyGroups | 2fccca4998850c0838d0c7ef949bba8b1267716a | 19e98da0015b0462133133a23915e6d633614ad3 | refs/heads/master | 2022-04-03T09:30:19.667796 | 2020-02-13T03:05:48 | 2020-02-13T03:05:48 | 112,898,380 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | #!/home/ehsan/Ureka/Ureka/variants/common/bin/python
import numpy as np
from math import *
from copy import *
class heapNode:
key = None
ID = None
flag = False
def __init__(self, key, ID):
self.key = key
self.ID = ID
def toString(self):
print self.key, self.ID, self.flag
# ... | [
"ekourkchi@gmail.com"
] | ekourkchi@gmail.com |
e152459956c322f9cbc51869cd7582e46c883a4f | ca77040a488fea5410449a6ae06693c64c0d3f1a | /web/ui/views/views.py | 8bf22427e4bbe80ad2a7a40c428831f5b4e2c697 | [] | no_license | patricknevindwyer/space-base-otter | 0565412db484b5bb8b2dbc4e8d3878fbd73f7b0b | ea7dd7649c172ca3e4c14b6df8b6715f55f746ba | refs/heads/master | 2021-01-19T13:42:53.229964 | 2017-08-19T21:50:45 | 2017-08-19T21:50:45 | 82,412,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "ping.html") | [
"patricknevindwyer@gmail.com"
] | patricknevindwyer@gmail.com |
be1ae9233870e4cb74d127c269ecafd6a6201e85 | 46b002b8af55c62689e10e0758ec8e8005893252 | /RESTful/drones/v2/urls.py | fe2db487a5dbd051ca6d3b85db3ef4960aba1ae8 | [] | no_license | DictumAcFactum/books_with_code | e2ff5f500a1b3c7298bcf64c4f26c10284ed8f08 | 327bdf2fdd1c483dad0a841fdd7b9d364a7957fc | refs/heads/master | 2023-04-05T15:25:57.974362 | 2021-04-11T08:57:14 | 2021-04-11T08:57:14 | 277,194,212 | 0 | 0 | null | 2021-04-11T08:57:47 | 2020-07-04T22:28:02 | Python | UTF-8 | Python | false | false | 1,013 | py | from django.conf.urls import url
from .. import views
from ..v2 import views as views_v2
app_name = 'drones_v2'
urlpatterns = [
url(r'^vehicle-categories/$', views.DroneCategoryList.as_view(), name=views.DroneCategoryList.name),
url(r'^vehicle-categories/(?P<pk>[0-9]+)$', views.DroneCategoryDetail.as_view(),... | [
"pinkfloydx20@gmail.com"
] | pinkfloydx20@gmail.com |
3fcf015d019f27b3041c1f8f1b06657a5c2712f3 | 13b97ffc3ba29414e19e0650682e2bfd5ce2b79a | /simplecharts.py | 37992a6518e0c74bdf60afe8c2fd065f9fcd4adb | [] | no_license | JamesFarrant/Personal-Projects | cf64918f8513cfe1f6d1fc57a661782383aa2d18 | 47309dc8b85208bbf9a517f334937eb43172b125 | refs/heads/master | 2021-01-25T05:35:32.516857 | 2017-05-29T16:11:10 | 2017-05-29T16:11:10 | 30,017,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import matplotlib.pyplot as plt
# X and Y must be the same.
x = [1, 2, 3, 4, 5]
y = [4, 7, 4, 7, 3]
# Adding a new line
y2 = [5, 3, 2, 6, 2]
# Plotting the graph and adding labels to lines
plt.plot(x, y, label='Initial Line')
plt.plot(x, y2, label='New Line')
# Labelling our axes and adding title
plt.xlabel('Plot Numb... | [
"noreply@github.com"
] | JamesFarrant.noreply@github.com |
51a378f46c55b18901d1b9fae4907840619b1b56 | 752881a4f3ae95760e7645a9c610b0be3d57a188 | /ethnode/toolkit/mockproc.py | 8c023d5e2bc523a6f464deb07cb592f77bbd8ae5 | [] | no_license | AndriyKhrobak/Ethearnal | 2b57f5d8ef69348b4870c9d28671857bb7c69a35 | 29ff78b12085796bc25deb2e92abc9caacbee5f7 | refs/heads/master | 2021-05-08T23:57:03.435539 | 2018-01-22T03:35:33 | 2018-01-22T03:35:33 | 119,725,779 | 0 | 1 | null | 2018-01-31T18:23:49 | 2018-01-31T18:23:49 | null | UTF-8 | Python | false | false | 578 | py | #!/usr/bin/env python
import sys
from time import sleep
from datetime import datetime
def main(name: str, time_interval: float):
cnt = 0
while True:
cnt += 1
sys.stdout.write(datetime.now().isoformat())
sys.stdout.flush()
sleep(time_interval)
sys.stdout.write('\r')
... | [
"dobri.stoilov@gmail.com"
] | dobri.stoilov@gmail.com |
2455804a9deef4d3443589283af4dc9f1ef5c926 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2435694.py | 020e445c8c1b62894419c308afa2bc358e797d3f | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # Heroes Evan Damage Skin
success = sm.addDamageSkin(2435694)
if success:
sm.chat("The Heroes Evan Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
8232e6ec961ef965559c59a8301dda4f3979961a | ec4d4509d9ec9885f7f1461efde321f38c1df62c | /test.py | 9edc383e0f2763059d4956baff6ee529cf00868b | [] | no_license | skollhati/CLACK | d60071479c38feab871f1216affc22a84f23655f | 34b451d389785d7c38ef4a54c4e01f148f224844 | refs/heads/master | 2020-07-28T02:46:13.592736 | 2019-10-25T03:54:30 | 2019-10-25T03:54:30 | 209,284,253 | 0 | 0 | null | 2020-07-18T14:54:41 | 2019-09-18T10:45:43 | CSS | UTF-8 | Python | false | false | 1,914 | py | s1 = [4,99,2,6,7,13,88,76]
s2 = [6,88,13,4,99,2,7]
from collections import Counter
import re
s3 = 'abcdea'
s4 = 'cookoie'
s1_char_count = set(sorted(Counter(list(s3)).items()))
s2_char_count = set(sorted(Counter(list(s4)).items()))
t = [1,2]
from collections import Counter
import re
def char_count_check(s1,s2):
... | [
"df201901@gmail.com"
] | df201901@gmail.com |
8f67823a6192eab002fdc019bde38a401808622d | 0d5ed56bb75a3f57944dd0e06fef2cc8fde8d1c8 | /facial_landmarks_normalized_visualization_more_images.py | 971331903254710fd09d2dd1013621cbc529b7d8 | [
"MIT"
] | permissive | matejcrnac/Face_deidentification_kazemi | 378cae1310648c5e2329f0af2c03e68a7f09a6b9 | 434fff49b5a7b555bb3c56a62915fd502e0b75f9 | refs/heads/master | 2020-03-08T19:59:46.373323 | 2018-06-18T17:51:42 | 2018-06-18T17:51:42 | 128,370,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,361 | py | #input one image
#detect facial landmarks
#show image with detected facial landmarks
#show image with normalized facial landmarks
import cv2
import numpy as np
from FacialLandmarkDetection import *
from Database_loader import *
#Method is used to get paths for template images
def getTemplatePaths(templates_folder, ... | [
"matej.crnac@gmail.com"
] | matej.crnac@gmail.com |
16afc1318862a41cd8919b74e00d65bc4f42433a | 94314048472ca6db91c90261c84cd364c6e0f703 | /python-ml-projects/main.py | 45fe293410e55ac248d8528c6f14a7b912dee678 | [] | no_license | okeefem2/python-learning | b9dae792098aba24da19a33fb55302e3cec207a9 | 2f5f5e5805e26aa185eddacc4a21adb402e000cd | refs/heads/main | 2023-04-08T07:02:20.223769 | 2023-03-20T03:17:00 | 2023-03-20T03:17:00 | 337,278,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from boston_housing import create_and_train_model
if __name__ == '__main__':
create_and_train_model()
| [
"okeefem355@gmail.com"
] | okeefem355@gmail.com |
7b15a582c9c0112ff2f9ca9b1f7fc316751f89ce | 0cd12af8acd9233d76ca6c228d80768e7c4dc041 | /.c9/metadata/environment/~/.c9/python3/lib/python3.6/site-packages/django/conf/urls/__init__.py | 85bf3b7bc11272915701a44ff55b5f3cf8d4174d | [] | no_license | sheldon18/todo | eb700aac7be54145413901257bba6b44f7e9c21f | 1c141a2a1260dbfd9e0b6962fbe0b81e0acde005 | refs/heads/master | 2022-12-14T13:20:31.348810 | 2020-03-01T03:15:21 | 2020-03-01T03:15:21 | 244,056,042 | 0 | 0 | null | 2022-12-08T03:42:47 | 2020-02-29T23:19:36 | Python | UTF-8 | Python | false | false | 479 | py | {"filter":false,"title":"__init__.py","tooltip":"~/.c9/python3/lib/python3.6/site-packages/django/conf/urls/__init__.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":12,"column":45},"end":{"row":12,"column":45},"isBackwards":false},"option... | [
"ubuntu@ip-172-31-81-27.ec2.internal"
] | ubuntu@ip-172-31-81-27.ec2.internal |
b11400aaf4d36bbcbd0823c03cc8949e54aa522d | 020449fb757ec43f348f80f6d3cec93cc58933ed | /copy_db_poc.py | 8481f1407f7a76f65cb5a43cd50b21e243ea0301 | [] | no_license | Lethgir/copy-db-poc | a1818ecd9bc8c09a5ac83112968e22c40af6f316 | 8c519be132508fd037ad038ed1ffab5106001216 | refs/heads/main | 2023-08-20T05:50:54.106776 | 2021-10-14T10:24:22 | 2021-10-14T10:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | #!/usr/bin/env python3
import argparse
import copy
import sys
import traceback
from uuid import uuid4
from typing import cast
import sqlalchemy
from sqlalchemy import create_engine, select, func, event
from sqlalchemy import Table, Column, Integer, String, MetaData
TABLE_PREFIX = "dbin_"
DEFAULT_BATCH_SIZE = 1000
in... | [
"120501+charlax@users.noreply.github.com"
] | 120501+charlax@users.noreply.github.com |
60c738119f59b161bc7c88e74ff2f6c9ae41ba36 | 504ec1cd9116713ee28e7a599554ce406812b529 | /TEXTBASEDGAME.py | e56d278f41affb281d19fc3370793e7ccb598f43 | [] | no_license | 2019osbjoh/adventure-game | ef0a38b648ee82f6ff79808b69c983a575dd79b4 | 88dc4e8da1dedf0e50c77a75fc34bc3cbda96553 | refs/heads/master | 2020-09-05T09:23:24.366961 | 2019-11-06T22:04:59 | 2019-11-06T22:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import random
import keyboard
import sys, os # Used to check operating system and clear the shell
# Prints out an array line by line
def printMap(j, MAP):
for i in MAP:
print(MAP[j][0])
j = j + 1
def waitForKey():
keyboard.wait('esc')
# Clears Screen (should work on Windows and OSX)
def clearScreen(operati... | [
"john.osborne151@gmail.com"
] | john.osborne151@gmail.com |
dcae116535fa0ee935040906690848d5008cbce8 | b9502638bb6176120107a600aaefcffc9d43ac9f | /test_pytest/test_yml.py | 211e36a9c88ceb3c5530408f35084b0cfcbaa42f | [] | no_license | zhanglei12306/Python_Practice | ccd174c620100160439d747d3c79882104564f85 | 1e3770db673555b3e98e55fdc3a690af2d80630e | refs/heads/master | 2023-03-31T11:14:07.846445 | 2021-04-05T06:52:36 | 2021-04-05T06:52:36 | 321,687,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # @pytest.mark.parametrize("参数名",列表数据)
# 参数名:作为测试用例的参数. 字符串格式,多个参数中间用逗号隔开。
# 列表数据:一组测试数据。list格式,多组数据用元组类型,
# list的每个元素都是一个元组,元组里的每个元素和按参数顺序一一对应。
# 可以添加ids参数指定用例说明(别名)
import pytest
import yaml
# def add_fun(a, b):
# return a + b + 10
# @pytest.mark.parametrize("a, b, expected", yaml.safe_load(open("data.yml"))["da... | [
"1044570046@qq.com"
] | 1044570046@qq.com |
6e242cc43e2c7d24c5cfd1f02e749621f9366a0e | 0bfb4208bdf7fcfd75311c777e25a3b639bf566d | /backend/code/iep/auth/models.py | fb6f856736cbe2fd1a25f1dc89baf52a17eff536 | [
"Apache-2.0"
] | permissive | socek/iep | ab7833f94af739abd19f569f28de84cdcc689e95 | 793e35ca5304eef7b7dacb5dd8d486622f497759 | refs/heads/master | 2020-05-16T13:48:12.252161 | 2019-12-03T08:28:05 | 2019-12-03T08:28:05 | 183,082,207 | 0 | 0 | Apache-2.0 | 2019-12-03T08:28:07 | 2019-04-23T19:24:49 | Python | UTF-8 | Python | false | false | 1,193 | py | from bcrypt import checkpw
from bcrypt import gensalt
from bcrypt import hashpw
from iep.application.model import Model
class User(Model):
def __init__(
self,
uid,
created_at=None,
updated_at=None,
name=None,
email=None,
is_admin=None,
password=None... | [
"msocek@gmail.com"
] | msocek@gmail.com |
2ecaa0902b36455da6e55c02523cefe6bcec5bfc | e5f4c22bfae93d3d96dea1b0ed8f3e4df373243f | /test.py | f3a74709481a1e1e55a6bdc81b7b3e3e0cf3f866 | [] | no_license | MrLokans/discover_flask | 5925a2ab07480398543d51e33c8be2cf23b2c36b | 63f847409dd67725bdef754cd0041f2647dabf4e | refs/heads/master | 2021-01-10T16:25:21.767911 | 2016-03-07T05:44:17 | 2016-03-07T05:44:17 | 52,816,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import unittest
from app import app
class AppTestCase(unittest.TestCase):
def setUp(self):
self.tester = app.test_client(self)
def login(self, username, password, follow_redirects=True):
return self.tester.post('/login',
data={'username': username,
... | [
"trikster1911@gmail.com"
] | trikster1911@gmail.com |
c0d562717f5f884fa6080b1eab26a32a8dc4d8f5 | aae4175584f1402696b22b6f695dcb53faf85d7c | /photo_organize/__init__.py | 855991094fc8753944177b001ea25e844c2163b1 | [] | no_license | rthardin/photo_manager | e9ad5432c7795ad2ebf5ff60077ed807ef232961 | 605e4d68d489aa619e0c74d10bbacc725fed0fbb | refs/heads/master | 2021-01-10T04:33:53.791792 | 2017-01-08T03:29:34 | 2017-01-08T03:29:34 | 50,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | __author__ = 'ryan-mbp'
| [
"ryan.t.hardin@gmail.com"
] | ryan.t.hardin@gmail.com |
7dcdce9e010882ff0ab3f5e4f31ec84cfbf17a7b | 6721094f2fc776faf22c997bafd409f0f65a3594 | /23.py | 2a0c382ac340ed6ca1e0957aa2f71274ec4afb5e | [] | no_license | shiro-sura/homework2 | 63968e8acf1ef65cd161cc36e7d853722cde4aec | 062b903b40c3fe3c186bc7b9deb21e90e413e880 | refs/heads/master | 2020-08-04T19:52:00.925671 | 2019-10-04T14:25:56 | 2019-10-04T14:25:56 | 212,260,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | x=float(input("请输入摄氏度"))
f=x*33.8
print("华氏度:",f,"F")
| [
"209322813@qq.com"
] | 209322813@qq.com |
566300c87730df77107c54db2fe5c86457bae7eb | fbbd0e93effba9478cbfcd99b0795f2cfdc3e394 | /quizsite/account/migrations/0017_delete_customuser.py | dfe5261added4c56367badde5583599fd4e95184 | [] | no_license | Sk-Md-Afridi/DjangoProject | 6a514e9a038d9b28df464e8b3b00ee2446ef89c9 | 98a2fefac05599df9899c3b7695c5c372a650306 | refs/heads/master | 2023-06-17T09:38:48.883796 | 2021-07-19T19:23:18 | 2021-07-19T19:23:18 | 383,184,012 | 1 | 1 | null | 2021-07-13T18:03:24 | 2021-07-05T15:20:05 | null | UTF-8 | Python | false | false | 299 | py | # Generated by Django 3.1.3 on 2021-07-14 13:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0016_auto_20210714_1913'),
]
operations = [
migrations.DeleteModel(
name='CustomUser',
),
]
| [
"skmdafridi1@gmail.com"
] | skmdafridi1@gmail.com |
5628a03d0676455161dcd1c5b40a6e2fb286b378 | fcd85b221c4bcbd03a65e6a48100909dd89e1622 | /math_functions/triangle_func.py | c7cde2a144f15efbfe31259a51184e7d27ea9904 | [] | no_license | FireHo57/Python_Euler | f1d171b9279bc1428ef13e57e2a4b48babc405f1 | a31c2faee2ef42f054debd2ab31d2b019360d618 | refs/heads/master | 2021-09-14T17:37:16.813217 | 2018-05-16T19:49:02 | 2018-05-16T19:49:02 | 104,935,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | def get_nth_triangle(limit):
return sum( range(1,limit) )
def get_n_triangles(limit):
triangles=[]
total=0
for x in range(1, limit+1):
total+=x
triangles.append(total)
return triangles
if __name__=="__main__":
print('Nth triangle number: {}'.format(get_nth_triangle(10)))
... | [
"charlie_haddock@hotmail.co.uk"
] | charlie_haddock@hotmail.co.uk |
a145346bc456c2281fad96365f8d9a5af1f4cd7d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191149.py | 89a07ef2d3f4c49463319f9699998f9dd296f2fc | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import json
def Strings(str):
# dictionary--> key value pairs
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
if newArray[j][0] in values:
values[j][0] =
# if... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
4e3d52464d257688f122a23748edd43590043b89 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/network_interface_neighbor_capability.py | 76ae203e5847eb8a031597b8f2d39119f564eac0 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,245 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
f77ffc69cb16459c8138b3e8578323ac411365e2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/5644d97cc5014e18b14799feeb9b354d528a6489-<test_invalid_interfaces>-bug.py | 88bcd68511e3ab151bad7e95439f0d409610e661 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | def test_invalid_interfaces(self):
event = self.create_sample_event(platform='invalid-interfaces')
self.browser.get('/{}/{}/issues/{}/'.format(self.org.slug, self.project.slug, event.group.id))
self.browser.wait_until('.entries')
self.browser.snapshot('issue details invalid interfaces') | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
61d8da39d048a90ac0ae92b41a27b470e2e61157 | c583812a57f993733a566bd64ec141654e52d098 | /srcpy/sim/correlators/corrCUDA.py | 7ee13584d732d1a07d0daf5ae5d27994b363a4e7 | [] | no_license | petrbojda/NavSet_unob | f1d542c7a8aba58113c67a65c26269c72f503c0f | 6d30876d5956b4c15dbc8e5093b18fe3194f7c59 | refs/heads/master | 2021-01-23T04:28:38.762219 | 2017-09-05T12:53:16 | 2017-09-05T12:53:16 | 92,927,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py |
import numpy as np
import accelerate.cuda.blas as blas
import accelerate.cuda.fft as ft
from numba import cuda
def corr_td_single (x1,x2):
c_12 = blas.dot(x1,x2)
return c_12
def best_grid_size(size, tpb):
bpg = np.ceil(np.array(size, dtype=np.float) / tpb).astype(np.int).tolist()
return tuple(bpg)
... | [
"petr.bojda@email.cz"
] | petr.bojda@email.cz |
fa4239e0b5480d4e87dbed980b75e0c6b0c42548 | 07d29263b1b9bdc9f8bc72c3f3e762eeae57dd35 | /zuowenSTN/regression_code/eval.py | 2b242101c9142798bbc8b465e9cfba404f7c270c | [] | no_license | ZuowenWang0000/BachelorThesis | f5c4a24ef01b9420b0bbf2a20611b7388e068ca8 | a50030e0c94eba3972f789b29fee473da20fed5a | refs/heads/master | 2022-02-21T23:12:23.932460 | 2019-05-10T13:23:26 | 2019-05-10T13:23:26 | 169,987,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,306 | py | """
Evaluation of a given checkpoint in the standard and adversarial sense. Can be
called as an infinite loop going through the checkpoints in the model directory
as they appear and evaluating them. Accuracy and average loss are printed and
added as tensorboard summaries.
"""
from __future__ import absolute_import
fro... | [
"noreply@github.com"
] | ZuowenWang0000.noreply@github.com |
dfdade890a56c19a323dbc2320418057e09976e0 | 7228a01927243ff5049e44bb405bdc74d9fca2a2 | /week-03/day-2/Projects/f38.py | 3b674c09b83905a76d75d00ba4017db07494f2f5 | [] | no_license | greenfox-velox/attilakrupl | 76a61d0b2d7c014b7068b5066bcfd797d0f77a99 | 2bd567c38eff62f8b44f1d88507394ae13d61fa3 | refs/heads/master | 2021-01-17T12:38:33.374452 | 2016-10-05T14:01:51 | 2016-10-05T14:01:51 | 58,042,849 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | numbers = [7, 5, 8, -1, 2]
def own_min(nums):
a = nums[0]
for i in nums:
if i < a:
a = i
else:
pass
print (a)
own_min(numbers) | [
"krupl.attila@gmail.com"
] | krupl.attila@gmail.com |
8a463bda0d0c60cd4f34f3e9d156d3254165acfc | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/Flask-Large-Application-Example-master/tests/views/test_pypi_packages.py | 27394594cc76c8ccde073c14c83e1f2757b0f036 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | from flask import current_app
from flask.ext.celery import CELERY_LOCK
import pytest
from redis.exceptions import LockError
from pypi_portal.extensions import db, redis
from pypi_portal.models.pypi import Package
from pypi_portal.models.redis import POLL_SIMPLE_THROTTLE
from pypi_portal.tasks import pypi
class FakeD... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
82a5c3789f9497439c17e5f06dbdcd28f55a29eb | 41b5734f0cbda8b16ff96538cda95ec3f4d92649 | /bin/add_video_tags.py | 8ffad81f71f1b40437c79ba734ac4244bd0b2181 | [
"Apache-2.0"
] | permissive | pkolachi/acl-anthology | e255b0d118a17fd6ad092718ecd576628b518682 | e6e71f88c9894f49deaf128e295bfd543669bafc | refs/heads/master | 2021-12-21T15:44:01.520790 | 2021-12-19T01:07:20 | 2021-12-19T01:07:20 | 196,833,109 | 0 | 0 | null | 2019-07-14T12:20:42 | 2019-07-14T12:20:42 | null | UTF-8 | Python | false | false | 3,357 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Namratha Urs <namrathaurs@my.unt.edu>
#
# 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/... | [
"noreply@github.com"
] | pkolachi.noreply@github.com |
d7804221cd2a32518fecd25e6afce317a715027d | 09ae2652bbb0bc184757739bab936c0e367085a5 | /crypto_cli/chiper/full_vigenere.py | 86022bc6ffd732853cb4ccca63b0cf1167c43c3f | [] | no_license | ridho9/crypto-cli | 1b6d989e7c1a61a165de1c1b665cd4e332854122 | 8e3b59a83586b911baf8a1995e0da1105e430047 | refs/heads/master | 2020-12-18T21:33:37.363725 | 2020-01-27T08:59:45 | 2020-01-27T08:59:45 | 235,106,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import click
from crypto_cli.util.char import lalpha_ord, is_int_alpha
class FullVigenereChiper:
def __init__(self, square, key):
self.square = square
self.key = key
def encode(self, plain: bytes) -> bytes:
result = []
key_idx = 0
key_len = len(self.key)
for c... | [
"p.ridho@yahoo.co.id"
] | p.ridho@yahoo.co.id |
cc2f26de6d45f12fbb7681f41bb1b6e37790fcb8 | e68a19d1c4e0febcf2d5e9fb8663c38b5648b592 | /trace/fault_tolerance/trace_parser_mulit.py | f536612ded76a7db89868fa25ebd03b28363c430 | [] | no_license | nsdi2017-ddn/ddn | 60261bb3964708f865412b428793508e262b4806 | 46e7ae06097c79f87e96c4d220a7669a70b07f63 | refs/heads/master | 2021-05-03T19:16:55.022536 | 2016-12-01T16:18:31 | 2016-12-01T16:18:31 | 69,271,348 | 18 | 7 | null | null | null | null | UTF-8 | Python | false | false | 6,033 | py | #!/usr/bin/python
# parse the trace and test
#
# Author: Shijie Sun
# Email: septimus145@gmail.com
# Sept, 2016
import time
import threading
import urllib
import urllib2
import Queue
import sys
import random
from itertools import izip
TIMEOUT = 3 # timeout restriction for requests
UPDATE_DELAY = 2 # delay ti... | [
"junchenjiang@Junchens-MacBook-Pro-2.local"
] | junchenjiang@Junchens-MacBook-Pro-2.local |
209a7ce101cdd36f27ca12065507ae893c043ec7 | 23f8e15047e2303bbc0ef6d7db93286f629f139a | /src/Legacy/ruscorpora_tagging/semantics.py | 674fbe46dee2c13c15db5c8ef260d64b38f7c5d0 | [] | no_license | russian-national-corpus/preprocessing | 988a0616f3082ae3eeb63f573635f4888c4e5eb1 | 4b6a5a9f822d0d7a1d16baaf72795f888add5f23 | refs/heads/master | 2021-06-13T00:14:44.104132 | 2019-10-03T20:38:34 | 2019-10-03T20:38:34 | 165,403,637 | 2 | 0 | null | 2021-03-26T13:45:33 | 2019-01-12T15:32:47 | Python | UTF-8 | Python | false | false | 11,295 | py | # -*- Encoding: utf-8 -*-
# All rights belong to Non-commercial Partnership "Russian National Corpus"
# http://ruscorpora.ru
import sys
import os
import xml.sax
import codecs
import re
import time
from modules import common
import global_trash
ignored_columns = ["ex", "dc"]
feature_token_re = re.compile("^[a-z0-9_... | [
"vyshkant@gmail.com"
] | vyshkant@gmail.com |
e084317ce402363aaaa6cec53d9f2e5eb9ef4784 | 6c33729791ce32fc034c93e3108aa36b04d0d356 | /menu/migrations/0005_abooutusmodel.py | b502c5f6ef4a1c5139331db27426b1da75eaf394 | [] | no_license | Kaimkilwa/routefinder_website | d4e30a8bcffcc2b36bf7599d60d8c1a31fda4e0a | 3b122e7f3ed86a6b300e0337771d817da24148db | refs/heads/master | 2020-09-16T09:04:39.672707 | 2019-11-24T09:48:17 | 2019-11-24T09:48:17 | 223,720,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # Generated by Django 2.2.6 on 2019-10-25 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0004_categories_description'),
]
operations = [
migrations.CreateModel(
name='AbooutUsModel',
fields=[
... | [
"55236785+Kaimkilwa@users.noreply.github.com"
] | 55236785+Kaimkilwa@users.noreply.github.com |
462c27d14b829bf7308de41e30694fe80d248358 | c22f3b1b0ecfd28101be280ecbad037fe9f2196a | /boagent/utils/MyGO.py | d85930d671de6e47a1bc58772a7d95162ff08774 | [] | no_license | 5atouristspot/Botasky | ab3625da4088afeca159e9eddaae6263e99064ab | 996b1e83cf6f3d2eb6ab726d2d3ee252faed91a7 | refs/heads/master | 2020-03-16T15:08:58.475593 | 2019-04-10T02:55:36 | 2019-04-10T02:55:36 | 132,729,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,852 | py | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
"""
Created on 2017-4-05
@module: MyGO
@used: ssh to server
"""
import paramiko
from MyLOG import MyLog
from botasky.utils.MyFILE import project_abdir, recursiveSearchFile
logConfig = recursiveSearchFile(project_abdir, '*logConfig.ini')[0]
mylog = MyL... | [
"1204207658@qq.com"
] | 1204207658@qq.com |
bcd4424dd7009abacf5f297ef813f49979cc065d | d79f9ffc7f591e68ea8d21c77779067826d56e99 | /broj priloga u korpusu_digrami.py | 59c936816aa170a4f913b494c0b48e96857b5638 | [] | no_license | sarabarac/Racunarska-lingvistika | d71d85feb9ff689bdde76f7b141e9b47d77f1259 | 93bdc70f459401061124beb6b04ece10cddde723 | refs/heads/master | 2021-07-01T16:23:03.612244 | 2018-07-10T06:33:51 | 2018-07-10T06:33:51 | 95,882,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # -*- coding: utf-8 -*-
brojPriloga = 0
prilozi = ["ovde", "tamo", "tu", "desno", "negde"]
korpus = "Ovde mi je baš lepo. Džunglu ne volim. Ne bih volela da sam tamo. Moje mesto je tu. Tu se osećam kao da sam kod kuće. Stavila sam svoju šoljicu kafe desno, e baš tu."
tokeniziraniKorpus = korpus.split(" ")
for ... | [
"noreply@github.com"
] | sarabarac.noreply@github.com |
a23ae7933fd92b9c8ac89dc6d1231bca721bf4e4 | 017f8fe77d628e5cae29d63b2298c163a4c82d13 | /pymongo/pymongo4.py | f9afbc3c621b3bfc65cc55a267d7fd3e407cfcd7 | [
"MIT"
] | permissive | TimothyDJones/learn-python | 571744b1c8be34b65868cef5859d6a634a792efa | 687239572bee5e5c94bebb6b175b3fba4d47600e | refs/heads/master | 2023-01-03T05:24:27.597861 | 2020-11-02T20:28:15 | 2020-11-02T20:28:15 | 297,409,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
print(myclient.list_database_names())
dblist = myclient.list_database_names()
if "mydatabase" in dblist:
print("'mydatabase' found in MongoDB!")
# Create a collection ("table")
mycol = mydb["customer"]
colli... | [
"tdjones74021@yahoo.com"
] | tdjones74021@yahoo.com |
3140c1a44243603fd2dff8d0323632226ab72742 | 6d1c82eee36aa2e6efc8d702e70b176982e6124b | /maple/adapters/http.py | 58bb0276be35f468bfe784b327cb9416cc68d5a0 | [
"MIT"
] | permissive | akand074/maplepy | bd42e194df531831ab297c230db74b9706a210db | 7c99570fb107b099cfe917b1fec0a9c4d975a2db | refs/heads/master | 2021-05-07T18:15:38.213665 | 2018-02-11T21:25:02 | 2018-02-11T21:25:02 | 108,761,905 | 2 | 0 | MIT | 2018-02-11T21:25:03 | 2017-10-29T18:55:34 | Python | UTF-8 | Python | false | false | 346 | py |
class HttpAdapter(object):
def schema(self, schema):
raise NotImplementedError()
def query(self, query_string, params={}):
raise NotImplementedError()
def mutation(self, mutate_string, params={}):
raise NotImplementedError()
def execute(self, query, variables={}):
ra... | [
"noreply@github.com"
] | akand074.noreply@github.com |
62a702a14533fbce06d8c0f429a40f79d961bd69 | 86e46e40112015487bf4eef9990e68574c2f8cb1 | /DLSecurity/test_SR.py | c6ae20ea6d9a5e987b305622c3993c0ed1d56c63 | [] | no_license | AkshayGadre/M2019 | a938318a57968db814677cb957e116b188077c23 | 7aabc44562629d1c12ad43eab25e58a0994d1763 | refs/heads/master | 2020-05-30T14:07:50.881587 | 2019-06-01T22:52:00 | 2019-06-01T22:52:00 | 189,782,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | data = []
labels = []
data_dim = 2048
mem_units = 21
sampleL = (data_dim/2)*mem_units
num_classes = get_data(data, labels, mem_units, sampleL)
# load json and create model
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)... | [
"noreply@github.com"
] | AkshayGadre.noreply@github.com |
bb4d3c4ffba8b3fdd9dae18528199a1e9560a1a0 | 43ede7b8fb546c00804c0ef94501f6e48ba170d6 | /Cursos Python/Python 3 - Solyd/Orientacao_a_objeto.py | e902f0d109aa9feef7f8a68a9651bc74a65cd1bb | [] | no_license | bopopescu/Python-13 | db407d17252473e78e705e563cfee4dbd316c6b9 | c8bef500f2d3e4a63d850f96dfa219eff2ecebda | refs/heads/master | 2022-11-22T16:24:08.490879 | 2020-06-11T14:22:24 | 2020-06-11T14:22:24 | 281,830,055 | 0 | 0 | null | 2020-07-23T02:26:31 | 2020-07-23T02:26:30 | null | UTF-8 | Python | false | false | 1,339 | py | class Cliente:
def __init__(self, nome, cpf, idade):
self.__nome = nome
self.__cpf = cpf
self.__idade = idade
def dados_cliente(self):
return {'nome': self.__nome,
'cpf': self.__cpf,
'idade': self.__idade}
class Conta(Cliente):
def __init__(... | [
"ofc.erickson@gmail.com"
] | ofc.erickson@gmail.com |
25b7e0b318af75980c433cbe77c201b9aa7f1f9e | dbffb070dca3931f2321b3ff4782f5e0ab012cd3 | /client.py | 616275b9cd989c2f4cb5e53bb9ffb25002659932 | [] | no_license | maryam-542/Project-Module-1 | fb63b0130301734c8ef6c81337e0c9eb602c1bd4 | 93ce823aa59b091c18c9f73d388f54502b4dde28 | refs/heads/master | 2016-09-13T23:16:51.804065 | 2016-05-26T17:30:54 | 2016-05-26T17:30:54 | 59,131,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from socket import *
from threading import Thread
import sys
HOST = 'localhost'
PORT = 8888
ADDR = (HOST, PORT)
Sock = socket(AF_INET, SOCK_STREAM)
Sock.connect(ADDR)
def recv():
while True:
data = Sock.recv(1024)
if not data: sys.exit(0)
print data
Thread(target=recv).start()
while True:... | [
"bsef14m542@pucit.edu.pk"
] | bsef14m542@pucit.edu.pk |
8606168f73fe5c873daa5e66d25d6624afb096ad | e5266a20d3e610cf3fcfb75610d309ab386e1282 | /AppFPBajo/migrations/0003_filtro_butterworth.py | 7a2bde7406f4877a57297925679f9b5803fc10fa | [] | no_license | slopezrap/FiltrosUPNA | 5105736b990aeff29f70661f756a10f43b253535 | 206d8a35f8c13b4a9255b51030d9c6478571cadd | refs/heads/master | 2020-03-16T00:52:15.875277 | 2018-07-05T16:49:01 | 2018-07-05T16:49:01 | 130,229,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # Generated by Django 2.0.4 on 2018-05-31 10:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AppFPBajo', '0002_auto_20180531_1039'),
]
operations = [
migrations.CreateModel(
name='Filtro_Butterworth',
fields=[... | [
"Sergio.LopezRapado@EURS.EY.NET"
] | Sergio.LopezRapado@EURS.EY.NET |
dfdfdc73b69afa83125300340f0252cfe3100d38 | a127d0feb3bcf4f2581f385bb24f2b789c771c9c | /10syo/95_2.py | 0a1ea7e35fd38d9a0daad78a923622656306fdf5 | [] | no_license | NgoVanDau/nlp100knock | 01383e4cc5a1470508744668103b9ea1a238b892 | 3ef63c0d2dfb55c0e6a31aced645f284325a98a5 | refs/heads/master | 2023-03-22T13:19:23.932429 | 2018-08-05T05:27:11 | 2018-08-05T05:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | fname_input = 'combined_out.tab'
class Data:
def __init__(self, human_score, my_score):
self.human_score = human_score
self.my_score = my_score
def __repr__(self):
return 'Data%s' % repr(self.__dict__)
# データ配列作成
with open(fname_input) as data_file:
def read_data():
for lin... | [
"kota.k.1132.pda@gmail.com"
] | kota.k.1132.pda@gmail.com |
0064553534fc3e9fda5bdb33418d7c997c5bf69e | 4198532417feb21d023d7ba525a74555186b3e89 | /trailscraper/collection_utils.py | 6a4329c59d41b866968966a11c7760b32a2d22e9 | [
"Apache-2.0"
] | permissive | flosell/trailscraper | 375207753c668c78e166381e7e086d1adb950482 | b9edb1483ca8e9ce6ac8540a63334c37abd6242d | refs/heads/master | 2023-09-04T07:27:52.593647 | 2023-09-04T01:34:25 | 2023-09-04T01:40:20 | 112,079,872 | 726 | 32 | Apache-2.0 | 2023-09-11T01:57:25 | 2017-11-26T12:15:52 | Python | UTF-8 | Python | false | false | 305 | py | """Functions to help with collections"""
import collections
def consume(iterator):
"""Consume the whole iterator to trigger side effects; does not return anything"""
# Inspired by this: https://docs.python.org/3/library/itertools.html#itertools-recipes
collections.deque(iterator, maxlen=0)
| [
"florian.sellmayr@gmail.com"
] | florian.sellmayr@gmail.com |
ccf9a734c56a27aad1c7b63e96282803ea84b5a4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f1dbf6292b80b7cc67661707e7f1d8b5b0a06eb5-<check_params>-bug.py | b748d6d0116f380fc5635eaf4ef57ebc08f34ef9 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | def check_params(self):
'Check all input params'
if (not self.key_id.isdigit()):
self.module.fail_json(msg='Error: key_id is not digit.')
if ((int(self.key_id) < 1) or (int(self.key_id) > 4294967295)):
self.module.fail_json(msg='Error: The length of key_id is between 1 and 4294967295.')
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
bad677f019fc4d7992e5229966f842dcccd1035b | 028884b062038e1b948f879a7c62664b5aeccdfc | /python_ZED_VA/positional_tracking_to_CSVfile.py | 37597a1c0ffe49c64e6c30d2cab72f82c59289ad | [] | no_license | VirginiaPan/BeachMapping | d3728437297f9aedcf0b60fe247fb10c03bcd242 | 9a46859593ccdca7ea59ff0602eb39cbb109769c | refs/heads/master | 2020-06-08T04:06:29.625552 | 2019-07-11T18:00:13 | 2019-07-11T18:00:13 | 193,154,434 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py |
import pyzed.sl as sl
def main():
# Create a Camera object
zed = sl.Camera()
# Create a InitParameters object and set configuration parameters
init_params = sl.InitParameters()
init_params.camera_resolution = sl.RESOLUTION.RESOLUTION_HD720 # Use HD720 video mode (default fps: 60)
# Use a rig... | [
"vgp4@duke.edu"
] | vgp4@duke.edu |
796965104f9a8b405aea58339305c0e917d2c247 | 7aae3051a7d08a280f7adc55b4b984bc48c87db3 | /vehicle/admins/vehicle_model_admin.py | ba26d4ec5f9adf2698da8711bc9fa8bd44e5b5a4 | [] | no_license | ohahlev/ahlev-django-vehicle | d087375e3b49cda9253a776f79e4531bbf0a686d | 51895c200b40be7a298a4054ba2d8945df6a84d0 | refs/heads/master | 2020-11-30T07:00:12.441028 | 2020-01-21T01:25:48 | 2020-01-21T01:25:48 | 230,340,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.utils.html import format_html
from django.contrib import admin
from imagekit import ImageSpec
from imagekit.admin import AdminThumbnail
from imagekit.processors import ResizeToFill
from imagekit.cachefiles import ImageCacheFile
from ..models.vehicle_model import VehicleModel
from .widgets import AdminSmalle... | [
"ohahlev@gmail.com"
] | ohahlev@gmail.com |
ed0466956305c5f5e6955a737d43b2039c8f0fc5 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/4-functional-programming/7-list-comprehension_20200422222427.py | 81d606e197ec10031073a3db9b3879a25cb59bc1 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #list, set, dicitonary
my_list = []
for char in 'HELLO':
my_list.append(char)
print(my_list)
dict_list = [char for char in 'good morning']
print(dict_list)
num_list = [num for num in range (0, 100)]
print(num_list)
print("divide by 3 with no remainder")
num_list3 = [num for num in range (0, 100) if(nu... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
7d19f4be3e65d55621b576d2306fd4eb58e60381 | 015ce35e6344d1726173594ae509dfc1ca6f856d | /2-basics/Study basics/loops.py | 7ce93a431733e32e961c8476c4ae0d1bd2085bee | [] | no_license | ayman-elkassas/Python-Notebooks | 4af80df75c15a6ac3049450b3920d500fef0e581 | 26a8265f458c40ac22965d55722f32a650851683 | refs/heads/master | 2023-04-03T19:12:17.707673 | 2021-04-10T21:32:37 | 2021-04-10T21:32:37 | 356,699,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | count=5
while count>99:
print("yes")
count-=1
else:
print("if")
for letter in "python":
print(letter)
| [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
a921fe8b1f0c63d2290abf91aefc289205f29ead | 6024cf204c8e14553dca0e37f699aa08d963404a | /checkout/models.py | 754be2799fec355e3103da68d5a800213d40f0bc | [] | no_license | Code-Institute-Submissions/Nourish-and-Lift | 5f2c141e604f8d87fcb07bd7f61766456535bab3 | 8998b75b18c0f697cc6caff7d586bf5fb06ce519 | refs/heads/main | 2023-07-16T04:49:39.718323 | 2021-08-29T08:33:53 | 2021-08-29T08:33:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | import uuid
from django.db import models
from django.db.models import Sum
from django.conf import settings
from django_countries.fields import CountryField
from products.models import Product
from profiles.models import UserProfile
class Order(models.Model):
order_number = models.CharField(max_length=32, null=... | [
"hdhillon478@gmail.com"
] | hdhillon478@gmail.com |
804e51dfde50f67856b882d399fdc55f06b50df1 | ef064aed21874b178aaac515a741c078aa0aaf53 | /tests/__init__.py | 4e8bb2e23aa1c148756a7e0133be24c53b528d63 | [
"MIT"
] | permissive | fotonauts/fwissr-python | 0649d970fdf807b74753a512eb75f1fa6cd4ddad | 4314aa53ca45b4534cd312f6343a88596b4416d4 | refs/heads/master | 2021-06-06T06:38:14.332173 | 2013-12-05T09:28:18 | 2013-12-05T09:28:18 | 13,952,600 | 0 | 0 | MIT | 2021-03-25T21:42:00 | 2013-10-29T10:20:28 | Python | UTF-8 | Python | false | false | 147 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
| [
"oct@fotonauts.com"
] | oct@fotonauts.com |
6408769016157138b15691bb9158e5695f16d725 | 58bbaa2cd1af8dbd2f862708a0da7f4b3e7246b8 | /Yerma/pymongo/createcol.py | 530039b05bae261d060c4323f7544b3b916aee17 | [] | no_license | Yermito/PPEND | 7a087243fa578fa0b50541da160a11d2b73dcbc3 | 7c59fec6a3aaaab5c022d46fcc97b201f4bbf84c | refs/heads/master | 2022-05-28T17:36:16.310690 | 2020-05-01T17:45:33 | 2020-05-01T17:45:33 | 260,516,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import pymongo
myclient = pymongo.MongoClient('localhost:27017')
mydatabase = myclient["university"]
mycollection = mydatabase["fit"]
print(mydatabase.list_collection_names())
| [
"noreply@github.com"
] | Yermito.noreply@github.com |
02d24060c8e2ae54ffa980ef62fec59464614b83 | da45d1ca420ee93a4c40d2be4e6a62c59925c72c | /python/test/robotics/robots/test_aizek_robot.py | 762a62c43066111c1b4efc3c47792ee03f79d31f | [
"MIT"
] | permissive | asydorchuk/robotics | dd2fe8cd7f593c842f467f67d4fc597202a3926b | 678fb7e879326380c5bd9795d81beb21efe4d30c | refs/heads/master | 2021-01-20T02:19:28.741221 | 2015-06-02T22:14:05 | 2015-06-02T22:14:05 | 12,576,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | import math
import mock
import unittest
from robotics.robots.aizek_robot import AizekRobot
class TestAizekRobot(unittest.TestCase):
ROBOT_WHEEL_RADIUS = 0.025
ROBOT_WHEEL_DISTANCE = 0.1
def setUp(self):
self.lmotor = mock.Mock()
self.rmotor = mock.Mock()
self.wencoder = mock.Mock... | [
"sydorchuk.andriy@gmail.com"
] | sydorchuk.andriy@gmail.com |
f19df9ac7447b0432efdfecf90c9cd14f076163d | b5502ea9580e882a1c530f6e5914ce090e2d00a6 | /experiment/CASSANDRA/cassandra/pylib/cqlshlib/cqlhandling.py | a0917b3b4600c267134b92c852710b626c279689 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | Lingzhi-Ouyang/Almost-Strong-Consistency-Cassandra | a3fb54a8c35805a6810532719d7a8da99998f997 | 2b9aa8e78e134fc8811ea6caff3daca1f4a92936 | refs/heads/master | 2021-07-09T01:13:04.424482 | 2020-11-03T03:12:13 | 2020-11-03T03:12:13 | 205,116,322 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,310 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"lingzhi.ouyang@outlook.com"
] | lingzhi.ouyang@outlook.com |
19ef56453f855c29a72eaa6c8c52e2ca967e6a36 | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Binary Search/ValidPerfectSquare.py | c4e8a70a8beb4c70db11315cbe222321332ff181 | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 898 | py | """
LeetCode Problem 367. Valid Perfect Square
Link: https://leetcode.com/problems/valid-perfect-square/
Written by: Mostofa Adib Shakib
Language: Python
Observation:
1) Number less than 2 will always form perfect squares so return True.
2) The number will always be in the first half of the array. Hence, we can disca... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
0b9a8f51986a637727d2c4861dd3a0598f490b2f | 1522508ace6f366e17f6df3f36b09cc4042757c7 | /src/main/webapp/python/faceAverage.py | febc5a42aa20f6c56cfb7659fad4bbea1c18d101 | [] | no_license | webstorage119/AverageFaceServer2.0 | 022a9d6faf9487e463d6d0a47fc31b50c0a0afb3 | 6e9a985a665edae92b98af1a5c2ca3b60ad33852 | refs/heads/master | 2021-06-07T21:11:16.326668 | 2016-09-27T14:15:32 | 2016-09-27T14:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,185 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2016 Satya Mallick <spmallick@learnopencv.com>
# All rights reserved. No warranty, explicit or implicit, provided.
import os
import sys
import cv2
import dlib
import numpy as np
import math
from skimage import io
import time
path = sys.argv[1]
# Read points fro... | [
"simoncherry@sina.com"
] | simoncherry@sina.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.