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
94cf62fa898976048407be482ccc01d14ed64e4c
c6eeaf4d18cc61524c5660e7995a2aef07d655fd
/Question1/cube.py
8169baf1a9f309032607a0020b2d541f032344cf
[]
no_license
NikilNair/Assignment4
896770a446882707a98c56462b5040a766eb07c4
4ff4f434acb7738cd33ba656b5453ebd9304ffe6
refs/heads/master
2023-03-05T13:00:24.195764
2021-02-07T23:26:50
2021-02-07T23:26:50
336,909,194
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
def get_volume(num): return num ** 3 x = int(input("Please enter in one edge of the cube to determine the volume: ")) print(f"The volume of the cube is {get_volume(x)}")
[ "nairnikil1@gmail.com" ]
nairnikil1@gmail.com
06d3666be07727000fbdb256686a110b93baa4c5
16d050a22280f326fc7601d062c168030c95f9e3
/python/geodesic_shooting/shooting_function_V.py
47580cff28b27b7e92853418a4156b83481be530
[]
no_license
NKlug/thesis-mechanical-regression
94d16f878ea895f23ecf4cc0f96fb8ba25845512
1cf4b3177730191a806f37289367599b6c0523dd
refs/heads/main
2023-04-08T14:19:48.477432
2021-03-25T10:54:46
2021-03-25T10:54:46
309,135,130
1
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
import tensorflow as tf from geodesic_shooting.leapfrog import explicit_leapfrog def V(p0, X, Y, mu, leapfrog_step, Gamma, K, dq_h, dp_h, loss_fn, is_training=False, global_step=None): """ Function \mathfrak{V} in Equation (3.17) in [Owhadi2020] :param loss_fn: loss function :param global_step: globa...
[ "klug.nikolas@googlemail.com" ]
klug.nikolas@googlemail.com
d32bdac865b53dfa2b0b6159cd89f731b1be54c7
1565d4f012622c98dd519d5f6feedf7d5a67a70b
/etc/openshift_clean.py
a05d4c5f52a0c98d4598cac6d152eb7475f82f94
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
doaa-altarawy/quokka
6862da8e3f0f3583350ca4faf2bc7133a7aa9d6b
3730008100266569d1fab47c7dfa765650e2a346
refs/heads/development
2021-01-16T17:46:22.983206
2015-12-21T22:15:15
2015-12-21T22:15:15
48,460,112
1
0
null
2015-12-23T00:14:31
2015-12-23T00:14:31
null
UTF-8
Python
false
false
543
py
#!/usr/bin/python """ THIS SCRIPT CLEANS ALL DATA IN YOUR QUOKKA DB RUN ONLY IN OPENSHIFT DEMO DEPLOY OR AT YOUR OWN RISK!!!! """ from quokka import create_app from quokka.core.models.content import Content from quokka.core.models.config import Config from quokka.core.models.channel import Channel from quokka.modules.a...
[ "rochacbruno@gmail.com" ]
rochacbruno@gmail.com
02d2bcf9f1aaaee3aff4b006298d5417e5d9fecb
386d5d4f8f102e701d02b326cd066f520e3dff9f
/ProjectApplication/grant_management/migrations/0030_renames_media_to_medium.py
f3c44d48ea456f3b94289c02f7b305bf53d2dd0b
[ "CC-BY-NC-SA-4.0", "CC-BY-SA-4.0", "CC-BY-4.0", "MIT" ]
permissive
Swiss-Polar-Institute/project-application
ae2561c3ae2c1d5412d165d959ce2e5886135e0a
7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43
refs/heads/master
2023-08-31T04:01:23.492272
2023-08-25T14:33:02
2023-08-25T14:33:02
206,330,401
7
5
MIT
2023-09-13T08:03:53
2019-09-04T13:49:39
Python
UTF-8
Python
false
false
685
py
# Generated by Django 3.0.5 on 2020-05-12 10:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_core', '0118_calls_need_to_be_part_of_a_funding_instrument'), ('grant_management', '0029_signed_by_multiple_people'), ] operations =...
[ "carles@pina.cat" ]
carles@pina.cat
f48e3b04396ae43d35e7068d36e57b283393a616
037c1b80862717d4b8bf3b0f59931a87098ab8ad
/pliapp.py
1ba8f81a08b2af04b0f942f1ff808c9e1d2ec9e4
[]
no_license
Bhargava-I/SMS-notification
e7a57151d14a940e8524ca6757cd14eb2efd86c0
87babf62622bcb2ba1eb4145a55882eea7ff886d
refs/heads/master
2020-03-11T03:26:04.241716
2018-04-16T14:21:10
2018-04-16T14:21:10
129,747,137
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
# -*- coding: utf-8 -*- from flask import Flask, request, make_response, Response, Flask, flash, redirect, render_template, request, session, abort import plivo app = Flask(__name__, static_url_path='') @app.route('/send/') def outbound_sms(): client = plivo.RestClient(auth_id = '', auth_token = '') try: ...
[ "noreply@github.com" ]
Bhargava-I.noreply@github.com
2d82509df19156ca6fed4be5ae4131514453a2d7
dc49b99d5cc72cfaae598e6edbc9c60ea8fd3008
/spider/cola-master/cola/__init__.py
8540b0a719c0e41e23fc6affd0315e64badff93a
[ "Apache-2.0" ]
permissive
zquancai/seniorPaper
25000ab85f052a47aaed535aa4752f1e5046758a
0560fc9713010de95800ceb63ea873b4b058e6f3
refs/heads/master
2020-12-25T06:12:48.166433
2015-03-14T02:30:56
2015-03-14T02:30:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
''' Copyright (c) 2013 Qin Xuye <qin@qinxuye.me> 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 wr...
[ "stardust@stardustdembp.lan" ]
stardust@stardustdembp.lan
ec50a8018dbc6021c36f362219e8b43fc29acf5b
d8c9610e848f338b8d40d62e3106583254b20788
/blockchain.py
b9149b85445c4fcb67d982c3ff1f44eb2ea6c503
[]
no_license
Siddharth9431/blockchain-python
bed16500c3a966e0563c615687b7b2d38b0e7b20
1b63bc9afd6d4fc70793be15ed4545a86ebd9df0
refs/heads/master
2021-09-05T15:28:00.813001
2018-01-29T08:39:49
2018-01-29T08:39:49
119,355,163
0
0
null
null
null
null
UTF-8
Python
false
false
6,104
py
from hashlib import sha256 import json import requests from urllib.parse import urlparse from time import time from flask import Flask, jsonify, request from uuid import uuid4 from textwrap import dedent class Blockchain(object): def __init__(self): self.chain = [] self.current_transctions = [] ...
[ "siddharthgubuntu@gmail.com" ]
siddharthgubuntu@gmail.com
6b84e20453a345d8fa20b9b20e9b7ee7ca9f5328
1da7057f0626ce9a6ca8269e1721b8f454d780f4
/gorynych/receiver/parsers/app13/pbformat/RpcMessage_pb2.py
f940367f2a5d1f3580e033c8dd39549b8865b887
[]
no_license
TBoris/gorynych
396e350fdb6312dec5d39f16fa202d69f81e1e29
ebb545cf5abcdc7707fa73e0824c923c5289793c
refs/heads/master
2021-01-17T06:32:01.421313
2014-03-03T12:39:35
2014-03-03T12:39:35
null
0
0
null
null
null
null
UTF-8
Python
false
true
11,471
py
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) DESCRIPTOR = descriptor.FileDescriptor( name='RpcMessage.proto...
[ "a@b.ru" ]
a@b.ru
570f0a8820905645fc81fffc7549656f97cbf9b6
55a3014f0a67721f347638697328dcc100ebde5a
/data_utils.py
ad9522a437199e2f0a5efafd1c5f6f14f9f408f2
[]
no_license
eugene123tw/gradcam
4a6d321d639c2a215ca6f87855242b352f54e5f7
2ec8419657b5efcdb5963a28ebaacfb9288c2b5c
refs/heads/master
2020-07-05T20:24:02.957721
2019-08-20T14:09:16
2019-08-20T14:09:16
202,763,870
2
1
null
null
null
null
UTF-8
Python
false
false
3,174
py
import cv2 import numpy as np import skimage import skimage.io import skimage.transform from matplotlib import pyplot as plt from skimage.transform import resize from PIL import Image def make_image_3_channels(im): if np.ndim(im) == 2: im = np.expand_dims(im, 2) if im.shape[2] == 1: im = np.re...
[ "eugene123tw@gmail.com" ]
eugene123tw@gmail.com
7123c6aa1065d494cfc9b4db9ca2a1b5fb127927
aed4d81573f2f927686525d1683351441092a97a
/inventory_management/tests.py
77d24ff2ef52c463a91d3df51200dfbf6c4be783
[]
no_license
gahan9/inventory_management
cde222c98e3515b1e9a9b5578a6e40e78f541392
141d125e51eb9cd2b13ecff3236c233b7aa491cc
refs/heads/master
2023-03-16T09:31:05.729560
2022-03-13T17:38:10
2022-03-13T17:38:10
118,814,140
0
0
null
2023-03-04T02:37:25
2018-01-24T19:50:28
JavaScript
UTF-8
Python
false
false
5,669
py
# coding=utf-8 __author__ = "Gahan Saraiya" import os import time import sys from django.conf import settings from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.test import TestCase, LiveS...
[ "gahansaraiya@gmail.com" ]
gahansaraiya@gmail.com
8840973a875ab3fa71b2c506b11bdc459f5e8a50
160c77487579fce4dc09f3bfcbbeeb097208a68c
/netshopping/shoppingserver/modules/backendAdmin.py
a28872904767cacaf80a798d95f93ad665b3db2b
[]
no_license
JoeyFangFang/Python
b942d0fe01d3748e268ce58981a03bfb35fa0a75
745aba6fef26ccb9302d6ad53d8c6a169bebd050
refs/heads/master
2020-12-02T05:15:05.691348
2016-10-10T12:30:25
2016-10-10T12:30:25
67,775,214
0
0
null
null
null
null
UTF-8
Python
false
false
6,325
py
#!/usr/bin/env python #_*_ coding:utf-8 _*_ #Author:JoeyFang '''后台管理程序: 1. 创建账户 2. 锁定账户 3. 解锁账户 4. 创建信用卡账户 5. 锁定信用卡 6. 解锁信用卡 7. 提升额度 8. 返回主菜单''' from select import getSelection from eshopping.config import admin from eshopping.utility.DBhandle import Select_Item, Insert_Item, Change_Item d...
[ "joey.fangfang@gmail.com" ]
joey.fangfang@gmail.com
64286183a2ef16a1a4b58d67bd2bf189773260b6
33042cc27e41438503214099cd374768e6617975
/migrations/versions/36bddd7529f4_.py
62efeae8895703da2e730080fc6c52eef9d889fb
[]
no_license
javierlara/health-insurance
3a7c0ec371e39ca221be434c9b34e77da4dd700c
9330a42e0f51ca89910b6078c74197c30d1e1561
refs/heads/master
2021-01-10T23:39:41.570092
2017-04-07T03:54:11
2017-04-07T03:54:11
70,410,395
0
0
null
2017-03-20T23:46:06
2016-10-09T15:00:22
JavaScript
UTF-8
Python
false
false
1,151
py
"""empty message Revision ID: 36bddd7529f4 Revises: 4edbacbed714 Create Date: 2016-12-15 00:45:08.296110 """ # revision identifiers, used by Alembic. revision = '36bddd7529f4' down_revision = '4edbacbed714' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
[ "javier.lara@trocafone.com" ]
javier.lara@trocafone.com
02c5acf7708f995b28e5ee395d6542a4ee8f0993
fce8d1ab849b24d3fd2722283b70c911fcc0adf0
/thermidor/functions/__init__.py
c4f06886a179b5c00153c145b69322a747caad41
[ "BSD-3-Clause" ]
permissive
rcorrero/thermidor
0ebf2c67aee1cbbe045880fcf66de9adc99c6d66
01381da6dcef6d256c4438f90b46197ea89c4e7d
refs/heads/master
2020-06-29T02:00:21.948757
2019-09-08T19:57:53
2019-09-08T19:57:53
200,404,583
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
''' thermidor/functions ============== this module contains all utility functions in thermidor. These functions extend the functionality of Python data science tools. ''' # Import objects from .date_extractor import date_extractor from .grid_search import grid_search from .helpers import get_categories, correlation
[ "rcorrero@stanford.edu" ]
rcorrero@stanford.edu
a38b84d6c7fe84c715d570ba6ea0bbafee228f7f
323b1355202ce0855f9a973a11a55b2cba420114
/apps/bot/__init__.py
32e315c6bb00417ea6e57e5fb94677860e4f8dc1
[]
no_license
olegshek/bar_booking_bot
784ef767dfe82886b588ad41236bbb086bb26deb
b4f0fa3c82278c14de303b9cd5d6437b1158f6d6
refs/heads/master
2023-05-09T17:17:42.015027
2021-06-15T10:35:31
2021-06-15T10:35:31
300,810,253
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
import logging from aiogram import Bot, Dispatcher from aiogram.contrib.fsm_storage.redis import RedisStorage2 from django.conf import settings app_name = 'bot' logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) logger.setLevel('DEBUG') bot = Bot(token=settings.TELEGRAM_TOKEN) storage = R...
[ "5202727-olegshek@users.noreply.gitlab.com" ]
5202727-olegshek@users.noreply.gitlab.com
eb8e79f9854f2706a7fbb712d8a9606cfc38ebae
e8feb94c80b706cac8187aea3abdab5554d0585e
/primo_while.py
5baedc812f6876f650c15e2575dc6ff77f50af93
[]
no_license
fabiocabrini/python
63ee4d36261cdf309668d96f3d77a7f5456131a9
23f7ad379ece83841ad8c9270e629837c8055159
refs/heads/master
2023-03-31T22:27:35.404628
2023-03-24T10:39:57
2023-03-24T10:39:57
243,404,103
2
1
null
null
null
null
UTF-8
Python
false
false
188
py
N = int(input("Digite N: ")) i = 2 while i < N: R = N % i if R == 0: print("{} não é primo".format(N)) break i += 1 else: print("{} é primo!".format(N))
[ "noreply@github.com" ]
fabiocabrini.noreply@github.com
c279839ba4b3d297acb443351fb77b889f282282
c4526f57c85db73fa69b9082703e2393ea4efc63
/Server/DataFetch/Models/nationality.py
c0d4b331007023620e796e4e909c00dc96e7747c
[]
no_license
edmondsylar/astute_collection
6100bc4a47780453e549e4c2f0ef4e8eab3775a0
9d9308e4163907de4826f58033e736deb6a63b10
refs/heads/master
2022-04-09T19:28:18.306314
2020-03-17T06:11:23
2020-03-17T06:11:23
167,314,599
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
from .db import * import xmltodict from time import sleep db = dbModel() class nationality: def __init__(self, filename, batch): self.batch = batch with open(filename) as file: doc = xmltodict.parse(file.read()) self.object = doc['sdnList']['sdnEntry'] entity = self.ob...
[ "edmondmusiitwa@gmail.com" ]
edmondmusiitwa@gmail.com
bc38759d351f6ebdfac3b69fb0061f1b382afdaf
37a0cd9ed68558c7302f6effc44d5e970416441d
/ivona_speak/__init__.py
d813a2f48657a2b5555092851ff556be9f9e1007
[ "Python-2.0", "MIT" ]
permissive
MagnetonBora/ivona-speak
00eced9ee2231069c9b0fb8e818ba6191209e6fa
d0ced823d28c0026bb685d5a321ed11fdbab9ad8
refs/heads/master
2021-01-20T14:36:15.293070
2017-01-21T12:39:10
2017-01-21T12:39:10
82,699,158
0
0
null
2017-02-21T16:01:37
2017-02-21T16:01:37
null
UTF-8
Python
false
false
105
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals __version__ = '0.2.0'
[ "pawel.ad@gmail.com" ]
pawel.ad@gmail.com
7bf27f4287884c7d5a9932fe1aa0a43addba15f4
eb2dea7b83516645533a6eeebe5caa491cfbc217
/othello/game.py
936d9acc3d53071c718d8a33e671ba2d586ff7ac
[]
no_license
tpgmartin/othello-py
5db5b5e84f59fed56853f57cc784635b19ced169
5397acc5a41656e761a1a29ac3882b7a9de3f2b2
refs/heads/master
2020-03-28T17:11:40.655242
2018-10-04T21:19:24
2018-10-04T21:19:24
148,766,072
0
0
null
null
null
null
UTF-8
Python
false
false
10,604
py
from math import floor from string import ascii_lowercase import sys from board import Board from messages import * from player import Player # TODO # * Find list of possible moves - use this to determine if move valid # * Does not accept valid move if more than one of current player's pieces in same line # # Move b...
[ "tpgmartin@gmail.com" ]
tpgmartin@gmail.com
94011ab1c7caf9dfbc65208d492ff50ab6e11cc0
f741d0307db62946e074bb4fdd5bed0323c444bb
/entities/classifier.py
4a6ddc50eab2f3208e7c5880a2cf3e74f9f9cfec
[]
no_license
orsomech/classifier
08d30162cacad0d90af73c266f5e447413ee1e7d
b005bd5e8b6ff70fa08ee86739ac35012d1c17b8
refs/heads/master
2021-07-14T14:33:51.703949
2017-10-21T14:47:01
2017-10-21T14:47:01
103,022,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
import multiprocessing import datetime import numpy as np import os import entities.classification_request.ClassificationRequest import entities.classification_response.ClassificationResponse class Classifier(multiprocessing.Process): def __init__(self, model_provider, samples, client_socket): multiproces...
[ "ors@soluto.com" ]
ors@soluto.com
1ff24ffb45f8546c93fbec4517976b96ca01b0bc
b8ed71f3d1a36c119d846e97f1aa7d8ba6774f52
/680_Valid_Palindrome_II.py
5dd32bf280843101a247fdd621ab833fcc2b7d1b
[]
no_license
imjaya/Leetcode_solved
0831c4114dd919864452430c4e46d3f69b4bd0cd
374eb0f23ae14d9638d20bbfe622209f71397ae0
refs/heads/master
2023-05-24T17:57:56.633611
2023-05-16T06:31:42
2023-05-16T06:31:42
284,203,426
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
def helper(s,l,r): while l<r: if(s[l]!=s[r]): return False l+=1 r-=1 return True class Solution: def validPalindrome(self, s: str) -> bool: left=0 right=len(s)-1 while(left<right): if(s[left]!=s[right...
[ "smjayasurya1997@gmail.com" ]
smjayasurya1997@gmail.com
28aa15d1b3aa2b9352f685926001b7247d734bf5
bf79c353541c381b5c4a9f676bc05963d651514c
/Algorithms/Models/ReferenceModels/RandomAction.py
f2b44a3ff1db41adcf656cd52b5be90386fe0a0a
[]
no_license
blargg/2048Q
c739f2811e4f2ca0551e670f435dd2ae5a2dd7f4
9f28cb2cfb9aecff13282eb6f045a17856869ca2
refs/heads/master
2021-05-06T05:52:24.499014
2018-05-24T01:13:53
2018-05-24T01:13:53
115,177,412
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import Algorithms.QLearning as q import random class RandomIndexAction(q.ReinforcementLearner): """Choses a random action""" def __init__(self, maxIndex): self.maxIndex = maxIndex def chooseAction(self, state): return random.randrange(self.maxIndex) def observeResult(self, state, ac...
[ "tomjankauski@gmail.com" ]
tomjankauski@gmail.com
5cf926bb57bf2ca3aadc8b6246e3ea1caa8ed77e
107ed414b793afdd79280e6243f8f3002131043a
/zorkdemo.py
8c4682f2580a09f84631b6489e35e6defc819f80
[ "MIT" ]
permissive
swilcox/zorkdemo
4ce5da831cc31263db4e0d90fc681953a272006d
d01e48b2a9020365c4231f60cb672ed418d5e83a
refs/heads/main
2023-03-14T06:47:09.200445
2021-03-08T13:03:01
2021-03-08T13:03:01
340,796,425
0
0
null
2021-02-21T02:01:08
2021-02-21T02:01:08
null
UTF-8
Python
false
false
885
py
import argparse from adventure.app import Adventure from adventure.output import MarkdownToHTML try: from adventure.util import BUILD_NUMBER # this is appended to the util module during GitHub Actions deployment except ImportError: BUILD_NUMBER = "" # default to an empty string if we can't find a build number...
[ "bcorfman@fastmail.fm" ]
bcorfman@fastmail.fm
7bcce88caf756bb58b5c86d24a41dfc8e635fa25
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/omninote/testcase/firstcases/testcase10_018.py
bb43949dc1a984d35d229ba18c38794740f1bd50
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
4,301
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
cfa2d0135838c6c6719e28bfabe8cd0c149b7589
9e708af23116047294f3d72b64bd0f96906058f9
/src/digit_recognizer_submission.py
8c5d55ed38af93595d368a78997cb3de08be6796
[ "MIT" ]
permissive
Retrocamara42/digit_recognizer
d786f71fd788b363db90f6dfbd7abbde56b4528e
1c2dfc05136f0c88f8c0aa9440efeaa050a8b033
refs/heads/master
2020-04-04T17:51:29.542837
2019-11-02T02:34:50
2019-11-02T02:34:50
156,139,082
1
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
import numpy as np import pandas as pd from tensorflow.python import keras from keras.models import Sequential, model_from_json # Loading the model print("Abriendo modelo") json_file = open('./model/model_digit.json', 'r') loaded_model_json = json_file.read() json_file.close() model = model_from_json(loaded_model_json...
[ "juanmanuel.04@hotmail.com" ]
juanmanuel.04@hotmail.com
01bd3f6db97cc9306ca9a9fafc6c3158f37c4c6a
c18b488a7eb6656890924ad0b6869a2352a4c55a
/app/models/user_models.py
e1704bc143129c53ab6eafee415a111d22fb3809
[]
no_license
rzendaris/julo
7fe694e18d314bf21a612d9b7d9ae5fb8a3bd4c7
288e23ea17651568703bf55c5dcb698508aa5e71
refs/heads/main
2023-07-19T16:45:05.927377
2021-09-19T05:49:03
2021-09-19T05:49:03
405,201,354
0
0
null
2021-09-19T05:49:04
2021-09-10T20:10:57
Python
UTF-8
Python
false
false
390
py
""" List of user models """ from app.models.base_models import TimeStampedModel from app import db class UserInfo(TimeStampedModel): __tablename__ = 'user_info' customer_xid = db.Column(db.String(256), unique=True, index=True) def __init__(self, customer_xid): self.customer_xid = customer_xid ...
[ "rafi@ajaib.co.id" ]
rafi@ajaib.co.id
fcc99482a53a66b2e6b78c4066e0b89faaef6a38
ca7aec8129951013af2495cdbc3e4cb7376bbecc
/phoneNumberValidation.py
896c9e5924718c34f2dbce73a307003afc4b3378
[]
no_license
asurendrababu/nehprocpy
f06914f117a274fe3273bf55f9f1bad0e515649e
c371b6dc7f9765e082e1e9d040d171b462d4c7bc
refs/heads/master
2023-02-02T13:41:05.369454
2020-12-21T20:33:27
2020-12-21T20:33:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import re def isValidPhoneNumber(phoneNumber): if re.match(r"[7-9]\d{9}$", phoneNumber): return "YES" else: return "NO" print("\n".join([isValidPhoneNumber(str(input())) for myNumbers in range(int(input()))]))
[ "aakash.appalaneni@outlook.com" ]
aakash.appalaneni@outlook.com
9312e1c3a9b1a9d836f8aacef3ee68a6b427ef3d
b118ffd76c9f09fd53a4d2697ea1a300b19f52ec
/tests/test_selection/test_recursive_feature_addition.py
8937cca9ca9bbcdb690cab8c5616bcad48c3b6fd
[ "BSD-3-Clause" ]
permissive
deborahwalz/feature_engine
44872b919627106d18b9193392c9aee4499b2cf2
6b99174de531018f6d834582961683e895f59674
refs/heads/master
2023-01-31T11:51:03.563274
2020-12-14T15:15:09
2020-12-14T15:15:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,984
py
import numpy as np import pandas as pd import pytest from sklearn.ensemble import RandomForestClassifier from sklearn.exceptions import NotFittedError from sklearn.linear_model import LinearRegression from sklearn.tree import DecisionTreeRegressor from feature_engine.selection import RecursiveFeatureAddition def tes...
[ "noreply@github.com" ]
deborahwalz.noreply@github.com
8b7320fbb782d353ece0bf32dd2977b744b8acd8
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_2side/bce_s001_tv_s0p1_L8/step11_L2345678.py
c03824dab2e889ccb93f4ca311d98915db768bee
[]
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
4,986
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
1a09c866f28c66325c5b7f18265fa9b0b5b9d01b
f704bc282f47d91f2bddee191d19c7330bd6f4e2
/django_project/ishop/apps.py
c95d322ef24f7714f71f217228dc0df19f6466d8
[]
no_license
muknta/ishop-site
2401929a4307ba2c6c3e0bbabb0e8fbd65caea3f
9d5e6ff0563715a7931cbb90b40764da86ad2cca
refs/heads/master
2022-08-20T07:13:02.302937
2018-12-23T21:10:13
2018-12-23T21:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
from django.apps import AppConfig class IShopConfig(AppConfig): name = 'ishop'
[ "hekntsnv@gmail.com" ]
hekntsnv@gmail.com
d8a67dd3fc7ad483dcc1c079ddf71657300fe471
4c3e992678341ccaa1d4d14e97dac2e0682026d1
/addons/account/tests/test_tax.py
62e63e8bb07a770a7428d5bb811ee52b406f5201
[]
no_license
gahan-corporation/wyatt
3a6add8f8f815bd26643e1e7c81aea024945130d
77e56da362bec56f13bf0abc9f8cf13e98461111
refs/heads/master
2021-09-03T18:56:15.726392
2018-01-08T02:54:47
2018-01-08T02:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,285
py
from gerp.addons.account.tests.account_test_users import AccountTestUsers import time class TestTax(AccountTestUsers): def setUp(self): super(TestTax, self).setUp() self.fixed_tax = self.tax_model.create({ 'name': "Fixed tax", 'amount_type': 'fixed', 'amount':...
[ "duchess@gahan-corporation.com" ]
duchess@gahan-corporation.com
0466d9e49ad0a5ee85e2a33dc6f4387aec5c1ef0
93ee07a1e427af25dffa5964c5495e7943124dd2
/maddpg/experiments/tessOriginEnv1w1b.py
54f5f3298784504f45853b5fbe871c6397569edc
[]
no_license
Frostwoods/ChasingWithRopeMujocoEnv
62cb6c19c6f8885a75d6b4f4da8bac96411f33d1
e3cc356c687438e37ed39ea4b159607c7120e7f0
refs/heads/main
2023-03-09T09:35:18.493078
2021-02-28T12:52:03
2021-02-28T12:52:03
343,102,364
0
0
null
null
null
null
UTF-8
Python
false
false
4,417
py
import os import sys import argparse os.environ['KMP_DUPLICATE_LIB_OK']='True' dirName = os.path.dirname(__file__) sys.path.append(os.path.join(dirName, '..')) sys.path.append(os.path.join(dirName, '..', '..')) from environment.chasingEnv.multiAgentEnv import * from functionTools.loadSaveModel import saveToPickle fro...
[ "frostwoods@foxmail.com" ]
frostwoods@foxmail.com
c335ae67050596c16c4e388d411d18e7b88ca797
863a7b075963c2882d9fe5df66af16c6e52576a9
/deepiu/textsim/evaluate/evaluate-sim.py
2079a1cc158d696d4cf173579d1afde74c720102
[]
no_license
buptpriswang/hasky
3c3510d43821bbdfdfa216a337cde6e0747b3423
93afdc32956643fe191fcf1a5aa635570e219ab0
refs/heads/master
2021-06-30T19:45:03.329238
2017-09-22T15:41:58
2017-09-22T15:41:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # \file evaluate-sim-score.py # \author chenghuige # \date 2016-09-25 00:46:53.890615 # \Description # =====================================================...
[ "29109317@qq.com" ]
29109317@qq.com
d2879e729bea75c8dadaaeabb1d80fbcddf8fef4
0a0649978dab9cb63db95bde4d3fb4208d504ef5
/DataMiningMidterm/MidTermPart1/Part1Midterm.py
f0e49c2a0e8ba1eb01664d557863f223a214d4e8
[]
no_license
Kaipie5/DataMiningMidterm
22d79d6d622b1b7b56d7d5b0facf6e8243670584
6cdbcc7b575e720c63fc1bb364b054346fb2d6b2
refs/heads/master
2020-03-23T20:55:45.650411
2018-07-23T21:29:10
2018-07-23T21:29:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 19 19:18:23 2018 @author: kaim """ from bs4 import BeautifulSoup from urllib.request import urlopen from urllib.request import Request web='https://www.sports-reference.com/olympics/summer/1996/' req = Request(web) page = urlopen(req) soup = Beaut...
[ "noreply@github.com" ]
Kaipie5.noreply@github.com
af7247b9aee1420934057068b0813821c6f2fc63
04db54ae9b8240a914fad443946831d124ce3a86
/Interface/node_modules/grunt-sass/node_modules/node-sass/build/config.gypi
59a0fc0ed5944f56e364869d3c243dee3dcbdcd7
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pepies/coft
cc51173a39587c644172c811b4fdc35c08fc48b1
eb79929a28ed787e8b8846c7254b430e398a2a52
refs/heads/master
2021-05-05T14:49:42.757745
2018-10-04T09:48:35
2018-10-04T09:48:35
118,502,280
0
0
null
null
null
null
UTF-8
Python
false
false
5,024
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "pepies2@azet.sk" ]
pepies2@azet.sk
300f56866ec168e194336d4100e89128245d72c3
2e6c469d50a58b57f2b9941939ca0974756c1308
/python/flipgame.py
e16b3a35286adef1f56d1f8c79a01c850bd153e8
[]
no_license
john15518513/leetcode
53ed07667f234a858291789ba0d60b46b5a11a51
43bf3c594a71535a3f4ee9154cc72344b92b0608
refs/heads/master
2021-01-13T04:29:47.247101
2018-10-08T02:12:56
2018-10-08T02:12:56
79,729,551
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
class Solution(object): def generatePossibleNextMoves(self, s): """ :type s: str :rtype: List[str] """ res = [] dic = {"++": "--", "--": "++", "+-": "-+", "-+": "+-"} for i in xrange(len(s)-1): if s[i:i+2] == "++": res.append(s[:i] ...
[ "john15518513@gmail.com" ]
john15518513@gmail.com
2a70b0c11c1b204d4039aab3cabb870f0fd832d1
24b2b908ebf858af4de4878b17605e3f27fa45ea
/main.py
4a467515be42aee482b2ceb222e148d4ea721d59
[]
no_license
Alexius337/KanyeQuotesApp
bf73f81847aa801134456d4d83234618f9152631
735b129e587a60ce89bc99620bf3f0b14db45cb5
refs/heads/master
2023-06-23T02:08:01.936953
2021-07-25T02:36:01
2021-07-25T02:36:01
389,243,264
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
from tkinter import * import requests def get_quote(): response = requests.get(url="https://api.kanye.rest/") response.raise_for_status() data = response.json() global quote quote = data["quote"] canvas.itemconfig(quote_text, text=quote) window = Tk() window.title("Kanye Says...") window.con...
[ "almyro@gmail.com" ]
almyro@gmail.com
c9cfe4b5e9651784e607b41eb6dd8fa3d974bab5
5fa933c3a5b01ab985c845a02a241b13ce3ba936
/139_word_break/main.py
cf352362a73feaffb88ac8358a27b26c0a2592f1
[]
no_license
EMIAOZANG/leetcode_questions
720ebc45def2ac7a28ae90b70194ab96fd7cf765
22f34f2d7c43945e2bf787092de887c3dff64768
refs/heads/master
2020-04-06T06:58:49.229938
2016-06-20T02:12:56
2016-06-20T02:12:56
41,832,727
0
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
""" classic Recursion search with pruning, for every word in wordDict, we attempt to find word in s, if word is in s, we recursively validate the left part and right part splitted by word if none of the word combination can separate s, return False """ class Solution(object): def isBreakable(self,s,left,right,word...
[ "christopher.w.lu@gmail.com" ]
christopher.w.lu@gmail.com
d85d05c311c4860b67a1f1c5efaad98eba65e1f3
f50e4e1a0c50f3e2d06fdc406083c4013a79768d
/virtualzap/src/__init__.py
078e804396477fc66a5f68276e50d65419d44304
[]
no_license
4doemaster/plugins-enigma2
2ecf02af905d5a0a446aeaea1d94d1c3b0d70a05
26cfd60a9f0141ed34f46a9bf3e3bcd0b043a8ec
refs/heads/master
2016-09-06T21:26:17.856814
2012-09-17T05:36:01
2012-09-17T05:36:01
5,836,274
1
0
null
null
null
null
UTF-8
Python
false
false
532
py
# -*- coding: utf-8 -*- from Components.Language import language from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE from os import environ as os_environ import gettext def localeInit(): gettext.bindtextdomain("VirtualZap", resolveFilename(SCOPE_PLUGINS, "Extensions/VirtualZap/locale")) def ...
[ "kamase79@daum.net" ]
kamase79@daum.net
6224adf761d0e3ea9c719933f0c99f580c5038b2
8eef4b60f28689bdfb8ab8977518ae4c370ea610
/binary_search.py
72fb2570ed44c40a6f095e4da90300ec612f8038
[]
no_license
nchengyeeshen/mcls2-problem1
b37551c34b1a70553f7e59c204f20e6d0e6ae10d
55c7bd2d9ed85c19946fb16bc3f4962b335c57fe
refs/heads/master
2023-08-13T17:24:41.480511
2021-09-28T05:42:29
2021-09-28T05:42:29
410,581,169
0
2
null
null
null
null
UTF-8
Python
false
false
395
py
def binary_search(lst, target): """Search a sorted list for an occurrence of target. Return the index of target if it is present, else -1.""" low, high = 0, len(lst) - 1 while low <= high: mid = (low + high) // 2 if lst[mid] < target: low = mid elif lst[mid] > target:...
[ "nchengyeeshen@gmail.com" ]
nchengyeeshen@gmail.com
abc45b34762e781b76a42c2345587e0cdf2fb811
0be0bd98ae9ffd23ab032a2f37cfd71066922117
/src/CharacterDetector.py
4657cc7106b1956d1ad1eca3596cbc308b9a5840
[]
no_license
fsosa98/photo-to-math
96996c9c86a85dd08d782e8e2c2cbb0cd1e3357c
16117ff0d6bec0dad95e18adb4439124ca516ee7
refs/heads/master
2023-01-23T04:46:11.848722
2020-12-09T17:47:44
2020-12-09T17:47:44
320,007,360
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
import cv2 class CharacterDetector: def detect_bounding_boxes(self, path_to_image): self.bounding_boxes = [] image = cv2.imread(path_to_image) gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blurred_image = cv2.GaussianBlur(gray_image, (5, 5), 0) threshold = cv2.adapt...
[ "filip.sosa@fer.hr" ]
filip.sosa@fer.hr
7432796a7c490948e50f5202bf005c7ef886dfbc
304b0dfb4ae0261d7769963260e99e3b37f588b9
/accounts/urls.py
c9ea7807143afb10240f14404064bf01486a4acb
[]
no_license
mohdfazlie/crm1
bc634af4ae2307e87f3956ec5cd39b9f1c72dc05
4c29fa466b6e32f2390bed401464d8621aa497d5
refs/heads/main
2023-07-13T05:07:21.542412
2021-08-26T14:53:21
2021-08-26T14:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
from django.urls import path from . import views urlpatterns = [ path('', views.home), path('products/', views.products), path('customer/', views.customer), ]
[ "59987681+mohdfazlie@users.noreply.github.com" ]
59987681+mohdfazlie@users.noreply.github.com
fd3915a24c608db95ebb058506cdf615722b751c
2dd5b68132e7147148cb68a44faa5afe05887263
/代码/zqxt_views 6/calc/views.py
b79e5e7931f719d7587c960502bbaaaf12bc5d05
[]
no_license
zjgwhcn/Django
35839ffc37c7697b115f4b712401bddd8c7fc9df
dea4ce01127aea80883bc4114d18f072f71907ac
refs/heads/master
2021-07-05T14:19:47.426219
2017-09-30T02:40:14
2017-09-30T02:40:14
104,609,169
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import render from django.core.urlresolvers import reverse # Create your views here. def add(request): a=request.GET.get('a',0) b=request.GET.get('b',1) c=int(a)+int(b) return HttpResponse(str(c)) def add2(...
[ "76939221@qq.com" ]
76939221@qq.com
930d498a17db90721c75d65299f8f10b0549e799
4a88daea1741ed6b5b5088b8d1f2787093abdf80
/tests/test_gen_couroutine.py
16e6479cc1bbc400493e0975a2f4a4ccec8b11d3
[ "MIT" ]
permissive
Nigelzhf/torweb
8e0bfeb6793ae9e50230e6b7b6284ec5e6da0d57
6859a878c126addb74410e872307ac9399f20eb7
refs/heads/master
2021-01-12T14:16:10.474945
2016-10-03T20:47:25
2016-10-03T20:47:25
69,928,142
0
1
null
2016-10-04T02:25:34
2016-10-04T02:25:33
null
UTF-8
Python
false
false
414
py
#encoding:utf-8 import sys, os sys.path.append(os.path.dirname(sys.path[0])) from tornado.httpclient import AsyncHTTPClient from tornado import gen import tornado.ioloop @gen.coroutine def fetch_coroutine(url): http_client = AsyncHTTPClient() response = yield http_client.fetch(url) print('test') pri...
[ "jmpews@gmail.com" ]
jmpews@gmail.com
ce8d583916880dcbb3ea1f894cc1130301cf5a9e
5e9d355bebcc7e4884230a5ce78f3de5675060a9
/Project/Scripts/Peaking_Bkgd/PID_pi_selection_Paula.py
b757046aff08d02fd71bccb8f2fbcd68c9c628ea
[ "MIT" ]
permissive
BlaiseDelaney/LHCbAnalysisImperial
8b9f587eadd7aa040c755379f4f9e1014502dd2c
c2d877943d8c53e7932cd3b4e081f470b44209dd
refs/heads/master
2021-01-12T16:58:37.568281
2016-10-20T16:35:58
2016-10-20T16:35:58
71,481,102
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
#!/usr/bin/env python from ROOT import * from math import * path_origin = "/vols/lhcb/palvare1/B2pphgamma/B2ppKgamma/" path_destination = "/vols/lhcb/bd1316/B2ppKgamma/" fname = "B2pphgamma_S21_protonID" #complete TTree fin = TFile(path_origin+fname+".root") tin2 = fin.Get("B2pphgamma_Tuple/DecayTree") cuts = {"prot...
[ "delanebl@tcd.ie" ]
delanebl@tcd.ie
ef272a3febcc2ba2e33219c86eb25cbc04c3e838
0a0484ef924f35e144b0c1455b41d41172a1ceed
/chrishat.py
78082c81f310f5c51d6716a217236d0981f6339c
[ "MIT" ]
permissive
gocode2016/wechatDevelop
9725cfa28be0de3ff68966025b71990266d89fd1
9b9f606631e119c8314be09c572ed7212d9f7e1d
refs/heads/master
2020-05-03T05:19:25.118036
2018-12-24T15:58:46
2018-12-24T15:58:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,166
py
import numpy as np import cv2 import dlib # 给img中的人头像加上圣诞帽,人脸最好为正脸 def add_hat(img,hat_img): # 分离rgba通道,合成rgb三通道帽子图,a通道后面做mask用 r,g,b,a = cv2.split(hat_img) rgb_hat = cv2.merge((r,g,b)) cv2.imwrite("chris/hat_alpha.jpg",a) # ------------------------- 用dlib的人脸检测代替OpenCV的人脸检测---------------------...
[ "842205264@qq.com" ]
842205264@qq.com
14443d78e832850fbf4ea54c273ba7086f1c6616
18ad7e14bd6a95d2c328ffc000a2266f2117fbf4
/tienda/migrations/0001_initial.py
529a05e837d836c9e890d8f0647df946b8e33d60
[]
no_license
osgard/PaginaWeb
905e6a5e4fc6c460e7af5590c6e398ea287b643d
f52a75a0361171cc0c27aaf445eff83a5a454ffb
refs/heads/master
2021-08-28T00:57:10.596622
2017-12-11T00:07:12
2017-12-11T00:07:12
113,691,604
0
0
null
null
null
null
UTF-8
Python
false
false
2,915
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
[ "osgard_kn@hotmail.com" ]
osgard_kn@hotmail.com
185d8b5f4f008e2282b354df2a7704029c08513a
6092f25674d8d9d4a33b539faff635b1aa79e009
/big data/python/mapreduce/join 2/join2_mapper.py
2e2ee06d0591224f03d5b8fd8ff5e92f57e60856
[]
no_license
shigatan/Education
4349c8251639d5eb54ba45c71f12a3eade4c6f45
1eef7b3cf74193cdc20c72abff3bcc1e9a4c7ecd
refs/heads/master
2021-01-21T06:00:18.213862
2016-10-03T20:54:42
2016-10-03T20:54:42
68,309,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
#!/usr/bin/env python import sys # -------------------------------------------------------------------------- #This mapper code will input a <date word, value> input file, and move date into # the value field for output # # Note, this program is written in a simple style and does not full advantage of Python # ...
[ "1409tanya@gmail.com" ]
1409tanya@gmail.com
7557f9c26958daeaf17b207410ec91e1e78d1c4d
d618dd4c87eb7396409222917fea621cb9f87607
/tests/test_list_all_links.py
854feff92649b46598dd180e8dddcc44cdf067cb
[]
no_license
Yurasb/url_shortener_testing
774cff45049d130d80c575005bb8848a7e8db4d3
cc342b4ddea4243334585446afa3b20c26fedb85
refs/heads/master
2021-09-18T10:17:09.727851
2018-03-14T20:07:19
2018-03-14T20:07:19
115,262,758
0
0
null
2018-07-03T22:40:08
2017-12-24T12:54:56
Python
UTF-8
Python
false
false
2,839
py
import allure import requests from cerberus import Validator @allure.feature('List all links handler') @allure.story('Valid request with empty list status code') def test_list_all_links_empty_status_code(purge_all_links): response = requests.get( url='http://localhost:8888/admin/all_links' ) asser...
[ "yurasb@tut.by" ]
yurasb@tut.by
8edd25a05553c2dfeaaf20dd6357cab4c4a87d07
4b5173af602439cdca0db985dcbdd25aef9b7a6b
/bin/topology-json-connector.py
fb1c33926b316f0d4ed9f1c45d8fbaeac5353af5
[]
no_license
kevangel79/argo-egi-connectors
a3d4bf502708cdce08acf01b5c58812042e4d201
dff42c3d4e5e7ea31ca839dd93f975ea27f4ffda
refs/heads/master
2022-02-23T15:01:13.081358
2022-02-15T14:54:05
2022-02-15T14:54:05
250,012,827
0
0
null
2020-03-25T15:14:01
2020-03-25T15:14:00
null
UTF-8
Python
false
false
7,746
py
#!/usr/bin/python3 import argparse import os import sys import json import uvloop import asyncio from argo_egi_connectors.io.http import SessionWithRetry from argo_egi_connectors.exceptions import ConnectorHttpError, ConnectorParseError from argo_egi_connectors.io.webapi import WebAPI from argo_egi_connectors.io.avr...
[ "daniel.vrcic@gmail.com" ]
daniel.vrcic@gmail.com
a46b956e19eaa96c38cbe4ac90b4a9303e975dd5
b8e33dd27870f5d86a61bb36c8063c995616a17f
/repository/db_engine.py
ab629dbc1adeaeb34fe2b77ad9c49e970b38cf11
[]
no_license
cifpfbmoll/OllivandersDockerCharlos16v
f3154a6b655b38b801b32d40360a1f79cedfd0e8
2c3bf51039f7524df0b74dde4e3d9f7c9708d483
refs/heads/master
2023-04-25T00:29:06.210869
2021-05-12T17:39:18
2021-05-12T17:39:18
362,487,247
0
1
null
null
null
null
UTF-8
Python
false
false
2,539
py
import ssl import click from flask import g from flask.cli import with_appcontext from mongoengine import * from repository.models import Inventory, Users default_inventory = [ { "name": "Aged Brie", "sell_in": 2, "quality": 0, }, { "name": "+5 Dexterity Vest", "se...
[ "cdominguez@cifpfbmoll.eu" ]
cdominguez@cifpfbmoll.eu
9db8984e6ebf73d18d04cec93f522f942fae5520
81539aba88c22cf75bd2e14f5e0e92f2bf54e962
/DarkMatterMap2017/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_Mchi-30_Mphi-100_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_40000_0_cff.py
05fe9e736ba8add5e80e5b30edd2c2a3536e5193
[]
no_license
nistefan/RandomizedParametersSeparator
ad35b48b95e9745814c0bf9d8d8b6eb8aa479177
66a0e291b59113c6b5301768f1c10e36cf23d3c3
refs/heads/master
2021-01-03T00:41:17.415005
2020-02-19T13:30:54
2020-02-19T13:30:54
239,838,928
0
0
null
null
null
null
UTF-8
Python
false
false
4,387
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:133', '1:356', '1:341', '1:357', '1:34613', '1:36531', '1:3685...
[ "Nicole.Stefanov@cern.ch" ]
Nicole.Stefanov@cern.ch
a0bab863b66fc005208480acb0c001c2806961eb
9154a467a4139a3f0b7f9ffa94d79740edc3e7d9
/tests_future/echo_forever.py
42080a68cb1f03403a7ff60c749186992acddf3c
[ "MIT" ]
permissive
fuzziqersoftware/nemesys
9e3e138b31d489b6f46ef3388919a2dd8e32177b
ee6cc8e1fd804b5cfaa94a79e295770cadec8204
refs/heads/master
2022-02-22T00:02:15.343807
2019-06-06T17:57:45
2019-06-06T17:57:45
112,042,743
11
3
null
null
null
null
UTF-8
Python
false
false
54
py
data = 'a' while data: data = input() print(data)
[ "mjem@wildblue.net" ]
mjem@wildblue.net
9542ddda6c4d0554e936a105ffed804c5ab4a04b
656ce805644157539c98e00319ceaa7bd1d30e38
/app/views/index.py
ee2e5ab4074aa384e71efa1b5ec9a4c77287f225
[]
no_license
ZhaoXianglin/POASYS
a80d4038e67e43b177e69cbb9f7204befc0129ae
2ff82ca017b87958d71ad52d9f216249de000155
refs/heads/master
2021-01-10T20:39:45.274266
2015-08-30T14:42:47
2015-08-30T14:42:47
34,740,092
1
2
null
null
null
null
UTF-8
Python
false
false
3,224
py
__author__ = 'jarvis' # coding:utf-8 from .import home from flask import render_template, jsonify import datetime from ..models import RssResults, WechatResults, WeiboResults, EmotionDict from app.infohandle.rsshandle import RssHandle from mongoengine import Q @home.route('/') def index(): timenow = datetime.date...
[ "zhaoxianglin0409@gmail.com" ]
zhaoxianglin0409@gmail.com
c24e01843bd705c2995dea0f967dc95135adaf88
871013c656bc84bc8af4e2bbeb6fe0c64d5b15f7
/11.py
74ae2d25f6c66024636ea8b78f2e04a6471187d8
[]
no_license
nayudujahnavi/guvi23
9edcbf2a6ce00216730cc47d6cfb887e7661491a
20019152323d632e06c0276a8c60473d18200e33
refs/heads/master
2020-03-24T06:41:07.261752
2018-09-26T04:41:08
2018-09-26T04:41:08
142,537,552
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
n=input(input(" ")) temp=n rev=0 while(n>0): dig=n%10 rev =rev*10+dig n=n%10 if(temp==rev): print("yes") else: print("no")
[ "noreply@github.com" ]
nayudujahnavi.noreply@github.com
ded556573edcf7e777585b0c84f510bb084ef4f7
b031794fea218bbe4f775f2e9f9383f6d7e70f2f
/manage.py
88795e20b78454021afe507cefe44e5883b984aa
[]
no_license
Hernaan/k68
ef86038ab869daf39ede16b07141f6426b92a8e9
9cc7b9860ae4693092e77e19a187f5c94f2e3445
refs/heads/master
2021-01-20T06:32:51.124115
2017-10-30T14:34:27
2017-10-30T14:34:27
101,504,581
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bombero.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "hernachaparro@gmail.com" ]
hernachaparro@gmail.com
216a1936a0765a03561c39d2e45e639c44235479
4d585d878ffe70fe639efea5cb78042601bcabd0
/Life_assistant/dict/migrations/0001_initial.py
fd41fee2404a00ce67df922a1b652bb48e67f522
[]
no_license
txd-git/life_assistant
32596fdd911c305acb29caced64423fc22571462
240159b2c37e5b14613981055201923b35def623
refs/heads/main
2023-03-26T06:29:10.886998
2021-03-29T16:03:30
2021-03-29T16:03:30
311,205,230
2
0
null
null
null
null
UTF-8
Python
false
false
664
py
# Generated by Django 2.2.13 on 2020-09-21 19:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Words', fields=[ ('id', models.AutoField(a...
[ "tangxuedong1024@163.com" ]
tangxuedong1024@163.com
f91a0b364e18a94cdc020696a8d3317f6364c524
1aed23e9e009dfa8a72b2de7b1a8891b00b92b07
/read_feats.py
e053de97395313d0fa3ac9d573a9fd6179f11530
[]
no_license
eqiihuu/tools
e9d1bc815be8810b9fe31b4d4ba25f1cef7387b4
005b2e886b70a6a69d6ee5047de07fba9fd7a73e
refs/heads/master
2020-03-12T18:56:31.472503
2018-10-31T21:31:08
2018-10-31T21:31:08
130,773,477
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
import os f_binary = open('data/raw_mfcc_librispeech_vqe_hires.22.ark') f_seg = open('data/1/feats.scp') data_list = [] data = {} # First line line = f_seg.readline().strip().split(' ') data['id'] = line[0] data['path'] = line[1].split(':')[0] data['start'] = int(line[1].split(':')[1]) while 1: line = f_seg.readl...
[ "qihu@baidu.com" ]
qihu@baidu.com
0843fe6fb5b4b56d9f88b6f12bc0dd0cf2089941
26a80708e7be253fac947872f8fcc4efc3346c6b
/config.py
8efe1e96ab37deea7bbaa08a47583b646a0ee92a
[]
no_license
artemmarkaryan/price_checker
84040bdf9bdb1ebc7c8b944295817e39ecf42f23
15841b8b0c522ad622199c103dc99813b98c7eda
refs/heads/master
2023-01-30T04:30:07.478768
2020-12-11T20:54:24
2020-12-11T20:54:24
295,021,706
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
import dotenv import os dotenv.load_dotenv() HEADERS = { 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'accept-encoding': 'gzip, deflate, br', } PRICE_SIMILARITY_...
[ "artemandriy@gmail.com" ]
artemandriy@gmail.com
ca908b819dae16b35087d7b5209b8a1f2a2a9003
b2d066f5a052c5b07df2f391d59250d1cc6c6160
/apps/utils/email_send.py
2e28f1c6a97a6a2b07efc3a12422a82f28ffefd8
[]
no_license
wuqingjian/itopip
868082c303ca96bf4632ec43129e17ea58171509
847c0a7d465c656ce4b0eaebfd873fd7aec8aa5a
refs/heads/master
2021-09-03T21:49:37.304840
2018-01-12T08:47:55
2018-01-12T08:47:55
117,215,487
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
# -*- coding: utf-8 -*- from random import Random from django.core.mail import send_mail from users.models import EmailVerifyRecord from project.settings import EMAIL_FROM def random_str(randomlength=8): str = '' chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789' length...
[ "wookingjim@126.com" ]
wookingjim@126.com
910c3a0c9b0d424fec7f202656837843921ccc40
5402192d0df79ad944fbdde213d6dfc5835806ab
/qa/rpc-tests/test_framework/mininode.py
760c8348bc0381361c128ebe776c329fd789f47a
[ "MIT" ]
permissive
leopardcoin/leopardcoin
cd7656f670b3034de63618fa264dc66d0b656ba9
2ac16174bca692afb9f8562c37cd869e32569d82
refs/heads/master
2020-04-27T03:47:02.513596
2019-03-06T00:27:17
2019-03-06T00:27:17
174,034,624
1
0
null
null
null
null
UTF-8
Python
false
false
48,687
py
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # mininode.p...
[ "leopardcoindev@gmail.com" ]
leopardcoindev@gmail.com
acef68a20dbf126c0a793a77f96c9214d5fc6a7c
7e63e9d59dec17c9e293f4a90c76ccfb0b3481ca
/projects/e2evod/e2evod/detector.py
f87e66d3d6c1bccd03cdbfc7d6a8b313f19dae14
[ "Apache-2.0", "MIT" ]
permissive
bearcatt/SparseR-CNN
30372935fd362f7b205ac90dc96ea8065e25ffcb
63d001d83c71ad7da5cf4e6614ec5dcdd9b6e400
refs/heads/main
2023-04-05T13:53:02.720156
2021-04-06T07:47:54
2021-04-06T07:47:54
321,633,848
0
0
MIT
2020-12-15T10:33:09
2020-12-15T10:33:09
null
UTF-8
Python
false
false
9,882
py
# # Modified by Peize Sun, Rufeng Zhang # Contact: {sunpeize, cxrfzhang}@foxmail.com # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch import torch.nn.functional as F from torch import nn from detectron2.modeling import META_ARCH_REGISTRY, build_backbone, detector_postprocess from ...
[ "c.r.deng2012@gmail.com" ]
c.r.deng2012@gmail.com
112fd981158748991a48d8ebb03eccee576aac14
02cdac5a92ef16305e2712b7b027275bbcee426f
/projects/01_fyyur/app.py
b48dd858b21774d74ae17d4766612e02e2246e38
[]
no_license
NjB-fs/fullstack
c89055e0fa67948a00464bc7e86358eaa61f620b
3fdf299989d77dcb4379860efe86d5ee609527aa
refs/heads/master
2022-12-04T17:11:19.180383
2020-08-25T19:15:43
2020-08-25T19:15:43
280,246,451
0
0
null
null
null
null
UTF-8
Python
false
false
19,109
py
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# import json import dateutil.parser import babel from flask import Flask, render_template, request, Response, flash, redirect, url_for from flask_moment...
[ "ninabaikoro@gmail.com" ]
ninabaikoro@gmail.com
8dd0e8db5c106dc0a4a867b92314ee3975bfac32
ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7
/syntactic_mutations/cifar/mutants/mutant85.py
36cc2dc7a92ebacc6a2c035d43c75d2a8980ffb9
[]
no_license
dlfaults/mutation_operators_evaluation
ea7f33459ba7bcf7d70092d9db8b40f9b338d516
7d1ff30e901931a46bf8908e9bb05cae3daa5f0f
refs/heads/master
2020-12-27T15:45:07.262012
2020-02-03T12:22:01
2020-02-03T12:22:01
237,955,342
1
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
import keras from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.datasets import cifar10 from keras.layers import Dense, Activation, Flatten, Dropout, BatchNormalization from keras.layers import Conv2D, MaxPooling2D def train_model(x_train, y_train, x_test, y_test, model_name):...
[ "gunel71@gmail.com" ]
gunel71@gmail.com
828d456252913d3ccc7840df456789c9057c5e29
e529e1fbd89b58b0a499f7dba4d7d20a37610cf6
/source/DataCollectionAndCleaning/crawler.py
9cab4b604f841009ba7802d43fdfb3e79122838a
[]
no_license
singhal98/Fake-News-Detection-1
3979b31ebb63848c4f8e41dd1b7759a28ec22192
54f67b08d76ddd60ffec7e7579e0ea28e9057d93
refs/heads/master
2020-05-16T12:37:58.012741
2018-06-29T02:35:08
2018-06-29T02:35:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,447
py
import requests from bs4 import BeautifulSoup import pandas as pd import Queue import threading import sys import re TEXT_PASSAGE={} queue=Queue.Queue() ''' threaded crawler for crawling data ''' class ThreadedCrawler(threading.Thread): def __init__(self,queue): threading.Thread.__init__(self) ...
[ "nair.r@husky.neu.edu" ]
nair.r@husky.neu.edu
3f867e03ffc111fa3e897382bcaacef5230d16eb
5442e70e9a68b0a76601082e9aa307674fd4fb95
/evaluation/draw.py
a8f5d430416dfc0ae686c2c9b91b4ba0ed113967
[]
no_license
sycophant-stone/mmdetection_2.0
1871e85311fee3b81d3b1415787c837aadf6b543
6caabdcf81e7b003e612d053c94bd6c993dd5c3e
refs/heads/master
2020-09-09T10:49:42.961409
2019-12-18T14:01:57
2019-12-18T14:01:57
221,426,479
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
import cv2 def drawline(img, pt1, pt2, color, thickness=1, style='dotted', gap=10): dist = ((pt1[0] - pt2[0]) ** 2 + (pt1[1] - pt2[1]) ** 2) ** .5 pts= [] for i in np.arange(0, dist, gap): r = i / dist x = int((pt1[0] * (1 - r) + pt2[0] * r) + .5) y = int((pt1[1] * (1 - r) +...
[ "kawayi_rendroid@163.com" ]
kawayi_rendroid@163.com
3f8952fb88e4816f12a595d0426761c604e216e3
41fd776349627db5c74a52b2ce09c21d24c0c59a
/code/UGAN/tf_unet/image_util.py
438f254d93932fd2396d8154308ffce8ac3b5e73
[]
no_license
JoarGruneau/ex
c15024d40b607d86175987566735185226292ed1
7b200e01d3133e4f2b26aa6dadd38c21785f37cd
refs/heads/master
2021-03-29T19:21:39.740336
2018-04-06T18:01:54
2018-04-06T18:01:54
122,220,411
0
0
null
null
null
null
UTF-8
Python
false
false
13,995
py
# tf_unet is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # tf_unet is distributed in the hope that it will be useful, # but WITHOUT...
[ "joar@gruneau.se" ]
joar@gruneau.se
429b90dc55073022c859a76378478c9de57856db
fb51525f9b79e2f65662999bcdf7849de77755e0
/bulletsshop/migrations/0022_order_email_chase.py
c781068a19abbe24ecbc0cd45e2178fc214bd371
[]
no_license
lampyjon/bullets-with-shop
20f2f39c2134c91d410fca44df70821160ebe071
faf8df9fcef31e95d868b00dbb26a6cc7b0edb53
refs/heads/master
2022-12-15T08:11:08.477874
2021-10-24T13:21:46
2021-10-24T13:21:46
149,658,602
0
0
null
2021-09-22T17:52:47
2018-09-20T19:17:48
HTML
UTF-8
Python
false
false
450
py
# Generated by Django 2.1.4 on 2019-01-20 16:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bulletsshop', '0021_auto_20190113_1744'), ] operations = [ migrations.AddField( model_name='order', name='email_chas...
[ "24703763+lampyjon@users.noreply.github.com" ]
24703763+lampyjon@users.noreply.github.com
b0a4278bc4d808b416a366b7908356a3af42a740
5cfc4c94bf158ec45d39c484ebb9740460d8e2d7
/venv/bin/sqlformat
cdbcb77296c02e73eb94127581dbaf74aee93cb9
[ "Apache-2.0" ]
permissive
r34g4n/ADT_booking
917060cc95ee2c9eeea2fec69ea0d1335c43cca2
57c5bb103ac8bc1cf4d2c4f8b52744bd763560fb
refs/heads/promoted-slave
2022-11-30T16:14:21.582830
2019-08-27T08:20:50
2019-08-27T08:20:50
197,391,546
0
1
Apache-2.0
2022-11-22T03:57:27
2019-07-17T13:06:50
Python
UTF-8
Python
false
false
259
#!/home/r34g4n/PycharmProjects/ADT_booking/venv/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "gorreagan@gmail.com" ]
gorreagan@gmail.com
16e34bea041c4db3af3666c95402f1b3f59b1056
f7e4499a90d36a4f7ae8ed5d5f4373371af6e014
/check_tax.py
f4f689421c122bb1dc478187b5ed6e00c696215a
[]
no_license
confoundedkyle/python
db4710d8fa1b804325cb6e264714fc36ae254002
a047c3f80f6a16e5cefe0310b1df6849dca14a47
refs/heads/master
2020-08-13T21:02:03.774531
2019-11-21T00:24:48
2019-11-21T00:24:48
215,037,188
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
price = input('how much did you pay? ') price = float(price) if price >= 1.00: tax = 0.7 else: tax = 0 print('Tax rate is: ' + str(tax))
[ "1125125225184+confoundedkyle@users.noreply.github.com" ]
1125125225184+confoundedkyle@users.noreply.github.com
5497418ae85a0316f349274f072d9d44f408250f
4f4cdb5539962421083ab23646e0f8dec109c9f9
/teste.py
70061db3503dc0a9dd8b8252bdd38490988d1da9
[]
no_license
herickmds/bot
cfb6f03ab0bfd0c38c284870bb8f6e3e52813552
5b8c5de4359f304a0445f3831ca57d3abb3d8aa2
refs/heads/master
2022-12-04T17:39:34.371048
2020-08-14T19:42:59
2020-08-14T19:42:59
287,604,251
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
import math # Ativa o módulo de funções matemáticas """ Gera a sequência de Fibonacci até ultrapassar um limite que deve ser menor do que 1000, para alinhar os resultados e razão entre cada dois elementos """ # O limite deve ser maior ou igual a 2 Limite=int(input('Entre com o limite (>= 2): ')) N=2 # Número de...
[ "noreply@github.com" ]
herickmds.noreply@github.com
dcbfae11adf80bff23d607bf53b29844748d28f4
7b7799c2a4baa490a1d05255429c523174f6bfca
/servidorTCP.py
0c15bf9e85136846424f92af0e53ac746675202c
[]
no_license
BackupTheBerlios/trumpet
323f99c4a65cff42e7365d49c1f37ab8ac72de59
b38353f6171445c0999a5cadfaef169afddb8d68
refs/heads/master
2020-06-04T01:47:11.586921
2011-05-20T00:00:47
2011-05-20T00:29:31
39,715,272
0
0
null
null
null
null
UTF-8
Python
false
false
3,040
py
#!/usr/bin/env python import socket from threading import Thread lista_clientes = [5000] mensaje = "" ip_actual = 5001 lista_posiciones =[] lista_orientacion =[] lista_movimientos = [] mensaje_servidor = "ninguno" #cliente para escribir por pantalla class Recibir(Thread): def __init__(self, clientsocket, cli...
[ "fernandocruzruiz@gmail.com" ]
fernandocruzruiz@gmail.com
3fff4e36d1e416471821fd209ba09bec8b17b5c7
0b9f04333f48f30fd6dd066ce17971e377933443
/diaries/migrations/0003_remove_category_created_at.py
cb0a67e1a0c04e646ac2a04140e4c7c203ec06e3
[]
no_license
chico0602/helloworld.com
c9685776ece14349a09bff83036c8e25372609c3
5b8266470632bc47ce8fb60e028c2c7a3e2108cb
refs/heads/master
2020-12-14T10:59:11.997044
2020-02-16T08:52:39
2020-02-16T08:52:39
234,719,900
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
# Generated by Django 2.2.9 on 2020-01-22 10:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('diaries', '0002_category_created_at'), ] operations = [ migrations.RemoveField( model_name='category', name='created_at', ...
[ "yukamori.0602@gmail.com" ]
yukamori.0602@gmail.com
756c93d17ee0a846757c12552b254853d5f8fc02
f7bceed1202c4ce26e3077728c334c7a96e55803
/school_year_2019_2020/examples/flask/database.py
0a7c7b62f9b45d2a2f761c650a7bbc5cb6f8b466
[ "MIT" ]
permissive
d0ivanov/python-course
3a1036ff63e9cd20145e575dec34ad9225e09097
d55ce01b1fe03d7959a2eb4869e56c3f5e257d08
refs/heads/master
2021-06-19T06:58:53.745669
2021-05-21T08:49:33
2021-05-21T08:49:33
213,458,497
2
24
MIT
2021-05-08T17:01:14
2019-10-07T18:35:41
JavaScript
UTF-8
Python
false
false
668
py
import sqlite3 as sqlite DB_NAME = "example.db" conn = sqlite.connect(DB_NAME) conn.cursor().execute(''' CREATE TABLE IF NOT EXISTS post ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, content TEXT ) ''') conn.commit() conn.cursor().execute(''' CREATE TABLE IF NOT EXISTS user ...
[ "idobromir@vmware.com" ]
idobromir@vmware.com
b707e83ed214fca7294e5bb95202740e88d02f5a
8065409913cc84af9cab97703e9928700a7d6ee9
/physix/bodyeditor/tools/transform/__init__.py
062ea8e6e6be0c24ddefd2cb465bb620a8173151
[]
no_license
2xR/legacy
678b6d77a11fe9705e6156589e67504e710d42de
56099d07bdbc6feb7ebc848a37d5940cbd5f5552
refs/heads/master
2021-01-16T22:13:34.380662
2016-07-07T17:47:14
2016-07-07T17:47:14
62,826,787
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
from physix.bodyeditor.tools.transform.tool import TransformTool
[ "rui.jorge.rei@googlemail.com" ]
rui.jorge.rei@googlemail.com
7d3afe0dfa173bc5a8811ce1cf5417bc376144fc
e733cd8c92ef72ef925d120b49f46e0f0ae5ed54
/pos_tagging.py
44a21484df22118b3bcad6543d3dcb194944e797
[]
no_license
atulkum/nlptutorial
f286642fffca83a8683f76dd8476a8ff5d2d34c1
d10354aaf334cd00845fa6ae4a8968a8d7e38b96
refs/heads/master
2023-05-13T14:43:39.503066
2023-04-29T15:57:32
2023-04-29T15:57:32
571,454,713
0
0
null
2022-11-28T06:59:59
2022-11-28T06:59:58
null
UTF-8
Python
false
false
9,830
py
from collections import defaultdict import sys import math def load_data(filename): data = [] possible_tags = set() with open(filename, 'r') as f: lines = f.read().split('\n') for line in lines: if len(line) == 0: continue wordtags = line.split() ...
[ "atulcst@gmail.com" ]
atulcst@gmail.com
a8a7d2bf186db9e87192d299ecfbb8586f09ef41
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/pax.py
6ddd75e25638bed8cf1f184a2bb9f8a5d8e723e8
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
62
py
ii = [('DaltJMA.py', 1), ('MereHHB.py', 1), ('BrewDTO.py', 1)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
00ba0a6e6947133adc26d002b22be559066ae5c3
daf9b136e9f55f3f24e0e6b4ca93ae8bcd0c4b94
/3puntos1.py
03866df81eb300ff22fa2e5932df8cc4a24d96e0
[]
no_license
jorszs/computacion_grafica
432b60a87eceff2e50b86c8a27568621b9e27c1b
4b60639beab3410b1349af749efd09f32d657412
refs/heads/master
2021-04-12T11:29:40.929664
2018-05-14T07:50:47
2018-05-14T07:50:47
126,243,449
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
def mostrar(): print "esta es la prueba"
[ "root@localhost.localdomain" ]
root@localhost.localdomain
2ab43501ee3cb7ba26be8b7e755c210b36e2cc7c
78629e4c2fe5449172b5a9f8bee1b2896af8a8f3
/dataframe_vectorized_operation.py
0353b7feb04a1de9af9650fb5c1b4cc5caa50982
[]
no_license
solidsrock/data_wrangling_exercises
1caf26ecfcb780b8de1524ac03e6c83070f86960
e55431e3af8e32f4377a26ac81c8b68b4646dc39
refs/heads/master
2021-01-22T01:11:45.804289
2017-09-03T22:21:39
2017-09-03T22:21:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,118
py
import pandas as pd # Examples of vectorized operations on DataFrames: # Change False to True for each block of code to see what it does # Adding DataFrames with the column names if False: df1 = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]}) df2 = pd.DataFrame({'a': [10, 20, 30], 'b': [40, 50,...
[ "tangsonginfo@icloud.com" ]
tangsonginfo@icloud.com
a8d130ba6c4c43529630cdc220e2339bf6e3057f
c3a90764507b92894199a43254c88916d85fae81
/HW3/a3-starter-code/chenb24_EightPuzzleWithManhattan.py
67de8b65279b362f50cd89f3ad20edc64e679fa0
[]
no_license
Chenneh/CSE415
9442113c7010bb2d6dd920dee65ba6148f1785c9
123c8d33b0e73ad6f60c0918fc541c4ddfabf4da
refs/heads/master
2020-04-16T13:48:41.560374
2019-03-09T01:13:08
2019-03-09T01:13:08
165,643,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
'''chenb24_EightPuzzleWithManhattan.py by Chen Bai(chenb24, 1560405) EightPuzzle game with Hamming heuristic. Modified from starter code FranceWithDXHeuristic.py Version 0.2, January 30, 2019. Chen Bai, Univ. of Washington. Electronic and Computer Engineering. This file augments EightPuzzle.py with heuristi...
[ "1031717928@qq.com" ]
1031717928@qq.com
6d00f4cdfa15e6ab9c4e13d72a277bd1e866f511
992cf11ce7d2258e65969c089afd7cad567d5f3a
/torpe/torpe/urls.py
3e8e4830f0878e3d9a974f1f56fc8a17415921b4
[ "MIT" ]
permissive
maicondmenezes/tweetCrawler
d9a7ee86282630a954717d2acd7d926ed1d4c080
e7df4a103eed361807b9e323291ac6574d078acb
refs/heads/main
2023-05-29T10:49:08.947185
2021-06-11T23:40:18
2021-06-11T23:40:18
373,611,590
1
0
null
null
null
null
UTF-8
Python
false
false
815
py
"""torpe URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "mdmoliveira@inf.ufoel.edu.br" ]
mdmoliveira@inf.ufoel.edu.br
b7883cd4b78b7653e74b59d2049a25ba4db5e551
5355d2e8576ed3afdc0b13f330ab38eda00a84e0
/odin/ml/decompositions.py
a0d4c9ebb37857726bd7f7c0022f68966e95cdc4
[ "MIT" ]
permissive
johndpope/odin-ai
63ee1d6e5c8dc11c72d04c7cc7350b3d4e3208ec
b6eb0c7b89c50620fe88f41f421330a50965c88e
refs/heads/master
2020-06-24T21:30:24.388734
2019-07-13T12:49:55
2019-07-13T12:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,660
py
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import math from numbers import Number from six import string_types import numpy as np from scipy import linalg from multiprocessing import Value, Array from sklearn.decomposition import IncrementalPCA, PCA from sklearn.utils im...
[ "nickartin13@gmail.com" ]
nickartin13@gmail.com
48a1e46e370f088a1f212174b0282a1e11443ec7
0fb9d5c342b718b194d10eff982409d9a3e87f4c
/The Basics/Gradient Boosting with XGBoost/XGBoostClassifier.py
34fe6ca704de34a4d074cd1a786e7bfb92ea99e8
[]
no_license
Estefaniajim/Machine-Learning-Projects
7660114aaaff7107b1f6e4530477451537b1c1a4
eeccf276ba200b6f0206198c21800784bf053bd0
refs/heads/master
2023-02-08T17:26:08.128533
2021-01-03T20:20:15
2021-01-03T20:20:15
277,375,042
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
import xgboost as xgb # Scikit-learn API # Binary Classification model = xgb.XGBClassifier() model.fit(data, labels) # new_data contains 2 new data observations predictions = model.predict(new_data) print('Predictions:\n{}'.format(repr(predictions))) # Multiclass Classification model = xgb.XGBClassifier(objective='m...
[ "estefaniajimgar@gmail.com" ]
estefaniajimgar@gmail.com
732060e49843300b5ee2ee1caa4ad1374168716e
e72ad2eae3d3b686e09dea25e499208e9f88e6b6
/scalyr_agent/third_party/docker/api/__init__.py
bc7e93ceeee5c45e0bf2557e7458f90077016777
[ "Apache-2.0", "LGPL-2.0-or-later" ]
permissive
BrianChristie/scalyr-agent-2
bc9aa5e29a106d84a2e4239dfa353676901b273c
6df51594a092dc90d5998ec6739fe22e3fafadb7
refs/heads/master
2020-08-10T03:17:33.985629
2019-12-02T23:38:18
2019-12-02T23:38:18
214,244,048
0
0
Apache-2.0
2019-10-10T17:25:53
2019-10-10T17:25:53
null
UTF-8
Python
false
false
334
py
# flake8: noqa from .build import BuildApiMixin from .container import ContainerApiMixin from .daemon import DaemonApiMixin from .exec_api import ExecApiMixin from .image import ImageApiMixin from .network import NetworkApiMixin from .service import ServiceApiMixin from .swarm import SwarmApiMixin from .volume import V...
[ "imron@imralsoftware.com" ]
imron@imralsoftware.com
3091af1e900bd029235b6ec6c82137b5e5eaa6c5
1c790b0adc648ff466913cf4aed28ace905357ff
/model_zoo/jag_utils/add_overlap.py
f1110d01a31ed827ae3ba95933619ef6394922a9
[ "Apache-2.0" ]
permissive
LLNL/lbann
04d5fdf443d6b467be4fa91446d40b620eade765
e8cf85eed2acbd3383892bf7cb2d88b44c194f4f
refs/heads/develop
2023-08-23T18:59:29.075981
2023-08-22T22:16:48
2023-08-22T22:16:48
58,576,874
225
87
NOASSERTION
2023-09-11T22:43:32
2016-05-11T20:04:20
C++
UTF-8
Python
false
false
3,743
py
#!/usr/tce/bin/python import sys import random if len(sys.argv) < 2 : usage = ''' usage: add_overlap.py list_base_name number_of_lists overlap_percent example: if your lists are t0_list.txt, t1_list.txt and t2_list.txt you want 30 percent overlap you would run as: add_overlap.py list....
[ "hysom@llnl.gov" ]
hysom@llnl.gov
8f84f0bad9afdcd925e198d52b51b9dc257d36a5
4e8eade0691733993d7c9eecb7c689992f52789d
/test.py
40b141a270e46b3a55cbb58ba5b680069de85b55
[]
no_license
namchaerin/wecode
8ef3f508df2e0d2cbe7199e52c673f753569f1b4
9064f05b00aabed7f40d271aedc659e6ac784fad
refs/heads/master
2023-02-23T15:28:54.452967
2021-01-29T05:18:29
2021-01-29T05:18:29
334,042,615
0
0
null
2021-01-29T05:32:20
2021-01-29T05:01:01
Python
UTF-8
Python
false
false
130
py
def even(): result = [] for i in list(range(1, 51)): if i % 2 == 0: result.append(i) return result
[ "cr434972@gmail.com" ]
cr434972@gmail.com
c265c6af5cd6a3c70c74fe786a4176ef6e9849e6
5f118ce71e128cc53afee63d3d69fe2d6e49826d
/MyTools/MyTools/wsgi.py
25f31cb1cc3d458437464c029745d4b522339e2b
[]
no_license
wikizero/toolkits
f7b8369c4dfc950d7cf560db5244484c88a53a97
86bbee37b6180a133f2a0816b5730f5ee9423e0d
refs/heads/master
2022-12-13T21:47:50.712502
2018-01-20T09:33:08
2018-01-20T09:33:08
97,313,033
0
1
null
2022-12-08T00:36:33
2017-07-15T11:57:51
Python
UTF-8
Python
false
false
392
py
""" WSGI config for MyTools project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "937316808@qq.com" ]
937316808@qq.com
27054d4c4b9d03f1c6dc450efc0fc223026c866c
2c63255689bdbda20f99498048ad660fb064de49
/chat_client.py
ba6731d48a7f98ad07f9fe9470a04dba887ea569
[ "MIT" ]
permissive
jaime-vives/dischat
acc8cb14675a21c34e6fef0dbfa0d82820f62cbb
2395d7598c4dfed49c502ae39f5fffc1c78153e4
refs/heads/master
2022-12-15T21:49:21.904563
2020-09-12T22:45:03
2020-09-12T22:45:03
295,038,425
0
0
null
null
null
null
UTF-8
Python
false
false
1,205
py
import threading import socket import sys from signal import signal, SIGINT import time received_messages = [] ipaddr = '::1' port = 20002 def display_received_messages(sock): while True: resp = sock.recv(256) resp = resp.decode('utf-8','ignore') resp = resp.split('|') ...
[ "noreply@github.com" ]
jaime-vives.noreply@github.com
d825607fe95139717ab19e9c60a4073d1cca31b1
6eb097cccbc0e040eb940663f85ce7eacb2be95b
/Desafio024.py
c13b32d7c9adcf7e113abcd6785bd3f35117d208
[]
no_license
figueiredorodrigo/Exercicios-Guanabara
c7cdb534b3f7c2db0e2bffc2b4376af035213b3a
621000882ab3aa080415bb04336fd1713ab85b5d
refs/heads/main
2023-06-02T07:10:22.555624
2021-06-15T16:33:26
2021-06-15T16:33:26
376,381,603
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
city = str(input('Digite o nome da sua cidade por favor: ')).lower() print('santo' in city)
[ "noreply@github.com" ]
figueiredorodrigo.noreply@github.com
e5e1314ebfe66f623fef5d1b1893c0a9a5344a2a
a5dc0e0450ebb601a03af02de2da019f2ddc458b
/chet.py
a16f6d48dc1020910377326522159fa235a948fd
[]
no_license
Bondarev2020/infa_2019_Bondarev2020
b570d65037f85c83fdc90c54cddd9d220c71fa7b
464ddfebc56bb64dad30b0f414edd9a1da0212b1
refs/heads/master
2021-01-09T00:04:05.038990
2020-04-04T16:13:31
2020-04-04T16:13:31
242,182,162
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
A = [] top=0 x = int(input()) s=0 while x!=0: A[top]=x if A[top]%2==0: s+=1 top+=1 x = int(input()) print(s)
[ "noreply@github.com" ]
Bondarev2020.noreply@github.com
28d4c9a990c33afb58062e3448c9895f034609ce
58784b0fe78313580838ef1e2e7edd9dd3297083
/bert_re/input_processors.py
523780db9510a2cea688ca46557efef91da23a8b
[ "MIT" ]
permissive
jvasilakes/BERT-RE
0f2b1502c35bffdd2b885db98b02503af79a7f0b
32d8ca7c5c04096c29662fcbe58b5ddb7419197c
refs/heads/master
2022-12-14T14:00:37.414290
2020-09-17T16:20:37
2020-09-17T16:20:37
294,166,255
1
0
null
null
null
null
UTF-8
Python
false
false
11,906
py
import numpy as np import tensorflow as tf from tqdm import tqdm from .tokenization.tokenization_bert import BertTokenizer class InputProcessor(object): def __init__(self, vocab_file, do_lower_case, max_seq_length, name="input_processor"): self.tokenizer = self.get_tokenizer(vocab_file,...
[ "jvasilakes@gmail.com" ]
jvasilakes@gmail.com
497f00324a34d08853b659e0432aae7d0ba6aebb
1ce740051a6420616f0fc5eb471193dd9643a818
/psana/psana/pscalib/dcs/lcls1/DCBase.py
fbfd2d6dd86849efd1d52e25298f926e2683fb12
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
slac-lcls/lcls2
25405bd81f8b61b3aa035e4da856402e630afb28
7f0401960ceb46551fd926d932c59e96297df6b0
refs/heads/master
2023-08-22T17:29:44.193939
2023-08-21T20:56:18
2023-08-21T20:56:18
94,483,750
19
32
NOASSERTION
2023-07-27T01:59:45
2017-06-15T22:31:15
Python
UTF-8
Python
false
false
12,792
py
####!/usr/bin/env python #------------------------------ """ Class :py:class:`DCBase` is a base class for the Detector Calibration (DC) project ================================================================================== Usage:: # Import from PSCalib.DCBase import DCBase o = DCBase() # Diction...
[ "dubrovin@slac.stanford.edu" ]
dubrovin@slac.stanford.edu
5e40795c78d4a066bfe788e0e701451989e3b6bf
28869de1d2dc3908ecef79335e6c8d132fcc015b
/speech_embedder_net.py
1ab32d1d6a7704faa44c33361021466b100b9f31
[]
no_license
Eason6wang/PyTorch_Speaker_Verification
5401eb97a1d5d462a2b8d917a03bdba645756116
a8630bd5a3e7641cbe496172b18042e5d5ceb096
refs/heads/master
2020-04-18T05:22:41.616733
2019-01-29T20:46:54
2019-01-29T20:46:54
166,313,271
0
0
null
2019-01-17T23:43:49
2019-01-17T23:43:49
null
UTF-8
Python
false
false
1,574
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 5 20:58:34 2018 @author: harry """ import torch import torch.nn as nn from hparam import hparam as hp from utils import get_centroids, get_cossim, calc_loss class SpeechEmbedder(nn.Module): def __init__(self): super(SpeechEmbedd...
[ "harryvolek@gmail.com" ]
harryvolek@gmail.com
b8db0ef08fd5c0b20c1bdbe3988364316d66243b
35044ecc79fad5d1ad35a4f713ff22849c17212c
/hw1/hw1_1/part2/main_3.py
d54310ff19a1bb2f192f12e9c432975f5330478e
[]
no_license
pohanchi/MLDS2018SPRING
8235f9bfe38eb861be24b9cdb2c0a7d30afdea21
694e5f07911ba0f780fb01bb47701dac90eeb7d2
refs/heads/master
2020-05-09T09:55:38.257016
2019-04-12T16:23:17
2019-04-12T16:23:17
166,774,093
0
0
null
null
null
null
UTF-8
Python
false
false
2,511
py
from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt import numpy as np import pickle import random from model_2 import * def unpickle(file): with open(file, 'rb') as fo: dict_ = pickle.load(fo, encoding='bytes') return dict_ def calculate(): vars = t...
[ "aapp1420@gmail.com" ]
aapp1420@gmail.com
c91c66c6ce797662aeb22f082973e2ca1e07c9fc
cccba06866f3b2d0ce01f46d03c20b7a159142fd
/curd_api/curd_api/asgi.py
267511284437de969e51d630a2d737cb54fce512
[]
no_license
Pranav-qwerty/DjangoCurdApi
3abd4626aff1ca359f8a08f43c8046cad4e93076
8123dabe8cb111393878ebcc4b826ff4c1e5d304
refs/heads/main
2023-04-26T23:45:50.556323
2021-05-16T06:36:53
2021-05-16T06:36:53
367,804,203
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for curd_api project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "pranavtripathi7086@gmail.com" ]
pranavtripathi7086@gmail.com
ae8ac33097ee8ae8b2fdf39efcda99d0d7256daa
8d4e824f79f6834ba14a2738c48197b97b0c8214
/boardsapp/apps.py
eb1d60af754c957663855b7eee07a3cdeeedcc90
[]
no_license
RahulR432/Boards_App
a5466b9bdd70bab270f9ff49a9b87603e700263f
1dc2a294d586f74fcd9a825429d920bfa104dcb9
refs/heads/master
2022-12-07T12:05:17.771445
2020-08-23T15:14:51
2020-08-23T15:14:51
282,288,056
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
from django.apps import AppConfig class BoardsappConfig(AppConfig): name = 'boardsapp'
[ "noreply@github.com" ]
RahulR432.noreply@github.com
4db3a44a829a0ea2ebc199eba437e86b89d276fb
2b8457ac2178b8b4d0ec7262e123bfce49a3cbf7
/venv/Scripts/pip-script.py
7f013c1dabae9c76ddd6e4c8affe57a9fe13bdc7
[]
no_license
lijunxin-1999/word_count
8b474922d157e9b326d155b2318b33eb12bceff0
868078a6527d97a85bcfdb9da188298d57d3a4e3
refs/heads/master
2020-08-13T21:57:56.732079
2019-10-15T10:50:07
2019-10-15T10:50:07
211,437,175
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
#!D:\My_SecondDjango\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "1270496415@qq.com" ]
1270496415@qq.com
ec3f4155892670dc023ac53d54aaab8e6bfc36db
9419790739594dcaa8b93efdb627f4c9a0312359
/Django/first_django_project/apps/user_login/admin.py
8edfbdcc6f936750a29baa3328fcdb8069d7e55d
[]
no_license
MauriceMorrey/python_stackIntermediate
a255dd084bc6154ce312a6534c34c78b58e84f4c
80b282458a70e5caaed0787d441a9471ec29dc30
refs/heads/master
2020-03-22T22:44:21.668599
2018-07-12T21:57:26
2018-07-12T21:57:26
140,768,290
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from . models import User#importing our article from the models file # Register your models here. admin.site.register(User)#asking django to register sth on the admin site # Register your models here.
[ "morreydson@gmail.com" ]
morreydson@gmail.com
e74c5c03fa9620801441b80198d60cb2941d0e75
e13ddd71ffab91e9edc033d9f25d08e113c12852
/analysis/TileEM/OldGammaTileCode/convexsolver.py
acf615c4174197ac20e2089ba79c1f8dd730616d
[]
no_license
cognoscentai/crowd-seg
2304ea61e973c7e8095bdbbd21c78d3bfc35bd51
c10aaafd85602ad2a0f42c14d8e5b22189a339ff
refs/heads/master
2021-07-05T23:45:17.980723
2017-09-28T13:00:50
2017-09-28T13:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
from __future__ import division import cvxpy as cvx from annotator import * import numpy as np import data # Returns tuple (L, gammas) where L is the MLE def solve(annotators, T): N = len(annotators) regions = annotators[0].regions gammas = cvx.Variable(regions.size) true_area = gammas.T * regions constraints = [...
[ "dorislee@berkeley.edu" ]
dorislee@berkeley.edu
04de7af29053c33325e9bae6a28340993c260113
0df0e4082661d03452294cd5bab7efe1ff297d1e
/primes/test.py
a488b5b82b9ffb5a4cfac8e8a2749ba29b7f2210
[]
no_license
wngz3r0/euler
be5a6a0c65608b547de8ef7b71ea907c900c2f66
5d32bbbdfacc17a01a8397195fecbddb9392e74a
refs/heads/master
2020-04-06T05:25:01.256059
2012-03-31T09:20:47
2012-03-31T09:20:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
# Checks to see if n is a prime number max_prime = 50000 def is_prime(n): for i in range(2, n): if n % i == 0: return False return True def check_primes(primes): cur_prime_idx = 0 for i in range(2, max_prime): if is_prime(i): if cur_prime_idx >= len(primes) or pr...
[ "me@wngz3r0.info" ]
me@wngz3r0.info
7098d0bd349101c9033469adeb130241fc910b6c
f88f900c0384f6da82eeb749371ad44115527700
/course-book/04-basic-comp/0410-img-copy2.py
2688bf316082da1a8c629fe6e1a12eaf1bf4b44d
[]
no_license
aaron-kr/learning-opencv
eff382e8f0c822400f765451d57b192a63cd1b74
158239f0140569aec519fc1fbf255c54ef2567d2
refs/heads/main
2023-08-21T11:02:49.775425
2021-10-27T00:04:01
2021-10-27T00:04:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# 0410.py import cv2 import numpy as np src = cv2.imread('../../img/spirit-week.jpg', cv2.IMREAD_GRAYSCALE) shape = src.shape[0], src.shape[1], 3 dst = np.zeros(shape, dtype = np.uint8) # dst[:,:,0] = src # B - Blue channel # dst[:,:,1] = src # G - Green channel dst[:,:,2] = src # R - Red channel dst[100:400, 200:...
[ "jekkilekki@gmail.com" ]
jekkilekki@gmail.com