blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e8424e290643259e8f4b6854ed2725343d9e5cd | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v8/resources/types/ad_group.py | 243d485134ef74e75b402fb5eb6187f67cf4952e | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,520 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
66d512673c537674ae11cbee4685d528fd2c159a | f611edb1c5ad13ffeb35ababa400f46453deaaf0 | /task2/second.py | d9e8b2fed32a7432d742a8fe5f203bbed2766a66 | [] | no_license | PavelFilonov/LearningPython | ab38fd5da53e5dd092a1d0c65f2754ec49496ad7 | 43f23764d3b37e9da6e4592434cc4c06f2e3bf8c | refs/heads/master | 2023-07-05T10:27:20.183088 | 2021-08-07T02:36:39 | 2021-08-07T02:36:39 | 393,547,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | def solution(matrix):
# 1 - последовательность возрастает, 0 - убывает, -1 - первоначальное значение,
# 2 - не убывает и не возрастает
s = -1
sign = -1
currentRow = len(matrix) - 1
for j in range(0, len(matrix[0])):
for i in range(0, len(matrix)):
if j == len(matrix[0]) - 1 a... | [
"qqq.qqq48@yandex.ru"
] | qqq.qqq48@yandex.ru |
3e428ed45a6453054fba8058c7ff3ad38de20bdc | 94c3f065abe6a1391117327efbad4f7cce0b0978 | /ecommerce_webapp/views.py | 564b16f63e228794a347891904e4e1b52c9dec9a | [] | no_license | ycv005/Ecommerce | 9c9a3a88517d33de657eb441980473b593912ca8 | 09bb27476a529d6c34274fdaf4b6ef38f6b6884b | refs/heads/master | 2022-12-23T05:11:27.428853 | 2020-08-17T12:13:59 | 2020-08-17T12:13:59 | 178,663,902 | 3 | 1 | null | 2022-12-08T09:35:49 | 2019-03-31T08:51:05 | JavaScript | UTF-8 | Python | false | false | 785 | py | from django.shortcuts import HttpResponse
from django.shortcuts import render,redirect
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from .models import ContactForm
def home_page(request):
return render(request,"ecommerce_webapp/home_page.html",context={"title":"Th... | [
"ycverma005@gmail.com"
] | ycverma005@gmail.com |
752e9f1a6a208543137c36cda179ddf64539f177 | b4a0380acd79a21c5596bfa5fac6eb337ef5359a | /build/lib.linux-x86_64-3.8/maskrcnn_benchmark/data/datasets/evaluation/kitchen/__init__.py | 262e29603168969af9a493dd19f6620fd1abb4d8 | [] | no_license | xiaofeng-c/Morphable-Detector | 781104d8a7221eb03c55a67f51f696e46ded4003 | 3e50bb20493c3e0b99d37971e51487124aa08b5b | refs/heads/master | 2023-08-27T20:53:21.606442 | 2021-10-18T22:28:38 | 2021-10-18T22:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import logging
from .kitchen_eval import do_kitchen_evaluation
def kitchen_evaluation(dataset, predictions, output_folder, box_only, **_):
logger = logging.getLogger("maskrcnn_benchmark.inference")
if box_only:
logger.warning("kitchen evaluation doesn't support box_only, ignored.")
logger.info("p... | [
"zhaoxiangyun915@gmail.com"
] | zhaoxiangyun915@gmail.com |
8873e1b784b24057a8e64655dca5dc3c4d1f3d87 | 5603625e865a7cfe415c1aae4035a890aeb23864 | /bin/mnu.py | a178061c01bb7c57e4e3d48aa0bfeed54f50e963 | [] | no_license | msyriac/peakaboo | aa3ac1396c2af0862f9c5891a20a08dddd97068b | 8bb8a50262695733b086984f7d89ff4f04187278 | refs/heads/master | 2021-01-21T13:30:31.434801 | 2018-05-16T18:53:34 | 2018-05-16T18:53:34 | 102,130,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,997 | py | import numpy as np
from peakaboo import liuSims as ls
import orphics.tools.io as io
import os,sys
import orphics.analysis.flatMaps as fmaps
from mpi4py import MPI
from orphics.analysis.pipeline import mpi_distribute, MPIStats
import orphics.analysis.flatMaps as fmaps
from enlib import enmap, resample
# Get MPI comm
co... | [
"mathewsyriac@gmail.com"
] | mathewsyriac@gmail.com |
c93d95df971729dcee51ec911d73f0372fbfad09 | 77c1363118126868499354d0ead05d2815066d14 | /database.py | e9ad43c944538f9b4b0d795f73e94b4ef390f565 | [] | no_license | JDamour/iDBMS-SQLITE3 | f56f2ede1538007a773dba1f7c2ad588eb344d2e | c01c1b3e91caa6dfc720b86822060842c5005ab9 | refs/heads/master | 2021-07-09T15:50:17.857616 | 2017-10-04T15:21:43 | 2017-10-04T15:21:43 | 105,782,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | #!/usr/bin/env python3
import sqlite3
class database:
def __init__(self, **kwargs):
self.filename = kwargs.get('filename')
self.table = kwargs.get('table', 'table_name')
def sql_do(self, sql, *params):
self._db.execute(sql, params)
self._db.commit()
# Insert method allows to ... | [
"mpatswenimanaj@gmail.com"
] | mpatswenimanaj@gmail.com |
30e7ee6e9613f8e3a445ca8013212c82994b3b3a | 5ba25b77a21406e5549435724b2954db1fd90298 | /app/migrations/0003_auto_20200622_2232.py | 8d6b796f2610cc56782b732d66f1b2f3ddeef8a9 | [] | no_license | CodePythonFollow/Django | 66e94673377f1b5afffa605f9cb2e1e42222efdb | 6c3ee68e7766f2225614c17f3b7dab107bb1577f | refs/heads/master | 2022-12-14T05:51:57.312005 | 2020-09-22T01:05:14 | 2020-09-22T01:05:14 | 271,512,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.0.7 on 2020-06-22 22:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0002_grade_strudent'),
]
operations = [
migrations.RenameModel(
old_name='Strudent',
new_name='Student',
),
... | [
"code1832389863@gmail.com"
] | code1832389863@gmail.com |
70d962dc42ed35c2ff643bbf27a7867dbdb3e1b3 | 786fc7dd46ea4f14266d264ef9cf1b176fff3a62 | /venv/Lib/site-packages/df_config/management/commands/config.py | d5c4a390c0ccb12ef6b604eb702ae2908bbda2bf | [] | no_license | liaxio/StockWeb | 59bb5d9706cf71f3819435018cb87c900451697f | 8cb27be3fa808461cbd6addc58c7a9c6f3230038 | refs/heads/master | 2023-07-04T01:32:17.827892 | 2021-08-03T01:49:12 | 2021-08-03T01:49:12 | 392,148,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,324 | py | # ##############################################################################
# This file is part of df_config #
# #
# Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ... | [
"sanjidafirdaws@gmail.com"
] | sanjidafirdaws@gmail.com |
52fe5c0ff1bb7e21c43186b82e52b142647c0566 | 83ed1e2f176133c03a5f6dfa504b8df15ae71efb | /python/secondary/jnet/jnet.py | d29d5ce53337781076ea7ea61b55aca71ca18040 | [] | no_license | jmborr/code | 319db14f28e1dea27f9fc703be629f171e6bd95f | 32720b57699bf01803367566cdc5fff2b6bce810 | refs/heads/master | 2022-03-09T16:11:07.455402 | 2019-10-28T15:03:01 | 2019-10-28T15:03:01 | 23,627,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,652 | py | #!/usr/bin/python
import os,sys,re
from jobs.job import pastry
from inputArgs.inputArgs import inpHand
from utilities.small_utilities import Bye,junkName
from utilities.codedir import codedir
from seq.blastManager import blastRun
from seq.fastaManager import importFastaEntry
from seq.msa import gen_msa
from seq.letter... | [
"borreguero@gmail.com"
] | borreguero@gmail.com |
3c7e836b0ae3a089ae38ec027c2ac8499c8a5dc1 | 7dfe4fad8d7b3583a5a69bb566fdb42910d6b50b | /models/submethods.py | 834c373886c3fe2e45edbdb2271241547d3c003f | [] | no_license | take610/komugi | 35c9926035b42cc5fc373b208c838daef1c7afde | dea71fb8d1765ce761d075c5298262e82b337c71 | refs/heads/master | 2022-11-23T11:30:46.783806 | 2020-07-27T16:51:07 | 2020-07-27T16:51:07 | 281,337,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import torch
from torch import nn
class LabelSmoothing(nn.Module):
def __init__(self, smoothing = 0.05):
super(LabelSmoothing, self).__init__()
self.confidence = 1.0 - smoothing
self.smoothing = smoothing
def forward(self, x, target):
if self.training:
x = x.float(... | [
""
] | |
3c14f798c81ccf5b68cfd4c2f17fa28fbda526b5 | ad2692dc7b93e58707ea066d8c2af2581b09fe6d | /slcount.py | 82d2bdf6e62ee6e3a6d432e31bbd8cc5df09443b | [] | no_license | fedefraba/Python | 01087ed5919f8cc4c21e032bb6125246be836962 | 93d8d78b92ba87b112ff2118cc47b29d355cecab | refs/heads/master | 2021-02-06T02:34:44.531951 | 2020-03-11T23:24:46 | 2020-03-11T23:24:46 | 243,865,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py |
def single_letter_count(string,letter):
return string.lower().count(letter.lower())
print(single_letter_count("fruby","r")) | [
"fedefraba@gmail.com"
] | fedefraba@gmail.com |
80137af34837964be8bf789dbbcf21a7a1f05a3a | 3d386ef093427c227f0ba6637eedfbce044a2e9e | /tfbert/optimization/create_optimizer.py | ac6c1abc5c6bf2aebe07f51b89fe61f37dbec2ae | [] | no_license | HaierAI/tfbert | c3eeb77af70e79e925e72c393a3e8229feaf1a4a | 3779e59a4ebe7458ae732fef547f1168badbba2b | refs/heads/master | 2023-07-09T05:25:19.015760 | 2021-08-16T12:27:37 | 2021-08-16T12:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,278 | py | # -*- coding:utf-8 -*-
# @FileName :create_optimizer.py
# @Time :2021/1/31 19:58
# @Author :huanghui
import tensorflow.compat.v1 as tf
from .adamw import AdamWeightDecayOptimizer
from .lamb import LAMBOptimizer
from .schedule import lr_schedule
def create_optimizer(
learning_rate,
num_train_s... | [
"m13021933043@163.com"
] | m13021933043@163.com |
50499ed278f1c769e6003b5e965f70ca46dd96e2 | 8972658ca2c64703e8281db89d7a6ac47cbabbf7 | /backend/tests/models.py | db9754be03118136304be7ed51dc6c7b912ed427 | [
"MIT"
] | permissive | denisorehovsky/linkanywhere | 15721824719cc8a959cdddb4178cfe754eb4862d | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | refs/heads/master | 2022-07-21T16:16:17.412930 | 2017-08-24T06:32:37 | 2017-08-24T06:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import uuid
from django.db import models
from linkanywhere.apps.base.behaviors import Published
class TestModel(models.Model):
"""
Base for test models that sets app_label, so they play nicely.
"""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
class Meta:
a... | [
"denis.orehovsky@gmail.com"
] | denis.orehovsky@gmail.com |
bd9e3d8529d21ceea5715087109dabadddcf6110 | 8a250a2e9606e59f814441a9a58544f9c9799931 | /app/__init__.py | 43e91d86655b50b7d6ed9bb60755bc8246853659 | [] | no_license | magalvez/customerservice | 68a9c5e8941c064f201461ba4b0270d79bb12a4a | 994a7212633f2e9dcfd77a3b167fe2284188470f | refs/heads/master | 2023-04-20T16:16:25.977589 | 2021-05-09T00:37:46 | 2021-05-09T00:37:46 | 365,247,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """
Flask app module
"""
from os import environ
from flask import Flask
app = Flask(__name__)
app.config.from_object("default_config")
AUTH_USER = environ.get("AUTH_USER") or 'playvox'
AUTH_PASS = environ.get("AUTH_PASS") or 'pl4yv0x'
AUTH_API_V1_URL = environ.get("ATS_API_V1_URL") or 'http://localhost:8100/service... | [
"galvez.alejo@gmail.com"
] | galvez.alejo@gmail.com |
83c9e1cef1bf0fd0cd9b81c52c7537538af0d398 | d875c4556aa03193cb81fbf6388faee91c2b3de0 | /basic_programming/imtired.py | 348cd81ee858b2c49c6ea0b19ce442b0df7210e1 | [] | no_license | JeongaHan/pythonprogramming | 820abff1567b4b96a4f7edbbb27925840dcc3a20 | 00819cae30c2a7b0d5b67b14739c57919b68dbd0 | refs/heads/master | 2023-05-20T09:22:37.024797 | 2021-06-07T00:10:19 | 2021-06-07T00:10:19 | 294,134,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | print("I am soooooo tired")
print("I am sooooooooooooooooooo tired....")
print("Hi") | [
"ab012121@naver.com"
] | ab012121@naver.com |
9ab61ddea3a8f45f1f40b9490b41e4da6d9a6544 | 786de89be635eb21295070a6a3452f3a7fe6712c | /SConsTools/tags/V00-00-16/src/standardExternalPackage.py | f433403d52307a3f120d028b2d80755d194bb0c7 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | #===============================================================================
#
# SConscript fuction for standard external package
#
# $Id$
#
#===============================================================================
import os
import sys
from os.path import join as pjoin
from fnmatch import fnmatch
from SCon... | [
"salnikov@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@b967ad99-d558-0410-b138-e0f6c56caec7 |
b6e3a0da56981092c518c6077a20a0198020c546 | 9c379d265778d3672adac2cb4340dc7b3770e82c | /main.py | ac0e55f33eee9255407a63dd75fa9458dfa10505 | [] | no_license | tunstek/lawsociety.ie_email_scraper | 9de488e1baac54d21876b7fee826f4c71c47534f | eaee94e252cdd3b06f08488cafd82475e66738dd | refs/heads/master | 2021-08-08T23:23:50.540429 | 2017-11-11T15:44:58 | 2017-11-11T15:44:58 | 110,357,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | import sys
sys.path.append("/usr/local/lib/python2.7/site-packages")
from lxml import html
import requests
#**************************************
#********* MAIN PROGRAM ***************
#**************************************
def main():
counties = ["Antrim","Armagh","Carlow","Cavan","Clare","Cork",
... | [
"tunstek@tcd.ie"
] | tunstek@tcd.ie |
320464340ee7fd6e0274866a46bba250709cf1c2 | abecf9dcfac54caef27dbb3dcb82babadd9904e0 | /Net/__init__.py | 56367dc6ca5dd633d5ff4c98042c22e7e1658cbe | [
"MIT"
] | permissive | SWT-AITeam/GHE-LPC | f27630fa36ff2fe7249892232c981129c28e9057 | 2a10f423d747aa28560a3bcbf29f7ec87422beb8 | refs/heads/main | 2023-09-01T13:31:19.466871 | 2021-10-23T13:47:28 | 2021-10-23T13:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from .MyModel import MyModel
from .LabelSmoothLoss import LabelSmoothLoss
| [
"hanrd@foxmail.com"
] | hanrd@foxmail.com |
2b90598d9fb955462761d3ab09d7b242cd0ff23d | 63cf040b00cb7a81baacb4fcbceac0b5fe278f82 | /ch09/dataset_dummy.py | fda4589e1f6eb9700dab35c2c66ee54f60abe94a | [] | no_license | mindw96/nalcoding | 64a16dab7c51510f1a6f07fc8c3b4a0dff054263 | b7104f17ba5ee9cac417c2f0c8bdaccab5d54664 | refs/heads/master | 2023-05-04T08:23:10.144124 | 2021-05-28T13:47:41 | 2021-05-28T13:47:41 | 349,375,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from dataset import Dataset
class DummyDataset(Dataset):
def __init__(self, name, mode, input_shape, output_shape):
super(DummyDataset, self).__init__(name, mode)
self.input_shape = input_shape
self.output_shape = output_shape
self.tr_xs, self.tr_ys = [], []
self.te_xs, se... | [
"mindw96@naver.com"
] | mindw96@naver.com |
6789512f4fd4b7f6a31a460b4fef7ea02ab05d1a | ea911344f2dd24e37afc9fd813826c8988057608 | /node_modules/websocket/build/config.gypi | 503630b9608474a864613d1c16af7dd42099471b | [
"Apache-2.0"
] | permissive | evrimulgen/websocket-chat-room | 21e3bcb6a15f6ba67ac0efc6ee8a46faf53ca7ee | c0ebde1d3023d41ac814bca3af1e7687a5a915c0 | refs/heads/master | 2021-04-30T01:38:11.650441 | 2018-02-03T16:41:31 | 2018-02-03T16:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"debug_devtools": "node",
"force_dynamic_crt": 0,
"host_arch... | [
"dan82625@gmail.com"
] | dan82625@gmail.com |
9dfb673fc79b36b0f863db50379bde72f6854fc2 | 5f63f2956ed341f482333fd79222ee95cf6cf325 | /0x11-python-network_1/3-error_code.py | 44fb1077692face6be73caa247d4f4cb3a8b369d | [] | no_license | jgadelugo/holbertonschool-higher_level_programming | 5f50bafdeae6b9cd8d6079f03ba2183d5d3d88b4 | f0236088c85a04b1928139eda48c66014f09ac17 | refs/heads/master | 2020-07-22T23:30:18.228771 | 2020-06-03T15:38:28 | 2020-06-03T15:38:28 | 207,367,705 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/python3
""" Sends a POST request with email and return body """
from urllib import request
import urllib.error
from sys import argv
if __name__ == "__main__":
try:
with request.urlopen(argv[1]) as r:
print(r.read().decode('UTF-8'))
except urllib.error.HTTPError as e:
pri... | [
"845@holbertonschool.com"
] | 845@holbertonschool.com |
07b9771037edce0c4e2a570f1a9de87d16043e06 | 1f3e98e3bb36765f869ca3177a47c53ce302ec70 | /test/input/090.py | f814763b5a4cd9f1e921ce531271080e0d788d1a | [
"MIT"
] | permissive | EliRibble/pyfmt | d73dec1061e93a28ad738139edf523e1678d0e19 | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | refs/heads/master | 2020-04-01T10:57:18.521463 | 2019-05-24T21:39:18 | 2019-05-24T21:39:18 | 153,139,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | print(1/5)
| [
"eliribble@google.com"
] | eliribble@google.com |
4f538092180bbfb76794800e1033a644c8c2e551 | 275f85955acabac247fe306b0161a6d758f4d057 | /MauricioZelaya/circleOperations/perimeterCalculator.py | 1ad939e0bf030e63eb316f1c1fccb14d1fbc75a4 | [] | no_license | mauricioZelaya/QETraining_BDT_python | 295bb58a99a36b0b973afd153109c510191b4ec7 | d7cc798e7063ab32e5002e4deda3ddec8a8a0c59 | refs/heads/master | 2021-05-08T05:01:13.181273 | 2017-11-24T21:53:46 | 2017-11-24T21:53:46 | 108,473,352 | 0 | 0 | null | 2017-11-24T21:53:47 | 2017-10-26T22:43:32 | Python | UTF-8 | Python | false | false | 111 | py | from math import pi
def perimeterCalculator(radius):
return pi*radius**2
# print(perimeterCalculator(3))
| [
"zelaya.mauricio@gmail.com"
] | zelaya.mauricio@gmail.com |
23d48a400968017c6eaceec92d4ed09880e236de | 2315d3f8b2007b6716fa84d6e8794e2c8c1d7989 | /common_widgets/combobox/find_item_by_typing.py | 63e300fdba51633e617d30d2d1f5d4478568047c | [] | no_license | leoomo/Enjoy-Qt-Python-Binding | cd290efc4c8e5356e29678ef7c9e52889d96fc51 | b2994bb0c2009a459856738dc4e39a4aba534de2 | refs/heads/master | 2021-01-24T02:10:54.782505 | 2011-12-24T14:31:37 | 2011-12-24T14:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
find item of QComboBox by typing keyword
Test environment:
Mac OS X 10.6.8
http://www.pyside.org/docs/pyside/PySide/QtGui/QComboBox.html
"""
import sys
try:
from PySide import QtCore
from PySide import QtGui
except ImportError:
from PyQt4 import QtCore
... | [
"shuge.lee@gmail.com"
] | shuge.lee@gmail.com |
a468fe60624b32c4061bf9e37b5a43a921d6156d | 5f89a6a1419022f3566bb326915b1da6ce4e5ad4 | /API/views/views.py | 90d4669e7e510b0c2f5779bec71e74c7b844c726 | [] | no_license | maintain0404/RelolerApi | 1377b7a125ab7e352eb461251e91616516a9f340 | b269c48c3fe4b10262fc426fbc12bb9f4df3cdc2 | refs/heads/master | 2022-12-25T13:48:50.329360 | 2020-10-11T07:38:10 | 2020-10-11T07:38:10 | 279,353,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,446 | py | from rest_framework.decorators import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.parsers import JSONParser
from dynamodb_wrapper.base import DataAlreadyExistsError
from dynamodb_wrapper import User
from google_api_wrapper import oauth
import json
... | [
"maintain0404@gmail.com"
] | maintain0404@gmail.com |
84f66a0bf9e3af5d28f84b3115109b132927b474 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Chandu and chandni's secret chat/solution.py | 5347d87bca861f96880c7fd9b656c67c7b40092f | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 605 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
t = int(input())
for _ in range(t):
s, ... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
b5854b8c41c172ede9cd5c98028caf21c9168d24 | 6e96feb90eebfb717a13b6704fff801e2a5505cc | /26-Remove-Duplicates-from-Sorted-Array/removeDuplicate.py | bc52c3327f6a777a0c41535a384ea898ec420110 | [] | no_license | chriszeng8/LeetCode | af6e0864efec61a9eb02a031dbc9b5d744e2e086 | 06b6ff3492e4df0521b0ea7eca17c9d270723e97 | refs/heads/master | 2020-05-22T01:17:34.011002 | 2017-03-24T02:49:50 | 2017-03-24T02:49:50 | 61,896,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
num_len = len(nums)
if num_len<=1:
return(num_len)
# store the largest num
largest_num = nums[0]
counter = 1
for i in range(1,... | [
"chriszeng8@hotmail.com"
] | chriszeng8@hotmail.com |
1d7e55b823dfc9a936cd03ef7140b1adb134ea2b | 73a86edc84cb804bc522053c88b2a997c00f6e13 | /function.py | 904eac1fcf8ab284a0324378ad9e6cd903b0e0d4 | [] | no_license | aarthymurugappan101/python | 3b1fafad4db7a49d0f742934b8d958838b310ed9 | 2459241c2fb4f92f797ea45f5e931f3f8e174dc6 | refs/heads/master | 2020-06-25T00:50:53.904242 | 2019-08-12T11:21:08 | 2019-08-12T11:21:08 | 199,145,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # def getInput():
# rank= int(input("plesse enter your rank"))
# return rank
# def printPrize(rank):
# if rank == 1:
# prize = "1000"
# elif rank == 2:
# prize = "800"
# elif rank == 3:
# prize = "700"
# elif rank ==4:
# ... | [
"noreply@github.com"
] | noreply@github.com |
9d847003b12e4878b7bf1d7a2f45e57b2e4e8a05 | 6142db5163ca0187585ecb9cba1f41b75aa9f272 | /messenger/GUI.py | 08646663c7c7f3b6aa5ec623dc7144cdf9605389 | [] | no_license | Zily88/git-repo | 429cc72c79a5f326e450ccf20e41131885b152fe | d40539293141fda8bf6222e726af98dd8e3f2eb7 | refs/heads/master | 2020-03-07T01:48:17.816487 | 2018-05-09T16:29:19 | 2018-05-09T16:29:19 | 127,193,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from PyQt5 import QtWidgets
from MainWindow import Ui_Form
from NotMainWindow import Ui_Form2
class MainWindow(QtWidgets.QWidget):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
self.ui = Ui_Form()
self.ui.setupUi(self)
class NotMainWindow(QtWidgets.QDialog):
... | [
"nesterov_vladimir@rambler.ru"
] | nesterov_vladimir@rambler.ru |
47509e13562fec04be941d6672debdb3a56e8a8c | db4a874b1d7b44a1c190e95816d9ca38a705465b | /manage.py | b69bd7197c8e221ce07fb061e1de7eef303a2376 | [] | no_license | aborgesrodrigues/portfolio_performance | 964cf4b957e363f5f6c9e47f4c627b758a0cb847 | 3c6e8c96fa5d08cb7576986719d18726a8badd89 | refs/heads/master | 2023-08-30T08:05:14.579012 | 2023-08-29T23:07:54 | 2023-08-29T23:07:54 | 231,388,300 | 0 | 0 | null | 2022-11-08T19:22:39 | 2020-01-02T13:32:53 | Python | UTF-8 | Python | false | false | 641 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portfolio_performance.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"alessandro.rodrigues@ifto.edu.br"
] | alessandro.rodrigues@ifto.edu.br |
b2b80179d0f8ddc7a76ed005cbc3670219bb8091 | 28f0dc2b48ed019dfef08d84e842c5d75e116dfc | /Versions/Release.2.x.x/py/OBSOLETE/BibleTable.py | cced9d9f98a8cb768a4c415715efb06a18c3eb2b | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | garygriswold/SafeBible | 9da0e8d89cb08888b8cf48773b4b3860086c49f7 | 2d378e84cbd6b81641bcccd6ba66699d24208548 | refs/heads/master | 2022-02-25T19:41:10.367183 | 2019-08-22T03:35:02 | 2019-08-22T03:35:02 | 34,028,119 | 0 | 0 | MIT | 2019-10-30T07:11:44 | 2015-04-16T01:40:19 | TSQL | UTF-8 | Python | false | false | 3,942 | py | #
# This program generates SQL statements to create and populate the Bible table
# This was previously called the Version table
#
import io
import os
import json
out = io.open("sql/bible.sql", mode="w", encoding="utf-8")
out.write(u"DROP TABLE IF EXISTS Bible;\n")
out.write(u"CREATE TABLE Bible (\n")
out.write(u" bi... | [
"gary@shortsands.com"
] | gary@shortsands.com |
686ec78309a16db8d1ce51f1a85347b62c062ac3 | 4016e9c2e766c012c760de375291cb33343e6048 | /Chapter_2/LightSwitch_Procedural.py | 88c28d142863f6ec8fc081e323fc88d87b2e03f7 | [
"BSD-2-Clause"
] | permissive | kapil87/Object-Oriented-Python-Code | 07d1609dc423b0d2ac8b0a1a86f57872b4fbf1ae | bd84b83896af0638131e95a014c29fe2e3a539b3 | refs/heads/master | 2023-07-31T20:22:40.222946 | 2021-09-10T17:45:13 | 2021-09-10T17:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Procedural light switch
def turnOn():
global switchIsOn
# turn the light on
switchIsOn = True
def turnOff():
global switchIsOn
# turn the light off
switchIsOn = False
# Main code
switchIsOn = False # a global Boolean variable
# Test code
print(switchIsOn)
turnOn()
print(switchIsOn... | [
"Irv@furrypants.com"
] | Irv@furrypants.com |
227e887bea8fa47ad4def803c70e5cda59efe61b | 02f309da1333b018d466a6469199accd669e42f5 | /store/carts/templatetags/cart_extras.py | 2e1c859ebcaeefe7cadf109df70be07bb77c214d | [] | no_license | JesusGalindoB/django_project | 0dbfb3d802e847bb1f70d7aee4e34a75bce53391 | 29e047775d768ef8ec7ec16aa6f55ad5285d8667 | refs/heads/master | 2022-03-27T02:59:38.693824 | 2019-12-18T15:20:40 | 2019-12-18T15:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django import template
register = template.Library()
@register.filter()
def quantity_product_format(quantity=1):
return '{} {}'.format(quantity, 'products' if quantity > 1 else 'product')
@register.filter()
def quantity_add_format(quantity=1):
return '{} {}'.format(
quantity_product_format(quant... | [
"jesbaga.17@gmail.com"
] | jesbaga.17@gmail.com |
8ef52ef102fe8b559bb374bf61e3765469efe340 | b08beebea7902f30518e115a1574f803bcde102a | /final_project/Q2_visualization/data_processing/dataProcessor.py | 95c775531e7d181566466a38357d5c2ead0f90ea | [] | no_license | niloofarmansoor/DataModelingAssignments | ffb48b2df216ce7c10706f3fbcca6e3d7317d55c | 8a30d82b4df29fcbe7c4aef32aec1f1ba1536d33 | refs/heads/main | 2023-04-08T00:36:50.716920 | 2021-04-09T20:10:45 | 2021-04-09T20:10:45 | 356,383,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #!/usr/bin/python
import json
import csv
import geojson
import tempfile
def removeDuplicate(array):
seen = set()
result = []
for item in array:
if item not in seen:
seen.add(item)
result.append(item)
return result
def getDataForCountry(country_name):
# Open the CSV ... | [
"niloofar@huskers.unl.edu"
] | niloofar@huskers.unl.edu |
ac6dfffda8359a168fb10d8fe398e4f8efbbc4ac | e38499956d46f771a143c9faa1492d17a3fb5854 | /mysql/stackstate_checks/mysql/mysql.py | ee3f1e0c47b718b38ab868b96a93161e02d919cb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | StackVista/stackstate-agent-integrations | 959f83bc76d00c407f90f438032d03d4c072bc5d | 350cb6e239157b50b5943cdf5ca13163da9b9307 | refs/heads/master | 2023-07-20T03:51:47.814264 | 2023-07-11T09:13:28 | 2023-07-11T09:13:28 | 195,226,626 | 3 | 9 | BSD-3-Clause | 2023-08-29T08:10:51 | 2019-07-04T11:10:24 | Python | UTF-8 | Python | false | false | 70,607 | py | # (C) Datadog, Inc. 2018
# (C) Datadog, Inc. Patrick Galbraith <patg@patg.net> 2013
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
from __future__ import division
import re
import traceback
from collections import defaultdict
from contextlib import closing, contextmanager
import pymysql
f... | [
"bramschuur@gmail.com"
] | bramschuur@gmail.com |
8561b0f2554687e2aae64fddcd6fc36f01415b60 | a38bbada2df886df5336f8843c22b9576c5966d0 | /inotify/watchdog_simple_example.py | a775db357fe5909642212ba67306efeb8b252935 | [] | no_license | Liuxboy/LearningPython | e82edfea6756e887f06f029aac365c571e4eb45d | 7f7423b1d6030ce42ff301fe0c78cd2153a9e6ad | refs/heads/master | 2021-06-24T17:03:27.270077 | 2021-04-30T10:56:54 | 2021-04-30T10:56:54 | 94,400,788 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Project: LearningPython
# Author: liuchundong <br>
# Date: 2019-7-25 <br>
# Time: 18:15 <br>
# Desc:
import sys
import time
import logging
from watchdog.observers import Observer
from watchdog.events import LoggingEventHandler
if __name__ == "__main__":
logging.basicCo... | [
"342353772@qq.com"
] | 342353772@qq.com |
03af35f09650374be17ae6090d7a5b212218912a | 46d3bfb9dc457c232e71212944abd066ccc76ae9 | /load_data.py | b10ba1f3a374740fb1da634db44be57c289a1f35 | [] | no_license | Mahmoud-Elshaer/Us_bikeshare_data | 04ec265025cd4d94a60a25cae48bc77ad2644d71 | 683d7eab677ae510ce273c5274b3b159359018f1 | refs/heads/master | 2022-12-03T21:02:09.587208 | 2020-08-25T02:57:40 | 2020-08-25T02:57:40 | 290,097,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def load_data(city, month, day):
"""
Loads data for the specified city and filters by month and day if applicable.
... | [
"noreply@github.com"
] | noreply@github.com |
3d9a1aa36617cb12a9d7b956658c16de15f49e6d | 4944178c246ab0811939b32cd192b7ce692b93cd | /services/github-bots/PredictLabels/test_predictor.py | 502c80d390ddf383098b96e434925b6760420fcb | [
"Apache-2.0"
] | permissive | ChaiBapchya/incubator-mxnet-ci | 654dce74904a5afd16abf16fcb34b0caeeac3586 | 0fb0e75b83a371130caf43098ec1e5b12326cb25 | refs/heads/master | 2021-06-27T10:31:17.083300 | 2020-10-12T01:42:50 | 2020-10-12T01:42:50 | 212,455,155 | 0 | 0 | Apache-2.0 | 2019-10-02T22:45:25 | 2019-10-02T22:45:25 | null | UTF-8 | Python | false | false | 4,713 | 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... | [
"noreply@github.com"
] | noreply@github.com |
09b46d53003a45b84f43ab41e9cbcf1dc1a4b7f2 | e266e97e66b8459dc4f058ff6db4dea0f88d553d | /pytorch_api_linear.py | cb3edd2addf5c77e5e51c90eead451dc4b72bf0a | [] | no_license | ye97/pytorch_b | 9bbce257c12923d51d554eab14442f20407e03b9 | d9314d53f138f6f09cc1306412f53552452f9e33 | refs/heads/master | 2023-03-22T15:18:19.238374 | 2021-03-07T15:16:18 | 2021-03-07T15:16:18 | 343,756,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | import torch
#model实现自己的类,继承module模块
class Model(torch.nn.Module):
#继承他的原因是初始化的调用函数要使用他
def __init__(self):
#调用父辈的同名方法都是这样的调用 super(本类名,self).方法
# python中的super( test, self).init()
# 首先找到test的父类(比如是类A),然后把类test的对象self转换为类A的对象,然后“被转换”的类A对象调用自己的__init__函数.
super(Model,self).__init_... | [
"ye79_2020@qq.com"
] | ye79_2020@qq.com |
1f33447947159a11ecf117ebfd09d4a0232c26ed | 890a6921b9dbc3d849ee51366c76a791761d35d2 | /.qt_for_python/uic/PlacefieldVisualSelectionWidgetBase.py | e5bfd84f65b40625dd5b625a786686f1a3fc1927 | [] | no_license | CommanderPho/Spike3D | 87e1ea17a76080e18e835e9d015e7fe7bb3426e4 | 63e5e78c3bcb28f3dbab02d6354e6eb83cbccc2a | refs/heads/master | 2023-08-17T10:40:44.389682 | 2023-08-16T10:57:12 | 2023-08-16T10:57:12 | 413,545,455 | 2 | 0 | null | 2022-10-22T05:54:57 | 2021-10-04T18:48:06 | Jupyter Notebook | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\Qt\PlacefieldVisualSelectionControls\PlacefieldVisualSelectionWidgetBase.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this... | [
"CommanderPho@users.noreply.github.com"
] | CommanderPho@users.noreply.github.com |
808fb0d70182870a1da1d6b69365634f2fd9371d | 482cf94a03646d5e6b8d2def92f9d772fce99c3b | /api/models.py | fb6a4367679a0e820a2adf0c442d71bbe0cc59ad | [] | no_license | ahmadalsalama/unitedway | 9933270d0ae3a95460388bb700f6d38c289f4ad9 | 9c7c6e96f3522cf99556cbb34e6dadf7cd4426e5 | refs/heads/master | 2020-12-31T07:20:44.080129 | 2016-04-29T07:28:24 | 2016-04-29T07:28:24 | 57,320,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | from django.db import models
from datetime import datetime
CATEGORY_CHOICES = ((0, 'Health'), (1, 'Fitness'), (2, 'Social'))
STATUS_CHOICES = ((0, 'Open'), (1, 'Accepted'), (2, 'Declined'))
USER_TYPES = ((True, 'Organizer'), (False, 'User'))
class User(models.Model):
username = models.CharField(max_length=15, primar... | [
"ahmad.alsalama@gmail.com"
] | ahmad.alsalama@gmail.com |
110cfbb3db299c2f9febd17eee212eae41611cab | 71ff0591891b63a95e5bd15fbf78f0b7526d5b86 | /week_5/jes_week2.py | 757b68a31f64309f9c6b69f7c6ddcc7606fb2061 | [] | no_license | AlexanderJDupree/CS160 | e38889d3deda885cfd61087f6cf99c01c9ade1e1 | 8bdfd9327fe8195f412f1c11a59314d8a0c31cfe | refs/heads/master | 2021-05-13T19:07:08.540434 | 2019-01-22T21:13:48 | 2019-01-22T21:13:48 | 116,884,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import string
original = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc " \
"dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq " \
"rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu " \
"ynnjw ml rfc spj."
url = "http://www.pythonchallenge.com/pc/def/map.html"
tabl... | [
"Alexander.j.dupree@gmail.com"
] | Alexander.j.dupree@gmail.com |
4cda39ca61d35d116dfa1f795e829856cfa8aa9f | 53fce93304f306a940dd69c0362a39ca21c062ee | /tuition_plan/models/tuition_plan.py | 7ee1d69aaee97cbba24c0987e7a8e616bd8ea8fc | [] | no_license | sgcalle/ew-dev | 07ea4d7cdc6c085e5d44b66f91e6c74ca231cf64 | 94256458addf8e07ef4b29ae025d63dcf35757fb | refs/heads/main | 2023-03-02T08:10:06.390910 | 2021-02-04T13:49:37 | 2021-02-04T13:49:37 | 334,944,264 | 0 | 0 | null | 2021-02-10T15:21:00 | 2021-02-01T12:34:41 | Python | UTF-8 | Python | false | false | 10,222 | py | # -*- coding: utf-8 -*-
from dateutil.relativedelta import relativedelta
from odoo import models, fields, api
from odoo.exceptions import ValidationError
class TuitionPlan(models.Model):
_name = "tuition.plan"
_description = "Tuition Plan"
name = fields.Char(string="Name",
required=True)
act... | [
"jaragon@eduwebgroup.com"
] | jaragon@eduwebgroup.com |
8577d6ba440c770c4416e9348d8c2bf56b4753b0 | 74dfc045bf1af3b00307a2324ae5032d4c90e263 | /Day_1_2.py | 6677b2c8f035b5484dbcd9ea9dbc03692bdd9072 | [] | no_license | Moneymet/Advent_of_Code | 0a568ce749139551b940a19933b21e0579c279d7 | d3d09e82e5cb8218bae0fadf821c63361a4254b1 | refs/heads/master | 2023-03-17T17:13:53.656830 | 2021-03-12T07:08:25 | 2021-03-12T07:08:25 | 338,199,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | sum_value = 2020
f = open("input_1.txt", "r")
lines = f.read()
expenses_string = lines.split("\n")
expenses = list(map(int, expenses_string))
expenses.sort()
#Finds combination of 3 numbers in a sorted int list adding up to specified sum
def find_sum_multiplied_3(sum_value, expenses):
for x in expenses:
f... | [
"christergum@hotmail.com"
] | christergum@hotmail.com |
94974769dcfab84dbc8f51212317d59376b13fc7 | 9538c0592428c88c1894e66a1ed74141cf2f5eec | /Homework/03-Python/python-challenge_Raw/PyBank/Main_PyBank_v12.py | 7190909d08af46e8a6c0727fefca53b5bc048cd3 | [] | no_license | domaica/copia-MIA-course | cfcd9fc414448792fda20f7ffc49619b1df39045 | 3e5036a5361100d4d886803a8f6be8a03bedcb21 | refs/heads/main | 2023-05-02T17:23:40.251586 | 2021-06-01T13:47:01 | 2021-06-01T13:47:01 | 368,016,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,226 | py | # First we'll import the os module
# This will allow us to create file paths across operating systems
import os
# Module for reading CSV files
import csv
csvpath = os.path.join('Resources-PyBank/budget_data.csv')
# output_path = os.path.join('Resources-PyBank/budget_new.csv')
with open(csvpath) as csvfile:
# CSV... | [
"idomaica@gmail.com"
] | idomaica@gmail.com |
d149ffd12f666282ebb099b6e5dfa0372a305fd8 | cd774a87f8e2716a57c282154f856a6ae20d26f1 | /BoostedTauAnalysis/CleanJets/cleanjets_cfg.py | a95496ec96b48c1eb244ffb7f48ce73ee282f768 | [] | no_license | friccita/boosted-tau-analysis | fb59d28989f1d7ee40ecb09d1c7f13cf01e00709 | c62cacabf50df7ba2c513c9af6a14f1b60085ff0 | refs/heads/master | 2021-01-17T10:55:08.115931 | 2015-08-10T09:44:22 | 2015-08-10T09:44:22 | 12,270,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("OWNPARTICLES")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load("BoostedTauAnalysis.CleanJets.cleanjets_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.source = cms.Source("PoolSource",
# ... | [
"Rachel.Yohay@cern.ch"
] | Rachel.Yohay@cern.ch |
500ca55d55600422c9796c3e979724c77af12e9d | 56f4456ee15a71c98e834ccf899325973a7624a1 | /django-verdant/archiveit/urls.py | f50a7d5a271cf9c2e640cddde9f1a0abd41f47b3 | [] | no_license | torchbox/verdant-rca | d0a112db74403b36655136f5a42b75960f9fc470 | 93904da6f1e6797d93c63de0d1a29c65545ef1fa | refs/heads/master | 2022-12-14T09:05:40.940426 | 2022-05-26T12:30:41 | 2022-05-26T12:30:41 | 11,999,467 | 12 | 10 | null | 2022-12-08T07:02:23 | 2013-08-09T11:23:11 | Python | UTF-8 | Python | false | false | 143 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('',
url(r'^(\d+)/$', views.index, name="index"),
)
| [
"noreply@github.com"
] | noreply@github.com |
ed109450dd495417ac223234f1e78a19e41b4190 | 6956291893c1deef10b10e645d18dcacc2819969 | /tpRig/tpSkinWeights.py | 3152f17d514fb22619b12d0cd0b18c03023930db | [] | no_license | thipaulino/tpTools | 19c8bcbd98b1e4d6fc6f015a6f73bd890cedac36 | dbf799eb65b0da0db612b97c9b2bedf0e79bb537 | refs/heads/master | 2023-02-20T04:11:49.767739 | 2023-02-06T10:08:28 | 2023-02-06T10:08:28 | 249,549,932 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | import maya.cmds as cmds
# getting the selection
original_sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(original_sel)
# getting selected mesh and components
cmds.select(cmds.polyListComponentConversion(toVertex=True))
# get the selected mesh and components
sel = om.MSelectionList()
om.MGlobal.getActi... | [
"tpaulino.com@gmail.com"
] | tpaulino.com@gmail.com |
a6a2cc34a4585bc4cdb06c57d364943c07267440 | 2cbcfb9b9046ac131dc01a6fd048b6920d29cd42 | /排序/归并排序.py | 0cbe99980292db1b81d0c8dee0c1fd456bdca38b | [] | no_license | pulinghao/LeetCode_Python | 6b530a0e491ea302b1160fa73582e838338da3d1 | 82ece6ed353235dcd36face80f5d87df12d56a2c | refs/heads/master | 2022-08-12T21:19:43.510729 | 2022-08-08T03:04:52 | 2022-08-08T03:04:52 | 252,371,954 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | #!/usr/bin/env python
# _*_coding:utf-8 _*_
"""
@Time :2020/4/25 4:13 下午
@Author :pulinghao@baidu.com
@File :归并排序.py
@Description :
"""
class Solution(object):
def __init__(self):
self.sortednums = []
self.nums = []
def mergeSort(self, nums):
self.nums = nums
se... | [
"pulinghao@baidu.com"
] | pulinghao@baidu.com |
a9d0bc7546f7ca3723a17a3f5fd7ba086d51f28c | 21bf726bf895569a41a8b8d2db6772dc51f46cfd | /OTHERS/Interviews/Akuna.py | abba9d6a6b4e54cda0048899107ec10a4fa00cc0 | [] | no_license | jeffsnguyen/Python-1 | dd924d25337cd6ac21e321d7b2c5ac17c065d94b | 463d32a61a760d076656c73c9f8c9fadf262438d | refs/heads/master | 2022-03-23T09:50:04.476094 | 2019-12-23T12:32:49 | 2019-12-23T12:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | def if_none_trivial(x):
if x==0:
return 0
else:
return 1
def violet_search_icecream_shop(stock, max_capacity,demands,n_days,overnight_fee,price,deliver_fee,total_expense=[],expense=0):
delivery_min = max(0,demands[0]-stock)
delivery_max = max(0,sum(demands) - stock)
for del... | [
"jerryxyx@163.com"
] | jerryxyx@163.com |
969686b5b62be15e63eee3ae8fae86d0e915490d | 13084338fa9d1c72fe32d323bcd2df1417b98e83 | /src/bxcommon/rpc/requests/unsubscribe_rpc_request.py | 54c99f8ba9d6e63606193bafd337205d3b9996b2 | [
"MIT"
] | permissive | bloXroute-Labs/bxcommon | ad45e3a060a7d1afd119513248da036818c7f885 | 03c4cc5adab1ae182e59a609eff273957499ba5d | refs/heads/master | 2023-02-22T00:10:46.755175 | 2022-08-16T19:38:22 | 2022-08-16T19:38:22 | 220,556,144 | 14 | 7 | MIT | 2023-02-07T22:58:14 | 2019-11-08T22:16:37 | Python | UTF-8 | Python | false | false | 2,124 | py | from typing import TYPE_CHECKING, Callable, Optional, Tuple
from bxcommon.feed.feed import FeedKey
from bxcommon.rpc.bx_json_rpc_request import BxJsonRpcRequest
from bxcommon.rpc.json_rpc_response import JsonRpcResponse
from bxcommon.rpc.requests.abstract_rpc_request import AbstractRpcRequest
from bxcommon.rpc.rpc_err... | [
"noreply@github.com"
] | noreply@github.com |
e14b2d451d2969b75d400dd4b2b6970aa931b428 | cdd36c72f5f46ed3b9acfe79ef1f9fa7d6aeee6b | /11.py | 700dbfd0dfa7ee7638ca1f96ec7d957f67ac3f9c | [] | no_license | galgeek/advent2017 | 75c0a2e050f495fd60a365ce66b49749635f6d47 | e2c0ad54761af65aeeb50251a44814bacdb0d157 | refs/heads/master | 2021-09-13T12:54:21.491544 | 2018-04-30T03:07:29 | 2018-04-30T03:07:29 | 113,707,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | def do11(inp):
with open(inp) as f:
s = f.read().rstrip('\n')
center = (0, 0, 0) # x, y, z
md = 0
p = center
steps = s.split(',')
print(steps)
for s in steps:
if s == 'n':
p = (p[0], p[1]+1, p[2]-1)
elif s == 'ne':
p = (p[0]+1, p[1], p[2]-1)
... | [
"galgeek@me.com"
] | galgeek@me.com |
db8551c3b00fdaa9cea83beff7f976a27482b764 | 0486b6ccf883e9cd7a24bbd89b5420e7de2172b9 | /DRF Study Material/Django REST Code/gs23/manage.py | 0fd63ec5bb04d9d85aeb9039d1fb86e9be16bd10 | [] | no_license | ajitexl/restfrmaework | 2980203d7faa6c8364288283758d32c8f2a37817 | 9ab203748e623516365d9924dcc68acc786a66e1 | refs/heads/main | 2023-02-03T08:52:00.672047 | 2020-12-10T09:50:51 | 2020-12-10T09:50:51 | 320,222,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gs23.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"you@example.com"
] | you@example.com |
5b771ee4fa02ac609d1a9cff17e724f9d74cdcdc | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/5041434/snippet.py | a978469c85746091bf61c1a14c4ddfde95ab6244 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,470 | py | import requests
from bs4 import BeautifulSoup, NavigableString
def get_review_text(block):
"""Get just the text of a review from it's DIV"""
strings = []
for possible_text in block.children:
if isinstance(possible_text, NavigableString):
stripped_text = possible_text.strip()
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
146f603a473b11c3f73cbcec091c4585b5f98c62 | dc944218d29e6a1c7263077f63d1129979053dce | /sma_web/views.py | 6f3b57d06aba6742619afe894482d5b943098fb2 | [] | no_license | upasanak/sma_web | 39312e62c5f49da36347ba3b414f7dfba5f8aaff | 0eb1a243607450da557749f1bf480481346d0260 | refs/heads/master | 2022-11-25T01:47:35.342752 | 2020-08-03T13:10:20 | 2020-08-03T13:10:20 | 284,693,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from django.shortcuts import render
from django.core.files.storage import FileSystemStorage
from callfile.SMA import *
url = ""
def index(request):
return render(request, 'index.html')
def upload_file(request):
#file upload
if request.method == 'POST':
uploaded_file = request.FILES['... | [
"noreply@github.com"
] | noreply@github.com |
ec4aa2bdc1ee610a32937e374c246abdec32f28c | 7eea8391de3e115d942657eeaddf875b79418e78 | /4_Implementation/4-1.py | 1ee75dac8b798699ed0f5eafeab15f77e57d656d | [] | no_license | WooniCode/thisIsCodingTest | 13ae8c5df1e143f0592f225161088af3aae555df | 109c63d69daf9b685b6f73dec92bc5b05755dfaa | refs/heads/master | 2023-03-05T10:32:56.084357 | 2021-02-12T10:43:10 | 2021-02-12T10:43:10 | 316,903,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # 예제 4-1. 상하좌우
n = int(input())
p = input().split()
x, y = 1, 1
move_types = ['L', 'R', 'U', 'D']
x_move = [0, 0, -1, 1]
y_move = [-1, 1, 0, 0]
for i in p:
for j in range(len(move_types)):
if move_types[j] == i:
x = min(max(x+x_move[j], 1), n)
y = min(max(y+y_move[j], 1), n)
print... | [
"jdu2038@gmail.com"
] | jdu2038@gmail.com |
dac74fe07f41bad595f3daece43a0047c4795112 | c105570f12f1d56087ffb831f5d34cd763d6c90b | /top/api/rest/HotelRoomImgDeleteRequest.py | 55f04fe4e6cf46864d486cf6bd4e5cf9dc7d3abd | [] | no_license | wjianwei126/Alinone | 01607423833d7736b2fd3c77e9e21f63c69b4e4c | 80144d4657cb049d651c09647eb245405240f12f | refs/heads/master | 2020-12-07T05:14:58.746777 | 2015-05-06T12:48:33 | 2015-05-06T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | '''
Created by auto_sdk on 2014-11-09 14:51:18
'''
from top.api.base import RestApi
class HotelRoomImgDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.gid = None
self.position = None
def getapiname(self):
return 'taobao.hotel.r... | [
"rapospectre@0163.com"
] | rapospectre@0163.com |
554fd554e514477dbcdc9e9967d80baadc86faa6 | 74672f11137ce9021148f64cffbe03203a38a8c3 | /KDstudy/2021-K-Digital-Training-main/Web_Crawling/python-crawler/chapter_6/quotes_3.py | 84795142289039ae8eb8db6b7a48a2cf91440e58 | [
"MIT"
] | permissive | chaerui7967/K_Digital_Training | be59f176e1167aeb06d8d4a715253486e54547a6 | 85d17a6f9b7bfac827ffb9c2877aa510056616bd | refs/heads/master | 2023-08-24T15:24:20.416798 | 2021-10-09T13:11:18 | 2021-10-09T13:11:18 | 373,730,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """http://quotes.toscrape.com/ 크롤러
메인 페이지만 크롤링해서 격언을 수집합니다.
"""
import scrapy
from scrapy.spiders import CrawlSpider
from my_project.items import Quote
class QuotesSpider(CrawlSpider):
"""Quote 아이템을 수집하는 크롤러"""
name = 'quotes'
allowed_domains = ['quotes.toscrape.com']
start_urls = ['http://quotes.tos... | [
"chaerui7967@gmail.com"
] | chaerui7967@gmail.com |
f10f2f6cf1e87884fd41a1f447bd4ec809acfdc7 | 5d3ef2c1f16e1a876c81c3c6bc16e3372ce4c1ad | /chavescode.py | f33282f1efb7093c647cf93692fceecdc65d8c42 | [] | no_license | estevamgalvao/chaves-gerador | b40f5f936869249005bca4307d26fee0ff317dec | 4716813b27f75cb74f0861b9b59d729be9b25ace | refs/heads/master | 2021-09-04T00:59:00.676415 | 2018-01-13T18:09:09 | 2018-01-13T18:09:09 | 117,259,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | import random
print("Insira o nome dos participantes, um por vez, então digite -fim-.")
lista_participantes = [] #criando uma lista vazia. lista principal do código
lista_trapaca1 = []
lista_trapaca2 = []
confirmacao = 'nao' #começando a variável com valor para conseguir fazer comparações
participante_verif =... | [
"noreply@github.com"
] | noreply@github.com |
486600088a2abad3ca03cf64f577de09c1dd95df | 0070dfcf60926e47289dba8ec7db5b30d8148556 | /Website/oncon/testapp/migrations/0006_auto_20160503_1036.py | 7fa8dd7d6ab3354edca18d2bd65ab4fde15ae0b9 | [] | no_license | piyushthegamer/python-projects | fde5c54fdc7ef155e03d22063f80f4eaf95398d1 | 0c36685a3f74c57cb591ea6a0590f3598f70b163 | refs/heads/master | 2021-01-12T01:46:56.833122 | 2017-01-09T13:29:19 | 2017-01-09T13:29:19 | 78,430,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-03 05:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('testapp', '0005_testvideo'),
]
operations = [
migrations.RenameField(
mo... | [
"piyush.thegamer@gmail.com"
] | piyush.thegamer@gmail.com |
274068ca686b8f9e974d3eafdfe1eeb963c21cbf | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather2_W_fixGood_C_change/train/pyr_2s/L6/step10_a.py | f0754e9c5056e21c626cfe3e46433c46c93290ba | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,317 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
64c64d4b26169cf61deb2becd4b52ca4a334ada7 | d5341a2f0b66ea5e323adf0f64fc67f68b5a21f7 | /pero-api-requests.py | 62120db413b11ad86e2f64eb862c3f00cfce9991 | [] | no_license | hankaluk/pero-api-request-ocr-script | d6b737e7550d384900f649fa2dbde11a3553bbab | 25371136f3264fdc6ce1570d8cfcb20a3fd61bc5 | refs/heads/master | 2023-02-28T07:47:48.491297 | 2021-02-08T16:55:29 | 2021-02-08T16:55:29 | 318,824,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,901 | py | import json
import logging
import os
import time
import requests
SERVER_URL = os.environ.get('SERVER_URL')
API_KEY = os.environ.get('API_KEY')
INPUT_FILE = os.environ.get('INPUT_FILE')
headers = {"api-key": API_KEY, "Content-Type": "application/json"}
# logger
file_handler = logging.FileHandler('main_logs.log')
form... | [
"hanka.luk.85@gmail.com"
] | hanka.luk.85@gmail.com |
bb1e5692479370ef21791b709b75e4c5b002a24a | 6e5abad8fd8d089eb8bc5431d226452b5e1c879a | /laughter-c0.py | 6e6a8f0c5dd2f4764c56755a01cd386578395559 | [] | no_license | hirokisince1998/laughter-wavenet | 3f6975ae78aef7277e951129bb7c55fdc1377b9d | 7bb800812cd51d95915766de2230cd37bb503d97 | refs/heads/master | 2023-01-10T18:52:29.517012 | 2020-11-13T10:58:40 | 2020-11-13T10:58:40 | 295,068,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,389 | py | from concurrent.futures import ProcessPoolExecutor
from functools import partial
import numpy as np
import os
import audio
from nnmnkwii.io import hts
from nnmnkwii import preprocessing as P
import merlin as fe # <- modified by hiroki
from nnmnkwii.datasets import FileDataSource
from hparams import hparams
from os.path... | [
"hiroki@speech-lab.org"
] | hiroki@speech-lab.org |
7d2fe8aa23cc9cbade79f992a81703bc13bc26c4 | c38f15738026ea2d1a3597be6dcf502d5a6189a6 | /1-python-power/progBChamaProgA.py | 7496026ad70195b3cc00902cc4e0e0b88e4ab74c | [] | no_license | cassiodamacena/wttd | f3e151e0ebaa56c683f2c136476c50de6900fda3 | ee04e141633cfc59cf51db01bad0a233826402c5 | refs/heads/master | 2023-03-24T10:39:22.355830 | 2021-03-17T00:33:27 | 2021-03-17T00:33:27 | 347,541,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | print('Begin', __name__)
import progA # Importando progA e já executa o seu código
print('Define fB')
def fA():
print('Dentro fB')
progA.fA() # Chamando agora somente a função fA de progA
print('Chama fB')
fA()
print('End', __name__)
| [
"cassiodamacena@hotmail.com"
] | cassiodamacena@hotmail.com |
bcb26bf70a2bb0b028dff102692d4db3eef4d03d | 7854a7f95864a42d0becadef3ddf77830e4fbe2c | /app.py | 9d7d0219e799abeb74ec3c9457772539db856ceb | [
"MIT"
] | permissive | alex2060/git_traider | 9cc64f889acba9a06daf02e800b7fd126f0a5da5 | 6dd1df327dbb3dc74479246ebb2355f48bad9d78 | refs/heads/main | 2023-08-14T16:59:52.208972 | 2021-09-15T02:35:38 | 2021-09-15T02:35:38 | 406,588,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | from flask import Flask, redirect, url_for, render_template, request, flash
import os
from os.path import join, dirname
from dotenv import load_dotenv
import braintree
from gateway import generate_client_token, transact, find_transaction
load_dotenv()
import requests
#makes and retruns crypto key
def make_qr_code():
... | [
"alex.haussmann@gmail.com"
] | alex.haussmann@gmail.com |
38989ea3cc2d9323d7df74726b4cbe4770c237d1 | 1d0895269d1d93bab6a0b595c806418b1eeda735 | /qiskit/providers/ibmq/api/rest/experiment.py | 21cea49b8c27b3ce319c61a25cd6e4314e06b812 | [
"Apache-2.0"
] | permissive | Qiskit/qiskit-ibmq-provider | 3921bf5f77a9621013ada7ea5e18fa199470650c | 590f68d9ddb42a45c4ac8a8626ea60da85575b21 | refs/heads/master | 2023-06-08T03:17:52.745052 | 2023-06-05T14:20:16 | 2023-06-05T14:20:16 | 163,192,893 | 240 | 182 | Apache-2.0 | 2023-06-05T14:20:18 | 2018-12-26T15:22:11 | Python | UTF-8 | Python | false | false | 5,218 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | noreply@github.com |
4dc3fde953d2515b5815da6192706d0acef9283d | cfc1c61117ee215ddcc92667e55e3aacf7dd93e1 | /tests/test_meta_caching.py | 51809e9a5e56050ad7957e6a254f657b0a875393 | [
"Apache-2.0"
] | permissive | REPlegacy/rep | a036f9717e0a460cc492152517aca9d234f509f9 | 0742d8002c48453d4a5a031677c55d75b86c1f76 | refs/heads/master | 2021-06-28T17:10:57.220950 | 2020-09-22T11:53:13 | 2020-09-22T11:53:13 | 157,720,892 | 3 | 0 | NOASSERTION | 2018-11-19T18:17:40 | 2018-11-15T14:03:52 | Jupyter Notebook | UTF-8 | Python | false | false | 3,703 | py | from __future__ import division, print_function, absolute_import
import time
import os.path
import datetime
from sklearn.linear_model import LogisticRegression, LinearRegression, SGDClassifier, SGDRegressor
from rep.metaml._cache import CacheHelper
from rep.metaml.cache import CacheClassifier, CacheRegressor, cache_hel... | [
"iamfullofspam@gmail.com"
] | iamfullofspam@gmail.com |
b6678a25668c221feec3628a553e9100c77d1646 | 66209a75a7b7416f9f58d41f084bc319c5810f9f | /laconcha/seed.py | 3dc6be1e1fc3abf11324208f1812a9eceff9970c | [] | no_license | ZippeyKeys12/laconcha | 18debf3e5c36280039fba6c9ef31e9b5fa418a0f | 5ec0ad9d534070ba583c3852bb0d73cf4c3ecd67 | refs/heads/master | 2022-12-05T02:57:34.235745 | 2020-08-21T03:09:04 | 2020-08-21T03:09:04 | 275,266,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import string
from random import choices
def get_seed():
return ''.join(choices(string.hexdigits, k=32))
class Seed:
pass
| [
"ZippeyKeys12@gmail.com"
] | ZippeyKeys12@gmail.com |
d4eb63a3ce6955ce6d7e7f559285f4098819a4e2 | 79f541042e4b4d6bb443e7a758ca918817ea0f33 | /Python/23_python.py | f87439711aa00ebf5beeb05135c88dd6cc5d9f1b | [] | no_license | ashutoshm1771/Source-Code-from-Tutorials | d5f950db8f5f648e87303835e9558eeba404939a | f5552d4bd0f4bebcf5c674ff730fcb61f2d7a1ce | refs/heads/master | 2020-09-15T06:08:31.777622 | 2019-11-22T09:08:31 | 2019-11-22T09:08:31 | 223,364,275 | 4 | 0 | null | 2019-11-22T09:01:51 | 2019-11-22T09:01:48 | null | UTF-8 | Python | false | false | 185 | py | fw = open('sample.txt', 'w')
fw.write('Writing some stuff in my text file\n')
fw.write('I like bacon\n')
fw.close()
fr = open('sample.txt', 'r')
text = fr.read()
print(text)
fr.close() | [
"amaanmarfatia@gmail.com"
] | amaanmarfatia@gmail.com |
be022fe3fefde1e08b0c0cafbf8646767f2ba51d | a65103e2f33192d9e6fcf8c8852f263369190175 | /core/models.py | c653f88b69de6db591ec935f5bf162047d706249 | [] | no_license | dhilipsiva/ircman | e23153572d5f8cf09d4ed7d47c47b90050762489 | 767b42f321598b155f2fd74729947ed92f8da160 | refs/heads/master | 2023-07-10T06:42:45.855788 | 2015-07-22T04:17:00 | 2015-07-22T04:17:00 | 35,310,806 | 6 | 0 | null | 2023-09-05T05:15:21 | 2015-05-09T01:58:04 | Python | UTF-8 | Python | false | false | 7,308 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim: fenc=utf-8
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
#
"""
File name: models.py
Version: 0.1
Author: dhilipsiva <dhilipsiva@gmail.com>
Date created: 2015-05-09
"""
__author__ = "dhilipsiva"
__status__ = "development"
"""
"""
# Python imports
impo... | [
"dhilipsiva@gmail.com"
] | dhilipsiva@gmail.com |
cce44f1ce3d2f6c45026ee3cdcd05c3497af1f7c | 6acf3492182e31cf837c281e3fa96826f7f8782a | /portal/.~c9_invoke_7yV7Ix.py | bb4ace26e21ccdd625ae313510f73e6630086714 | [] | no_license | andreibratu/lockeebackend | 3ce3970f63dd541275c8650b2804d4f72c568521 | 3df3619738876eddc84fc749b8d6a50aecea1624 | refs/heads/working | 2020-05-21T20:45:54.276674 | 2016-11-24T16:34:31 | 2016-11-24T16:34:31 | 65,299,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,669 | py | from django.core.urlresolvers import reverse
from django.views.decorators.csrf import csrf_exempt
from django.views.generic.list import ListView
from random import choice
from string import ascii_uppercase
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_requi... | [
"bratu.andrei@outlook.com"
] | bratu.andrei@outlook.com |
784226429847848c20d7ff49b864ec51605e29f3 | 35a4c50eb161a402e8f3bbc3fe2bd75f77d757cb | /src/zad1/hamming.py | e42b9438146cde66c5eeae03c44707bd57a954dd | [] | no_license | TestowanieAutomatyczneUG/laboratorium-5-Grzeskii | de6c85a4eb0ad95b6d7d84ce125f0186c7960ddf | a3379356a0560ebf1b7b9c5225d7006d7e3dd5d2 | refs/heads/master | 2023-01-04T22:53:30.719255 | 2020-11-03T19:16:58 | 2020-11-03T19:16:58 | 309,400,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class Hamming:
def distance(first, second):
numberOfErrors = 0
if len(first) != len(second):
raise ValueError("Strands should be the same length")
for i in range(len(first)):
if first[i] != second[i]:
numberOfErrors += 1
return numberOfErrors | [
"grzegorz.rzeski@autonomik.pl"
] | grzegorz.rzeski@autonomik.pl |
a26020ee941b2c90838334df8971da6794fecc60 | f4a586996c4e7ba508abcd17bb3279f25cb8a384 | /samples/__init__.py | 50420bdbb2ff11693fa54dd5f9a9663047cf3767 | [] | no_license | 750584261/api_test_frame | 7183b04d6aa9d64e2d73b1e12ff6fc9f50288d3d | 0ca8b04a08e9605a72da7a8f43454362585be9f9 | refs/heads/master | 2023-03-09T22:41:53.643478 | 2021-02-23T11:09:01 | 2021-02-23T11:09:01 | 341,520,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | """
-*- coding: utf-8 -*-
@datetime : 2021/2/23 19:08:24
@Author : wenbin
@File : __init__.py.py
"""
| [
"750584261@qq.com"
] | 750584261@qq.com |
86c9b86af42f911790b3c9a9171e90b2a3a6d5ab | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat/tests/mistral/test_mistral_cron_trigger.py | f675a7962563de8a3c4633e373b00471eb251b3b | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 4,428 | py | #
# 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
# ... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
87f90331cdb3d4c5fd43445499bf8c27fe2d3f42 | 4142e25e9f6ece5b6192af9b6f237d096ceab9da | /Python школа(2017-2020)/V.py | 9bd5ce9207d0b0d41f27ae85ac741d91383fad8c | [] | no_license | Sergtrf/Sergey-Trofimov | ad007ad175356ad9f2c5d9e555635301db6c4c9b | 660a5ae04ee915fb593728371c9e3bba80f45002 | refs/heads/master | 2023-04-08T23:54:31.983866 | 2021-04-23T06:41:30 | 2021-04-23T06:41:43 | 357,283,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | n = int(input())
a = n//10
b=b2 = n//5
c=c2 = n//2
d=d2 = n
summa = 0
while a != -1:
p = n-a*10
if p == 0:
summa += 1
a -= 1
else:
a -= 1
while b != -1:
p2 = p-b*5
if p2 == 0:
summa += 1
b -= 1
else:
... | [
"sergey.trof@rambler.ru"
] | sergey.trof@rambler.ru |
cccdf7bf02ce1fe0653afcbb0717a261450c2508 | ac0407195ea50e94731e413ba79faf3a4ad302a4 | /cadena-garcia-jesus-angel/5parte.py | e1e98332432ae357a177b46a2909202d1b494538 | [] | no_license | Yaevine/Python_practice_AOFI_1718 | e72539d048df20c87b9393068139bb133cb5d616 | e779a0f5183a2bd411cf27eb35148837292be80e | refs/heads/master | 2020-03-08T09:42:47.243264 | 2018-04-20T13:40:10 | 2018-04-20T13:40:10 | 128,053,639 | 0 | 0 | null | 2018-04-04T11:38:22 | 2018-04-04T11:38:21 | null | UTF-8 | Python | false | false | 618 | py | import time
#Primero fijamos las variables y le damos valores
numerotabla =0
numerocambiante=0
resultado = numerotabla * numerocambiante
menu = "si"
#Ahora solicitamos el numero que quiere multiplicar el usuario
while menu=="si":
numerotabla = int(input("Dime que tabla de multiplicar quieres saber del 0 al 10\n"))
fo... | [
"Yaevine@gmail.com"
] | Yaevine@gmail.com |
bccb0b570fccfc2911fac4309cd83476c3f3e223 | 916787ad51d5847f207fff9405768e6182daeb32 | /AndesControllerLib/bkp/0/sequencer.py | c72e52852d4874d5faf79044031772829228c860 | [] | no_license | NoelGaspar/usb_code | 27dfb0a47bc6e80cd3b97c1501b958d2072028e7 | 3315b5e318877cf8accba2205615ca220dd609da | refs/heads/master | 2021-09-08T05:35:19.647600 | 2018-03-07T17:41:41 | 2018-03-07T17:41:41 | 111,578,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,361 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
## @package sequencer
#
# Generation SciCam's sequencer programs.
#
# This module exposes the ProgramBuilder class to generate SciCam sequencer programs.
import log as log;
import six as six;
## An already compiled SciCam sequencer program.
# @note For re... | [
"noreply@github.com"
] | noreply@github.com |
ad9560f4940ff21422b1436bccf90c34493fc577 | f2a4d90226fb45c9388ae7b0f4b30e7bf50f86e0 | /week2/Python Files/assignment_2_q5_equipot_surf.py | 46ac6754f17b96b70dc6d75aa9d23722a62ede58 | [] | no_license | Souritra-Garai/SRFP2020 | f38dd703029feede14168f31a25875b57be186ee | c8d65cf4c8213fa64af47af11b544f8ae1347fb7 | refs/heads/master | 2022-09-04T03:05:55.061846 | 2020-05-24T12:23:44 | 2020-05-24T12:23:44 | 264,501,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | from electric_multipoles import ChargeDistribution, e, Dipole
from math import asin, pi
from mayavi.mlab import contour3d
from ai.cs import sp2cart
import numpy as np
# Radius of Carbon atom
r_C = 70e-12 # m
# Radius of Hydrogen atom
r_H = 53e-12 # m
# Carbon - Hydrogen Bond Length
BL_CH = 160e-12 # m
... | [
"noreply@github.com"
] | noreply@github.com |
ba9c25204d3852857589bdd57184944ae6d9be2d | e6136dafd25e405300755c37e6d74fd7856e272c | /Lab2/Lab2.py | 3948fbe9cf353495ddb6c4b770dce5742e6e95a8 | [] | no_license | MatthiasMarczyszyn/Systemy_Wbudowane | 16c8bd1e37e2d2c78209d46bc61642951b6eff3a | c00f8887c746b8178461fc23a7ecf8eb0222099c | refs/heads/main | 2023-05-29T12:30:56.234265 | 2021-05-31T19:26:09 | 2021-05-31T19:26:09 | 364,918,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py |
def char_counter_string(string_name: str) -> dict:
"""A simple function that counts how many letters are in the word
Parameters
----------
string_name : str
A word in witch we want to counts the letters
Returns
-------
dict
A dictionery with letters as keys and the number ... | [
"m.marczyszyn@gmail.com"
] | m.marczyszyn@gmail.com |
d8801d1e2ae3d8f288580bc5fd359f92de04d2f9 | 9e06bffb84fc0c9fe7f739d444ba76aeb2a3365f | /While-Loop - Lab/05. Max Number.py | 10af5606cca935f2dfb33a4f91e4d19646122923 | [] | no_license | AngelValAngelov/Python-Basics | c40c6a1d1ba64a91ca52fa06e8ffb1c612e79d49 | 4dd153b8da0c105eafabf50a6fae206390f4ce72 | refs/heads/main | 2023-05-04T17:58:37.370237 | 2021-05-29T20:49:13 | 2021-05-29T20:49:13 | 342,964,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import sys
n = int(input())
max_number = -sys.maxsize
while n > 0:
number = int(input())
if number > max_number:
max_number = number
n -= 1
print(max_number) | [
"noreply@github.com"
] | noreply@github.com |
ba35f6195d26265971096fb556edf8ec094e9269 | 25287f4c89a6335758f08bb8b201d53742b7de61 | /rudy.py | f410777402c0483516b717dc2c853a7db5ed1613 | [] | no_license | htll/RUDY | a8bbdc498a508189c497972b2f641427a66860c8 | bb0f7647d14dcd719ef508830edd5280a5171c1e | refs/heads/master | 2020-07-01T22:05:07.572047 | 2016-11-20T04:50:21 | 2016-11-20T04:50:21 | 74,252,432 | 2 | 1 | null | 2016-11-20T04:19:24 | 2016-11-20T04:19:24 | null | UTF-8 | Python | false | false | 2,625 | py | #!/usr/bin/env python3
# Copyright Nicolas Pielawski 2016
# Edited by aiglebleu for hightechlowlife.eu
import argparse, threading, socket, time, os
website_post_running = True
def website_post(host, port = 80, length = 1024, time_wait = 1, thread_mode = False):
request = 'POST / HTTP/1.1\r\nHost: {}\r\nConnect... | [
"aiglebleu@openmailbox.org"
] | aiglebleu@openmailbox.org |
99c24d8908cc8d2ec3cec6a30bd5b6c931f9ffb9 | 56b81a46107acebb24be67368b4fb17d440f423a | /JPlot/examples/plotTest.py | 02f0e15f19ca0af3d22b18f8952c9993adf659ba | [
"Apache-2.0",
"MIT"
] | permissive | Thesys-lab/InMemoryCachingWorkloadAnalysis | 451dec27eb7fbb9bdf4bd1258e3c0690f029464e | 5f6f9f7e29a164478f3fc28eb64c170bbbafdec7 | refs/heads/master | 2023-01-04T09:55:32.459308 | 2020-09-30T15:50:21 | 2020-09-30T15:50:21 | 291,110,974 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py |
import JPlot.pyplot as plt
from matplotlib.ticker import MaxNLocator
from matplotlib.lines import Line2D
from matplotlib.patches import Patch
import numpy as np
import os
import sys
sys.path.append("../")
def test_plot1():
for i in range(8):
plt.plot(range(20), [j+i*8 for j in range(20)])
plt.savefi... | [
"Peter.WayneChina@gmail.com"
] | Peter.WayneChina@gmail.com |
9fea5106d554cca986c502b31ddb9178c8d34eb1 | 700028cf9125be3aa961c9ad48d0f69afe77ab06 | /4.selenium/step03mypagesearch.py | 1e753392cf9e5d485c8cc16e6493f916157817cb | [] | no_license | Yukyeong-Lee/Crawling | 6d33b5b2e86d2018fb9985e02c776cb5cdcfe1a0 | 50d223d697ace8fcc79ff0604782e8e22f26543a | refs/heads/master | 2023-06-11T20:55:13.318938 | 2021-07-07T02:34:00 | 2021-07-07T02:34:00 | 383,651,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py |
from selenium import webdriver
import time
driver = webdriver.Chrome("c:/driver/chromedriver.exe")
driver.get("http://127.0.0.1:5500/4.selenium/step03mypage.html")
time.sleep(3)
# input tag
search_box = driver.find_element_by_name('data')
# button tag
btn = driver.execute_script("searchBarModuleClickForSearch()... | [
"eaggo5@naver.com"
] | eaggo5@naver.com |
aba17ae60493775a1cbdd3dc41b31bb2ee9afbcd | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Cash Register/base.py | 272ceeded4ef34a761806bab212fe9e20d79a550 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | def setup():
size(400, 400)
bg_color = color(120, 120, 120)
bills_and_coins = [100, 50, 20, 10, 5, 2, 1, 0.25, 0.10, 0.5]
def draw_cash_registerfunction():
noStroke()
fill(50, 50, 50)
rect(50, 50, 300, 220, 0)
fill(225, 225, 225)
rect(87, 130, 225, 35, 0)
fill(225, 225, 225)
rect(87, 210, 2... | [
"noreply@github.com"
] | noreply@github.com |
aef53ad762073d48b7c956b671dae59d1218a131 | 7d598ef483ecd534f0ebbb3ceb1f0ddc8eb397c9 | /parser.py | f5ceb2d2fd5dcc9736002d31c36b0e99d090b384 | [] | no_license | EconClass/SL | f532659662f05a82d734a2bf347fe14cc74edbcf | 21aedf8ff3e956ef45601fc2f7415b80f91afa11 | refs/heads/master | 2021-05-20T21:29:06.748552 | 2020-04-02T10:28:47 | 2020-04-02T10:28:47 | 252,424,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | if __name__ == "__main__":
text = open('hi.txt')
for line in text:
broken = line.split()
parsed = open('parsed.txt', 'w')
parsed.write(" ".join((broken[1], broken[3]))
# parsed.close()
| [
"zurich.okoren@gmail.com"
] | zurich.okoren@gmail.com |
449af2f51fcf3f2f03a972bcee389a84c1928d64 | 53324bec216becbbae5cd5e6607d1323ac8938e3 | /tremodone.py | eb60b875a9c5abb7cc8a6095b039c9a713e7c923 | [
"MIT"
] | permissive | yellowsoar/tremodone | b09f0c736ab1ab3c06b215194e3fccafe9e51b0a | f09478dfa69ecf35c65059401613b34d03a949de | refs/heads/master | 2021-09-10T18:49:46.845549 | 2018-03-31T02:40:59 | 2018-03-31T02:40:59 | 114,984,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,746 | py | # -*- coding: utf-8 -*-
import csv
import codecs
import decimal
path_pomodone_log = 'pomodone-log.csv'
path_trello_archived = 'Archived trello.csv'
path_trello = 'trello.csv'
path_output = 'output.csv'
rfile_pomodone_log = codecs.open(path_pomodone_log, 'rb', encoding="utf-8")
rfile_trello_archived = codecs.open(
... | [
"yellowsoar@gmail.com"
] | yellowsoar@gmail.com |
93bc6d8993dfb57f569277ac860c68e7241e20c4 | 8bf1fbd200d945d48a10e3a046fd971420d8dbcd | /sorter.py | 86b114243d6ada4f41df7dba5c1d842e973702f9 | [] | no_license | o5prey/forming-train-and-test.txt-files-for-yolo-training | af869001db39bd71d73f27b81039ed9df4ddd499 | ff72d4dcbdd45cfe09f34b4b6064422121379403 | refs/heads/master | 2020-06-01T10:51:17.661722 | 2019-06-07T14:21:34 | 2019-06-07T14:21:34 | 190,755,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | #jpg sorter
import os
import glob
import sys
path='C:/Users/EMRE/Desktop/uav_dataset/' # resimlerin bulunduğu klasörün yolu, burayı değiştir C:/Users/EMRE/Desktop/pytorch-yolo-v3-master_env/imgs/
print(path)
files=os.listdir("C:/Users/EMRE/Desktop/uav_dataset/") # resimlerin bulunduğu klasörün yolu,burayı deği... | [
"noreply@github.com"
] | noreply@github.com |
56adc44a220818826ab3e98736c808a4b246d7cb | f397db52cd2a0b6789c93887c581f68d48056fff | /Testscrape/viictr/viictr/spiders/viictrbot.py | 51a6da68d9d5a1966e3b4c0535cc81039287a564 | [] | no_license | rishitha957/Web-scraping | 8c2031c24bef6c3695116b6b3ed299d6467fb03d | 2a603b0e3a37df478fc6dc4d83bb04254cfab71a | refs/heads/master | 2020-05-25T20:33:48.013956 | 2019-06-07T07:28:47 | 2019-06-07T07:28:47 | 187,978,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 28 12:48:44 2019
@author: rishitha
"""
import scrapy
import selenium
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from ... | [
"noreply@github.com"
] | noreply@github.com |
a23765fe96a6a43414cd28496a7065f7645e2f32 | 70042b2571b920da8864771c94296e6f6a895421 | /Repairs/models.py | 23b012ffd426937c6c423a464021f2890879cc18 | [] | no_license | hasalioma2/djangoNew | 83a596765092dfc09be9ca0c23bd80ea9b00bfee | 44cc769d7f7ebd15878b6f55c5071d0f4a5329ca | refs/heads/master | 2023-04-02T10:41:27.387909 | 2021-04-12T12:17:45 | 2021-04-12T12:17:45 | 357,124,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django.db import models
class Vendor(models.Model):
# VendorId = models.IntegerField(primary_key=True)
name = models.CharField(max_length=200)
def __str__(self):
return self.name
class Assets(models.Model):
# assetId = models.IntegerField(primary_key=True)
model = models.CharField(ma... | [
"“hasalioma@gmail.com”"
] | “hasalioma@gmail.com” |
8ebc06ef30a7723e5ccdac18c322c90c8fac7485 | dc9cef0a654ba5bf613501c0f11c110231aace18 | /easysteps/assign.py | afa552e6b99e0a85abdb5c6063de71be522fad1a | [] | no_license | mxt123/getstartpython | 36e297b9b20a9a7942e87f691f13c965c417ca7b | 70bf3f4775967449fc7590bbfa470fb6ff5c3b64 | refs/heads/master | 2021-01-10T19:03:08.035051 | 2019-01-20T16:29:58 | 2019-01-20T16:29:58 | 40,926,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | a = 8
b = 4
print('assign values:\t\t','a = ',a,'\tb =',b)
| [
"="
] | = |
4077f2c69b513dfbb09a6279cfbd85f564d84ab5 | 9f9ec8bebfe8b7ac8e60dcaa23153abe976585e6 | /dataCommons/postingAPI/tasks.py | 1ade94032b03b28ce48f6ba157446b40d942de40 | [] | no_license | erikwestra/data-commons | bbf32cd9b4b64ace28bcb049190d8272a23ed891 | e3ed33fad104157ff505bb02bc7ae981f8ba3b11 | refs/heads/master | 2020-04-11T12:03:19.996644 | 2013-02-14T17:08:24 | 2013-02-14T17:08:24 | 8,188,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | """ dataCommons.postingAPI.tasks
This module implements the background tasks run by the Celery task queuing
system.
"""
import logging
from celery import task
from dataCommons.shared.lib.decorators import print_exceptions_to_stdout
from dataCommons.postingAPI import postingProcessor
#######################... | [
"ewestra@gmail.com"
] | ewestra@gmail.com |
84a8d7587333beacb530ca0dc5bd8c795e393d3a | 5cb29431ecbba7b61463c67749794b54201907e1 | /pelicide/runner.py | 688ba9e582ad94aeb3dcda92e73a6b397e49a1ed | [] | no_license | iksteen/pelicide | 6a9a88a1fe2df6acb271c465942820ab76ccfa82 | 5b8a6a919257840fafdcab5c886c81a72b18a6c0 | refs/heads/master | 2021-05-16T02:39:52.910803 | 2016-01-06T11:40:51 | 2016-01-06T11:40:51 | 34,100,676 | 16 | 2 | null | 2019-10-22T23:49:10 | 2015-04-17T06:35:34 | HTML | UTF-8 | Python | false | false | 2,958 | py | import json
import os
import sys
from twisted.internet import defer, protocol
class RunnerProtocol(protocol.ProcessProtocol):
def __init__(self, callback):
self.callback = callback
self.seq = 0
self.buffer = ''
self.pending = set()
def sendCommand(self, command, args=None):
... | [
"iksteen@gmail.com"
] | iksteen@gmail.com |
91f97b42b730af6c6b6353f404a643529440cf94 | 864bb85e9f5b86843e630d2b7b6291715385e367 | /hdf5/synthetic/1_toy_syn.py | 24872d29f105cbf4c71daa84c56baf66026383f0 | [] | no_license | Littlehead27/Keras_text_recognition_ocr | 2ec2760170e80a667ce07f5ac5948f66be1eb896 | f46faf3e7e8e7b21d6cb8b8885e04b2c734a7e16 | refs/heads/master | 2020-07-21T21:53:37.215891 | 2019-05-17T08:02:51 | 2019-05-17T08:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,524 | py | # -*- coding:utf8 -*-
"""
功能:将语料中的每行文本绘制成图像
输入:语料文件
输出:文本图像
参数:在config.cfg.py中: config_path, corpus, dict, FONT_PATH
"""
import codecs
import numpy as np
import mycrnn_pc.config.cfg as cfg
import os
from PIL import Image, ImageDraw, ImageFont
import progressbar
import glob
def add_noise(raw_img):
"""
:param i... | [
"dumdumslug@hotmail.com"
] | dumdumslug@hotmail.com |
9b95da6467ddd3c456cc5ff5baf0598155c35fea | 09628ca7c25625fb4776e243590298d387f6912f | /backjoon/math2_4.py | 04ad9b5e71dea83bb61e0885ccbef38a5c532e36 | [] | no_license | ssolssolham/ssolssolham | 89b23b0c577fcc67cd3d8a3eb6a8f686c0ae818b | 3d591ca07480ac34fbdd3c1a3d6dec40feef617d | refs/heads/master | 2021-06-12T16:22:32.387195 | 2020-01-14T15:13:52 | 2020-01-14T15:13:52 | 148,002,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import sys
# 에라토스테네스 체 4
ipt = -1
ipts = []
max = 0
while ipt != 0:
ipt = int(sys.stdin.readline().rstrip())
ipts.append(ipt)
if max < ipt:
max = ipt
double_max = 2 * max
a = [False,False] + [True] * (double_max - 1)
primes = []
for i in range(2, double_max + 1):
if a[i]:
primes.appen... | [
"paskal1234@naver.com"
] | paskal1234@naver.com |
0c3ba85209268e4419995bf3b0e59c8dc4ee5a21 | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /projects/project02/tests/q1_1.py | 61dd4039d3bf8affab16b12c4665cbd175e3a540 | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | test = { 'name': 'q1_1',
'points': None,
'suites': [{'cases': [{'code': '>>> type(all_unique_causes) in [np.ndarray, list]\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
4824a2ce716332ac9003208ee8e5242619b3e1e8 | fb8f496a0ea0a416a5ee214ca308953392fb08ff | /predict.py | cf0c635b320c85db397e915d78c9e0d26067baed | [] | no_license | Noba1anc3/CH-NER | 32ba6138d4344052844698ee917a5910997ec3ed | 82f3ab07b2bf7a5b7a4debe6c074c9801b8f2fcf | refs/heads/master | 2023-04-05T05:52:29.132299 | 2020-04-05T10:10:36 | 2020-04-05T10:10:36 | 252,642,674 | 2 | 0 | null | 2023-03-24T23:27:38 | 2020-04-03T05:43:07 | HTML | UTF-8 | Python | false | false | 9,658 | py | import numpy as np
import tensorflow as tf
from tensorflow.contrib.crf import viterbi_decode
from copy import deepcopy
import re
from model import BiLSTM_CRF
from utils import train_utils
from data_process import read_dictionary
import utils.config as cf
# 参数部分
params = cf.ConfigPredict('predict', 'config/params.conf... | [
"zxryhjp@yahoo.co.jp"
] | zxryhjp@yahoo.co.jp |
26918a548c2f53fe227743b0c90bdc04e5101662 | 0e27a64e42d87e049284ad263b807e4c64057de9 | /tensorflow/python/ops/metrics_impl.py | 392bb5ea18c96e2ac1e85c7af7d70fba4d7bbd61 | [
"Apache-2.0"
] | permissive | shaayaan16/tensorflow | f721776f322e8e780cd569a7df026886317b9ac5 | 1ec32ec396d8efebac37325edf94b8948f1397b4 | refs/heads/master | 2021-01-12T02:04:58.634427 | 2017-06-07T05:10:35 | 2017-06-07T05:10:35 | 78,465,880 | 0 | 0 | null | 2017-01-09T20:25:38 | 2017-01-09T20:25:38 | null | UTF-8 | Python | false | false | 116,067 | 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 |
27edb3c2d5067d1fa5b50a92d11a5ec4f2897708 | 7eda6c45c967d3e256ac04b2acd3da401c181aa4 | /PythonCode/Routing/AirSimPythonClient/GPS/GPSToUnreal.py | a8b358368c162561074d8c9c752a5bcc1eb0c666 | [
"MIT"
] | permissive | CryptArc/CBRNeVirtualEnvironment | 419d11fe1672c4302b38fe57f735b924aaa2e6e8 | b3128a5a084b7eca3ff403812646e6db615b93ce | refs/heads/master | 2020-03-31T11:08:45.313174 | 2018-10-03T12:36:51 | 2018-10-03T12:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,103 | py | import sys
sys.path.append('..')
from .GPSCoordinate import GPSCoordinate
class GPSToUnreal:
# this is taken as origin (0,0)
# EYRE_SQUARE_COORD = GPSCoordinate(53.2745, -9.049, 0)
# NUIG
# EYRE_SQUARE_COORD = GPSCoordinate(53.276, -9.057, 0)
# not quite eyre square, but close enough!
#HOME_COO... | [
"d.smyth10@nuigalway.ie"
] | d.smyth10@nuigalway.ie |
39ebc904fd401f81c877b99f75fc240b8ad3a65b | db41f8d1726637c4af165b409526eb9a804ec6bb | /proj1/sales/migrations/0001_initial.py | e07ee0a1ad737a0829e1c4023d6e0286603b0857 | [] | no_license | sumitpareek1992/batch50 | cfb288bcaf5d500c23a3683589fd6b790e56b746 | 57a24f9080f9dc9c91af93ff4be5cb1436361352 | refs/heads/master | 2022-12-10T06:45:58.170206 | 2019-01-09T09:37:38 | 2019-01-09T09:37:38 | 149,378,018 | 0 | 0 | null | 2022-12-08T00:47:03 | 2018-09-19T02:05:02 | Jupyter Notebook | UTF-8 | Python | false | false | 605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-10 02:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Products... | [
"sumit.pareek1992@gmail.com"
] | sumit.pareek1992@gmail.com |
06c1ae158672d9a651a94f2a70faf79cce3232d5 | fff54b01b46cef0bbc70a6469c88c01c82af5a57 | /network/analyzer/libpcap/actions.py | 33f3310aad9a49bdb10846b36e483c86e64304b9 | [] | no_license | LimeLinux/Packages | e51deae6c0d1406e31f06caa5aaa7749466bef0b | d492e075d8b051df68b98c315ad0628e33a8fac4 | refs/heads/master | 2021-01-11T12:37:22.150638 | 2018-08-30T18:24:32 | 2018-08-30T18:24:32 | 77,054,292 | 5 | 19 | null | 2018-02-02T17:24:06 | 2016-12-21T13:33:45 | Python | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.