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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ff7977834049b320b320be7cf6cd2b24ef75d81 | 7c6c4f2f19191596611ebe5e1485ce0d519769eb | /sukha_tools/gputx.py | c878fd4d3302b5eca251902f22067eaff319b318 | [] | no_license | mindest/sukha-tools | 240e6084c096fb64e6cc2f0fa0af984d8d497811 | 7af8f38a64a5770c1a9579fd8de6d17331043a76 | refs/heads/master | 2023-07-10T22:20:12.477387 | 2021-08-02T19:05:29 | 2021-08-02T19:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | import torch.cuda.nvtx as nvtx
try:
import ctypes
roctx = ctypes.cdll.LoadLibrary('/opt/rocm/lib/libroctx64.so')
# roctx.roctxRangePushA(label.encode('utf-8'))
# roctx.roctxRangePop()
roctr = ctypes.cdll.LoadLibrary('/opt/rocm/lib/libroctracer64.so')
# roctr.roctracer_start()
# roctr.ro... | [
"sukha@microsoft.com"
] | sukha@microsoft.com |
aebb4fdcce38879923be7d511c2aa5c144adf0c2 | f8703057540c76645a573fba0833cadc1f39eb67 | /StrukturyDanychIAlgorytmy/scripts/python_decorators.py | e59a31c67b2f15d481490d9c17a5cf0488dac4c8 | [] | no_license | kwasnydam/python_exercises | 88362d57307862fc5b97fec0996c945a8ae98dc9 | 54fc11a42cb6e28c8a5040c8b3d0e5a018d4b83e | refs/heads/master | 2021-04-29T13:08:27.743902 | 2018-03-19T14:23:09 | 2018-03-19T14:23:09 | 121,744,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | '''
@author: Damian Kwaśny
decorators used to alter the functionality of functions (xD)
Where and why use fnction decorators?:
1. logging -> keeping track of how many times a fucntion was called
and what arguments it received
2. timing how long a function runs
'''
from functools import wraps
#above lib is needed to pre... | [
"damiankwasny95@gmail.com"
] | damiankwasny95@gmail.com |
2fe5243aa2bc7036ff2261a4c53a86d9d40e76fa | 5a61a04e059f2a12eb62a4ede635a75fe5ac1fd3 | /python-social-auth/social/apps/webpy_app/models.py | 71be9975a7b46f4012f998bc57a1d6f7e9b7efeb | [
"Python-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | blendedlearn/blended_learning | bb44abb419e49274fa5378ec5e648ac85b15d012 | f4e6d41e56921d580e8f92e9b3130049511204b5 | refs/heads/master | 2016-09-05T22:48:51.005440 | 2015-09-17T08:31:36 | 2015-09-17T08:31:36 | 42,153,739 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | """Flask SQLAlchemy ORM models for Social Auth"""
import web
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.schema import UniqueConstraint
from sqlalchemy.ext.declarative import declarative_base
from social.utils import setting_name, module_member
fr... | [
"zhangtianyi@xuetangx.com"
] | zhangtianyi@xuetangx.com |
90cbcce58f97712d1e3f7fc2e3d6c380e5ab5322 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1297.py | 912aefed3231ca5dcfeaa268881698da8075b3bd | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | # qubit number=5
# total number=52
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
322938dd6c9b0b54549396c63f4499fdeedfbc05 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/System/Threads/queuetest3.py | e4adebe5cb3b063d6f3df576b560272064d26fb8 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | "same as queuetest2.py, but uses threading, not _threads"
numconsumers = 2 # how many consumers to start
numproducers = 4 # how many producers to start
nummessages = 4 # messages per producer to put
import threading, queue, time, sys
safeprint = threading.Lock() ... | [
"zui"
] | zui |
8d9611a930de81afeaa8dd94f21def96e3680dd1 | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/zope/interface/interfaces.py | 7c6dbead34802890c6810649f6ae8057bb64d734 | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/alex/myenv/zodiac/eggs/zope.interface-4.0.5-py2.7-linux-i686.egg/zope/interface/interfaces.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
a7932cda3f2ed71987c90b00b6171041ef5f3dee | fb6105ef929acbbbb983178d2184cc9451a7f7e7 | /calculo_simples.py | d4aa1a0b9c3f81b27dc6dfff6b9c2aa0d437bc63 | [] | no_license | vinismarques/codigos-python | 1bd0b35db8732bf1bb8a47ade7eb6cd7e2a3b3fa | 4a0eafa834c9402e3eeb55bd39d5333d89bee542 | refs/heads/master | 2020-04-11T14:20:45.926279 | 2018-12-31T20:54:23 | 2018-12-31T20:54:23 | 161,851,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | peca_1 = input().split()
peca_2 = input().split()
preco = 0
for pi, p in enumerate(peca_1):
peca_1[pi] = float(p)
for pi, p in enumerate(peca_2):
peca_2[pi] = float(p)
preco = peca_1[1] * peca_1[2] + peca_2[1] * peca_2[2]
# preco = peca_1
# print(type(peca_1[0]))
print("VALOR A PAGAR: R$ {:.2f}" . format(p... | [
"vinicius_marques@live.com"
] | vinicius_marques@live.com |
965859c1454a406d54e72a9fe400773760e45a30 | 8e74827f547d5d111ffbb82c43bba39306716db7 | /supreme_buy_mobile.py | 8f175225001c843b565fa36cf3722bd4270ac3ee | [] | no_license | jamie-meyer/Supreme-Bot | 739667391a8f2a03bf3fd2a2c0cc613a74df056a | 30cfd34eb814d0f378595e54cb662a6b185f1dec | refs/heads/main | 2022-12-31T10:47:04.879383 | 2020-10-12T18:33:47 | 2020-10-12T18:33:47 | 303,305,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support.select import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.desired_capabilities import DesiredCa... | [
"jamesmey@usc.edu"
] | jamesmey@usc.edu |
f44c6c5aff27924b53a3d5203b2203a17c776ce9 | 44daec4f9776af6d5ee59b363e24a149bb49598b | /kullanici/migrations/0001_initial.py | 81e8aa9f57f4b886ec46cfa85ec556113a351f7a | [] | no_license | mebaysan/KANBAN-Django | 9ef3e56f5175158bc6572af8533d2236a0f0e354 | d6d7ac7b0469f92750a79ec1b00fa45e34dfce25 | refs/heads/master | 2022-11-27T19:13:35.164581 | 2020-06-01T22:28:49 | 2020-06-01T22:28:49 | 236,877,189 | 10 | 1 | null | 2022-11-22T05:16:37 | 2020-01-29T00:56:51 | JavaScript | UTF-8 | Python | false | false | 3,019 | py | # Generated by Django 3.0.2 on 2020-02-06 23:18
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
a92ced6045687faa1ea5c15ab922c0afb8232462 | 505ca5a34bbbc2b63edd7bd7c7f91e7b62425139 | /posts/models.py | 42a900df17538d14d7fdf2f46a9681cf0bc8363f | [] | no_license | lyrdaqs/BlogApplication | 5f33cf13896c87f85a1b67358730dd534da55994 | fbdc9671d87d410688fd115065361d9368e64d64 | refs/heads/master | 2023-06-25T16:07:33.512884 | 2021-07-18T08:53:34 | 2021-07-18T08:53:34 | 387,131,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length = 100)
text = models.TextField()
date_posted = models.DateTimeField(defaul... | [
"lyrdaq777@gmail.com"
] | lyrdaq777@gmail.com |
80cb12d64e40932883d524ffc4a087648d542d4a | d200ed5aeb8f6c4c94b2ec9cebe554a3f2c07979 | /apps/django projects/classproject/onlineapp/views/rest_api.py | 74a395f65e69179210aaec09b65666b0c8e911cd | [] | no_license | sanjaybalagam/summer_2019_gvp_balagamsanjay | d3b58fb6089ac3e540248d40e4c020e2f948c2f5 | d32d14d25a16f4dd8eb312257b5d87cbc1d3c48b | refs/heads/master | 2020-06-03T15:27:38.138419 | 2019-06-18T08:57:09 | 2019-06-18T08:57:09 | 191,628,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | from onlineapp.serilizer import *
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework import status
from rest_framework.views import APIView
@api_view(['GET','POST','PUT','DELETE'])
def college_api(request, *args, **kwargs):
if request.method == 'GET':
... | [
"balagamsanjay@gmail.com"
] | balagamsanjay@gmail.com |
147b240eae706f70835eac2c598e544d875d7d16 | 65c1b3e12069382f6f98e01534c5a11ecca2a3f6 | /SOURCE/LnFunctionsLight/Common/IniFile.py | 55375fea92139bc3b848f8b7a11f8c40e170ed05 | [] | no_license | Loreton/LnRSync | fbbec2228bea846485580d99d1824c9fcb9d76de | 49a90fe25834293115e5315ab233f86c86c2c9e9 | refs/heads/master | 2021-01-13T14:18:46.784449 | 2015-04-01T06:52:49 | 2015-04-01T06:52:49 | 15,321,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
#
# Scope: ............
# by Loreto Notarantonio 2013, February
# ######################################################################################
import sys; sys.dont_write_bytecode = True
import os
import col... | [
"loreto.n@gmail.com"
] | loreto.n@gmail.com |
2a63578249a035ae3dcfa35c5c4db1b637b4bd9c | 9b3828d306716e7de71e38b4eabea8b4ebee73e3 | /TaxiFareModel/trainer.py | dc2d55b16218c47dd5e1607a404b33a0ed428d75 | [] | no_license | Muamenb/TaxiFareModel | 05fffe3c85968b02425b45dfb0462eaead6ae43b | 6d1f2382fab185306deae53c07afda1a8325ce64 | refs/heads/master | 2023-07-10T10:45:38.107669 | 2021-08-17T14:03:03 | 2021-08-17T14:03:03 | 397,274,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import OneHotEncoder
from sklearn.compose import ColumnTransformer
from sklearn.linear_model import LinearRegression
from TaxiFareModel.encoders import DistanceTransformer, TimeFeaturesEncoder
from TaxiFare... | [
"moamen.baset@gmail.com"
] | moamen.baset@gmail.com |
ed424ad30b202b4b2bc579f248f9c708cf697a66 | 94ee84997300baecdebffcc13c6394663c80be61 | /ImageCaption/config.py | b574823705d4b3d54a60f9260ed67a099ac130aa | [] | no_license | dsouzavijeth/ConditionalLearnToPayAttention | a3139899e5e29c16f62b073a5441e6ce0947cc95 | e2ff7194060ebcdc7bf50bbfcacb7a6bf7aa12d3 | refs/heads/master | 2022-03-01T01:37:59.797440 | 2019-11-12T02:34:28 | 2019-11-12T02:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py |
class Config(object):
""" Wrapper class for various (hyper)parameters. """
def __init__(self):
# about the model architecture
self.cnn = 'vgg16'
self.images_size = 224
self.max_caption_length = 20
self.dim_embedding = 512
self.num_lstm_units = 512
self.nu... | [
"940265904@qq.com"
] | 940265904@qq.com |
6f94d14f7c35aa2c9b8d81bce1a0891c97b02dfb | 3146765403765bf6388e7d330528dbc625552ea2 | /main.py | 1319c421781043d511be2952308c356df0e0b29c | [] | no_license | Onuyau/Smiley | 95be726c4fcb14e30bfbc152076efc256eb5ac9f | 8dceb17de2283c8dd7444923d8b1dc900cb38382 | refs/heads/master | 2020-07-21T08:24:21.665808 | 2019-09-06T13:19:35 | 2019-09-06T13:19:35 | 206,796,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,719 | py | import tensorflow as tf
from tensorflow import keras
#from keras import regularizers
import numpy as np
import matplotlib as plt
#from numpy import exp, array, random, dot
# from keras.models import Model
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.optimiz... | [
"noreply@github.com"
] | Onuyau.noreply@github.com |
57d367231e46c6e5560c75bf7980ccce124a5eb4 | 3239f723b792951b877fd50befd85ce8a8a120a5 | /customaddons/sim_inventory_backdate/sim_to_stock_backdate/models/stock_inventory.py | 7dc67419dda6abfae305e063ea28d482bf7865ff | [] | no_license | hiepmagenest/democodeluck | f8773c953b188b5dd889bb05694534334ea73afd | 2bdcfca9febe2fc5e72b9644ef92584e4029bf71 | refs/heads/main | 2023-03-26T04:29:00.776179 | 2021-03-24T07:01:19 | 2021-03-24T07:01:19 | 350,550,081 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | from odoo import models
from odoo.tools import float_compare
class StockInventory(models.Model):
_inherit = 'stock.inventory'
def action_validate(self):
# somewhere this is called with multi in self, so we need to fallback to the default behaviour in such the case
if not self._context.get('ma... | [
"hiepnh@magenest.com"
] | hiepnh@magenest.com |
d5094e55bb2a940a621f7294c8f09052cc6b328d | c9e5164be007b592d511ee33c610478e73e32992 | /setup.py | 5718d5c1916e2ec8ba5c23fb569de5e19aab6ae9 | [] | no_license | TooKennySupreme/warmtuna | 43e9a5afa0491b642d0b2d6707e5d301b2d6c02c | fc1da9b20969f1a0bdb75650b974daaed968d610 | refs/heads/master | 2021-05-26T20:45:47.492293 | 2011-01-31T03:37:57 | 2011-01-31T03:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from setuptools import setup, find_packages
version = '1.0'
setup(name='warmtuna',
version=version,
description="mysql warm backup plugin for holland",
long_description="""\
""",
classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
keywords='',
author='Andre... | [
"muzazzi@gmail.com"
] | muzazzi@gmail.com |
43ebe9abb84d9e7fed32669a292dad822561e85b | 73d511408a6cd456558b059d5d4c0476ef85eeb5 | /ud120-projects/tools/parse_out_email_text.py | d80afee11226126712223d335afaeca7489d3b7f | [] | no_license | AlexGilleran/udacity-machine-learning-120 | 8f935431c2700a59c60441e1ce1ad7b154bcac3a | ecc67cdbc05f6a1d7cede32a90725b7fae602543 | refs/heads/master | 2021-01-17T22:28:59.112037 | 2017-03-07T12:41:28 | 2017-03-07T12:41:28 | 84,197,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | #!/usr/bin/python
from nltk.stem.snowball import SnowballStemmer
import string
def parseOutText(f):
""" given an opened email file f, parse out all text below the
metadata block at the top
(in Part 2, you will also add stemming capabilities)
and return a string that contains all the words
... | [
"alex@alexgilleran.com"
] | alex@alexgilleran.com |
a1dedb1182cb91b1b850582b72f6ba338a77d105 | 998e1b4c0e3addd91fc96ec911afb3e371f93e34 | /notifications/notification.py | b287ab859520337fb5f4254b385c7c0b15996f77 | [] | no_license | s3714217/IOT-GreenhouseMonitor | 5860a2c3aeb43797d851040c8a3e5e4b27734491 | 22b3cbf4b2ebe34ab54508712b5754ca81837fde | refs/heads/master | 2022-06-06T00:40:11.187130 | 2019-04-07T06:14:34 | 2019-04-07T06:14:34 | 258,785,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | import logging
from datetime import datetime
from notifications.pushbullet import Pushbullet
'''
Handles sending notifications and determining if notifications need to be sent
'''
class Notification:
def __init__(self, sensor_data_repository, pushbullet_token = None):
self.__repository = sensor_data_repos... | [
"daniel@majoinen.com"
] | daniel@majoinen.com |
89bd72447b27e2018f0169fe676d13560b9e8202 | af5973439da95d6e8a0071f7d404b0235ddc1b02 | /images1/views.py | d428c778f042c89156bfb6f15f133ed73efb484c | [] | no_license | cmunir/images | 7f9ee27a855c045ccd39667a66020a5fb2111523 | 4c8d987e1f055812972af23cbd8ce9752032b639 | refs/heads/master | 2020-05-17T02:38:41.290403 | 2019-04-25T15:18:40 | 2019-04-25T15:18:40 | 183,460,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from django.shortcuts import render
# Create your views here.
def home_view(request):
return render(request, 'home.html')
def gallery_view(request):
return render(request,'gallery.html')
def contact_view(request):
return render(request,'contact.html')
def services_view(request):
return render(request,'... | [
"chandigamunirathnam@gmail.com"
] | chandigamunirathnam@gmail.com |
b7819c428f254c93af4484b917b88ddf7072d2f1 | 92fe221ea022a588d6573868f414b7f5cf1918d6 | /problemSolving/codeforces/round_688/suffix_operations.py | 5da88373c262302d19dd0e80e46899ec2f663c26 | [] | no_license | mooyeon-choi/TIL | c2cda2bb495b9ea3bdc6f94806a4b6234c9db792 | 7c16f728de3846cee5f05bbf1392387f0183128c | refs/heads/master | 2023-03-15T18:04:47.591034 | 2022-07-12T16:43:31 | 2022-07-12T16:43:31 | 195,921,150 | 2 | 3 | null | 2023-03-05T18:19:18 | 2019-07-09T02:53:27 | Jupyter Notebook | UTF-8 | Python | false | false | 471 | py | for _ in range(int(input())):
N = int(input())
num = list(map(int, input().split()))
result = 0
maxNum = max(abs(num[-1] - num[-2]), abs(num[0] - num[1]))
for i in range(1, N -1):
result += abs(num[i] - num[i-1])
if maxNum < abs(num[i] - num[i-1]) + abs(num[i+1] - num[i]) - abs(num[i+1] - num[i-1]):
... | [
"dus1208@ajou.ac.kr"
] | dus1208@ajou.ac.kr |
29975554a8de3141a4414b1892d88f0518ce282a | 8c255942f7cae3cd501a8af3ffaecf21fdd7a15f | /sites/pycharm-guide/demos/tutorials/intro-aws/crud/create_validator.py | 8ed6ff9e959e7a59a2669c862e1bf18fa8b8b475 | [
"MIT",
"Apache-2.0"
] | permissive | vigneshbrb/jetbrains_guide | 6b493fbe4712fbb958ad24bf3c67e5bc46078453 | 9839abdbe4bc0de8f514008f623b4b86e5f56062 | refs/heads/main | 2023-07-27T06:51:16.480303 | 2021-09-10T16:51:07 | 2021-09-10T16:51:07 | 403,561,438 | 0 | 0 | Apache-2.0 | 2021-09-06T09:25:53 | 2021-09-06T09:25:52 | null | UTF-8 | Python | false | false | 1,172 | py | from marshmallow import Schema, fields, post_load, ValidationError
from argon2 import PasswordHasher
from . import db
def encrypt(plain_text_password):
""" This function takes plain-text password and returns encrypted password """
ph = PasswordHasher()
hashed_password = ph.hash(plain_text_password)
re... | [
"Mukul.Mantosh@in.bosch.com"
] | Mukul.Mantosh@in.bosch.com |
7b7849ba581739c52e1e0213bc2681bb1a94d2ee | efc333f84b028edef4a60aef8065504cde0d4982 | /packages/package_1/setup.py | bb8b31f2ad75dca1451b480c398836a168ed74e1 | [] | no_license | AlexeyBeley/workspace_mgmt | 402f4ffc99cbbcd217e4e0a01a70e8940b939118 | 90133558afed9482e23d8ef3b4a20af6f4e999b3 | refs/heads/master | 2022-11-13T12:53:37.172077 | 2020-07-05T19:39:29 | 2020-07-05T19:39:29 | 277,126,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "horey", "common"))
from package_1 import __version__
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='horey.common.package_1',
version=__version__... | [
"alexeybe@checkpoint.com"
] | alexeybe@checkpoint.com |
5fd96256d68233fec52aca2f5b9fa70f0e30e35d | 94f5051b07188edce5beac39d760c75a63cf07e0 | /Processing/RawDataSearch_and_FirstRow_SummaryReport.py | c9d0e4421f6867fe5e8bbe967c0657806a78a692 | [] | no_license | DereksProjects/XLWings_ModuleTempTool | 3a072c1bc00e08121a6b04f0245e55b02e8aeb57 | 68711e3d2d703c44d092f9a9899a2a92f5f43664 | refs/heads/master | 2020-08-23T16:29:39.523510 | 2019-10-21T21:59:15 | 2019-10-21T21:59:15 | 216,662,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,512 | py | # -*- coding: utf-8 -*-
"""
One method of this code will create a summary dataframe. The other method
searches for a user input Site Identifier Code and displays the raw data
@author: Derek Holsapple
"""
import pandas as pd
import glob
import os
import xlwings as xw
'''
HELPER METHOD
dataSu... | [
"dholsapp@nrel.gov"
] | dholsapp@nrel.gov |
c9f3d95369472d1037d160dffe15e640c9f795f9 | 7a470c372892c9ea349b9cdd21128e18ce694d14 | /restaurant/blog/migrations/0011_alter_comments_content.py | d2d187fb204fcda915325c82350161ce06a7fb4f | [] | no_license | MasihJavidan/NamFood | e90ed29982424827cf1845a51398f1843b6def32 | 988bec32737448e3a3f2c05cf509c6884e9b6c7d | refs/heads/master | 2023-08-04T02:29:09.684346 | 2021-09-24T21:05:14 | 2021-09-24T21:05:14 | 398,354,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.2.4 on 2021-07-24 07:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_rename_blog_comments_comments'),
]
operations = [
migrations.AlterField(
model_name='comments',
name='c... | [
"masih.javidan69@gamil.com"
] | masih.javidan69@gamil.com |
d246ec11165acfa514ec8dcf6afcd93911006956 | 6803395abdd176bb8307e0ade9cd6f11d4ab9a60 | /src/population.py | 772f748d710de2b2f9a132caf793e0e15142615e | [] | no_license | diakodarian/PIC_FEniCS | 550fdc9e06f6220c591a830c3a76932a78f5a558 | dc048a9b3023782dd0070675ec2a6f26b72d79b8 | refs/heads/master | 2021-04-29T07:18:37.110762 | 2017-03-07T22:25:11 | 2017-03-07T22:25:11 | 77,953,877 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,111 | py | # __authors__ = ('Sigvald Marholm <sigvaldm@fys.uio.no>')
# __date__ = '2017-02-22'
# __copyright__ = 'Copyright (C) 2017' + __authors__
# __license__ = 'GNU Lesser GPL version 3 or any later version'
#
# Loosely based on fenicstools/LagrangianParticles by Mikeal Mortensen and
# Miroslav Kuchta. Released under same li... | [
"diako.darian@gmail.com"
] | diako.darian@gmail.com |
591a285f8c58a80d99464bb6cb5504b260807dcf | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_cgnv6_lw_4o6_health_check_gateway.py | 3b1f73ae995d232cf6763d916b8be34cc37f1735 | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 5,814 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_health-check-gateway
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
ipv4-addr:
desc... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
9bf639aca1a78cd3b1b828cc4998231f9eaf8ecf | 101a3bc5efc89702e93a5f3d209e545b4123ff8a | /pipeline.py | cc24609d088107070cf0890bb9c8260802ad19ea | [] | no_license | DongqinZhou/frap-pub | b0ea1ee379ad6e91896b8e2e190d9876e5bf8a48 | 9c1bbd75f19423c5609838c0872c0370e2c24faf | refs/heads/master | 2022-08-04T02:33:42.530674 | 2020-05-22T14:23:20 | 2020-05-22T14:23:20 | 265,940,020 | 0 | 0 | null | 2020-05-21T19:59:44 | 2020-05-21T19:59:43 | null | UTF-8 | Python | false | false | 20,114 | py | import json
import os
import shutil
import xml.etree.ElementTree as ET
from generator import Generator
from construct_sample import ConstructSample
from updater import Updater
from multiprocessing import Process
from model_pool import ModelPool
import random
import pickle
import model_test
import pandas as pd
import nu... | [
"gjzheng93@gmail.com"
] | gjzheng93@gmail.com |
e68b9f0416ab724289de3fcc938fffcdf47559ee | de74221e4e4af95c0f29fc09f753bb216d3debaa | /narratives.py | ea24d718887567bc7cba731150a9c069620f821c | [] | no_license | marleysudbury/PapaKirill | 067db7b3cc5f4bf7abc633fe46730fe345ee6f00 | 992c7caa316cfc6ea5dcc961e3a07c8401dffa11 | refs/heads/master | 2020-04-01T09:55:42.108419 | 2018-10-29T23:39:51 | 2018-10-29T23:39:51 | 153,095,391 | 0 | 0 | null | 2018-10-25T02:11:20 | 2018-10-15T10:34:11 | Python | UTF-8 | Python | false | false | 953 | py | import player
import map
def demo(room_ver):
if room_ver == 0 and player.current_room == map.rooms["Papa Kirill's"] and len(player.current_room["rooms"][room_ver]['evidence']) == 0:
map.rooms["Papa Kirill's"]["version"] = 1
if room_ver == 0 and player.current_room == map.rooms["Andy's Jazz Club"] and ... | [
"j.bateman@techie.com"
] | j.bateman@techie.com |
7c49d66b14f18ebed39db0587fa286f3def31a72 | dacfac84e2f3665ef3c13b16f99ea8fc8c8dc049 | /onnx/backend/test/case/node/spacetodepth.py | 8d03103c011c4bced0f9aa078177ef0bb169f13f | [
"Apache-2.0"
] | permissive | AlexandreEichenberger/onnx | 37ad194e553f5262c1c76d5912c6879614250543 | e2072611aaac0f86414f4b5cc69d8496a86cc5fd | refs/heads/master | 2023-02-24T04:32:16.824519 | 2021-12-15T23:46:57 | 2021-12-15T23:46:57 | 243,090,562 | 2 | 0 | MIT | 2020-02-25T20:00:38 | 2020-02-25T20:00:37 | null | UTF-8 | Python | false | false | 1,966 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class SpaceToDepth(Base):
@staticmethod
def export(): # type: () ... | [
"noreply@github.com"
] | AlexandreEichenberger.noreply@github.com |
ea4581d7365b9eb409c23a5a38400e4a215418e4 | a325861403c579e508237b8ac1d65b980272b42c | /12_файлы_и_папки/4_sgfbp.py | 170293ddafa7972fd4bc8c0dae6185fcf54721d3 | [] | no_license | emeshch/peer_code_review_2018 | 9fd5f7f8fc5380d2544f46592e3753086747887c | aa5ac299facc093ed621952fe773176234db7cc9 | refs/heads/master | 2021-06-24T16:45:16.452666 | 2018-06-09T07:47:43 | 2018-06-09T07:47:43 | 136,701,853 | 0 | 2 | null | 2018-06-10T08:16:27 | 2018-06-09T07:41:17 | Python | UTF-8 | Python | false | false | 1,293 | py | ##regex = '[a-zA-Z]'
##Программа должна просмотреть все папки и файлы, находящиеся в одной папке с ней, и сообщить следующую информацию (а также смотрите дополнительное задание внизу!):
##Сколько найдено файлов, название которых состоит только из латинских символов
##Кроме этого, программа должна выводить на экран... | [
"emesch@emesch.local"
] | emesch@emesch.local |
c7aae52e1c4139f6a0ea563819675a997c211520 | bf958d7cfbfc0b800483337905ddb6e4e90fcc7f | /transformImage.py | 94a1a294728ff90c7c3b09dd3a8d78368db61289 | [
"MIT"
] | permissive | davidkleiven/Transform3DImage | de5b41cdbb769db233780420ae14ede464e93b03 | e40c57a3c8dbc95561c9f99aa817e8b0e8303bb1 | refs/heads/master | 2020-04-06T04:43:36.711040 | 2017-05-02T10:40:20 | 2017-05-02T10:40:20 | 82,893,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | import sys
import tkinter as tk
import transform3DApp as tf3
import numpy as np
def extractDimensions( fname ):
splitFname = fname.split("_")
if ( len(splitFname) != 5 ):
msg = "Unexpected format of the filename. Should be prefix_resolution_Nx_Ny_Nz.raw"
raise( Exception(msg) )
res = int( s... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
d753782d4f379fb6ccbb83b806ce84e3b5086228 | 1b0efb2174c9ee5f67ef2241b0903718463b563f | /Palindrom_Validator/terminal.py | 7997f4d18c12c5e1a7eb4097a70efa2a9443b423 | [] | no_license | nakuldave/Python | 147efc552d8af5b2601ee215c99f44e39e300ea5 | 00634d9c730d7e73323d0a40e2479c2512729788 | refs/heads/master | 2021-01-18T02:22:02.335995 | 2013-03-08T08:46:21 | 2013-03-08T08:46:21 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 910 | py | # -*- coding: cp1252 -*-
def main():
repeat = 'j'
while repeat == 'j':
#Börjar med att konvertera texten till
#uppercase eftersom den är casesensetive i if-satsen
text = raw_input("Mata in ett ord: ").upper()
x = ""
print '------------------------------------'
... | [
"hallgren.mikael@gmail.com"
] | hallgren.mikael@gmail.com |
a9e2a95a7a383053be938997ad0b14fe1787f7e4 | 4c535d2c7b76955b014ed87f06f5a9f078730fa7 | /test_recursive.py | 2ff88173ac3c93ff37d9ad1c8cfcb1565094ead0 | [] | no_license | jennyChing/onlineJudge | cf750b5b68456f8949bed0429c3b4a328ca2eeea | 0d317db29c21a9faec7a7cf43de5fa03fda50b3e | refs/heads/master | 2020-04-06T06:56:34.850903 | 2016-08-21T23:38:08 | 2016-08-21T23:38:08 | 52,972,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def rec(n ,memo):
if n in memo:
return memo[n]
else:
temp = 0
for i in range(n):
temp += 1
memo[n] = temp
print(memo)
return memo[n]
if __name__ == '__main__':
memo = {}
print(rec(2, memo))
| [
"jklife3@gmail.com"
] | jklife3@gmail.com |
7659326354491ce92828a2acfc49e90744fc607a | 407b13a53539f847af77007406bc2422e4192772 | /hangman.py | b57abe8bea2e0c61ddb3cdb238d0896556042f81 | [] | no_license | captainangela/hangman | d6924abd449a11a92f6c3e663b307407ea15211d | 5f128017765d195395c516d97b531b26ffbcb890 | refs/heads/master | 2020-05-26T17:07:29.630862 | 2017-03-04T19:17:10 | 2017-03-04T19:17:10 | 82,497,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | # 1. create a list of words
# 2. have a welcome screen for the player with the stand (? I forget the word for it) drawn out
# 3. have the computer randomly pick a word
# 4. count the characters in the word and print the corresponding number of on the screen _ _ _ _
# 5. ask the player to guess a letter
# 6. see if the... | [
"angelalui@angelas-MacBook-Air.local"
] | angelalui@angelas-MacBook-Air.local |
ac17fa48d8db4ad167eba473385c9d956552129f | b69f40757881056db1def0c3a089b5c8d236fb7c | /backend/geoflask/views/layer.py | e98fb4ea9dc638b463bff53245a1983b23ee95f6 | [
"MIT"
] | permissive | PranjalGupta2199/Map-It | 075ad1f1ee6c629fe58a9ae37a797fdd51716f54 | 8182f30d2730a5051d6bc747eaee1106f1fd4268 | refs/heads/master | 2020-05-29T13:49:22.388794 | 2019-10-24T14:17:34 | 2019-10-28T22:38:48 | 189,174,291 | 0 | 1 | MIT | 2020-01-17T15:28:01 | 2019-05-29T07:33:07 | JavaScript | UTF-8 | Python | false | false | 607 | py | import requests as req
from flask import Flask, Blueprint,request,json
from ..app import geoInterface
layer = Blueprint("layer", __name__)
server = geoInterface.GeoServer.link
auth = geoInterface.GeoServer().get_auth()
@layer.route('/layer', methods=['GET'])
def get():
name = request.args.get('layer')
if nam... | [
"pranjalgupta2199@gmail.com"
] | pranjalgupta2199@gmail.com |
5bb8aae9fa857751abeaafee55c8a9b7686cb464 | a339b86ac6c9aaad7ca2e81cba2c28adb9db1d27 | /poetry_generator.py | db5ea7dabf19f368013c5d9ec073ec92e0ccb690 | [] | no_license | s16497Michal/NAI | bc57835c5ec84748c1395a9eeb6e727117804336 | 810eeaaadd20aacb12e7e43e89690a6ff8f6acd5 | refs/heads/master | 2023-03-03T04:11:43.709541 | 2021-02-12T20:40:05 | 2021-02-12T20:40:05 | 308,036,480 | 0 | 1 | null | 2020-12-04T21:38:10 | 2020-10-28T14:08:24 | Python | UTF-8 | Python | false | false | 2,644 | py | '''
Autorzy: Michał Kosiński s16497 i Aleksandra Formela s17402
Instrukcja przygotowania środowiska:
Używamy konsoli systemowej i wpsiujemy w niej komendę: pip install tensorflow, pip install numpy
Materiały pomocnicze:
https://medium.com/predict/creating-a-poem-writer-ai-using-keras-and-tensorflow-16eac157cba6
https:/... | [
"michu@sie.skichu"
] | michu@sie.skichu |
2c99626c0a47dd8c9622add6edbe39e3690a2fe3 | 68585730d05b30a0fc4c7b73941a80cceab8fe8f | /gym_snake/envs/__init__.py | d93d56217f8b245ffaab834df1ccadfb98087c67 | [
"MIT"
] | permissive | boangri/gym-snake | 4c508f73b7d7dd612204cb87de65ae4e4acdf80c | ea64c200d20bd7b838017418de884f5ea88937ed | refs/heads/master | 2023-02-05T21:19:12.291038 | 2020-12-29T19:21:42 | 2020-12-29T19:21:42 | 294,216,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from gym_snake.envs.snake_env import SnakeEnv
| [
"xinu@yandex.ru"
] | xinu@yandex.ru |
0ed980a3166442c2014937693307f4163e59e504 | 3b593b412c663a34784b1f60ad07cd2ee6ef87d1 | /month01/python base/day18/review.py | 543ab31c1700ca0622a342c564a13937c09c7ba3 | [] | no_license | ShijieLiu-PR/Python_Learning | 88694bd44aeed4f8b022202c1065342bd17c26d2 | ed01cc0956120ea287c51667604db97ff563c829 | refs/heads/master | 2023-05-22T16:35:24.252313 | 2021-06-16T10:56:21 | 2021-06-16T10:56:21 | 337,445,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | """
day17复习
函数式编程:用一系列函数解决问题,函数式一等公平。
--函数作为参数:将核心逻辑传入方法体,是该方法适用性更为广泛。
传入整数/小数/容器/自定义类的对象。
传入逻辑:方法
--函数作为返回值:
"""
| [
"shijie_liu@outlook.com"
] | shijie_liu@outlook.com |
874fc260533596b58d67e315c0fd653ccec55360 | c66ff30fc99d1d0b6ad2ccbc106d580731de3201 | /ex25.py | ca0798b4c23247be9817f0316850ae55505f9dfa | [] | no_license | mlambie/lpthw | 73df2daaa060f386910c4e5e25bd36faa65e0218 | d01dd4f1a606f4a38937e6bad9aab0b322df476f | refs/heads/master | 2020-05-20T18:33:54.358744 | 2019-07-19T08:38:48 | 2019-07-19T08:38:48 | 185,708,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | def break_words(stuff):
""" This function will brea up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
""" Sorts the words."""
return sorted(words)
def print_first_word(words):
""" Prints the first word after popping it off."""
word = words.pop(0)
print(word)
def print_last_word... | [
"mlambie@lambie.org"
] | mlambie@lambie.org |
12e28fa769ae0c7bb7c6f37e3784421c323f8526 | 73e6b803c54c5383545a672dfa4192cfc6605c7c | /webapp/models.py | 40768e64f5b93320efe56a3cb5b200c7c16ac7db | [] | no_license | tanishagupta2114/diagno | ee1da86105fb797916d83272b781430ecb40f447 | 644c913d7453523b57773da0f2fb9cbb56640960 | refs/heads/master | 2022-07-13T10:00:37.716624 | 2020-05-17T13:52:07 | 2020-05-17T13:52:07 | 263,547,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | from django.db import models
class data1(models.Model):
firstname = models.CharField(max_length=30)
lastname = models.CharField(max_length=30)
username = models.CharField(max_length=30)
birthday = models.CharField(max_length=30)
gender = models.CharField(max_length=10)
qualification = models.C... | [
"ranjit45697@gmail.com"
] | ranjit45697@gmail.com |
be4893d3a57c116206de422912636595a4ef233e | fa53cd836823ed6432bda81829f3968874c7134d | /Otros/enumerate_zip.py | 96c7140f6426027bc60641679192f32d9bdf7775 | [] | no_license | AiTechOne/intro-python | a9b7ae9691d48b8f01fde32b298011f8f8eac103 | 73e41bbd14a56aacdcea1309792cc16999ef2d31 | refs/heads/main | 2023-04-11T21:08:11.986158 | 2021-05-06T14:25:55 | 2021-05-06T14:25:55 | 349,105,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # colores = ["rojo", "amarillo", "verde", "azul", "morado"]
# # for indice in range(len(colores)):
# # print(indice)
# # for color in colores:
# # print(color)
# # for i, color in enumerate(colores):
# # if i == 1:
# # print(color)
# # if color == "amarillo":
# # print(i)
| [
"felipe.tejada@pm.me"
] | felipe.tejada@pm.me |
3d95b894a74b47bf97178b053b71e17d0e20830a | 5ff9fcff1a81a132102ff7b2e086d2dd60f3e8ad | /mysite/settings.py | 6c2276436e4e07d7492dd8e0d7ce34e9b85a7866 | [] | no_license | simplelife5757/my-first-blog | 04923ee9c58b5a248d1c5478815659ea0929d07c | 19becc0e7b73c43185dac6acbb1d7823d5d08a17 | refs/heads/master | 2020-12-19T10:44:28.063663 | 2020-01-23T02:32:59 | 2020-01-23T02:32:59 | 235,710,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"jiwoo627@naver.com"
] | jiwoo627@naver.com |
c8d973155878a910225bf35d57e24cb6e6ea1465 | e33488b2030f832dac6b0367fa2f00331d2aa48f | /app.py | ce42610ce46da27fd0a19d434f9e8763ea57bf56 | [] | no_license | imfromspace/movie_collection_app | 4850a98efc0d5148d11ee29e33f1aa94e4a39cae | f240ba44eff507cedb63cb81196ade1161d1127d | refs/heads/main | 2023-04-01T19:30:56.294396 | 2021-04-09T12:25:50 | 2021-04-09T12:25:50 | 355,981,227 | 0 | 0 | null | 2021-04-09T12:20:55 | 2021-04-08T16:37:19 | Python | UTF-8 | Python | false | false | 1,189 | py | MENU_PROMPT = "\nEnter 'a' to add a movie, 'l' to see your movies, 'f' to find a movie by title, or 'q' to quit: "
movies = []
def add_movie():
title = input("Enter the movie title: ")
director = input("Enter the movie director: ")
year = input("Enter the movie release year: ")
movies.append({
... | [
"igor.surgutanov@eca.kz"
] | igor.surgutanov@eca.kz |
e2a6311c653e2aae52316494b25c4e3c8bd0565b | 67c148ef0791d93ea46fa75ae6ecae038d1214e3 | /service/common/utils/launch.py | 3a98791e574aa25da02d8056e7fa5f8910ae2a00 | [] | no_license | monk0062006/business-law-pulse | cb37aa5ce32fe3a348ffaca0120c69efb4c74416 | 2b69699ff2ade0768a3425dcc17dd2e245eae022 | refs/heads/master | 2023-05-14T07:51:44.386221 | 2019-08-18T12:25:43 | 2019-08-18T12:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
from core.utils import REDIS
import json,datetime
def get_launch():
launches = json.loads(REDIS['app'].get('push:launch') or '[]')
if not launches:
return None
now_time = datetime.datetime.now().timestamp()*1000
launches_c = launches[:]
for l in launches:
... | [
"331338391@qq.com"
] | 331338391@qq.com |
b5adafc4a8a7afb1ff6dca2331d5d68f9bc0c972 | a8cd314af4c1d5ec4f322a19275e3a706b6844ee | /appimagecraft/builders/script.py | 1f0739d092a3edf06951b20e7bac6f7823a6e513 | [
"MIT"
] | permissive | TheAssassin/appimagecraft | f7b9ca60cde6170685effd1d1c2c1dfb457b6fb1 | 6b36fda05d50b356024bd3b12ca426ba73fe334b | refs/heads/master | 2023-08-03T14:12:53.063846 | 2023-07-20T15:42:59 | 2023-07-20T23:18:37 | 178,573,585 | 30 | 6 | MIT | 2023-07-20T23:18:38 | 2019-03-30T15:05:25 | Python | UTF-8 | Python | false | false | 849 | py | import os.path
from ..generators.bash_script import ProjectAwareBashScriptBuilder
from . import BuilderBase
from .._logging import get_logger
class ScriptBuilder(BuilderBase):
_script_filename = "build-script.sh"
def __init__(self, config: dict = None):
super().__init__(config)
self._logger... | [
"theassassin@assassinate-you.net"
] | theassassin@assassinate-you.net |
6a09d63adf4949e8d274ef54f9459d0a81bfb80c | 8ee5dfd87ce637a46c496853f55d32f226b238f8 | /backend/Experiments/Data/PosControl/custom_PSO_z_lama.py | be9a21cc936388b629be751274c46dcef837e6c4 | [] | no_license | cholazzzb/react-parrotar2-swarm | 71eb6be8682e00015103af3df69a6cc01f7a919f | dccdfa841184af6ec62910f50c3335b812cd0201 | refs/heads/main | 2023-06-16T01:24:57.169242 | 2021-07-08T03:54:08 | 2021-07-08T03:54:08 | 354,490,913 | 0 | 0 | null | 2021-07-08T03:54:08 | 2021-04-04T08:15:37 | JavaScript | UTF-8 | Python | false | false | 8,788 | py | custom_PSO_z_lama = {"time":[0.07,0.22,0.36,0.5,0.64,0.78,0.93,1.07,1.21,1.35,1.49,1.64,1.78,1.92,2.06,2.2,2.34,2.49,2.63,2.77,2.91,3.05,3.2,3.34,3.48,3.62,3.77,3.91,4.05,4.19,4.34,4.48,4.62,4.76,4.9,5.04,5.19,5.33,5.47,5.61,5.75,5.9,6.04,6.18,6.32,6.46,6.6,6.75,6.89,7.03,7.17,7.31,7.45,7.6,7.74,7.88,8.02,8.17,8.31,8.4... | [
"nicsphehehe@gmail.com"
] | nicsphehehe@gmail.com |
d9a8d19b7a0fb7c4a5a70472c5d4259452f40dc9 | e73b80c82e224933f4b76a3284413b30e42de6b6 | /Numpy/series.py | ad3cdd8c9e145dd3d893c885947bda021d36c314 | [] | no_license | VarunKesarwani/PythonFinance | 076786eca57c9582c99970f5e6ce493b86b47bf8 | 9cd993f342012469b1c8d5b9c7d76fdfedd35c08 | refs/heads/master | 2021-05-20T21:11:34.389149 | 2020-06-27T16:26:05 | 2020-06-27T16:26:05 | 252,417,092 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import numpy as np
import Pandas as nypd
print(nypd.__version__)
labels = ['a','b','c']
my_list = [10,20,30]
arr = np.array([10,20,30])
d = {'a':10,'b':20,'c':30}
print(nypd.Series(data=my_list))
print(nypd.Series(data=my_list,index=labels))
print(nypd.Series(my_list,labels))
print(nypd.Series(arr)) | [
"varungupta.v@outlook.com"
] | varungupta.v@outlook.com |
6201007827edaf08e8e8897ca9a380cd6d22fc80 | 5beba520206b908f0715456d1b107be39f32a7ea | /Chapter_2/work_with_file.py | 2a57807d194b68509cea2a225d0313aa1d347933 | [] | no_license | disp1air/Programming_Python | 622c99e61b1c8bfe03807d104cd146a8329a26ce | ed3996d6d4f6bc35b2ddab6f1f08668b412b568b | refs/heads/master | 2021-05-01T11:24:47.677976 | 2018-02-22T18:32:05 | 2018-02-22T18:32:05 | 121,119,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | file = open('text.txt', 'w')
file_symbols = file.write(('spam' * 2) + '\n')
print(file_symbols)
file = open('text.txt')
text = file.read()
print(text) | [
"hola-shola@mail.ru"
] | hola-shola@mail.ru |
2a8fb7143b5eb037a1e4bd48dafc7a573c3e7064 | 3ccc65a3bdac77de13621657c79d9ae232622c0e | /messagesapp/templatetags/messages_tags.py | 16e93601adbd4dd5837db30daca9a69066715200 | [] | no_license | fardinhakimi/django-messaging-app | 3fc2d58917ea493f09c80c2f80126665c16c2262 | e6aaaccf34bdc4d1f94e88b9bb8118d1c0212640 | refs/heads/master | 2021-05-13T12:36:35.168477 | 2018-01-22T00:05:47 | 2018-01-22T00:05:47 | 116,676,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from django import template
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import User
from messagesapp.models import (Message, Conversation)
register = template.Library()
@register.simple_tag
def get_stats(user_id):
user = User.objects.get(pk=user_id)
sent_messages_co... | [
"fardinhakimi@gmail.com"
] | fardinhakimi@gmail.com |
613f055d9b61ec031ee51c6d5e3b947a197b19c1 | f40f3a484c26abe0a7d185f5436bf3912ddc5105 | /tensorflow/contrib/distributions/python/ops/categorical.py | 68e4cad73ce40da3613ee763333fe9ddbc9a8b21 | [
"Apache-2.0"
] | permissive | pcm17/tensorflow | 53b56995f2ba3308910831d73309a63716a34b3b | a0f669027666bdfe66b5602097939c309fa37d7f | refs/heads/master | 2020-12-03T04:09:56.528329 | 2017-04-19T18:46:20 | 2017-04-19T18:46:20 | 59,691,129 | 0 | 2 | null | 2017-04-19T18:46:20 | 2016-05-25T19:20:00 | C++ | UTF-8 | Python | false | false | 8,770 | 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
6a0b91c038c98de5f5fcc56c9155a0d3c62fd567 | 9aa14256867487df3efef44be3a4e6cce21f9a61 | /ServerBugCheckByPython/proto/CMD_Common_pb2.py | 0194b377e0ed7b2012fc3b39f7b9aa07bafebb49 | [] | no_license | zgame/PythonCode | 9548a6e46ed4b698edf596d019da9015e982677d | 41a8996c4e352ae1c690131a224d6f4f9252a02c | refs/heads/master | 2021-06-21T13:40:16.026664 | 2020-12-02T10:12:12 | 2020-12-02T10:12:12 | 129,094,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 197,306 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: CMD_Common.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as... | [
"zgamecn@gmail.com"
] | zgamecn@gmail.com |
ea6fdf478c90c30efb64a2ba95b12e17e9f6ad75 | eabb3c95950f300af29006f5a5c26b90e7a69215 | /cogs/exams.py | 6e9761e8f9342e2ac8c45e0b91b7fc6ea5db034f | [] | no_license | Naapperas/discord-spam-bot | c54516273198a8e075bfebf4c1d04a714be498a7 | 228ea1f54e9e6f052774933c558479eaa65893d5 | refs/heads/main | 2023-04-26T05:15:52.202854 | 2021-02-26T23:34:52 | 2021-02-26T23:34:52 | 325,410,961 | 4 | 1 | null | 2021-05-26T17:25:02 | 2020-12-29T23:48:22 | Python | UTF-8 | Python | false | false | 214 | py | from discord.ext import commands
class Exams(commands.Cog):
""" WORK IN PROGRESS """
the_bot = None
def __init__(self, bot):
self.the_bot = bot
def setup(bot):
bot.add_cog(Exams(bot)) | [
"nunoafonso2002@gmail.com"
] | nunoafonso2002@gmail.com |
16f3ec1bc9e51e73213915cc185e07a78720012c | ffe07381cfe69811a7a33216df945bbef1035c19 | /Exams/Exam_12_December_2020/project/factory/chocolate_factory.py | 4e596caed3b7a5135c6a502f1aef2ff316f9a055 | [
"MIT"
] | permissive | MNikov/Python-OOP-October-2020 | 7448e2bb6a2753a2eb6a8a33173d0ad560be9c3a | a53e4555758ec810605e31e7b2c71b65c49b2332 | refs/heads/main | 2023-01-31T06:46:55.013236 | 2020-12-14T21:57:09 | 2020-12-14T21:57:09 | 306,955,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | from collections import defaultdict
from project.factory.factory import Factory
class ChocolateFactory(Factory):
def __init__(self, name: str, capacity: int):
super().__init__(name, capacity)
self.recipes = {}
self.products = defaultdict(int)
def add_ingredient(self, ingredient_type:... | [
"momchildnikov@gmail.com"
] | momchildnikov@gmail.com |
a60df399e75a0d5b78134275b9093e6522bd29f8 | 39326d9b822e6cde7cabec6c4cf94c662ef1563d | /src/utils/__init__.py | ba3ef44cec166b7507bcbedb8cd8c88f23d4bdfe | [
"MIT"
] | permissive | saurabh1e/FlaskStructure | 5c5f0c9f3460a0d50cbf1679c159312fdff8aff2 | 5291e2c6d994863b7962b07a9fab8b8580405c56 | refs/heads/master | 2021-01-19T03:18:24.502382 | 2016-11-07T07:07:06 | 2016-11-07T07:07:06 | 54,580,083 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from .api import api, BaseResource, OpenResource, CommonResource
from .models import db, ReprMixin, BaseMixin
from .factory import create_app
from .schema import ma
from .blue_prints import bp
from .admin import admin
| [
"saurabh.1e1@gmail.com"
] | saurabh.1e1@gmail.com |
fea95fa83e55873b4d370be0a5fb6868f3e0d931 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/ruthwikmasina/keras-to-rescue-passengers/keras-to-rescue-passengers.py | 2a42f15ee31f3edcce08e19a500f1543ca933e58 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,961 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
import matplotlib.pyplot as plt
plt.rc("font", size=14)
import seaborn as sns
sns.set(style="white") #white background style for seaborn plo... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
48870732e4026ee935f88cc91d7e123e8711f6a5 | b944cea3e35225fbf13a5c1a50694bb24fb3176a | /scripts/subWsInfoWsOlt.py | df669ea1c95a37f89aa414805e2202a8350e8139 | [] | no_license | QingyuFeng/pyapex | dc2b167905d483a11c156998b9c7ba429e0607c2 | 3909806679f606c5b681261dd33f259c03d5cb54 | refs/heads/main | 2023-04-10T03:04:30.517124 | 2021-04-11T05:48:53 | 2021-04-11T05:48:53 | 297,032,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,487 | py | # -*- coding: utf-8 -*-
import copy
class subWsInfoWsOlt():
def __init__(self, ascInfoWSOlt, subWsVarJSON):
## Json file storing all necessary variables
# After getting the information for routing, it is time
# to process the information into the json files.
self.WsJSON = subWsVar... | [
"qyfeng86@hotmail.com"
] | qyfeng86@hotmail.com |
26d57e305f3d7afe9d43fbd8999e4a00cae98bbb | f1f29e12b6e421b620bbab56e82f883b6108bebb | /yxs/demo_hotel_rating2.py | 60ea7f75b95954847284ed538c5c65409c4aa0cc | [] | no_license | yizt/notebook | dca829e3b6071a8b00ced82a59912ad0c142ae74 | 00cf892e8de3f5a55ad9feb826ae51be6b77d1c2 | refs/heads/master | 2022-08-18T23:03:26.739347 | 2022-08-15T03:52:57 | 2022-08-15T03:52:57 | 139,810,366 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | # -*- coding: utf-8 -*-
"""
@File : demo_hotel_rating2.py
@Time : 2020/11/6 上午10:14
@Author : yizuotian
@Description : 使用transformers.Trainer训练
"""
import argparse
import os
import sys
import numpy as np
import pandas as pd
import torch
from sklearn.model_selection import train_test_split
from torch.util... | [
"csuyzt@163.com"
] | csuyzt@163.com |
ebf99575454919a734421312f4be90cf76d23ca6 | 898330d1cca89a46cb83c9d6d9657f99b8e95da7 | /models/cross_validator.py | 5d5d02324beb430f617838d904253080733488a0 | [] | no_license | HamedBabaei/semeval2021-task5-tsd | 1bc00d6f42bb65fd63178108bf7a041c8cfe140e | 1d8ef3aa26a86aafd29178718b729db97fcf3298 | refs/heads/main | 2023-03-25T14:14:59.324303 | 2021-03-26T12:28:26 | 2021-03-26T12:28:26 | 332,460,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from tqdm import tqdm
from sklearn.model_selection import KFold
from scipy.stats import sem
import numpy as np
from tqdm import tqdm
def cross_validate(train, datamodel, model, evaluator, output_maker,
cv=5, print_results=False, dataset_logger=False,
calculate_average=False, return_... | [
"hamedbabaeigiglou@gmail.com"
] | hamedbabaeigiglou@gmail.com |
0ed835b0ceff285f6c4cf324440b2ce19a14dd4f | d90d8422379e5de81e00cab939289c30721aec16 | /Search a 2D Matrix.py | e749e01daf91bc70fec2ec59a485bcafa674b08c | [] | no_license | csvenja/LeetCode | 6a8f41cc205b494d6a50cdaa7c54db807a8fd553 | 034a6b52b847de7b12b81fbe32db64936f1f97b8 | refs/heads/master | 2016-09-10T21:46:22.478216 | 2014-08-01T04:04:40 | 2014-08-01T04:04:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | class Solution:
# @param matrix, a list of lists of integers
# @param target, an integer
# @return a boolean
def searchMatrix(self, matrix, target):
n = len(matrix)
if n < 1:
return False
m = len(matrix[0])
if m < 1:
return False
start = 0
... | [
"c.svenjax@gmail.com"
] | c.svenjax@gmail.com |
e0dba5bcc43fa2abccb865bc3ba5cadcc5e070e4 | 06c5365e17a6cb7fb557e3295c46506d1d32e20a | /leetcode/easy/122.Best_Time_To_Buy_And_Sell_Stock_2.py | e609ed0b9e79acec7b18474f3fff744bbadbf4c8 | [] | no_license | hyun0k/problem-solving | cd1d612416ef4a0ad671be4ea8c37ce6305089c3 | 72d0ba61eb49c0c56554f14bb47261a0f04446b7 | refs/heads/master | 2023-06-09T06:43:38.135557 | 2021-07-04T11:56:06 | 2021-07-04T11:56:06 | 380,132,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | class Solution(object):
def maxProfit(self, prices: 'List[int]') -> 'int':
"""[summary]
여러 번 사고 팔 수 있으므로 산 시점 이후에 오르기만 하면 무조건 팔고 이를 계속 반복한다.
"""
return sum(max(prices[i + 1] - prices[i], 0) for i in range(len(prices) - 1))
# profit = 0
# for i in range(len(p... | [
"hyunyoung9310@gmail.com"
] | hyunyoung9310@gmail.com |
ee13624810362180282997cadc95590b8120c419 | 45208ab398cc3a7e62048ea2c4d08bcd910c15b0 | /ipl.py | 931b7ff278a24792f228e09c48793c7ea839bf20 | [] | no_license | Meet2147/rasaIPL | ec4f282940a39ec3d1039aa54f8dd8e508d49bce | 2f6c694fa40bee8d2482343572fae5810dfd45c6 | refs/heads/master | 2023-01-30T03:25:37.536845 | 2020-10-02T07:53:59 | 2020-10-02T07:53:59 | 320,798,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import json
def IPL(date):
f = open('ipl.json')
response = json.load(f)
list1 = []
#list2 = []
for match in response:
if match['Date'] == date:
list1.append((match['Matches'],match['Time']))
#list2.append(match['Time'])
message = "the requested scheule \n"
#message1 = "the time is"
for text in list1:
... | [
"meetjethwa3@gmail.com"
] | meetjethwa3@gmail.com |
a9c32f12bb7e0611caebcff3ef81fe4b544ba184 | 4234f9f33f9b0a0aa66935ff1c668973785659ef | /entries/urls.py | 924e92136b3d6721a71634e33b91517ab0f16e68 | [] | no_license | chaitany10/Invite-friends-within-x-km | d2c3e2efc8f2f3844a74c500b299f9b50e27f105 | d490558744ea55501c72b94c540454479c3054d0 | refs/heads/master | 2020-04-10T12:25:21.710131 | 2018-12-10T19:13:38 | 2018-12-10T19:13:38 | 161,022,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('<int:userid>/', views.detail),
] | [
"chaitany.pandiya@gmail.com"
] | chaitany.pandiya@gmail.com |
744eba19202e44b4123e246e64343a613a483eaa | cf7c4947d6f792a469b0c05c26636a4a625d3b4d | /node.py | 783e19f848c4bb7604d9cff75f75902c98028e1a | [] | no_license | mpheinze/TSP-ACO | 17f6f7e8e05591d6ada4ac3f6687c4468436c240 | ccd9a05db975f1096db24d82247750531b927e77 | refs/heads/master | 2020-08-11T20:57:56.628888 | 2019-11-26T20:12:22 | 2019-11-26T20:12:22 | 214,626,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | class Node():
def __init__(self, i=0, x_cord=0, y_cord=0):
self.index = i
self.x = x_cord
self.y = y_cord | [
"heinze89@hotmail.com"
] | heinze89@hotmail.com |
aac50345e2f482288311a3cba78931db63f16ad3 | bc00bdc08d76c8be38c51b1f1caeced2a4668592 | /abjad_demo/env/lib/python3.6/site-packages/abjad/core/Mutation.py | 529bcbacb1cb3399d595d50959a9c34a07f767c4 | [] | no_license | gsy/gmajor | 769afd6e87f6712e4059f3f779f41932cbca962d | 7f5f20a19494256615fbaaa840b2a0bbbf6e311f | refs/heads/master | 2023-02-08T07:00:44.479895 | 2019-05-20T13:58:03 | 2019-05-20T13:58:03 | 161,866,236 | 0 | 0 | null | 2023-02-02T06:26:34 | 2018-12-15T03:32:48 | Scheme | UTF-8 | Python | false | false | 109,999 | py | from abjad.system.AbjadObject import AbjadObject
from abjad import enums
from abjad.indicators.TimeSignature import TimeSignature
from abjad.meter import Meter
from abjad.pitch.NamedInterval import NamedInterval
from abjad.top.attach import attach
from abjad.top.detach import detach
from abjad.top.inspect import inspec... | [
"chenxuanguang@chuangxin.com"
] | chenxuanguang@chuangxin.com |
06b5f49e79b349ad70faa988064b4336dd5369dc | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robotframework-ls/src/robotframework_ls/impl/keyword_completions.py | ba1562f27c938347a18fc2151fd96c373f00b5ed | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | from robocorp_ls_core.robotframework_log import get_logger
from robotframework_ls.impl.protocols import ICompletionContext, IKeywordFound
from typing import List
log = get_logger(__name__)
class _Collector(object):
def __init__(self, completion_context: ICompletionContext, token):
from robotframework_ls.... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
d319da9fb58fa68d2b8a777c4b1806438f11568a | c18a82df70c5aec94e692d57f5458b03d3c74e4d | /pys/request.py | 808c9bfe2a8fbc06e76b3d95f9a9a8bde760051a | [] | no_license | swat199538/LeranPython | 80eba3f1c26cae9efa3e54d85846149dea0a277b | 2e413c5fddd4cb2cf2b58cb27b7e35be42699f22 | refs/heads/master | 2021-01-10T23:23:38.631892 | 2016-10-31T09:51:17 | 2016-10-31T09:51:17 | 70,589,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # _*_ coding: utf-8 _*_
import sys
import requests
reload(sys)
sys.setdefaultencoding('utf8')
paramss = {"wd": "python"}
headers = {'content-type': 'application/json',
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0'}
r = requests.get('https://www.baidu.com/s',... | [
"wangliang199538@live.com"
] | wangliang199538@live.com |
d5041c51ebe11f081577b6160fbce711fcff2e24 | ae122999dfb63f6bef6e7e5e99424b90eed9cab1 | /source/sampleProcess.py | 832e06cb5b072a7c0c755b36ad91133a6c5ccb23 | [
"MIT-0"
] | permissive | prasunanand/aws-batch-python-sample | a00199aedfa611e4ff4d9a190dcb4ce57f77bab4 | 57f824c1b900d9f57d0cccc94feb27bb6cf8cfdd | refs/heads/master | 2021-05-15T02:14:47.652322 | 2020-01-07T04:44:03 | 2020-01-07T04:44:03 | 250,239,852 | 0 | 0 | NOASSERTION | 2020-03-26T11:28:33 | 2020-03-26T11:28:33 | null | UTF-8 | Python | false | false | 884 | py | import logging
import os
import urllib.request
"""
This is a simple sample that downloads a json formatted address and writes the output to a directory
"""
class SampleProcess:
def __init__(self, uri="http://maps.googleapis.com/maps/api/geocode/json?address=google"):
self.uri = uri
@property
def... | [
"aeg@amazon.com"
] | aeg@amazon.com |
554b9e16b03d93e3d46ffc856dcdcc7ac9ee49f4 | 72753441d92170e6b54ab759cb81a92764e8abde | /data/cifar_view.py | 2ef2b546090e7a0933f1ca77f3da1a49e1628c30 | [] | no_license | pokem1402/CSED703 | 2bec168d1610695f9070ed8a195babeee00dc01a | fe2292a81777c37e401297a56859ff5513ec8097 | refs/heads/master | 2022-09-08T21:49:31.248963 | 2022-08-26T08:42:39 | 2022-08-26T08:42:39 | 107,729,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | import numpy as np
import matplotlib.pyplot as plt
import pickle
CIFAR10_LABELS_LIST = [
'airplane',
'automobile',
'bird',
'cat',
'deer',
'dog',
'frog',
'horse',
'ship',
'truck'
]
CIFAR100_LABELS_LIST = [
'apple', 'aquarium_fish', 'baby', 'bear', 'beaver', 'bed', 'bee', 'bee... | [
"pokem@naver.com"
] | pokem@naver.com |
ade25c7dbd8c099a51d073326d1e6c6f180b61f6 | aa11593e5508cdcaea3cb10b37e26623da3936b4 | /wangdanfeng.py | bdbb63a1f46f822ec674771327c8c9dcdf2770e6 | [
"Apache-2.0"
] | permissive | No1group/Practice | 9a5b17b1c616efd07e63b558a4541176f77b73b0 | bc8d55ffb3a794f869a2b7e7a111d828c7e1ad5c | refs/heads/master | 2021-04-06T04:01:43.012915 | 2018-03-13T13:11:15 | 2018-03-13T13:11:15 | 125,048,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | print('猜猜我是谁') | [
"pythonW@126.com"
] | pythonW@126.com |
bf50b75bd9e55637ad8c0d461a4a79783180775e | f8845af1f51562b9d56497de435d37270e059660 | /DeepLearning_filmClassify/predict.py | d01564da376d0a62cb0f7caeca963688c1b426fa | [] | no_license | ZJ96/deeplearning_project | 1bf2c33d90f46a49588fc9eb7c827bc76186d977 | 48367b58090519d9e63344f8287abe29606b3933 | refs/heads/master | 2023-03-12T05:40:03.848643 | 2021-03-09T06:43:09 | 2021-03-09T06:43:09 | 345,907,705 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import config
import jieba
import torch
from model import SentimentModel, pre_weight
from util import build_word_dict, set_seed
from train import *
def predict(comment_str, model, device, word2ix):
model = model.to(device)
seg_list = jieba.lcut(comment_str, cut_all=False)
words_to_idx = []
for w in se... | [
"807524568@qq.com"
] | 807524568@qq.com |
e7f5baad382a26f24197a5c9175cca98b7075e17 | cbd1c52de6cd45208ecce076c238dfc75cebd70a | /core/rc_rpc.py | a2ed18df473374275e4bf53f78759acbc01b2dd4 | [
"Apache-2.0"
] | permissive | enterpriseih/distributed-realtime-capfaiss | 2e20cad0c788c0700df948b6a46be52d91ac5b9b | 3346f540b6c9d17a6be446fefa8c9b79164929d9 | refs/heads/main | 2023-08-16T20:30:20.807161 | 2020-12-11T02:50:41 | 2020-12-11T02:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | # encoding: utf-8
"""
@time : 2019/5/24 下午10:22
@author : liuning11@jd.com
@file : recall_sku_rec_core.py
@description : sku推荐
##########################################################
#
#
#
#
##########################################################
"""
impo... | [
"liuning11@jd.com"
] | liuning11@jd.com |
f38ba158f0d5da73f046966b14e6959374ad87b5 | 8ccd60a46c4e2551e03fbdf7efd45c37c94da9ac | /scouts/admin.py | e659669534e4a85da4cff1c8f4b41f6868914676 | [] | no_license | nickpack/BasScouts | 56220226c444ba25c1843a4e781adcd7a715f5ff | 4828d82f38529cf5be2d56aa9a36f64f48ef4790 | refs/heads/master | 2021-01-19T06:37:34.867141 | 2012-05-25T09:00:44 | 2012-05-25T09:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | __author__ = 'Nick Pack'
from scouts.models import *
from django.contrib import admin
admin.site.register(FAQEntry)
admin.site.register(ScoutPack)
admin.site.register(ScoutLeader)
admin.site.register(NewsCategory)
admin.site.register(NewsArticle)
admin.site.register(Gallery)
admin.site.register(GalleryImage) | [
"nick@nickpack.com"
] | nick@nickpack.com |
7e529373a47653de3ecb8ec3abf1e32c6d4f9a1e | 08539fe5f1fbf9b4be09756825265569477e5280 | /scapy-network-scanner.py | cfe2d1e9f1bc8128444f9caf58f0be71bff66812 | [] | no_license | poetsec/network-scanners | abeabe58616f0c04f624934ebf07685b0bce09ec | 974ef3f6da973243e677d93e147c5d438a7a7f3d | refs/heads/main | 2023-07-14T18:14:18.469958 | 2021-08-27T07:05:11 | 2021-08-27T07:05:11 | 389,490,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/env python
import scapy.all as scapy
def scan(ip):
scapy.arping(ip)
scan("# add IP and/or range here")
| [
"noreply@github.com"
] | poetsec.noreply@github.com |
61c238b475be55c5fe52336ecc02e40ad6a44d5f | ecc2c6a8cb7c383a63b4a68ba51adc05847f0cd0 | /05.定制后台和修改模型/article/migrations/0001_initial.py | 807a434da0b7b102728def1103d86fcffe5e2647 | [] | no_license | daiqing5/django2.0-course | 677e97994bf47eec4742c70100b5609fd93b15ca | f4446fee5282d08f62d3bbe74ccfefba16afe6f3 | refs/heads/master | 2023-01-22T01:08:39.252609 | 2020-12-02T09:03:27 | 2020-12-02T09:03:27 | 275,532,806 | 1 | 0 | null | 2020-06-28T07:37:55 | 2020-06-28T07:37:54 | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 2.0 on 2018-07-24 17:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(au... | [
"624644925@qq.com"
] | 624644925@qq.com |
15b810c22d83d347776d4b42314bd5f8e80f1f8b | ba25734f14956d77bd492b1edc50c8fca3783b13 | /ev3devices/4-ultra.py | 2614d462ba47b99004af1689aa3c52dca155cda4 | [] | no_license | akorea/ev3micropython | 41880fd53a2f6b39361e8e36237bbc33a2b27594 | 234e7f778982320f6ae8bf106407aa2a30fee0c1 | refs/heads/main | 2023-01-10T03:07:21.919282 | 2020-11-13T06:31:52 | 2020-11-13T06:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #!/usr/bin/env pybricks-micropython
from pybricks.hubs import EV3Brick
from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor,
InfraredSensor, UltrasonicSensor, GyroSensor)
from pybricks.parameters import Port, Stop, Direction, Button, Color
from pybricks.tools import wait, St... | [
"serenax001@gmail.com"
] | serenax001@gmail.com |
576fd469a699f9e63a9eb104de5965f973058d62 | 927bd5c34d51d24eacaf24d0ab556126fd7ae16b | /day_08/Dominik/solution.py | 8b8630bb29eac2fa9699eaaeda56a23a86a885af | [] | no_license | voidlessVoid/advent_of_code_2019 | 3dbef85f1753fedd6418cfb6989604f70f745d64 | fa59c3383ef846c237869a5f8a5284ea3a6ce4e9 | refs/heads/master | 2020-09-18T11:25:41.798889 | 2020-09-16T10:12:59 | 2020-09-16T10:12:59 | 224,144,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | def read_input_to_list(path):
with open(path, "r") as f:
content = f.readline()
return content
content = read_input_to_list("input.txt")
image_size = (25, 6)
def layer_splitting(image_data, size: int):
start = 0
for i in range(0, len(image_data), size):
yield image_data[start:start ... | [
"noreply@github.com"
] | voidlessVoid.noreply@github.com |
dc05cdbaf04f61da245f5a9fa52bbc06550f2a2b | 2772b58d09f3cc8fad2b4354dee7a06c481b7d23 | /forum/migrations/0043_auto_20150513_1003.py | 701ce197db9b45b5753879a2fb2b2b14c10d4ea6 | [
"MIT"
] | permissive | shmilyoo/ggxxBBS | 33cef10ac2284010028556c6d946566de05537da | cef6408e533bd0b0f57c3e2f5da4e93ea07c4331 | refs/heads/master | 2020-04-25T02:56:02.116161 | 2019-02-25T07:57:02 | 2019-02-25T07:57:02 | 172,458,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0042_auto_20150508_1059'),
]
operations = [
migrations.AddField(
model_name='topic',
name='... | [
"fighter_yy@qq.com"
] | fighter_yy@qq.com |
1e95250d9420099583ef36604b6e7a625c4afbf7 | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2018_euaims_leap_predict_vbm/supervised_analysis/VBM/1.5mm/by_site/05_svm_site5.py | feab05287682a38dbe71c03cb56bbccbdcb92fee | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,415 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 23 10:04:13 2017
@author: ad247405
"""
import os
import json
import numpy as np
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import precision_recall_fscore_support
from scipy.stats import binom_test
from collections im... | [
"ad247405@is228932.intra.cea.fr"
] | ad247405@is228932.intra.cea.fr |
70c471a0c8c7b801ecf6784c2946caea96718340 | 5c4c98523fc40fb7a24b02b7a8306425b893f39a | /easy/min_cost_houses.py | 14f48db1868e53a6394c2fed297ffd16e268049b | [] | no_license | Hashah1/Leetcode-Practice | a8dfe8b01b8a01fca15464531d31be4e41877611 | 1639a4b13c692d87c658a7e0a11212bf0e98d443 | refs/heads/master | 2022-11-29T02:09:06.050073 | 2020-08-17T05:23:30 | 2020-08-17T05:23:30 | 174,291,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | class Solution(object):
def minCost(self, costs):
"""
:type costs: List[List[int]]
:rtype: int
"""
prev_cost_red = prev_cost_blue = prev_cost_green = 0
for each_house in costs:
# Get the minimum cost to paint each color
# Each color cost is the... | [
"mian_hashim_shah@hotmail.com"
] | mian_hashim_shah@hotmail.com |
010f7ef28030f1f299d6033646b60ef8f40c3091 | c6368425c629298fd8b32074da71707e54298aa4 | /iteration of elements of a tuple.py | c11d858f9bc2005cd7aeadf1b91619ad2c76c757 | [] | no_license | Khushi-S-B/Python_3.x_Programmes | e2c91b554c6840ee1ea254490e19ee62430c4a57 | 64e47df728d93cdc2f0ce90202d5ddb1269e1d68 | refs/heads/master | 2020-06-27T17:24:01.065795 | 2019-08-01T13:38:36 | 2019-08-01T13:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | x=(1,2,3,4,5)
for i in x:
print(i)
| [
"kb104242@gmail.com"
] | kb104242@gmail.com |
bd507008a85e834e6fcc8b6238059ddfd960c7da | 1ea38f360f0a0b923742a37c65123986df427d58 | /modelP4.py | a85649af737b7da2653e4a891879118492990477 | [] | no_license | kainanfariaUFC/Pesquisa-Grafos | ce0b313486368602699853dcb78ca529293a4d32 | b31456bb0f7b6b3edfb051e78f298d17747fe8e2 | refs/heads/master | 2020-12-13T11:11:19.398299 | 2019-12-19T01:20:56 | 2019-12-19T01:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,962 | py | from pulp import *
import graphviz
class ModelP4:
def __init__(self, name_file):
self.name_file = name_file
self.tableX = []
self.tableY = []
self.file = open("/home/kainan/Documentos/Pesquisa/Python/final_files/files_txt/"+name_file+".txt", "r")
self.file2 = open("/home/kai... | [
"noreply@github.com"
] | kainanfariaUFC.noreply@github.com |
9155496243525236f48b1950e5f3e01539d6c6e5 | e5d4345bf084bd8ffc0797d14bbca6032202c9e5 | /tests/test_package_helper.py | 3f4405824a4247698bf71965b42cf4a6f006b559 | [
"MIT"
] | permissive | iranianpep/iautomate | 0a318402de6801ce35d541ddf7a2392766e08eca | c187aedaf8f71c63e06a2112fbcf65f60217c5bc | refs/heads/master | 2020-03-26T15:24:25.605974 | 2018-08-19T16:12:23 | 2018-08-19T16:12:23 | 145,041,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | import unittest
import mock
from iautomate.helpers.package_helper import PackageHelper
class TestShellHelper(unittest.TestCase):
@mock.patch('subprocess.Popen')
def test_run_command(self, mock_subproc_popen):
process_mock = mock.Mock()
# mock ShellHelper.run_command function and returned in... | [
"iranianpep@gmail.com"
] | iranianpep@gmail.com |
60fd130c4ad4a8d7e26bb9aa923ad0b8eb0c704b | f1c48f9d3afb08104cb2ec777a72bdf2989d984b | /TASK1/29.py | 2e9fc1ebba99d358c724ca87fda730b63d259a49 | [] | no_license | DIas-code/ICT_2021 | 4af0bf09869bd3b6e816806c3b49986abb4967b9 | 5a8a080b66f14263e5d8dda8eacca9fe62ada7c0 | refs/heads/master | 2023-04-13T17:06:02.594802 | 2021-04-22T14:55:02 | 2021-04-22T14:55:02 | 338,098,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | celsius=int(input("Celsius: "))
print("Farhneit: ", celsius*9/5+32)
print("Kelvein: ",celsius+273.15) | [
"diasermekov09@gmail.com"
] | diasermekov09@gmail.com |
0502b29ae3d830832f8dabcee9d1a06ae9e45abf | b9a0f3e2950521cf0e7181632b77333e0365d55f | /blog-master/accounts/views.py | 0b29e4f00a7328cc8709bea6eb1ed20a223b983c | [] | no_license | yunsuu/Django-study | 86b557ec67234856b161a06687f080f23ee7101a | aeadbda27e2b9d8470318dcc5ff414c61bd4d3f8 | refs/heads/master | 2020-04-18T02:15:20.593899 | 2019-03-10T10:16:54 | 2019-03-10T10:16:54 | 167,155,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib import auth
def signup(request):
if request.method == 'POST':
if request.POST['password1'] == request.POST['password2']:
user = User.objects.create_user(username=request.POST['usern... | [
"ljsql934@gmail.com"
] | ljsql934@gmail.com |
9140de8119fd4de74a177d50b4b9aa0fb0cd14da | 35ba45c9706e1d46eaa09a51f20997c319e41aff | /server/pages/models.py | e8148bdedd5dc57ed92eaa5965180066762e9f09 | [] | no_license | mcpetri/CyberSecProject | a3f8e2ea2fd0ba2feb6ded428b3d17d6a705acd0 | 5013e0a77cd7506922e862b92680a6d7b6cc5292 | refs/heads/main | 2023-07-04T01:25:14.210005 | 2021-08-16T10:40:37 | 2021-08-16T10:40:37 | 322,878,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
balance = models.IntegerField()
class Mail(models.Model):
content = models.TextField()
class Message(models.Model):
source... | [
"noreply@github.com"
] | mcpetri.noreply@github.com |
2eff722279b116b5e6f89e12ecbf881df6d39e23 | 7855482b1c4e97ac41b9c1f3b4166b0473fe54d3 | /Get_Episode_Ids.py | 2fccdee0baa75a232163f8047c06df17b6b91a9c | [] | no_license | frimelle/Bubblewatch | f309c7877d0ec2ab3f0549bd857b94726966a44a | 4524079b68d1702af146157318073c8d8e7f181f | refs/heads/master | 2021-01-22T09:09:07.787866 | 2015-03-06T14:11:49 | 2015-03-06T14:11:49 | 31,738,979 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # This Python file uses the following encoding: utf-8
#!/usr/bin/python
import gzip
import json
__author__ = "Lucie-Aimée Kaffee"
__email__ = "lucie.kaffee@gmail.com"
__license__ = "GNU GPL v2+"
#check if entity is an isntance of episode (Q1983062)
def is_episode( json_l ):
if 'claims' in json_l and 'P31' in json... | [
"lucie.kaffee@wikimedia.de"
] | lucie.kaffee@wikimedia.de |
e47dbe1c9618e9a367461469aa1535b4218551f4 | 59f027697b2d28ca5a457625751c6c87c8ba94d9 | /solutions/pub_lab/basic_solution/tests/drink_test.py | a371d4116a2da3902753fd9f971bba31f1a099ea | [] | no_license | ecoBela/pub_lab_wk2_day3 | f227daf22f4cc5bcc2258f1ced6763a8e95733d3 | b5ff4a67021404ddd70c1e6dfd7b1da21b6ad123 | refs/heads/main | 2023-02-06T07:04:44.018035 | 2021-01-01T21:36:22 | 2021-01-01T21:36:22 | 315,912,404 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import unittest
from src.drink import Drink
class TestDrink(unittest.TestCase):
def setUp(self):
self.drink = Drink("wine", 4.00)
def test_drink_has_name(self):
self.assertEqual("wine", self.drink.name)
def test_drink_has_... | [
"belahamid@gmail.com"
] | belahamid@gmail.com |
5c56a2be5c8fa6a1e87dc49bd94bad29ab8d58af | 3f8c7a90cd87274c5e288ddf73b43d08c2239259 | /task4/Task_4_VD_1600/Task_4_VD_1600_position_controller.py | 3d71aa7af7f99f9c5deb92c59042ded397fe36c9 | [] | no_license | TejasPhutane/E-Yantra_Tasks | 2e402ba691b1d6d6f423be3d3928beec59799267 | 168ca6465266b52950774477449ceeef40d406e4 | refs/heads/main | 2023-04-14T03:14:54.471143 | 2021-05-04T11:15:06 | 2021-05-04T11:15:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,307 | py | #!/usr/bin/env python
# Importing the required libraries
from vitarana_drone.msg import edrone_cmd, location_custom
from sensor_msgs.msg import NavSatFix, LaserScan
from vitarana_drone.srv import Gripper, GripperRequest
from std_msgs.msg import Float32, String, Int32
from pid_tune.msg import PidTune
import rospy
impo... | [
"shreyasatre16@gmail.com"
] | shreyasatre16@gmail.com |
7c134f6c33ff981cfc8dd4e203525f6c6d4abbd5 | 64d5bfbe2a2d2ed2d14c34f6e8be7a368b29b22e | /blog/urls.py | 9cc9463c785a6870aa55668b696b434a92259a9a | [] | no_license | transpac/my-first-blog | a828e2dde49bf949fc92afa85fa78a8c9ce7e028 | 183cdfe41376f5bd226da69b60dc4918160f7c5e | refs/heads/master | 2021-03-10T04:46:19.268744 | 2020-03-12T16:56:36 | 2020-03-12T16:56:36 | 246,420,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new/', views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
]
| [
"hkoo@transpacgroup.ca"
] | hkoo@transpacgroup.ca |
1b0ee748166c453488c46842a4ab8596101eef19 | 755572a007cd02d1b70f66b1a9c439c123cbef6c | /ABC240/A.py | 13600be0edea2b2840e761aa3188148a3a22a9fc | [] | no_license | tsubame-misa/Atcoder | 633fa10fe161c512112282b6148abedb56f0b77d | 95814dbd9f5ae511f57841eab3aba49c4121dfe3 | refs/heads/master | 2023-02-03T18:57:10.616225 | 2023-01-31T10:10:45 | 2023-01-31T10:10:45 | 217,071,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | a, b = list(map(int, input().split()))
if abs(a-b) == 1:
print("Yes")
exit()
if (a == 10 or b == 10) and abs(a-b) == 9:
print("Yes")
exit()
print("No")
| [
"watamisa080513@gmail.com"
] | watamisa080513@gmail.com |
2027b9eae327774a4019a1cd5750223dbc1d0785 | a87bb87212cbf9e7bf883e130558061385608ba2 | /RenderMan/RIB/16.python/affine.py | 825c164655c9921c97bd5ba05764b53c081d0b9f | [] | no_license | RosieCampbell/EngD-courses | 3ef359f64902da8a96cb904c7c25d3fe05d9ee09 | d36b0338d3008b0b6004e13a58bb5d1c8007fcee | refs/heads/master | 2021-03-24T11:44:06.851142 | 2016-01-14T11:14:53 | 2016-01-14T11:14:53 | 46,414,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | #!/usr/bin/python
# for bash we need to add the following to our .bashrc
# export PYTHONPATH=$PYTHONPATH:$RMANTREE/bin
import getpass
import time
# import the python renderman library
import prman
ri = prman.Ri() # create an instance of the RenderMan interface
filename = "affine.rib"
# this is the begining of the ... | [
"rosiekcampbell@gmail.com"
] | rosiekcampbell@gmail.com |
125135cd5217d66bdf4096d7faeefc27f52bdbc4 | 28d8f6b621bd756cc7501caff9edb8781b25f436 | /MITADS-Speech/m-ailabs_importer.py | e0e7c4237a8f90550a0c83b47fe738da779cbfb9 | [] | no_license | Flavio58it/DeepSpeech-Italian-Model | f0c1c2bcbeadcee630d19044155742a91ce9771f | 97c9fbd1c23f604ebc92b620ba0c38c19f734940 | refs/heads/master | 2023-02-20T16:38:01.473021 | 2021-01-19T14:01:27 | 2021-01-19T14:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | #!/usr/bin/env python3
import time
import os
import re
from corpora_importer import ArchiveImporter,Corpus,encoding_from_path
from glob import glob
CORPUS_NAME = 'm-ailabs'
class MAILabsImporter(ArchiveImporter):
def get_corpus(self):
SKIP_LIST = [] ## filter(None, CLI_ARGS.skiplist.split(","))
... | [
"noreply@github.com"
] | Flavio58it.noreply@github.com |
59e5bf8b420b7aa726ad91843cc9a610a5e83147 | 9d39f6ec24ea355ee82adfd4487453172953dd37 | /tao_tracking_release/tao_post_processing/track_concat.py | 0fdfff40bdef748b85946943a6bbda28cc689391 | [
"Apache-2.0"
] | permissive | feiaxyt/Winner_ECCV20_TAO | d69c0efdb1b09708c5d95c3f0a38460dedd0e65f | dc36c2cd589b096d27f60ed6f8c56941b750a0f9 | refs/heads/main | 2023-03-19T14:17:36.867803 | 2021-03-16T14:04:31 | 2021-03-16T14:04:31 | 334,864,331 | 82 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | import argparse
import itertools
import json
import logging
import pickle
import sys
from collections import defaultdict
from multiprocessing import Pool
from pathlib import Path
import numpy as np
import pandas as pd
import torch
from tqdm import tqdm
# Add current directory to path
sys.path.insert(0, str(Path(__file... | [
"feiaxyt@163.com"
] | feiaxyt@163.com |
b80d1c85edf42a29361b7158c0a8511f0fa7d734 | a459e784ec9dbdd9c919f7438cdf32c457d9a695 | /polls/models.py | b8371d67d603bac726592ee0626a9e159fa93280 | [] | no_license | eisscerav/mysite | 46261ed81bf024dc54441005a643825d42b9e71d | 8e2879abcd5296c407c3828d3673c3123b2418f9 | refs/heads/master | 2021-05-05T20:22:32.792043 | 2018-02-08T08:46:58 | 2018-02-08T08:46:58 | 106,006,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Create your models here.
import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
def __str__(self):
return self.question_text
question_text = models.CharField(max_length=200)
pub_... | [
"eisscerav@163.com"
] | eisscerav@163.com |
d457512b9082a87bd382e9d0bd8e6ddc0090fedd | d427d523c17831aaef89c2a1a12994e4ef702cd1 | /tojson.py | a00d806c74ee58f2683fcb82b5a9fa316e092391 | [] | no_license | li39000yun/pytest | e5e8455145da51ede15acb15422409ad8c66b29b | ca303ebfb27e86b0120e2563f2d70d1caf1e82db | refs/heads/master | 2021-01-02T09:16:27.546353 | 2017-08-03T01:52:05 | 2017-08-03T01:52:05 | 99,178,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import tushare as ts;
import datetime;
# 中国平安(601318);万科(000002);天音控股(000829)
arr = ['601318','000002','000829'];
date = datetime.datetime.now().strftime('%Y%m%d');
today = datetime.date.today(); #获得今天的日期
lastmonth = today - datetime.timedelta(days=31); #用今天日期减掉时间差,参数为31天,获得上月的日期
endDate = today.strftime('%Y-%m-%d');... | [
"li39000yun@qq.com"
] | li39000yun@qq.com |
22c988958773de54be8cd107dfe7721f2f259e49 | 5ac521d6a3a7d070877da4a59dc038a0568ba378 | /backend/config.py | ffac1d4b678a646791eb3dc91c7402bb4dabbb4c | [] | no_license | duanribeiro/exponential_ventures_challenge | 047d2bc3637fea2b17953b83c7f9c25cf0794255 | aab4271fb3dd8a713e927fe91f9da2c40ba7c2d2 | refs/heads/main | 2023-01-15T07:34:40.630263 | 2020-11-30T09:51:44 | 2020-11-30T09:51:44 | 316,333,655 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import logging
from logging.config import dictConfig
logger = logging.getLogger(__name__)
class BaseConfig:
DEBUG = True
RESTPLUS_VALIDATE = True
ERROR_INCLUDE_MESSAGE = False
RESTPLUS_MASK_SWAGGER = False
PROPAGATE_EXCEPTIONS = True
class DevConfig(BaseConfig):
SQLALCHEMY_DATABASE_URI = '... | [
"duan.ribeiro@hotmail.com"
] | duan.ribeiro@hotmail.com |
9350ae0dad129afa51567e3f2a5590c9760b7305 | 0a1cbf94ad14cc7af7543b76c3f617530887acff | /challenge/challenge.py | a57dc9c138f254204f09b8a701ab88001a456e69 | [] | no_license | Roxy786/mycode | 1c616e8e639ec59442f345a54927e655aaae6fb6 | 5c7008f4c8a81ffbc955ae78da617338fada2ec8 | refs/heads/master | 2020-06-25T23:47:37.054495 | 2019-08-01T18:39:40 | 2019-08-01T18:39:40 | 199,458,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #!usr/bin/env python3
list = ["Pinta","Nina","Santa-Maria",3]
print ("Columbus had" + str(list[3]) + "ships the Nina, the Pinta and the Santa-Maria.")
| [
"roxybegum@alta3.com"
] | roxybegum@alta3.com |
7ab3735ad8551c4d0d269fe53de919a2381a8599 | 8d26b4b70d5a4e1ac9dcb7956ea39cf444cdffab | /qs-RegressTest-yg/RunFast/Common/__init__.py | 89b208fb1f38d72e208f32f645df5d661051a0db | [] | no_license | zyy120/qs-RegressTest | dec8808e35efe362b510ff0e312a2c476fa575d9 | 6a5bd9f815236f2a7f164b63161b9496934aa8e7 | refs/heads/master | 2020-04-17T03:38:26.072417 | 2019-02-25T02:05:17 | 2019-02-25T02:05:17 | 166,193,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@ author: Hubery
@ create on: 2018/11/22 10:29
@ file: __init__.py.py
@ site:
@ purpose:
""" | [
"1014868589@qq.com"
] | 1014868589@qq.com |
2371ec1a4185f11f3f44cb205c59ff7bf70400cd | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/clients/migrations/0019_remove_deployment_client.py | 9a0695a9ae3a2f8d1629acffc8c14fc92ddbd8ec | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 332 | py | # Generated by Django 3.2.6 on 2021-10-28 00:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('clients', '0018_auto_20211010_0249'),
]
operations = [
migrations.RemoveField(
model_name='deployment',
name='client',
... | [
"josh@torchlake.com"
] | josh@torchlake.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.