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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70d12cbd3ba997f9b1688947cbef75fb185cdfb9 | ec400bd7271cef2a035819a8105225dda8172f00 | /pyDEER/awg.py | 1615751f876f90422f9163aef22586a551b3b264 | [
"MIT"
] | permissive | tkeller12/pyDEER | d6d5b03af720ae3b28e500777c1d362a0d44623a | f1d976f6adccdd6604df0bf71bb76446cf4b595f | refs/heads/master | 2022-12-22T02:27:29.521143 | 2020-05-27T19:06:48 | 2020-05-27T19:06:48 | 264,690,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py | import numpy as np
default_number = 43 # default number for saving pulse shape
resolution = 1.e-9 # default pulse shape resolution
# define sech function
np.sech = lambda x: 1./np.cosh(x)
def save_shape(pulse_shape, filename):
'''Save a numpy array as csv format compatible with Xepr
Args:
pulse_shap... | [
"tkeller@bridge12.com"
] | tkeller@bridge12.com |
4b42b8995f3a9bc2a2c280170a32498379389f20 | 21548a90c2743f9968f613ce7c9e44baecc80ba3 | /opts.py | 7487727c15ed1c75b5a7b7e077a737f7ad05f956 | [
"MIT"
] | permissive | zhangxuan6598/CT-Net | 51d1a229086b18d4eae4579c046497f658d73167 | f7ea023c90768d394f6eb02a51253e037f0d3f8a | refs/heads/main | 2023-05-14T12:18:09.257089 | 2021-06-05T01:27:13 | 2021-06-05T01:27:13 | 375,279,265 | 1 | 0 | MIT | 2021-06-09T08:17:46 | 2021-06-09T08:17:46 | null | UTF-8 | Python | false | false | 8,272 | py | # -*- coding: utf-8 -*-
# @Author: KunchangLi
# @Date: 2020-02-09 16:03:29
# @LastEditor: KunchangLi
# @LastEditTime: 2020-03-18 17:38:56
# @Oringin: https://github.com/mit-han-lab/temporal-shift-module/blob/master/opts.py
import argparse
parser = argparse.ArgumentParser(description='PyTorch implementation of Te... | [
"likunchang@likunchangdeMacBook-Pro.local"
] | likunchang@likunchangdeMacBook-Pro.local |
2453221d2ad4147565a2497f2769eb79e596f5dc | 664759f4badcde8b04486f0f92dd4c15e5fe44a6 | /hienoi/_numeric.py | f28f3724fc0d9685ba763f72bae0ea00cb6c1a52 | [
"MIT"
] | permissive | christophercrouzet/hienoi | 25dec6542cd698d020b5806155ea4f6531ad326e | 61353dd8f1f1d01d7aa2e704f659275eeecf0962 | refs/heads/master | 2022-06-06T02:10:08.078690 | 2022-05-15T04:17:42 | 2022-05-15T06:15:57 | 90,687,800 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """Glue for numeric data types from different modules."""
__all__ = ['Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32', 'Float32',
'Float64']
import ctypes
import numpy
import OpenGL.GL as gl
class Int8(object):
"""8-bit int type."""
pass
class UInt8(object):
"""8-bit unsigned int typ... | [
"christopher.crouzet@gmail.com"
] | christopher.crouzet@gmail.com |
e51c235bef72e91b430961c9821e809ec7baf125 | ff62461833c01a194b9de2c8954f378dc0159a01 | /f8a_jobs/handlers/kronos_data_update.py | 675680db721837cf908d3012a8a5c5752f6c5fff | [
"Apache-2.0"
] | permissive | humaton/fabric8-analytics-jobs | 617a9f7107dac15033f8735609cf36c749c46e73 | 0cfe578dd4398633ebf906ccae5c187903080ad9 | refs/heads/master | 2020-04-07T10:13:29.081369 | 2018-09-04T11:56:19 | 2018-09-04T11:56:19 | 124,203,177 | 0 | 0 | null | 2018-03-07T08:21:11 | 2018-03-07T08:21:11 | null | UTF-8 | Python | false | false | 5,918 | py | """Class to append new data for Kronos training."""
from selinon import StoragePool
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy import text
from .base import BaseHandler
import os
class KronosDataUpdater(BaseHandler):
"""Class to append new data for Kronos training."""
def __init__(self, *arg... | [
"sarahmasud02@gamil.com"
] | sarahmasud02@gamil.com |
e90d3914edcfc23c1e31112856f99c98b766538b | a450d455fc1da6f3a89eebb562cc2fb28784b129 | /docs/conf.py | 36714ac69f1de680f841bad04edc215e5a835504 | [
"MIT"
] | permissive | hawkthorne/bearweb | 6c62e0143ab6a19bee6cf340dfec81664f201dcb | 1533acd9c7610d9ea01e8413853cca70843b9d63 | refs/heads/master | 2021-05-28T05:54:55.533462 | 2014-03-16T23:12:01 | 2014-03-16T23:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | # -*- coding: utf-8 -*-
#
# stackmachine documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
28d1b28fa7088409961982ec00e2f4d0d2de8ae5 | 1d67c0eb690e95a9e373771cef84b6f244e5b413 | /Python/Hash Table/hash_table.py | 4bc34bfe4aa9134adab7425202b341240200262a | [] | no_license | dipty13/Data-Structure | 5f9164c950b4cc1c0498b225a6f7d601b38328f2 | 06d281550fcbe2036c80f73f467e2f7f49a73499 | refs/heads/master | 2020-03-27T13:30:48.312572 | 2018-10-28T13:34:38 | 2018-10-28T13:34:38 | 146,613,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | class HashTable:
HASH_MAX = 10
class linkedList:
data = None
next = None
hashTable = [1000]
def Hashtable():
i = 0
while i <= HASH_MAX:
HashTable.hashTable[i] = linkedList()
HashTable.hashTable[i].linkedList.data = "empty"
HashTable.h... | [
"13dipty@gmail.com"
] | 13dipty@gmail.com |
5d6f38caa5b16025ec6d23af623aba064ec125dd | d49168286bb11e167f5c1862be8d3cb2f278af57 | /resize_images.py | 4a2a3f72949fae59936234c621dffeb50a9a53f3 | [] | no_license | Pepslee/image_processing | 38d572f4b51dc4200a04a8ba9895ae0574fce540 | a717f57dd04695ae52b11108bea49408900d9c9d | refs/heads/master | 2020-06-21T23:26:55.457199 | 2019-08-21T07:32:51 | 2019-08-21T07:32:51 | 197,578,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | import os
import glob
import cv2
from tqdm import tqdm
load_path = '/mnt/75b9aae6-291e-4314-90c2-b27cf3e3f5cd/Kaggle/aptos2019-blindness-detection/train_croped_images'
save_path = '/mnt/75b9aae6-291e-4314-90c2-b27cf3e3f5cd/Kaggle/aptos2019-blindness-detection/train_croped_images_1024'
globs = glob.glob(os.path.join(l... | [
"sergey.panchenko@eos.com"
] | sergey.panchenko@eos.com |
5773aa56ca5ed8607d8fc9025b01c63b5333b19c | 199115509359d0849d9debb12db4eced6081dbed | /emotion_chatbot/speechtotext.py | 6394875fcb7f550ba787d59f0aea71ef9c1de8ee | [] | no_license | Sapphirine/202005-1-EmotionRecognitionsystem | 1ea1df3ddcd43bf5b25e76b534c75778a8d8b921 | ca4efb89ed762f16202476d39314051cf12a1b7e | refs/heads/master | 2022-08-29T20:00:21.097719 | 2020-05-16T05:05:11 | 2020-05-16T05:05:11 | 264,354,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import speech_recognition as sr
import pyaudio
import audioop
import os
import math
from os import system
import threading
def transcribe_audio():
with sr.Microphone() as source:
# read the audio data from the default microphone
r = sr.Recognizer()
#print("Chatbot : Hey! How can I help?")
... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
0483a8f057820a49591be0dd8bb0ccb6c937670e | eda3d6974a60a42a1ee35cd2327218029490a654 | /user_service/server.py | 8d0fb30a24bdf62118d1df665ab0bb96327cd78d | [] | no_license | 1260228859/EvanKao-ms | 4a4159123bfd3f3b960c9b81ca920f599fffc6cc | ae0e9dbf2803c6bd67ea8b0be012b64c57db7bbc | refs/heads/master | 2020-09-26T19:39:48.587556 | 2020-07-08T03:00:01 | 2020-07-08T03:00:01 | 226,328,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from sanic import response
import logging
from views import user_bp
from sanicms.server import app
from sanicms.client import Client
logger = logging.getLogger('sanic')
# add blueprint
app.blueprint(user_bp)
@app.listener('before_server_start')
async def before_srver_start(app, loop):
# TODO: 改为配置文件读取相关依赖应用服务... | [
"jiantao.gao@cityio.cn"
] | jiantao.gao@cityio.cn |
94107fdab373a1c2512302c118cf750de48d9b44 | 20fedfd55a0cddff39769278544aea7a0d235c08 | /qutebrowser/themes/base16-qutebrowser/themes/base16-atelier-seaside-light.config.py | dd86580574bdb64fc48260cc30ee5902d8788b7a | [
"CC0-1.0",
"MIT"
] | permissive | ebzzry/dotfiles | 1d2942c6ea0fe847f8fb6c5aacb229b392444c82 | 9ba2d1a3b5aff2f2c65d2c0dd17257e8f9e1f51a | refs/heads/main | 2023-06-09T07:20:35.676866 | 2023-05-26T03:45:26 | 2023-05-26T03:45:26 | 64,131,018 | 30 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,378 | py | # base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Atelier Seaside Light scheme by Bram de Haan (http://atelierbramdehaan.nl)
base00 = "#f4fbf4"
base01 = "#cfe8cf"
base02 = "#8ca68c"
base03 = "#809980"
base04 = "#687d68"
base05 = "#5e6e5e"
base06 = "#242924"
b... | [
"rommel.martinez@valmiz.com"
] | rommel.martinez@valmiz.com |
e8f740e26272bafd38b053bb5e8e1737f5b16837 | d62863d049c0206bfa744ca4c9e886030bfce1ab | /apps/sw_shop/sw_order/views.py | 2eb7cbc57083cb103a5b7c6b5f867553d8a37e5f | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 937 | py | from django.shortcuts import render, redirect
from .models import Payment, Order
from box.core.sw_currency.models import Currency
from django.http import JsonResponse
def liqpay_callback(request):
try:
from box.apps.sw_payment.liqpay.utils import create_liqpay_transaction
except:
# except RuntimeError:
... | [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
e0ad38a38b1bc6b8310f8f610da5eaf182634c0f | f34438fbd1e3c6e74a655cebd7f2694df84a1986 | /middle/broken_calculator.py | 0786e7a03b0542c1b9b95562f4d9198c3ff74c7d | [] | no_license | luozhiping/leetcode | 85eeeea167c65cc77ecfacd1f9544f01142f595a | bf900574ebec530f4af4494f81c84b31d36c9933 | refs/heads/master | 2020-03-31T21:36:53.357258 | 2019-09-03T13:14:48 | 2019-09-03T13:14:48 | 152,587,301 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 991. 坏了的计算器
# https://leetcode-cn.com/problems/broken-calculator/
class Solution(object):
def brokenCalc(self, X, Y):
"""
:type X: int
:type Y: int
:rtype: int
"""
if X >= Y:
return X - Y
count = 0
while X < Y:
if Y % 2 == 0:... | [
"lzp9802021@qq.com"
] | lzp9802021@qq.com |
4609643ace645f4f97139036b9c90ce0a8d8ba63 | a073e730e32b75f5d4e02f6bcf8defcaa9c5da97 | /backend/fashion_candy_18064/settings.py | bba67dbee4f4084134baf664a6af612e2792240d | [] | no_license | crowdbotics-apps/fashion-candy-18064 | a962d38c9cbc27a90428dda3f962edbb32b5e427 | 87b8ef7ce8c9e29c8b543cfc5b0a0af8191f52a8 | refs/heads/master | 2022-10-21T06:00:25.083275 | 2020-06-13T01:15:59 | 2020-06-13T01:15:59 | 271,917,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,884 | py | """
Django settings for fashion_candy_18064 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e282034106999e9400a94256c8c3e07ede1f95d3 | 9b7ee6517636ce5d0118d4edadfdd7b8afe52e6a | /Player_Class_2.py | e4cd4a08ec1b7a4fe18b6bc50c4fd87b770b8446 | [] | no_license | tommeredith14/Math-Eng-Hacks | 8626bbab031485380fa92d9e9a1dc12ecd70dc5e | 76fb8788e7eb3b8382075c8a9670a05fc3933df6 | refs/heads/master | 2020-06-11T21:24:39.791866 | 2016-03-13T05:23:16 | 2016-03-13T05:23:16 | 53,174,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | #!/usr/bin/python
import serial
import time
ser = serial.Serial('/dev/ttyACM1', 9600)
Input = [0, 0, 0, 0, 0, 0]
print('Horizontal Vertical Shooting Steering Other Pause')
def Update(Input): #UPDATES DATA READINGS
ser.write(b'`') #tells arduino it wants some readings
val1 = ser.readline().strip() ... | [
"willdavidc@gmail.com"
] | willdavidc@gmail.com |
af980df5115d1fb70ebaffb112bd5470dd768cf0 | f3efef564ee8f7ed27efd5d869de1f548383854b | /mugalyser/logger.py | c7ac15dc4d9363b4fd8e46a1fb425a47660c1d7d | [] | no_license | jdrumgoole/MUGAlyser | f3235f47ecb2cf095f74450537329f1c0275c469 | 6781702854e918152433a199a1ec0580e3e421a3 | refs/heads/master | 2023-02-20T10:12:41.036923 | 2022-12-12T13:49:55 | 2022-12-12T13:49:55 | 67,624,157 | 5 | 3 | null | 2023-02-08T04:51:57 | 2016-09-07T16:21:58 | Python | UTF-8 | Python | false | false | 1,921 | py | '''
Created on 28 Jun 2017
@author: jdrumgoole
'''
import logging
class Logger(object):
'''
Logging class that encapsulates logging interface
'''
format_string = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
def __init__(self, logger_name, log_level = None):
self._lo... | [
"joe.drumgoole@mongodb.com"
] | joe.drumgoole@mongodb.com |
77a92c64c538638d8ebdaca85dbdefca126a1333 | 40b38b4ed3c6c85bcd58cc206db1efdce67bb66e | /snakeoil2015/untitled/fitnessplot.py | 93b151548cd36b57e4944d72e64991250aeb23c5 | [] | no_license | alexshade15/ComputazioneNaturale | 968244c5494af53472f6b45db5f6241a682dcf0d | 127b93911091304c8d58e66d7d99b0d5b036cb30 | refs/heads/master | 2022-01-21T08:03:29.909094 | 2019-07-19T06:31:23 | 2019-07-19T06:31:23 | 188,016,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import matplotlib.pyplot as plt
import logs as log
import numpy as np
#DA evaluation_0_1 a evaluation_0_3015
id = 1
list1 = []
fit = []
i = 0
for j in range(1,3016):
app = 'evaluation_'+i.__str__()+'_'+j.__str__()
list1.append(getattr(log, app))
for elem in list1:
fit.append(elem['fitness'])
mean = [... | [
"32539407+alexshade15@users.noreply.github.com"
] | 32539407+alexshade15@users.noreply.github.com |
7b285f649b01ce696d22c4fbd5cb8dae8b8d1286 | e63a36870512edb7fd947b809631cf153b028997 | /doc/source/conf.py | eed13ab7549cb2d023a203b106150682f25abb0b | [
"Apache-2.0"
] | permissive | titilambert/surveil | 632c7e65d10e03c675d78f278822015346f5c47a | 8feeb64e40ca2bd95ebd60506074192ecdf627b6 | refs/heads/master | 2020-05-25T13:36:59.708227 | 2015-06-29T14:07:07 | 2015-06-29T14:07:07 | 38,249,530 | 1 | 0 | null | 2015-06-29T13:38:04 | 2015-06-29T13:38:03 | null | UTF-8 | Python | false | false | 2,531 | py | # -*- coding: utf-8 -*-
# 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 writing, software... | [
"alexandre.viau@savoirfairelinux.com"
] | alexandre.viau@savoirfairelinux.com |
7f8e01f26bc15e7cc7ecc55472938779bf17bdf0 | a846e30ca890d1958e1daf37af8ac2935639f724 | /blog/migrations/0001_initial.py | 5d8e08bc34778c2d6e9b34bc61035b5d345cae65 | [] | no_license | computacity/my-first-Django-blog | f46fe778e25b66ea02ec686a332aa277570ef43d | d951a6f934193f4dd27b8b4a448e3eefcb69ff29 | refs/heads/master | 2020-04-16T10:19:15.217356 | 2019-01-14T07:09:43 | 2019-01-14T07:09:43 | 165,500,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.5 on 2019-01-13 10:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"valamasiatu@gmail.com"
] | valamasiatu@gmail.com |
70f10f1add937c50d07e5e8235e15a6fb0fa56cf | d771ec4626a32f6122b155d24eba1320db230fbd | /web_frameworks/django/mysite/serializer_relations/apps.py | 7ec3af488ec96ebd4370ff3a54dd351853e5a9c1 | [] | no_license | axu4github/Templates | 9351983f8f7f65b9b2ca354909ce0d2198d23120 | 37e7a7182f14c98eb5cbc1202af3fd74df2bc297 | refs/heads/master | 2022-12-11T12:26:19.213955 | 2019-03-03T04:10:08 | 2019-03-03T04:10:08 | 154,787,446 | 0 | 0 | null | 2022-12-08T01:17:45 | 2018-10-26T06:27:54 | Python | UTF-8 | Python | false | false | 114 | py | from django.apps import AppConfig
class SerializerRelationsConfig(AppConfig):
name = 'serializer_relations'
| [
"axu.home@gmail.com"
] | axu.home@gmail.com |
66622e95d80095bcfb4410474b5a119066cb4c95 | 077407bd60cbf14b1f6de50759d8b02417cea007 | /OnlyBuy/users/models.py | 955f878145f7b6dc10c385147ea9a00cb8a4d866 | [] | no_license | zsx2541577860/chat | b7623f126055401d369f79f521daf6bcf3952063 | f7e08d07a39467c252451e4f032e374597178410 | refs/heads/master | 2020-05-16T18:26:03.334237 | 2019-07-15T12:00:23 | 2019-07-15T12:00:23 | 183,223,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your views here.
#自定义用户类型
#创建时显示的是后面的字符串,传递值时使用的是前面的数字
USERTYPE = (
(0,'管理员'),
(1,'卖家'),
(2,'买家')
)
GENDER = (
('1','男'),
('0','女')
)
class User(AbstractUser):
nickname = models.CharField('昵称',max_length=3... | [
"2541577860@qq.com"
] | 2541577860@qq.com |
704f23f3ef1050e2aa4ca2a458d509acd2dd6475 | 2887be7e41fd0f5c619e320152c2eb6e4d8e03e1 | /plotcounts/src/d1state/system_state.py | 8255fff10ac99c19922046584b5b3ffd3fa5ee29 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_environment_status | b586e077674a782aa84230304bd1a51dd72638ec | 65368e21e649d060e085df2e844964f74ac0f985 | refs/heads/master | 2021-01-10T18:01:36.013081 | 2016-01-29T15:48:14 | 2016-01-29T15:48:14 | 50,665,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,995 | py | '''
Created on Feb 27, 2014
@author: vieglais
Generates a JSON object that provides a high level description of the state of
a DataONE environment at the time.
The resulting JSON can be processed with Javascript and HTML to provide a
state view, or can be loaded back into the Python structure for additional
proces... | [
"dave.vieglais@gmail.com"
] | dave.vieglais@gmail.com |
eec538cfdf617e4159ea9589da4655975097b6f0 | 24f21e7d62fc6c02cabf5f442effafd4bf712b93 | /ast_edits.py | bc6fe08eaab52b460b1aec7ad39e5fb454137fa4 | [
"MIT"
] | permissive | robur66/MLDogBreedClass | d44f0a8cf0ba9dc8b38df32870b468e8b4d864f8 | 97e44e6ca1e67a48140648beb2fcb207333e57ad | refs/heads/master | 2021-08-24T06:54:34.314579 | 2017-12-08T13:56:58 | 2017-12-08T13:56:58 | 113,493,513 | 0 | 0 | null | 2017-12-07T20:05:56 | 2017-12-07T20:05:56 | null | UTF-8 | Python | false | false | 18,962 | py | # Copyright 2016 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... | [
"gapp1@localhost"
] | gapp1@localhost |
f3a5d780b21c4f4176e4ec807d686482a6a22ea8 | 80a7eb9eb2b9c86e5c278464d9ee3c875a11a1bf | /src/scene_analyzer/msg/_stamped_string.py | 03d058a94c7c532109397b5226eaf55299a4785e | [] | no_license | stefanschilling/scene_analyzer | c348fd93127323a421e527549a5a323a87a69e84 | 5df78d82bafbd031e09b51cdf2d11d1a6d88e2a6 | refs/heads/master | 2020-05-30T11:53:37.057281 | 2016-06-05T19:16:21 | 2016-06-05T19:16:21 | 60,476,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,186 | py | """autogenerated by genpy from scene_analyzer/stamped_string.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class stamped_string(genpy.Message):
_md5sum = "c99a9440709e4d4a9716d55b8270d5e7"
_type = "scene_analyzer/stamped_str... | [
"stefan@stefan-laptop.(none)"
] | stefan@stefan-laptop.(none) |
caeb2ddd5c391da1f8353bb97a4ac5a0196418b6 | 6f33ad84b82fbc730e1ebfa38ea6acfeb1434706 | /utils/confusion_matrix.py | 77424e4a0df2c90055648fd258bb239b78ea74e1 | [] | no_license | jedrzejkozal/ecg_oversampling | 7dfe22a11ad934dcd2085f13103702e69c8faf1d | 9c59f73c75f4ac60c1ddbc15c7c945e6e70c1c3b | refs/heads/master | 2020-06-21T23:09:51.754020 | 2019-08-06T11:00:38 | 2019-08-06T11:00:38 | 197,574,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import itertools
import matplotlib.pyplot as plt
import numpy as np
def plot_confusion_matrix(cm, classes,
normalize=False,
title='Confusion matrix',
cmap=plt.cm.Blues):
"""
This function prints and plots the confusion matrix.
N... | [
"jedrzej.kozal@gmail.com"
] | jedrzej.kozal@gmail.com |
316dfa1bedfcab2282dcbf533be4bdaa3d68e8b2 | 43cd95bcdef9d06bde0bc2e5e318bada6ae587fc | /basic/range_function.py | 3424c943384bc3e10f997866f421496d7171784b | [] | no_license | suchana172/My_python_beginner_level_all_code | 00eddb7aac87e559812dcb6781257e4e83dbbdce | 94a312b2da39017d8f93ba185562f82da77c9b55 | refs/heads/master | 2022-12-31T15:06:00.448433 | 2020-10-19T17:18:30 | 2020-10-19T17:18:30 | 305,456,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | for value in range(1,10) :
print(value)
| [
"khairunnahar.suchana@northsouth.edu"
] | khairunnahar.suchana@northsouth.edu |
d9227d4c777e0654770a44acf9b7b89e63a3f247 | 14165029c01863b3f1568d42111e449fd805e8eb | /broken_1_4.py | 3e2972b465d9e25ce184d4f4b547867622c764db | [] | no_license | afrokoder/csv-merge | de9e1cd23acc55017e7417f241cdb2d37b8a44cd | 79b7ff6215b41cbc5ebb98b1fdadbadc537dda09 | refs/heads/master | 2020-06-15T23:28:47.986300 | 2019-07-05T14:18:28 | 2019-07-05T14:18:28 | 195,420,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #Number half pyramid
#Makes a half pyramid of numbers up to 9
#1
#22
#333
#4444
#55555
outer_loop = 0
while outer_loop <= 10:
inner_loop = 1
#print ("Outer Loop is:", outer_loop)
while inner_loop < outer_loop + 4:
#print ("Inner Loop is:", inner_loop)
print (outer_loop, end="")
in... | [
"knuchegbu@spscommerce.com"
] | knuchegbu@spscommerce.com |
25d1fac9d7159f6e7e778967782d95636279a25c | 3863bea43fbc7ce2c7845cd2bad8ae50b67359b2 | /Tempermonkey-vue3-tfjs/torch/nmt_example/infer.py | dfb59886301d75382e707fd62c7156bddf4b07cd | [
"MIT"
] | permissive | flashlin/Samples | 3aea6a2dadf3051394f1535d00de9baeb7c904cb | c360e81624296c9243fd662dea618042164e0aa7 | refs/heads/master | 2023-09-03T06:32:53.857040 | 2023-09-02T15:55:51 | 2023-09-02T15:55:51 | 182,355,099 | 3 | 0 | MIT | 2023-03-03T00:03:37 | 2019-04-20T03:28:25 | C# | UTF-8 | Python | false | false | 6,462 | py | from nltk.translate import bleu_score
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import utils
import torch
import os
from nmt_model import NMTModel
from nmt_dataset import NMTDataset
import nmt_dataset
chencherry = bleu_score.SmoothingFunction()
args = utils.get_args()
class NMTSampler:... | [
"flash.lin@gmail.com"
] | flash.lin@gmail.com |
d675945d9dcc0f99396a02cefb496fc58d518c2b | edb906c10790abc1eba4047bca557aa173616f10 | /business/serializer.py | 9c6d69a222cb016743cecfb85d7e3c1b365aab12 | [] | no_license | Wakarende/neighbourhood | 743d26ee76a79018865a15c523f390c35812b73c | 29003acc8f760046a33f1b3313b5a016a007890d | refs/heads/master | 2023-05-13T12:43:53.257053 | 2021-06-08T06:59:09 | 2021-06-08T06:59:09 | 373,812,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from .models import BusinessModel
from django.db import models
class BusinessSerializer(serializers.ModelSerializer):
class Meta:
model=BusinessModel
fields='__all__'
| [
"joykirii@gmail.com"
] | joykirii@gmail.com |
a8cacab94132932232ab8809d2cae3e6a22d1030 | 8d2e122add59cb8b9c0ea7e05b4b6b17afb6bf36 | /ds/stack/problems/balanced_or_not.py | c91cfe140fb9b746ffd999d27001088b41806117 | [] | no_license | thilakarajk/Algorithms-Data-Structures | 1ce1fcc8d69a033e32422736cd3d2cad57079d35 | 51682f015836302c3795b5206e936ae7e42c9787 | refs/heads/master | 2023-01-23T03:43:21.881439 | 2020-12-12T06:10:44 | 2020-12-12T06:10:44 | 317,902,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from ds.stack.implementation import Stack
TOKENS = ['<','>']
def is_open_tag(char):
return TOKENS[0] == char
def is_matching(open_tag, close_tag):
return TOKENS[0] == open_tag and TOKENS[1] == close_tag
def compare(expression, replacement):
stack = Stack()
for char in list(expression):
if is... | [
"thilakaraj.kamaraj@astrazeneca.com"
] | thilakaraj.kamaraj@astrazeneca.com |
54916cd6aef8b96949a3900348ef5e689648aa2c | 1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5 | /Repo/venv/Lib/site-packages/torch/utils/file_baton.py | d474bfb4a810ea042d978407b1239dea9dd3f8b9 | [] | no_license | donhatkha/CS2225.CH1501 | eebc854864dc6fe72a3650f640787de11d4e82b7 | 19d4dd3b11f8c9560d0d0a93882298637cacdc80 | refs/heads/master | 2023-07-19T13:27:17.862158 | 2021-02-08T07:19:05 | 2021-02-08T07:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | import os
import sys
import time
if sys.version < '3.3':
# Note(jiayq): in Python 2, FileExistsError is not defined and the
# error manifests it as OSError.
FileExistsError = OSError
class FileBaton:
'''A primitive, file-based synchronization utility.'''
def __init__(self, lock_file... | [
"59596379+khado2359@users.noreply.github.com"
] | 59596379+khado2359@users.noreply.github.com |
656a0129b1473860ace3f1d7cc53e6e32919808c | 904acd1ae84bdd11f34dc33683cc4de6ce21df5b | /algorithm/test/test_random_forest_gini_sample_smote400.py | cee089925308291a2972e00bfff2cd7ff4b3faf6 | [] | no_license | imxtyler/MachineLearning | 5840cd7f2db2bfadc3c64e5478441e00fbcaece0 | 2562815472bcf0568c8b157d28db59285527835d | refs/heads/master | 2021-09-15T21:47:02.943104 | 2018-06-11T13:43:50 | 2018-06-11T13:43:50 | 91,756,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,424 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import random
import pandas
import numpy
import multiprocessing
import matplotlib.pyplot as plt
from pandas import DataFrame,Series
from preprocessing import DataPreprocessing
from gini_index import GiniIndex
from sklearn import metrics
from sklearn import model_selection
fr... | [
"liuxiaobing_09@126.com"
] | liuxiaobing_09@126.com |
0d17243da1091d61acb70238bbf2523aab2d4797 | 0a99c6f4c1336aec02e8a63789ddf2a37f18912a | /movement.py | 9001a3577b6dac19932c25cb400a7a80ea7aae97 | [] | no_license | timothyheyer/micropython-tutorials | ac5e5ddb6295ab6bdd1d7061f020c618aa5093a8 | 21b2043b160dbce6608a5c9c6d74d1c4448fdfe7 | refs/heads/master | 2020-04-26T21:07:57.326967 | 2019-03-08T23:30:10 | 2019-03-08T23:30:10 | 173,832,911 | 0 | 0 | null | 2019-03-04T22:40:18 | 2019-03-04T22:40:17 | null | UTF-8 | Python | false | false | 333 | py | from microbit import *
while True:
reading = accelerometer.get_x()
tilt = accelerometer.get_y()
if reading > 20:
display.show("R")
elif reading < -20:
display.show("L")
elif tilt > 500:
display.show("UP")
elif tilt < 5:
display.show("DOWN")
else:
disp... | [
"theyer1@msudenver.edu"
] | theyer1@msudenver.edu |
2d73f2c0101f0e46503190c763079eb50774cdfb | ad56f922a9ce352d4761a220e2fa0d3b7c934d58 | /scripts/watch_v2.py | 065034b01218fdde24c15faa5216a6fe5bc5503e | [
"MIT"
] | permissive | isajediknight/Sleep-Is-Overrated | 19118e8c503d59c6576ff9866326720ff7b6b6d0 | 0a9e364a5d1507199f9674cf67ff18a8c22cdad7 | refs/heads/main | 2023-03-14T13:04:12.511973 | 2021-03-05T07:12:54 | 2021-03-05T07:12:54 | 334,002,303 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,971 | py | import datetime,time,os,sys
if(sys.platform.lower().startswith('linux')):
OS_TYPE = 'linux'
elif(sys.platform.lower().startswith('mac')):
OS_TYPE = 'macintosh'
elif(sys.platform.lower().startswith('win')):
OS_TYPE = 'windows'
else:
OS_TYPE = 'invalid'
# Get our current directory
OUTPUT_FILE_DIRECTORY ... | [
"luke@isajediknight.com"
] | luke@isajediknight.com |
d7f1386462f4acaaa3180b34123f6c040074cdc6 | 2770d7e78b88cc08291abd3381a2b578bbb566f0 | /www/migrations/0007_order_confirmation_no.py | e8baa4af9ee808ad4c9b1c4e760f5bad82a2f666 | [] | no_license | rileonard15/grabdeals | 8bb6d58ac7ba9265a57eebdcde15c4f8cf01235c | e13d8bd1a0b4e7b4ccca7ae91556af256c3456b1 | refs/heads/master | 2021-01-01T05:54:22.469007 | 2017-07-16T02:03:05 | 2017-07-16T02:03:05 | 97,300,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-15 08:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('www', '0006_order_transaction_id'),
]
operations = [
migrations.AddField(
... | [
"ldimayuga@phixer.net"
] | ldimayuga@phixer.net |
3c54d18e1ddff0980eaddc81064f2886f30343da | 80052e0cbfe0214e4878d28eb52009ff3054fe58 | /e2yun_addons/extra-addons/merp_picking_wave/wizard/message_wizard.py | 0e5a598da22cd2017115952c6a2839e8fa5675d9 | [] | no_license | xAlphaOmega/filelib | b022c86f9035106c24ba806e6ece5ea6e14f0e3a | af4d4b079041f279a74e786c1540ea8df2d6b2ac | refs/heads/master | 2021-01-26T06:40:06.218774 | 2020-02-26T14:25:11 | 2020-02-26T14:25:11 | 243,349,887 | 0 | 2 | null | 2020-02-26T19:39:32 | 2020-02-26T19:39:31 | null | UTF-8 | Python | false | false | 977 | py | # Copyright 2019 VentorTech OU
# Part of Ventor modules. See LICENSE file for full copyright and licensing details.
from odoo import models, fields as oe_fields, api, _
class MessageWizard(models.TransientModel):
_name = 'message.wizard'
message = oe_fields.Text()
@api.model
def default_get(self, ... | [
"joytao.zhu@icloud.com"
] | joytao.zhu@icloud.com |
175217a2e8693dc6abc2fb06bf86ba8bf7c9fb06 | 8f807e00570227aff15cadb9fb9cfbd46d5c5ab1 | /uninas/tasks/abstract.py | 45d13cc9cf1959a227e08f67a526d0632340edd4 | [
"MIT"
] | permissive | MLDL/uninas | cbe704e6e992af9f1c683f36cdbeab5919289c9b | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | refs/heads/main | 2023-04-19T06:49:23.213220 | 2021-04-26T12:20:04 | 2021-04-26T12:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,040 | py | import os
import shutil
import logging
import random
from typing import Union, List
import numpy as np
import torch
from uninas.utils.args import ArgsInterface, Argument, MetaArgument, Namespace, sanitize, save_as_json
from uninas.utils.misc import split
from uninas.utils.loggers.python import LoggerManager, log_headli... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
6ee7436f2894be4f9a4be7048a46db2c4143bcab | fde7b32ee0296b32efa1da20c19755319e12c3c0 | /func.py | 01487189af838a03899edc4ee7d3ded29037b7dd | [] | no_license | rajila/courserapython | 78728ff6ade601f23cfb39d7c0fbcbe4adc8bf99 | a739b79a8b8a1a46d90c00deb52c383e42e5b87a | refs/heads/main | 2023-04-13T08:06:57.203332 | 2021-04-27T18:32:49 | 2021-04-27T18:32:49 | 308,402,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | name = 'Ronald'
def thing():
print("Hello", name, apellido)
def surname():
apellido = 'NA'
print(name, apellido)
def pmensaje():
global mensaje
mensaje = 'Cambio desde pmensaje()'
print(mensaje)
apellido = 'Ajila'
thing() # Hello Ronald Ajila
surname()
print(apellido)
mensaje = 'Hola desde ex... | [
"rdajila@gmail.com"
] | rdajila@gmail.com |
a4ad96d39cbd7bc79a58e3f487cf55a97f4253f2 | 9590e9b1f60fdfa573049699d10f1939929d2598 | /p2_D4PG_agent.py | 6ee87dcbbc4de92b12f69c23f5ec3c29c9d531fe | [] | no_license | kelvin84hk/DRLND_P2_Continuous_Control | 463d783b6a05c53fdd116e0d87bf1022e5f5ef66 | d1fd28b321c3d0ad4dbcb2364f9d48f6a63807c3 | refs/heads/master | 2020-04-05T14:45:59.346382 | 2018-11-23T17:43:48 | 2018-11-23T17:43:48 | 156,939,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,359 | py | import numpy as np
import random
import copy
from collections import namedtuple, deque
from p2_model import Actor,CriticD4PG,Critic
from prioritized_memory import Memory
import torch
import torch.nn.functional as F
import torch.optim as optim
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
Vma... | [
"kelvin84hk@gmail.com"
] | kelvin84hk@gmail.com |
cfc1119d27d112c18ef8a4cf62a55b777689fd7e | 57775b4c245723078fd43abc35320cb16f0d4cb6 | /Leetcode/hash-table/find-words-that-can-be-formed-by-characters.py | 5d7dfafa4509bc65009744a92a838b98562774db | [] | no_license | farhapartex/code-ninja | 1757a7292ac4cdcf1386fe31235d315a4895f072 | 168fdc915a4e3d3e4d6f051c798dee6ee64ea290 | refs/heads/master | 2020-07-31T16:10:43.329468 | 2020-06-18T07:00:34 | 2020-06-18T07:00:34 | 210,668,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | class Solution:
def countCharacters(self, words: List[str], chars: str) -> int:
n = 0
for word in words:
y = chars
flag = False
for w in word:
if w in y:
y = y.replace(w,"",1)
else:
flag = Tru... | [
"farhapartex@gmail.com"
] | farhapartex@gmail.com |
7d8446981ac589f181e469108253fd61652a8b5a | cc117dd17f6cb0d69745dc85473396b4af5ce237 | /library/urls.py | 2b15a60fbfdfceb9810c2704f46ad1361a08b9c6 | [] | no_license | ewelinabuturla/library | d7cea875a050b1778307cfef96d98ca8643d04f7 | 1cf21a654276a69207a3be123924a5761e578f4a | refs/heads/master | 2023-01-07T01:25:58.048606 | 2020-11-04T09:12:24 | 2020-11-04T09:23:19 | 309,950,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """library URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"ewelina.buturla@monterail.com"
] | ewelina.buturla@monterail.com |
60b4dec8fdb07501aa7c4bef54bac369e4012a14 | e7a2f530e4440a330c1b15ab6c3c3b65cdd88829 | /alloy_site/alloy_site/views.py | 6d1c4e50cf8520152cc80b477d2df767aa1a6208 | [] | no_license | veyorokon/AlloyCoinWebsite | e7038bf75c8f1cb898d7f226cf12ecd369620db3 | b695f83575a7d08b183d950081824ae766161ef1 | refs/heads/master | 2023-03-20T12:03:16.072149 | 2017-06-15T23:42:48 | 2017-06-15T23:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('alloy_site/index.html')
context = {} # doing nothing dynamic now
return HttpResponse(template.render(context, request))
| [
"dustin.td@gmail.com"
] | dustin.td@gmail.com |
4ec79ec6e331c470cdf1d2a503b1e4f5f4ede85d | 4b2bd13df43345924417311987f4b49b461b9062 | /Strings/Length_of_Last_Word.py | 3d9e1818a601df315fa6ce5ebfa26386986d3912 | [] | no_license | EladAssia/InterviewBit | 89ced6c3b555ef6d9886f00686b9ad989509e4e5 | c4099c60aead54204bac8919ab9ffd2268977c0b | refs/heads/master | 2020-05-26T13:44:27.059301 | 2019-06-01T09:30:51 | 2019-06-01T09:30:51 | 188,251,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
# If the last word does not exist, return 0.
# Note: A word is defined as a character sequence consists of non-space characters only.
# Example:
# Given s = "Hello World",
# retur... | [
"noreply@github.com"
] | EladAssia.noreply@github.com |
181c8c1bc9b19a8196b4811b28f403b224160e94 | 608a3139f45e0aa073680223277d7d8116c144dc | /Tactics/equipment.py | bebb134171e72949b66b1dfc66ad1abe03bfd883 | [] | no_license | orez-/Orez-Summer-2012 | 540e7ff167dc54973a960acdf4589ab29ca761bd | eea27473515a7c1d45ad2752d7653f72c83f7ba9 | refs/heads/master | 2016-09-06T07:05:01.771267 | 2012-12-30T16:56:48 | 2012-12-30T16:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | import unittest
class EquipmentItem:
""" Currently just an example. """
def __init__(self, slot="head", itype="hat", name="Stylish Beret"):
self.equip_slot = slot
self.item_type = itype
self.name = name
class EquipmentSet:
def __init__(self):
self.equipment = {
... | [
"bshaginaw120@gmail.com"
] | bshaginaw120@gmail.com |
6de769645c56f7e2a167c942a0f3aee7d46c27ef | 0cff6b75ed2f951c7f4ec40141ea0e9d0b7791de | /assignment1/cs231n/classifiers/linear_svm.py | 67f39adf6f7db99689532d4ca7c4cbe5abefaedf | [] | no_license | Raiszo/cs231n | 825e9e3c3dc20aa252bfad284bc09ef33910fa55 | 46fdd99649156285106279420a2392c09b371e02 | refs/heads/master | 2021-05-08T14:04:54.504987 | 2018-04-07T00:11:20 | 2018-04-07T00:11:20 | 120,059,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,352 | py | import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of sh... | [
"E05.sek@gmail.com"
] | E05.sek@gmail.com |
8f53dfcc7f2f3305bc737e1491065fa5815c5aa6 | 660328cb139ce1f90da70dbe640df62bf79bcc61 | /infra/src/stages/train_stage_base.py | 05241ecd3f6f9cd28a02c5b6c310f1a38a27c433 | [
"MIT-0"
] | permissive | cyrilhamidechi/amazon-frauddetector-mlops-multiaccount-cdk | 0801f4b844bd9b8e80776748c1056db83c9023fb | 379def0a571452b7920a9aaa56bccc2bfb39c523 | refs/heads/main | 2023-04-23T13:49:37.413348 | 2021-05-10T18:37:41 | 2021-05-10T18:37:41 | 366,139,181 | 0 | 0 | NOASSERTION | 2021-05-10T18:25:59 | 2021-05-10T18:25:58 | null | UTF-8 | Python | false | false | 2,432 | py | # ***************************************************************************************
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
# *
# Permission is hereby granted, free of charge, to... | [
"aeg@amazon.com"
] | aeg@amazon.com |
f0343c7a7e630a11740b9a725c504c151176edf9 | a0decbed06d9e3fc7c6d0e93cf481eb25d79e6e7 | /list.py | b0870146f3dcc17bca4a32d249c7e1ebdaddaae9 | [] | no_license | TriCodeIT/Review-DataCamp-learnpython-Exercise | ab48e4c099cbeaf3cfceb58b4e2f7b11d937b076 | 4d6532377a31204db8218761ef45a651b773408e | refs/heads/master | 2022-12-15T03:27:55.474623 | 2020-09-17T02:39:37 | 2020-09-17T02:39:37 | 295,577,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | numbers = []
strings = []
names = ["John", "Eric", "Jessica"]
numbers.append(7)
numbers.append(8)
numbers.append(9)
strings.append('That is')
strings.append('easy')
# write your code here
second_name = names[2]
# this code should write out the filled arrays and the second name in the names list (Eric).
print(numb... | [
"bayu165kusuma@gmail.com"
] | bayu165kusuma@gmail.com |
9a55432ef8540a48bacea70b50892d1ab7974747 | 8e2c00e57e8a97d0051dfa1f3ba7c42109288702 | /exercise05/lettercount.py | 8ace748d6d7bc037815e32268652f5c3482339a3 | [] | no_license | camilleanne/hackbright_archive | 75dedb01ea9e4ff60f5d52b999b7ca7080e23ac4 | c67bb4aac8be21c5d7e64b8f7cfd910d198810bb | refs/heads/master | 2021-01-20T04:55:16.781229 | 2017-08-25T10:42:14 | 2017-08-25T10:42:14 | 101,394,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from sys import argv
script, filename = argv
text = open(filename)
def main():
firstletter = text.read()
lower_case = firstletter.lower()
alphabet_count = [0 for i in range(0,26)]
for char in lower_case:
if ord(char) <= 122 and ord(char) >= 97:
alphabet_count[ord(char)-97] += 1
for item in alph... | [
"cteicheira@gmail.com"
] | cteicheira@gmail.com |
755a2aaad8acce2a42387f5c5739b2381f4c4253 | 8fe6a6790013eed7ca470414c398ea4848e798c4 | /src/datasets.py | c9a59f9a12256e6e0655c82d503fc40b155f989a | [
"MIT"
] | permissive | sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data | d7aef30277076561c46d5f8a3d07985e09b9f13c | cb21c4c3e762a0184611b1a1659e7e730ef31932 | refs/heads/master | 2022-12-02T11:51:59.256715 | 2020-08-06T16:08:24 | 2020-08-06T16:08:24 | 284,756,098 | 3 | 0 | null | 2020-08-06T05:40:31 | 2020-08-03T16:53:09 | Python | UTF-8 | Python | false | false | 2,345 | py | import torch
import json
import os
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from utils import transform
class PascalVOCDataset(Dataset):
"""
Custom dataset to load PascalVOC data as batches
"""
def __init__(self, data_folder, split):
"""
:param data_folder... | [
"sovitrath5@gmail.com"
] | sovitrath5@gmail.com |
fe83eb6dfc9ba7a814faffa49e7c4d90c5063bb2 | b5cc154ecff7f8cf4c0d221a45f54839049ed755 | /upload_all_new.py | 85b3522d95aa92eaf0a8b88b933197d408105bb3 | [] | no_license | RobinL/daily | ba60bfda2135bad2138f21902b506e9041266eec | 99ac4dc47887f9b1c43cb0346c2c01b0a249ba18 | refs/heads/master | 2021-01-16T18:29:48.837206 | 2015-09-01T19:47:21 | 2015-09-01T19:47:21 | 41,631,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import os
import sys
import logging
logger = logging.getLogger(__name__)
from azure.storage import BlobService
def upload_all_new_azure(local_folder, azure_container, account_name, account_key):
blob_service = BlobService(account_name=os.getenv('ACC_NAME'), account_key=os.getenv('ACCESS_KEY'))
blob_list... | [
"robinlinacre@hotmail.com"
] | robinlinacre@hotmail.com |
894489a6d159e040d5ca697e4bb1fadf471b887c | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/_pytest/recwarn.py | 753bfd18742651b338e79169aab68ed417785218 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 7,173 | py | """ recording warnings during test function execution. """
import inspect
import py
import sys
import warnings
import pytest
@pytest.yield_fixture
def recwarn(request):
"""Return a WarningsRecorder instance that provides these methods:
* ``pop(category=None)``: return last warning matching the ... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
b891c1b843660a251c2fc198054adab99dfba8ab | 289bc4207b1c3efe3b99ac637d1ddfb88e28a5be | /Section05/debug_example.py | cdd21ee0a121d1d8cc04721135fa4e495be7ebd1 | [
"MIT"
] | permissive | PacktPublishing/-Hands-on-Reinforcement-Learning-with-TensorFlow | f5e41ed9e218f721b179e0b1d9aaa3c27957d38a | 6de9980db2bfc761524c27606e6495c093ddf516 | refs/heads/master | 2021-06-20T19:31:45.442884 | 2021-01-15T08:59:53 | 2021-01-15T08:59:53 | 145,985,316 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | import numpy as np
import tensorflow as tf
from tensorflow.python import debug as tf_debug
learning_rate = 0.01
num_epochs = 1000
train_X = np.asarray(
[3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167,
7.042, 10.791, 5.313, 7.997, 5.654, 9.27, 3.1])
train_Y = np.asarray(
[1.7, 2.76, 2.09, 3.... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
9acaba0b3609be4738ffb29eb198c1ce973a908b | 90033f709a8ea7fb1a0d8c7883ce79fd118fa188 | /proyecto_jmfc.py | 781a2b27a5612d1aa7e8843196782928044fe62a | [] | no_license | josemfc/recopilador_noticias | 73835ae7f46a99369ff878e127870caa4d1e6fbd | 8993780b97db01fae205fbf343b2aace99f994d7 | refs/heads/master | 2021-01-10T09:20:51.821190 | 2015-10-24T11:17:20 | 2015-10-24T11:17:20 | 44,862,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,826 | py | # -*- coding: utf-8 -*-
######
# Programa realizado en ubuntu con python 2.7.6
# Autor: José María Fernández Campos
######
import MySQLdb
from gi.repository import Gtk
import os
import time
# Establecemos la conexión a la Base de datos (variables globales)
Conexion = MySQLdb.connect(host='localhost', user='conan', p... | [
"josemaria_f_c@hotmail.com"
] | josemaria_f_c@hotmail.com |
2622e858d939ef2b19c0df7e2dd80c6ce51c5ae5 | 635a80be150a936392b91f6208c3077b71dceec6 | /src/train21y.py | 66228acb7b06ede61443b23996605ef013edb574 | [] | no_license | alegorov/recommendation-system | 005695547ffe47c108ce45a2edd96fcd02da2495 | 4925e800234cb7c08cde696651c3ff37d724a94e | refs/heads/master | 2022-11-23T15:47:14.620162 | 2020-07-30T19:52:42 | 2020-07-30T19:52:42 | 283,861,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | import os
import pickle
from utils import *
from catboost import CatBoostClassifier, Pool
SRC_DIR = 'data0'
ITERATION_COUNT = 2721
FEATURE_COUNT = 100
# TREE_DEPTH = 1
# BORDER_COUNT = 256
# RANDOM_STRENGTH = 1060.
ETA = 0.1
ALG_NAME = str(os.path.splitext(os.path.basename(__file__))[0].split('-')[0])
OUT_DIR = SR... | [
"alegorov@mail.ru"
] | alegorov@mail.ru |
fce9296bd1f4ccff5f24c822acf2e8a54e17c148 | e9ddef73bdd204b0bcd39061c7e74292596db53f | /kindle/spiders/rv2.py | 2edf018b935d9be3d414c79c9227151e6fef116c | [] | no_license | tsavko/amazon_reviews_sa | 10553d68d2b871a0758609f16a662a5a61d1e346 | 244677a89e99d524abc4ac687cd15b34daeba7fe | refs/heads/master | 2021-01-19T03:45:24.806450 | 2016-07-12T09:11:09 | 2016-07-12T09:11:09 | 62,804,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.contrib.linkextractors.lxmlhtml import LxmlLinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from bs4 import BeautifulSoup
from kindle.items import KindleItem
import string
class Rv2Spider(CrawlSpider):
"""
... | [
"tsavko@malkosua.com"
] | tsavko@malkosua.com |
cab5927ad3771cc324b6ece7a42f131306e8212f | c0029a349e70ccb3fd8cfa43d27d7ec8585d4620 | /Python/tests/test_Parser.py | 7a1595ec229a03a781156c4677908569e5da651c | [] | no_license | AshFromNowOn/Hansard_sentiment | 3dda7911fa730bec52d56f52262823d8e9778a1a | e055414c397bc189c6c29998a827bcfb6e72ef2b | refs/heads/master | 2022-06-05T12:09:30.294803 | 2018-05-04T12:52:46 | 2018-05-04T12:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import unittest
import Speech_Parser_BS
import os
from lxml.doctestcompare import LXMLOutputChecker
import lxml
from doctest import Example
class SpeechParserTest(unittest.TestCase):
def setUp(self):
self.Parser = Speech_Parser_BS.SpeechParser("./tests/Test Data/Source Data/Test File")
self.Parse... | [
"adn2@aber.ac.uk"
] | adn2@aber.ac.uk |
bf09d40eff5348178b19c86dd584dfa48920972e | fc640c89f22ea1768c2617c7099695246efa4733 | /ImportDashboard_ifactory_1.0.2/ImportDashboard_1_2_0.spec | 42590faaa5073da3a734c511b29b2e6848f52abf | [] | no_license | Atm999/metalwork_install | edc1c8e97aebd72a30c25807455ea0218e435353 | 232348d32033933e2bf9aa6da821106620cbe796 | refs/heads/master | 2022-11-25T12:29:16.596222 | 2020-07-31T02:20:59 | 2020-07-31T02:20:59 | 283,922,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['ImportDashboard_1_2_0.py'],
pathex=['C:\\Users\\jimcj.lin\\Desktop\\ImportDashboard\\ImportDashboard'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"904552105@qq.com"
] | 904552105@qq.com |
da8f8da092d23de7bbd0a3f08e2882be55ad0909 | ae6d415523bbcebec3c77a5622b3d4028dcbccb8 | /config/config.py | 554bafbc997f254e7703f51db37d710c6d2450d3 | [] | no_license | manzub/newzz.com | c017347b10e729fa9079d1dfb501bbd6d65c7410 | 22eefad9ffad7cab6d47864dbab10989420c95e1 | refs/heads/main | 2022-12-19T14:55:21.942580 | 2020-10-06T14:44:13 | 2020-10-06T14:44:13 | 301,212,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class DevelopmentConfigs(object):
SECRET_KEY = 'mybuzzbreakapp'
SQLALCHEMY_DATABASE_URI = "postgres://postgres:Jeddac401@127.0.0.1:5432/buzzbreak"
SQLALCHEMY_TRACK_MODIFICATIONS = False
pool_size = 32
max_overflow = 64
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
... | [
"41767916+manzub@users.noreply.github.com"
] | 41767916+manzub@users.noreply.github.com |
903a77f4a02718a688e108e05b286348b1c99a65 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/worker_master_20210128031009.py | 16168c2cf8a83eb1dfb82220fd383d845e05ab9a | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import redis
red = redis.StrictRedis(host='localhost',port=6379,db=0)
queue = list()
def str_to_bool(str):
if str == b'False':
return False
if str == b'True':
return True
return None
while True:
# check supplier product status
is_new = str_to_bool(red.get("new_product_worker1"))... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
418a1731b4494372d8177bdc9e701a72264b73da | 17d39b5f72ebc6339ad72ba3395c619dfa469c05 | /profiles_api/permissions.py | c3d3444daaaea28b8c6242043642af05cf11bafb | [
"MIT"
] | permissive | Princeshaw/userprofiles-rest-api | ca512f9378a2d8a18f979bd90f049f89d1760cc7 | cea40e5b77f0131350d963ddb0a9dc13f2c720d5 | refs/heads/master | 2022-12-03T18:46:09.387880 | 2020-08-16T16:44:57 | 2020-08-16T16:44:57 | 287,275,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from rest_framework import permissions
class UpdateOwnProfile(permissions.BasePermission):
"""Allow user to edit their own profile"""
def has_object_permission(self,request,view,obj):
"""Check user is trying to edit their own profile"""
if request.method in permissions.SAFE_METHODS:
... | [
"prince54shaw@gmail.com"
] | prince54shaw@gmail.com |
428358c36899815231cc8dc187e189a856eab801 | faa83048d2bb62c27f030942f3f038f87637c293 | /indico/migrations/versions/20200331_1251_3c5462aef0b7_review_conditions_editable_types.py | 310ac5a8b664dcc1d5e0151b411446e0f3dfcefa | [
"MIT"
] | permissive | janschill/indico | f79536db43afaf631449fef5119069af2938e76d | 068a947446eb624308d6264e34a4061807e6ff12 | refs/heads/master | 2023-06-08T07:32:33.007683 | 2021-06-18T12:42:03 | 2021-06-18T12:42:03 | 339,700,154 | 0 | 0 | MIT | 2021-06-18T12:42:04 | 2021-02-17T11:22:48 | Python | UTF-8 | Python | false | false | 845 | py | """Associate review-conditions with editable types
Revision ID: 3c5462aef0b7
Revises: 6444c893a21f
Create Date: 2020-03-31 12:51:40.822239
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = '3c5462aef0b7'
down_revision = '6444c893a21f'
branch_labels = None
depends_on = None
def upgrade... | [
"lea.tschiersch@cern.ch"
] | lea.tschiersch@cern.ch |
a582db00f0dd2b56511ec2be5cc34a6afe61582a | 03b2e2b6e28545a738e2cf2bd396e5d8518eef1d | /BalancingHelper/migrations/0010_auto_20190712_1605.py | 9558603dc8475fe926646b59da90dd914c8b6929 | [] | no_license | ChasingCarrots/GoodCompanyGamedesignDB | a1ffe4ae6138d921630ff68603b200a878748140 | 4663c394a56e64bcb2e0629bfa09c5070267e666 | refs/heads/master | 2022-05-06T05:40:48.307200 | 2022-03-24T11:59:34 | 2022-03-24T11:59:34 | 132,142,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-07-12 14:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Production', '0043_auto_20190709_1321'),
('BalancingHelper', '0009_auto_20190712_140... | [
"marc@chasing-carrots.com"
] | marc@chasing-carrots.com |
465a1a5a3d2c313b84710d1d8fab3bf3f7245d39 | f33d315a8d4cf5e0c62795e48917384bf6542bf7 | /Market/models.py | cfab823031a255bae6a8fd4c864cc4380e052f49 | [] | no_license | Heexi/demo | 858ea81051600154f53f3ac77b129009db39bec7 | 50209fa8bfdffa55b6b9e990861e29aaca93d198 | refs/heads/master | 2020-03-17T10:00:15.215098 | 2018-05-15T09:31:51 | 2018-05-15T09:31:51 | 133,496,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.db import models
# Create your models here.
class Producet(models.Model):
pass
| [
"canhuayin@gmail.com"
] | canhuayin@gmail.com |
3b147decd179451541596ab1434b617eb835b122 | 263b1997190f39b4547530ce05e889699a77a922 | /Problems/Birdbox/main.py | 79f91f52053873c2da34409ca1f7e26616faf1b0 | [] | no_license | IgnatIvanov/To-Do_List_JetBrainsAcademy | fa593a29143bf388f085d4ba95713540cd89eeca | 2bc4ed360c41ece09634e72e705dbc257e686958 | refs/heads/master | 2023-03-08T08:25:11.022569 | 2021-02-20T19:28:47 | 2021-02-20T19:28:47 | 339,089,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # create you classes here
class Animal:
def __init__(self, name):
self.name = name
class Bird(Animal):
pass
class Pigeon(Bird):
pass
class Sparrow(Bird):
pass
| [
"ignativanov1996@mail.ru"
] | ignativanov1996@mail.ru |
c84d0e45b5c85963ecda682b917c1efbf1ab79c8 | e3b2451c7693b4cf7d9511094272c3d4f47dedc7 | /BBMS_WEBSITE/Blood_bank/urls.py | 129963318736152c16ed13fa8ae54a76d78b3e0a | [] | no_license | iamyoshita/blood-bank-management-system | 31f25690371ab1a2817a362ce5b8ae68e23dedea | 36b01a3fa26ac7331895a8bfa8eae259bf7dc027 | refs/heads/master | 2020-04-17T13:37:01.889330 | 2019-01-20T04:29:32 | 2019-01-20T04:29:32 | 166,622,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django.conf.urls import url
from .import views
urlpatterns = [
#/music/
url(r'^donor/',views.all_donors,name='index'),
url(r'^receiver/',views.all_receivers,name='ind'),
#music/74/
#url(r'^(?P<album_id>[0-9]+)/$',views.detail,name='detail'),
] | [
"noreply@github.com"
] | iamyoshita.noreply@github.com |
2fd547723d832790323016a9974bfa1bfc32a049 | 0edf3192cffd37fb4fdbef735d1557b023ac9d8c | /src/collective/recipe/htpasswd/__init__.py | 06bd92693d0d74e734d9459dab39fb65b4e088ea | [] | no_license | nueces/collective.recipe.htpasswd | 4027da5b0274f6c65bc977e990871f3123c92e60 | af48f049557e2c7c411fd77eb5dbd5b0f69de6b8 | refs/heads/master | 2021-01-01T06:54:54.285805 | 2013-01-30T07:45:45 | 2013-01-30T07:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | # -*- coding: utf-8 -*-
""" collective.recipe.htpasswd
"""
import crypt
import logging
import os
import random
import string
import zc.buildout
class Recipe(object):
""" This recipe should not be used to update an existing htpasswd file
because it overwritte the htpasswd file in every update.
"""
... | [
"juan@linux.org.ar"
] | juan@linux.org.ar |
57b68e4a74604876334affc613d1d972667cfbe0 | c6431cdf572dd10f0f4d45839e6081124b246f90 | /code/lc3.py | 2ec290d3bc538c94abd8a7e80c92e02c5ff01e14 | [] | no_license | bendanwwww/myleetcode | 1ec0285ea19a213bc629e0e12fb8748146e26d3d | 427846d2ad1578135ef92fd6549235f104f68998 | refs/heads/master | 2021-09-27T19:36:40.111456 | 2021-09-24T03:11:32 | 2021-09-24T03:11:32 | 232,493,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | """
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
示例 1:
输入: "abcabcbb"
输出: 3
解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
示例 2:
输入: "bbbbb"
输出: 1
解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。
示例 3:
输入: "pwwkew"
输出: 3
解释: 因为无重复字符的最长子串是 "wke",所以其长度为 3。
请注意,你的答案必须是 子串 的长度,"pwke" 是一个子序列,不是子串。
"""
class Solution(object):
def lengthOfLongestSubstri... | [
"461806307@qq.com"
] | 461806307@qq.com |
1491d9df3950a219fbb0c85065a746b7a79d485b | ecf89f03148a8661d5235d65660820116fab76dc | /src/record.py | f389fe20d355e109bddcd0f423e328fbe15f80f6 | [] | no_license | hvvka/weather-ztd | 7f2d67a61bc5cc11cbc369402601d0f5febe40f8 | 7c1b29f1dceea8428a47cb28c48716d1925cef73 | refs/heads/master | 2020-03-12T10:51:13.005172 | 2018-11-03T19:12:26 | 2018-11-03T19:12:26 | 130,582,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import math
class Record:
def __init__(self, date, time, station_id, pressure_marker, lat, lon, x_coord, y_coord, aerial_height, wrf_height,
temperature, humidity_relative, pressure):
self.date = date
self.time = time
self.station_id = station_id
self.pressure_mar... | [
"hania.grodzicka@gmail.com"
] | hania.grodzicka@gmail.com |
3b7bc05b6cd8113f61a51701e14268638b535a1c | da958642910dc99cadb49a8e48319b7d871679fc | /command.py | 70b3b70e25978b9f131db141f116d721d81043fb | [
"MIT"
] | permissive | llou/jmvolume | 9e5b84910e334ddfd4753e2ea69e5058167f09c3 | ccaa165e65c09c1aa1ff514a29b0a071188bcab4 | refs/heads/master | 2022-06-01T08:57:15.983293 | 2020-05-01T11:05:24 | 2020-05-01T11:05:24 | 237,469,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #! /usr/bin/env python
import sys
if len(sys.argv) > 1:
code = int(sys.argv[1])
else:
code = 0
text = sys.stdin.read()
sys.stdout.write(text)
sys.stderr.write(text)
sys.exit(code)
| [
"yo@llou.net"
] | yo@llou.net |
dff696a42a1813155fc8fb54de635c1f8f93b539 | 774616d654af798cefdfba85662c98b79d938474 | /Rekog/venv/bin/rst2s5.py | a81547e9cb92f492dcb595235195231532dceb3f | [] | no_license | GreCar05/python | c3a1585940f5d6c8af11172441e7be3b73d19332 | cd5ee27421aff8659f5f02d4c0cce382d3cdb4b5 | refs/heads/main | 2023-03-03T09:47:11.031012 | 2021-02-16T12:12:13 | 2021-02-16T12:12:13 | 339,151,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/home/oficina/PycharmProjects/Rekog/venv/bin/python
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 template system.
""... | [
"gregoricar05@gmail.com"
] | gregoricar05@gmail.com |
83503bae694f4bdf6c82b15e366f28e0066e3537 | 93e9bbcdd981a6ec08644e76ee914e42709579af | /depth-first-search/323_Number_of_Connected_Components_in_an_Undirected_Graph.py | 4009e47f32f8f461cc7dbd9fe5c9d094309c835b | [] | no_license | vsdrun/lc_public | 57aa418a8349629494782f1a009c1a8751ffe81d | 6350568d16b0f8c49a020f055bb6d72e2705ea56 | refs/heads/master | 2020-05-31T11:23:28.448602 | 2019-10-02T21:00:57 | 2019-10-02T21:00:57 | 190,259,739 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/
Given n nodes labeled from 0 to n - 1 and a list of undirected edges
(each edge is a pair of nodes)
write a function to find the number of
connected components in an und... | [
"vsdmars@gmail.com"
] | vsdmars@gmail.com |
509601af0ae5337e7f8b9fc2f49be25dda28dc54 | 4acc08d2c165b5d88119df6bb4081bcfaca684f7 | /PythonPrograms/python_program/multiple_matrix.py | c88486026ddb4fe56be352d8cd4c3a355b0923f6 | [] | no_license | xiaotuzixuedaima/PythonProgramDucat | 9059648f070db7304f9aaa45657c8d3df75f3cc2 | 90c6947e6dfa8ebb6c8758735960379a81d88ae3 | refs/heads/master | 2022-01-16T04:13:17.849130 | 2019-02-22T15:43:18 | 2019-02-22T15:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Python Program to Multiply Two Matrices ????
l = [[1,2,3],
[2,3,4],
[3,4,5]]
m = [[3,4,5],
[5,6,7],
[6,7,8]]
for i in range(3):
for j in range(len(l)):
sum = 0
for k in range(len(m)):
sum=sum + l[i][k] * m[k][j]
print(sum,end=" ")
print()
'''
output ==
l = [[1,2... | [
"ss7838094755@gmail.com"
] | ss7838094755@gmail.com |
05075495165fc4ee51bdc62ea55beb4c40e7ae87 | d69e59155c7eb8b692feb927bf12d13260d50ebb | /Admin_app/models.py | d6a0f3b2b7e70f67a2faebc42d4ecd1e3cfafd5e | [] | no_license | susmitha009/Admin-Panel | 8ee905150c84c6a197d77c0ddb03d3c7c81c3de4 | 4eddcfe60f95c07e79d57be7de2fb1ae2f155cc3 | refs/heads/master | 2023-06-22T01:16:14.085588 | 2021-07-17T10:42:54 | 2021-07-17T10:42:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | from django.db import models
from django.utils import timezone
from datetime import datetime,date
# Create your models here.
class rider(models.Model):
first_name = models.CharField(max_length=128)
last_name = models.CharField(max_length=128)
email = models.EmailField(max_length=254,unique=True)
created... | [
"gurramsusmitha09@gmail.com"
] | gurramsusmitha09@gmail.com |
a7722afc93933b786c47f0b3f10cfced51515f8b | 13bc12cadea3f2b34e9710e773f77fcc6cf96927 | /password_generator/settings.py | fe470eb8f0fc34eba3ed766f754ca41d7ec5256f | [] | no_license | henryyeh802/django-password-generator | 161e45c6d1c0271918fc81f3acfb7b3dd991f78e | 6399e98342c329769002dcd14e23d6065a73d4ba | refs/heads/master | 2022-04-23T23:17:20.793177 | 2020-04-29T19:51:40 | 2020-04-29T19:51:40 | 260,029,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for password_generator project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"henryyeh802@gmail.com"
] | henryyeh802@gmail.com |
01d1c1b4d4b921bf5423193b3bfd373e832d9242 | 9df4063297cfe437bf51d7789b2169820a328c45 | /REQUEST/tycloudrds/request/ModifySQLCollectorPolicyRequest.py | 580bc18945aec15467d91da6c2e6c2ae1c50cef9 | [] | no_license | jiangchengzi/DBRDS | 4b869a32910ca78d4e88530c62f646308e3e2173 | 385287a2caca9a3eaab35b2c138214a6cee82c99 | refs/heads/master | 2021-01-11T12:02:54.878532 | 2017-03-06T02:44:52 | 2017-03-06T02:44:52 | 76,580,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1025416045@qq.com"
] | 1025416045@qq.com |
7430485eeff81f0ac00f6ea969fd08c817c9590f | 7c4b911a93e00f5e86f2ad077948a2bb0d7230e2 | /newShravan.py | e79e65944f044676fdf99fdf7058dc8ff23b77de | [] | no_license | ShravanKumar-Technology/personalPython | adfe781803cc3571e9f02921bcbce45ce9ef74ce | db48a11ae18b63865af74ad33b8f7c8a7ffad671 | refs/heads/master | 2021-06-30T15:28:14.633003 | 2017-09-20T17:22:59 | 2017-09-20T17:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #!/usr/bin/python3
import random
for i in range(0,100):
print(str(i)+"."+str(random.randint(0,10000)))
print("shravan")
for i in range(0,100):
print(str(i))
new = 44
old = 55
print(str(new))
print(str(old))
new,old = old,new
print(str(new))
print(str(old))
| [
"shravan.theobserver@gmail.com"
] | shravan.theobserver@gmail.com |
d65784b7ec0cdad3d8e2ac0b3c31ebe3e21c263e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_embassy.py | 8c0f88ca692520c38a075b1fcc908e831280b60a | [
"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 | 397 | py |
#calss header
class _EMBASSY():
def __init__(self,):
self.name = "EMBASSY"
self.definitions = [u'the group of people who represent their country in a foreign country: ', u'the building that these people work in: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.spe... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1dedcdb0e23a3b98af243d75c56342783d85e41a | c187465dcc0004e2931de90764cf8ea4657d4355 | /build/ros_controllers/imu_sensor_controller/catkin_generated/pkg.develspace.context.pc.py | 414c3e3e2472fe78aa7e3ab09310110069a6f4e8 | [
"MIT"
] | permissive | team-auto-z/IGVC2019 | 4550e4a6c31dd6f4f7877618ae2fedc3daac9ea7 | 047e3eea7a2bd70f2505844ccc72ae1a2aaa6f2d | refs/heads/master | 2020-04-22T05:13:59.939647 | 2019-08-29T16:40:41 | 2019-08-29T16:40:41 | 170,152,781 | 1 | 3 | MIT | 2019-09-26T17:20:22 | 2019-02-11T15:30:16 | Makefile | UTF-8 | Python | false | false | 660 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ajinkya/catkin_ws/src/ros_controllers/imu_sensor_controller/include".split(';') if "/home/ajinkya/catkin_ws/src/ros_controllers/imu_sensor_controller/include" != "" else []
PROJECT_CATKIN_DEPENDS... | [
"ajinkyaprabhu97@gmail.com"
] | ajinkyaprabhu97@gmail.com |
3b3b3bf3b3597fb177e2f34793128b23a711841e | 25210643406339fcd3383ecc355ed6c05fb0ad93 | /python/sparktestingbase/test/helloworld_test.py | 8d0b014ea20fa9b2dc2874eaaf41021813e58a24 | [
"Apache-2.0"
] | permissive | juanrh/spark-testing-base | f685e8beb3626f39459457de95ff295ac3348615 | afaf6fe11f22b7af9492a202dbfd2d62208f1995 | refs/heads/master | 2021-04-26T07:46:03.614212 | 2015-06-23T13:51:32 | 2015-06-23T13:51:32 | 31,416,073 | 0 | 0 | null | 2015-02-27T11:17:53 | 2015-02-27T11:17:52 | null | UTF-8 | Python | false | false | 1,132 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"holden@pigscanfly.ca"
] | holden@pigscanfly.ca |
9da728a81b1289dd5b1b883deefb81f5cce0ee88 | f1932b5fb8f629015b4deeb4dd76255ef3ffc609 | /Scheme Interpreter/TestCases.py | b692923b4fcec15a5abd5a5ddfb5453ab8cd8733 | [
"MIT"
] | permissive | VladiMio/VladiMio_Toys | a54754319866693f99b0c0df0e5a06c477cf5592 | 8c383f6ccd2628c109ca884a51e74a348d565cc8 | refs/heads/master | 2021-01-24T00:02:34.793213 | 2018-02-28T13:40:40 | 2018-02-28T13:40:40 | 122,745,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import Scheme
cases = {
"(+ 1 2 3 4 5)": 1 + 2 + 3 + 4 + 5,
"(- 1 2 3 4 5)": 1 - 2 - 3 - 4 - 5,
"(* 1 2 3 4 5)": 1 * 2 * 3 * 4 * 5,
"(/ 1 2 3 4 5)": 1 / 2 / 3 / 4 / 5,
"(define mkact (lambda (balance) (lambda (amt) (begin (set! balance (+ balance amt)) balance))))": None,
"(define act1 (mkact 1... | [
"jasper1992ws@hotmail.com"
] | jasper1992ws@hotmail.com |
20afedb1b001619332e9d7e143861e7ec13ba57a | 45e97bd0c32042504052342bc1ae4e66a30d4d9a | /corepy/chapter13/demo5-trackInstance.py | 34e5d0f1d27f10ca12c701e54330defcbeef7adc | [] | no_license | vonzhou/py-learn | acf20c5183bff9788fcae9e36abdcd6f9bc553da | f0794164105dddbdffe082dfc90520f8778cbec3 | refs/heads/master | 2016-09-10T01:29:30.551541 | 2015-12-08T08:53:46 | 2015-12-08T08:53:46 | 27,669,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py |
''' P343'''
class InsCnt(object):
count = 0 #count是一个类属性
def __init__(self):
InsCnt.count += 1
def __del__(self):
InsCnt.count -= 1
def howMany(self):
return InsCnt.count
c1 = InsCnt()
print c1.howMany()
c2 = c1
print c2.howMany()
c3 = InsCnt()
print howMany()
del c1
del c2
print howMany()
del c3
... | [
"vonzhou@163.com"
] | vonzhou@163.com |
4b6649d161b7f8d7d13610000ae29e0eb231be22 | 13d3ee90ee7ae4cb0e2e7bb3787d448c2ab8335e | /secondPython.py | cd1d06864596390d6010ce72ed051cdab3d1a29f | [] | no_license | kevf92/Test_Repository | ffe3f77fed76ffd4c4af97621c3efc4783c5419e | c61d2cc34ab798e887a2a5bb35fb6448dfe7fd71 | refs/heads/master | 2022-12-02T17:32:13.211413 | 2020-08-20T19:39:17 | 2020-08-20T19:39:17 | 289,077,315 | 0 | 0 | null | 2020-08-20T18:27:42 | 2020-08-20T18:14:57 | Python | UTF-8 | Python | false | false | 22 | py | print("Child Python")
| [
"noreply@github.com"
] | kevf92.noreply@github.com |
bf7758fdfb1ae881bf670bfce99ebcafd8b320d2 | 04f4b5c2e6b283d9ef7198425c3bf926623554d2 | /Heliocentric/heliocentric.py | 8ecd6f948d455061e7e2096966d986b5dbbded88 | [] | no_license | gabisala/Kattis | a00e96aab4dbe8033e0e110f5224170b8ad473a3 | 686817fb90b39e0126b4c8b0280f8a1f10c294ee | refs/heads/master | 2021-07-07T11:53:30.931347 | 2017-10-03T15:40:07 | 2017-10-03T15:40:07 | 105,471,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py |
# -*- coding:utf-8 -*-
import sys
# Read data
data = []
for line in sys.stdin:
data.append(map(int, line.split()))
def simultanously(earth, mars):
"""
Count how long it will take until both planets are on day 0 of their orbits simultanously.
:param earth: int, day earth orbit
:param mars: int,... | [
"noreply@github.com"
] | gabisala.noreply@github.com |
943dcb14ae7fae3a2b249ac14791e8426eeb8f08 | 3fde00076201d4c0ca3e31681b050a9de053bb5c | /2016/task_1/process_zips.py | 1f494a68a967ba8cf8d172da316906d8248f48a8 | [] | no_license | atuchak/interviews | 93e8b7b1786b4c13c222d3984bf85ef7e4c6fdd5 | 31f52d3e5b7ef9f6e2e3dd9b804ded58665f3598 | refs/heads/master | 2020-05-25T17:14:40.219658 | 2018-10-05T15:55:13 | 2018-10-05T15:55:13 | 84,949,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | import csv
import os
import logging
import multiprocessing
import queue
from multiprocessing import Lock, Value
from lxml import etree
from multiprocessing import Queue
from multiprocessing import Process
from zipfile import ZipFile
OUTPUT_DIR = '/tmp/ngenix'
CONCURRENCY = multiprocessing.cpu_count()
logging.bas... | [
"anton.tuchak@gmail.com"
] | anton.tuchak@gmail.com |
b6734e8581b07bdd28ff0446fc0acb52c83c0fa7 | e103af3b6d42ef6782ed34526bdeffa36d56776b | /solver.py | 1ff78419b5dc07b7fc35220dc54c48740277f928 | [] | no_license | Alva-2020/mipae | b9b294f1cf91583f7645c80e5d72db0f103fbdc3 | b0dd410305ab1162193f2e80a3c7d77665080e5d | refs/heads/master | 2022-12-30T06:41:28.803783 | 2020-10-15T13:40:21 | 2020-10-15T13:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,461 | py | import os
import glob
import math
import sys
import itertools
import random
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributions as dist
from torch.utils.data import DataLoader
from torch.utils.tensorboard import SummaryWriter
import numpy as np
import ... | [
"paditya.sreekar@research.iiit.ac.in"
] | paditya.sreekar@research.iiit.ac.in |
c67609483dcf9c2fa41c88e4b9d12dd853df14eb | 00aa9875275ac00f978b388fa32bf241aee4b458 | /samples/vsphere/contentlibrary/contentupdate/content_update.py | d65ee6ec054e2e8481823eab6b00f26463c91225 | [
"MIT"
] | permissive | Onebooming/vsphere-automation-sdk-python | 3898404cc10b5bec284933d2beda9e18052346fc | 7576b3abb76cc03947eb1e13c6015b35574a704f | refs/heads/master | 2020-09-21T09:15:50.511280 | 2019-11-25T09:56:05 | 2019-11-25T09:56:05 | 224,751,817 | 1 | 0 | MIT | 2019-11-29T01:01:25 | 2019-11-29T01:01:25 | null | UTF-8 | Python | false | false | 8,086 | py | #!/usr/bin/env python
"""
* *******************************************************
* Copyright VMware, Inc. 2016. All Rights Reserved.
* SPDX-License-Identifier: MIT
* *******************************************************
*
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
* WARRANTIES OR CONDITIONS OF ... | [
"het@vmware.com"
] | het@vmware.com |
2b3e3404a0d221b47e9e46a5d715af0f6a0449be | 25b6a0a9d5e9c17fcf9164444bfbde411a313e8e | /pendu.py | 4eeffcb8616257a5b6ae90ea2b0ad55272a89dde | [] | no_license | kamelh1972/Pendu.Kamel | 95dacbd147b538c352deff352a722247112bfc80 | e608e3c9eddac8fadbe4548eff3002a5ada3da57 | refs/heads/master | 2020-09-16T13:18:07.934177 | 2019-12-10T14:02:41 | 2019-12-10T14:02:41 | 223,782,121 | 0 | 0 | null | 2019-12-10T14:02:43 | 2019-11-24T17:23:37 | null | UTF-8 | Python | false | false | 710 | py | from fonction import *
import donnee
nom = input("Entrez votre nom:\n")
global gamePlayer
global gameScore
gamePlayer = nom
gameScore = 0
win = False
check_players(nom)
word = choose_word()
hidden_word = hide_word(word)
tentative = donnee.chance;
while tentative > 0 :
show_hidden_word(hidden_word)
lettre =... | [
"kamelhammiche44@gmail.com"
] | kamelhammiche44@gmail.com |
4f2721593ab30e86c52f68296de1168474b86e3c | 767b70f3e9ba11751a459b31547b1c6e5a50081f | /authenticationSystem/migrations/0008_auto_20210518_2324.py | 38246bb0eb9c834f0d6f70c287dc47555f1f3a77 | [] | no_license | RidwanShihab/marketms | 7dd226e29a05c8363d2dbb772567707ba4f3e01a | 83949018bfa01509416dbd41a3b37e8769401f71 | refs/heads/master | 2023-04-26T09:39:20.539793 | 2021-05-18T19:03:18 | 2021-05-18T19:03:18 | 358,003,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 3.1.7 on 2021-05-18 17:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('authenticationSystem', '... | [
"ridwanshihab14466@gmail.com"
] | ridwanshihab14466@gmail.com |
a9d04750663a66935108a98236d9113d6c7fc08d | fcf225fba6352a7492acc416718c3f1baad923d7 | /BeerGraphsForAllData.py | 6a9829ace70b4ff43b9185d4bc320d0cf0a08285 | [] | no_license | sleavor/Beer-Project | 45797123bcacc7d48de64f7037da9c78612e2329 | 512297a3870b14734ecca099e5e351e83d1eab0d | refs/heads/master | 2022-07-04T17:17:58.401598 | 2020-05-09T23:31:17 | 2020-05-09T23:31:17 | 262,675,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 22:48:26 2020
@author: Shawn Leavor
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('Project\Beer\data.csv', na_values=['','0'])
df = df.dropna(how='any',axis=0)
df = df[df.abv.str.contains("%")]
for num in range(1,25):
... | [
"sleavor@yahoo.com"
] | sleavor@yahoo.com |
3f9d6d3b36322800bf1fdd90291314003b1c58f4 | af42c50f185478d59fbb66ff84dddbbaab449c39 | /tests/visualize/test_show.py | d623d28d8210a84846cac139f0068504ffe31ce1 | [
"MIT"
] | permissive | keisuke-umezawa/chutil | 04eac71610d4c7711da75dabf670e93790e9f4df | df60440983c38a6dbbe4710019bcec5e83331904 | refs/heads/master | 2020-04-05T17:23:24.342601 | 2018-11-11T14:54:49 | 2018-11-11T14:54:49 | 157,058,035 | 1 | 0 | MIT | 2018-11-11T13:44:22 | 2018-11-11T07:41:29 | Python | UTF-8 | Python | false | false | 163 | py | import chutil.visualize.show as module
def test_show_test_peformance():
pass
def test_show_graph():
pass
def test_show_loss_and_accuracy():
pass
| [
"noreply@github.com"
] | keisuke-umezawa.noreply@github.com |
6da3f1090aaf84be9df93d0303e20872eb003fb0 | be2f1b5a43379d70e800e0aa2f25c70bbfeca86b | /dosirak/migrations/0014_auto_20160504_0430.py | dab458b4dd732fa493f831230ca91cd9ffff47e5 | [] | no_license | drexly/tongin | 2aab20d49d84662a82e7f9023194490af6b5b06e | d2dcb571c2100e260d93294710997fea3c73ecb3 | refs/heads/master | 2021-06-28T21:23:21.056502 | 2017-01-17T03:00:57 | 2017-01-17T03:00:57 | 58,129,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-05-04 04:30
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('dosira... | [
"KimJuhyeon@gimjuhyeon-ui-Mac-Pro.local"
] | KimJuhyeon@gimjuhyeon-ui-Mac-Pro.local |
e71590e32c9544d472276f2fc59eddcc0e2ba366 | c06912c147874c0c0c79412cfa11ba42fb1bbf39 | /python_scripts/check_HIT_submissions.py | 56ab55e990f01fd1e9dbf261d015f3bdf5c4ded3 | [] | no_license | tongliuTL/active_learning_crowds | defa1ca490fcc8f714f67426459312d5233191c7 | 3dc9abda731be65fde7bae35724f09dacae3fba4 | refs/heads/master | 2021-10-12T04:21:10.007342 | 2019-02-01T20:13:19 | 2019-02-01T20:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | import sys
from create_compensation_hit import get_client
from helper_functions import get_timestamp, get_log_directory
from pymongo import MongoClient
from collections import defaultdict, OrderedDict
MAX_ASSIGNMENTS = 5
SETS_OF_LABELS = 12
def read_HITs_log(file_name):
hit_id_list = list()
with open(get_log... | [
"tongliu0314@gmail.com"
] | tongliu0314@gmail.com |
0e587c315617d75d7578f397cb8112c8653d43bd | 4f7e258073b2688a2dd067d9f6d0947f0b5330f9 | /Project5/Python/get.py | 6b248c0c82135ba8c2d3d494e336ad2051661434 | [] | no_license | ajcletus500/College-Projects | 5ebc1c7f409dc2e757c7f4ca7fe20537681191ef | de7a73e13b203bc0cf93845f2b39d6be8ff5eac0 | refs/heads/master | 2021-01-01T16:40:57.565566 | 2017-07-21T01:40:25 | 2017-07-21T01:40:25 | 97,882,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import sys
import os
import glob
import re
a=1
dir_path = "/mnt/c/Users/hp/OneDrive/GMU_Notes/Sem4/611/Project/two_core/Results/"
file_list = glob.glob(dir_path+'*') #use standard *NIX wildcards to get your file names, in this case, all the files with a .txt extension
file_list.sort()
#print(file_list)
b=1
#c=filenam... | [
"ajcletus500@gmail.com"
] | ajcletus500@gmail.com |
8497d01d1f5416935e74935fb46785eb6e1d41b2 | 572efedf46f32fd65802433e9464f18713a8c06b | /AutoComplete/wsgi.py | c404762a04b1adeffdabdf90afbd2d0afbed34a5 | [] | no_license | kumarshubham77/AutoComplete | e17dca3346f9a668570931e7e48f54cf6afb3355 | 884ed4cdcd996cee3f3564b734811e36e91896c7 | refs/heads/master | 2020-05-02T19:19:09.959715 | 2019-03-28T14:09:15 | 2019-03-28T14:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for AutoComplete project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"noreply@github.com"
] | kumarshubham77.noreply@github.com |
fb0b82ee3ca997fabc248162d255f49ad5f9061c | 34294f487c203fcbc730b27567ed76f85d7b26d1 | /public_html/betterchecks_app/migrations/0006_auto_20201102_1644.py | 2955e8921bb89b3077cc0acbdc5ecf7083326d3a | [] | no_license | KeitaForCode/betachecks | 917293cbbf42b168a994233dc3b9abb4ef87e3a5 | f626ac5050718b591ade5008c35f3fbf33fa05fe | refs/heads/main | 2023-02-06T10:31:24.441075 | 2020-12-29T22:13:52 | 2020-12-29T22:13:52 | 325,387,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 3.0.3 on 2020-11-02 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('betterchecks_app', '0005_auto_20201101_2134'),
]
operations = [
migrations.AlterField(
model_name='contacts',
name='... | [
"betachecksafrica@gmail.com"
] | betachecksafrica@gmail.com |
441133699c06db56ac4b763ddf70f219012d95bb | ba88e2c659b3ca58deb97e78c69b1c0c1cb73bb6 | /example_jks/generate_examples.py | 047447acff5afb46d5238b664118b2662b061589 | [
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | floyd-fuh/JKS-private-key-cracker-hashcat | 349ff59954c608dbaa24555efc9cab421bd8f103 | 6b2b557ec81745d0b43f8466f1619ef4f2c7019d | refs/heads/master | 2021-04-12T10:53:00.449891 | 2020-08-10T12:48:13 | 2020-08-10T12:48:13 | 94,535,141 | 189 | 22 | null | 2020-09-21T12:32:56 | 2017-06-16T10:50:29 | Java | UTF-8 | Python | false | false | 2,031 | py | #!/usr/bin/env pypy
#By floyd https://www.floyd.ch @floyd_ch
#modzero AG https://www.modzero.ch @mod0
import os
def executeInShell(command):
import subprocess
process = subprocess.Popen(command, shell=True)
process.wait()
for passw in ["123456", "1234567", "12345678", "123456789", "1234567890"]:
# RS... | [
"tobias@modzero.ch"
] | tobias@modzero.ch |
0fac751aa2481ed3243e8b4ecef04a4bc1c5f709 | 1d0c89ecaa7598e5cb6a26a20a1bdd5f51d60123 | /apps/venta/views.py | 4d70ba59937d3b4dd2807cc2520c3a70b605026b | [] | no_license | chrisstianandres/american_audio | a1fee70e798a151fcbfd492ed75878a8524c783b | ee31f01af4212cc2484188003900648064811fcb | refs/heads/master | 2023-02-01T02:36:59.824789 | 2020-12-09T23:17:45 | 2020-12-09T23:17:45 | 307,203,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,972 | py | import json
from datetime import datetime
from django.db import transaction
from django.db.models import Sum, Count
from django.db.models.functions import Coalesce
from django.http import JsonResponse, HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from djan... | [
"Chrisstianandres@gmail.com"
] | Chrisstianandres@gmail.com |
9265912218e15a8cb1439ef7f525286b3276040d | c532eea91e84f58f4ba57c27c6c24046498bde22 | /HelloPython/day02/Myfunc04.py | 2b34c220385a7c4d1454354f91fe57294038825a | [] | no_license | seaweedy/python | b9010f3277da09311a6d128d7f992874137c7c82 | 3f966223e19011318ed45308e89afe7d217e6ea4 | refs/heads/master | 2023-01-01T17:53:58.845336 | 2020-10-21T08:10:30 | 2020-10-21T08:10:30 | 301,929,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | def increase(a):
a +=1
def increaseRef(a):
a[0] +=1
a = 1
b = [3]
print(a)
print(b[0])
increase(a)
increaseRef(b)
print(a)
print(b[0])
| [
"ismh5279@gmail.com"
] | ismh5279@gmail.com |
05cd410ea1feb9e5ce69d50837df1634de6f31ed | d9031bfff990457e53470d8e578314980024cfe8 | /fluent_python_eg/2、数据结构/2.2.1列表推导.py | 616a616d2ccf9968eb7f7347d69d328069632f6b | [] | no_license | L316645200/_Python | f2d69772b2769b73061d3c5c8e957214a4ad9dfd | ca08b86da4e97df8e0f6e704c287f4fdb22f8675 | refs/heads/master | 2023-06-25T07:34:07.629789 | 2021-06-30T03:28:02 | 2021-06-30T03:28:02 | 249,311,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | symbols = '$¢£¥€¤'
codes = [ord(_) for _ in symbols]
print(codes)
codes = [ord(_) for _ in symbols if ord(_) > 127]
print(codes)
beyond_ascii = list(filter(lambda c: c > 127, map(ord, symbols)))
print(beyond_ascii)
x = 'ABC'
dummy = [ord(x) for x in 'ABC']
print(x)
storage_type = (('10', '容量型本地盘'),
... | [
"linjq@kaopuyun.com"
] | linjq@kaopuyun.com |
8eb17eeafb990dd19724e7110b8af45955b7f221 | aa37b7aec635fd62707c90a7b536926e20cddaef | /test/functional/test_runner.py | 59b3e989a6b2fc8b11611cac66ce1fcd22c7d4aa | [
"MIT"
] | permissive | planbcoin/planbcoin | d85b9345998c9a2221ea0b44ed0dec86c7d3dc1e | 7d132eebdce94f34ca2e74278b5ca09dc012d164 | refs/heads/master | 2020-12-02T20:58:31.167685 | 2017-08-06T17:57:51 | 2017-08-06T17:57:51 | 96,237,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,194 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The PlanBcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
forw... | [
"ysoheil@gmail.com"
] | ysoheil@gmail.com |
a22053a94d32942f8b2f31f59b1e33414a43912f | bdaff7d03ad5278bdb57c4894cf2678e4db7082d | /arquivos.py | e61677c903fdd66e5c540720fe9535b06c9d1f53 | [] | no_license | Dsblima/python_e_mysql | aff68d8b401135fd28cbf3be676982fc9dc312fd | 83b0d6436f469d39da6166295e2277dd7f6e331b | refs/heads/master | 2020-06-30T06:21:59.317363 | 2019-08-24T22:23:59 | 2019-08-24T22:23:59 | 200,754,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """
- PARA ABRIR UM ARQUIVO arquivo = open(nomedoarquivo.txt,modo)
- O MODO PODE SER (r,a,w,a+,w+,r+)
- PARA LER O CONTEÚDO DE UM ARQUIVO PODEMOS USAR AS FUNÇÕES:
read() - lê o arquivo inteiro
readline() - lê uma linha do arquivo
readlines() - lê o conteúdo inteiro arquivo e retorna em um array de strings
"""
meuArquiv... | [
"dsbl@ecomp.poli.br"
] | dsbl@ecomp.poli.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.