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
e7030cec636c7929d78cb30726f329303547c674
65d41c00466155d6cb290b555ca421113463e1a1
/src/helpers.py
720f8139305aa7974f8b276cfd3e1b703e9a1cab
[]
no_license
MalakaGu/sentiment-cdn-election
257ba255ed8008de1d52cf71d9daaaddacdfbbe3
351532af71cc309c8c29bdfbe0f848bb6dc111ca
refs/heads/master
2022-08-22T03:34:10.986521
2020-03-26T20:05:42
2020-03-26T20:05:42
266,509,699
0
0
null
2020-05-24T09:34:16
2020-05-24T09:34:15
null
UTF-8
Python
false
false
893
py
import datetime def print_break(text): """Helper function to print clean sections to console""" print("") print("#" * 64) print("# " + text) print("#" * 64) def get_project_global_variables(): """ Returns a list of 'global variables' that are referenced in multiple different places. ...
[ "edwardes.s@gmail.com" ]
edwardes.s@gmail.com
dcaf14c79776bf24736618615cc905f12d19998d
dfa61f28f8503c762b9ac125579baa16405b4a7f
/lustre/database.py
bebcf0cf5bfcfa5f75b4ce60bb198bb545168ddd
[ "MIT" ]
permissive
char/lustre
ab5989eb294180d2e6aea76c68fbdb57eb5bc5f0
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
refs/heads/main
2023-02-02T04:00:51.827790
2020-12-17T00:20:57
2020-12-17T00:21:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,442
py
import typing from databases import DatabaseURL, Database as DatabaseBackend from sqlalchemy import MetaData import orm, orm.models class Database: def __init__(self, url: DatabaseURL): url = DatabaseURL(url) if url.scheme == "postgres": # The default postgres backend for databases d...
[ "half-kh-hacker@hackery.site" ]
half-kh-hacker@hackery.site
3efd4353cb7ee1ed1b132bb5326d4163aacbbb64
658e8fb30ed55fb3cc835c1b76b81ae19dfb5619
/main.py
c881e6e38fe805abfc3ffa09c399cf0b7ada3444
[]
no_license
min99830/fastapi
3a95d9e78c9ade9fa2d6d6bffe0c549101b66766
3a89104442726e32c775dbd19f96a7412f62dec2
refs/heads/master
2023-07-11T12:06:14.949998
2021-08-19T15:18:09
2021-08-19T15:18:09
397,985,616
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
from typing import List from db import SessionLocal from fastapi import FastAPI, status, HTTPException from fastapi.params import Depends from sqlalchemy.orm.session import Session import crud import schemas app = FastAPI() # Dependency def get_db(): db = SessionLocal() try: yield db finally: ...
[ "min99830@naver.com" ]
min99830@naver.com
dfd88798a0b2d0523219bd5c89a9f43e7bfe0f34
1e1c480298497c07d525ce11e1801ccbf587b636
/profiles/models.py
2b6a7d7065709cd0ef125b89b58adbbcd1e6b0af
[]
no_license
KDenisNoah/school-app
9c99b50ce9b049aaa3fe59bdd5e962262ef8b949
785e3ed94b80f40df9939764e84c12f9751f8440
refs/heads/master
2020-07-05T20:39:52.596759
2019-02-10T14:41:45
2019-02-10T14:41:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager class UserProfileManager(BaseUserManager): """Helps Django work with our custom user model.""" def create_user(se...
[ "uzzalroy.acm@gmail.com" ]
uzzalroy.acm@gmail.com
4ce20ed34598dde7e20e04b11e152e544c203e08
8c5cbdb10f4839806297cdce785fbd9feb3623dd
/125/vaildPalindrome.py
56cc22d04adbcfefc2d86c1d2918860969bb20c6
[]
no_license
kldxz123/Leetcode
c529dd3c81f0a803ce5a0ac9149944fe42b54b65
f47a760fc9e2980954fa4c9d76da8e27eab5871f
refs/heads/master
2021-07-22T13:17:02.434093
2017-10-24T03:59:38
2017-10-24T03:59:38
108,074,585
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import re class Solution(object): def isPalindrome(self, s): """ :type s: str :rtype: bool """ t = s.lower() #print(t) a = [] for i in t: if i.isalpha() or i.isdigit(): a.append(i) #print(a) b = a[::-1] #print(b) return a == b sol = Solution() a = '0P ' print(sol.isPalindrome(a))
[ "809058178@qq.com" ]
809058178@qq.com
218f7f161ce570b21a5293386e4ddc9cc7759bd2
9b722ca41671eb2cea19bac5126d0920639261bd
/.history/app_20201124112830.py
dfe4f24e89674672c3d491d9d14c2ce2f017531e
[]
no_license
thawalk/db_flask_server
7928fd481f99d30bdccc60d97f02db78324cfdbe
cd55f1c9bf84c734457ee02d9f64a6833e295fad
refs/heads/master
2023-01-25T02:40:19.097457
2020-12-06T07:45:50
2020-12-06T07:45:50
314,229,480
0
0
null
null
null
null
UTF-8
Python
false
false
4,465
py
import json import pymongo from flask import Flask, jsonify, url_for, request, redirect,Response,Request import pymongo from bson.json_util import dumps import mysql.connector from werkzeug.serving import run_simple import os from dotenv import load_dotenv import datetime import time app = Flask(__name__) test_collec...
[ "akmal_hakim_teo@hotmail.com" ]
akmal_hakim_teo@hotmail.com
bba3cbf765243f23c4a7e1d0c54c19cce2b7e9b6
08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc
/src/mnistk/networks/conv1dthenlinear_81.py
da2fc2b67de2ce6afe44794e2c90add3e214fc37
[]
no_license
ahgamut/mnistk
58dadffad204602d425b18549e9b3d245dbf5486
19a661185e6d82996624fc6fcc03de7ad9213eb0
refs/heads/master
2021-11-04T07:36:07.394100
2021-10-27T18:37:12
2021-10-27T18:37:12
227,103,881
2
1
null
2020-02-19T22:07:24
2019-12-10T11:33:09
Python
UTF-8
Python
false
false
1,094
py
# -*- coding: utf-8 -*- """ conv1dthenlinear_81.py :copyright: (c) 2019 by Gautham Venkatasubramanian. :license: MIT """ import torch from torch import nn class Conv1dThenLinear_81(nn.Module): def __init__(self): nn.Module.__init__(self) self.f0 = nn.Conv1d(in_channels=16, out_channels...
[ "41098605+ahgamut@users.noreply.github.com" ]
41098605+ahgamut@users.noreply.github.com
75ba5c87c756b3df379b90b49225caf02d350b18
75da07f8bc14612ef36efec4dbca563eb72b669b
/curd/curd_form.py
6dc7b7bcecbee04fbe8a7b349679814dcc983678
[]
no_license
ShivPKeshri/SutraHR
6a3e0ac3e3956717766750ad6a7333556e1c407e
4b4ff7d45bb8d0fee6fe5879701c721e08630949
refs/heads/master
2023-05-01T03:43:12.124389
2021-11-15T17:27:03
2021-11-15T17:27:03
201,342,542
0
0
null
2022-04-22T22:10:30
2019-08-08T21:50:05
Python
UTF-8
Python
false
false
223
py
from django import forms from .models import CurdOperation class CurdForm(forms.ModelForm): class Meta: model = CurdOperation fields = [ 'id', 'title', 'description', 'status', 'is_deleted', ]
[ "shivprakashkeshri@gmail.com" ]
shivprakashkeshri@gmail.com
60d12af994a099dfe4befa13dc62669519ab3adb
8b275f5b199af7130452667f25c5f06d8f88d842
/fish/spiders/jiemian.py
07f4d1d92ec2e9adfd8dab223977aec5d1fa01ad
[]
no_license
chouhui/chou_crawl
55cc003c6f766a84b02149232dc05821be79ba50
e3ddf668bdeb637c9c15a4b8d1bab926db8bfd17
refs/heads/master
2020-09-16T11:07:08.863451
2019-11-25T04:07:51
2019-11-25T04:07:51
223,750,635
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
# coding: utf-8 import scrapy from ..items.items import FinanceNewsItem class UstcSpider(scrapy.Spider): name = 'jiemian_finance' DOWNLOAD_DELAY = 1 # allowed_domains = ['https://search.sina.com.cn'] headers = { 'Referer': 'None', } cookie = 'app_qrcode_hide=1; br-resp-key="g:1911111...
[ "cyh2czj@mail.ustc.edu.cn" ]
cyh2czj@mail.ustc.edu.cn
d9f1f1ef4a21917821be03f6b3eae82be1d88ae0
2728543f61eb17dcccca9853ba6e6d2d932c8f8e
/roundsolutions/src/g4f_ws.py
c7273191eeff049503dbb05f0d4afbf69c165e74
[ "MIT" ]
permissive
bewest/unapy
7a77afb841e354de5943f4bdfe9a08f1d3f49c88
cc55cfb90f38c7ac01ef244cc4b3509e4426b0e4
refs/heads/master
2016-09-11T06:09:39.908520
2012-06-17T23:10:20
2012-06-17T23:10:20
2,311,697
3
6
null
null
null
null
WINDOWS-1252
Python
false
false
2,461
py
############################################ # gauge4free WS2300 Python application # # Copyright 2008, © Round Solutions # # # ############################################ #Redistribution and use in source and binary forms, with or without #modification, are...
[ "bewest@gmail.com" ]
bewest@gmail.com
3b1a708252d1f6d29874b3c44952c06a28abf3a7
075c805a12278aa1233865359b04c87c0e3ce57e
/management/PlayerMaster.py
2c986e98eea07fb9a0273144f79b0fe66a0c83f6
[ "MIT" ]
permissive
momijiariari/solid-disco
144ae6b33d1a59e3c303ea6efd22b7a98662fe55
6c8f406f2701e0bda3fe83cbc9f90900a0ba78fd
refs/heads/master
2023-03-06T06:47:45.296828
2021-02-23T06:29:38
2021-02-23T06:29:38
334,907,597
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
from player.Player import Player class PlayerMaster(): def __init__(self, player_names): self.players = [Player(i, player_names[i]) for i in range(0, len(player_names))] self.players_display = '\n'.join([ '%d: %s' % (self.players[i].getId(), self.players[i].getName()) for i...
[ "noreply@github.com" ]
noreply@github.com
20ff20c88a993798aebce8fc94a0c494f0fc5031
62531bce62949e0f79f55136e2d12c63f0d01cbb
/solarSystem.py
46b5fb1ea7b7d16a029a3fc84622e99a0ff5b80f
[]
no_license
icicchen/PythonGameProgramming
7bf23b7c7bf2b1af53b564b726b6513b140a32a6
1d733e3c7cbccd308dd20fc05f3588a78c0b1e58
refs/heads/master
2020-08-03T22:42:48.051686
2017-05-25T01:24:26
2017-05-25T01:24:26
66,228,806
0
1
null
null
null
null
UTF-8
Python
false
false
1,955
py
import pygame import solarSystemLib as pl import math import random # -- definition of congif variables background_color = (0,0,0) (width, height) = (1000, 400) screen = pygame.display.set_mode((width,height)) pygame.display.set_caption('Particle simulator with OOP') # -- number of particles num_particles = 100 # ...
[ "noreply@github.com" ]
noreply@github.com
085841dd4e27513ce53c068b1d131996f5c3765f
8c2c6d5c9ff1f36d73275ef90d35a622b9fce4d7
/foods.py
b3fac09fc11d72796915ed5b41908596ddd3b72d
[]
no_license
Dushyanttara/Competitive-Programing
cf90611de94643a347449d68d51751a86bf7d528
6caa35b0d58792d9f6dcdb071feb40dc9e0bd9bf
refs/heads/master
2022-12-21T19:37:36.121470
2020-09-17T05:31:01
2020-09-17T05:31:01
296,226,118
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
#Dushyant Tara(17-06-2020): This program will help you understand copying a list my_foods = ['pizza', 'falafel', 'carrot cake','gulab jamun','cutlet','momos','aloo paratha'] friend_foods = my_foods[:] #Remember to copy the list using a slice my_foods.append('ice cream') friend_foods.append('cannoli') print("...
[ "noreply@github.com" ]
noreply@github.com
8aee48b71c0ebb2d53999918e1c552b0a87ce133
72409ee3ffad4d865bfd900ba989a0756ff12e24
/time_series_detector/algorithm/xgboosting.py
e9ec290e6904b48ed32c1af6aaa202fbf2131f15
[]
no_license
ncucjm/ts_detector
559cb5b25932e1a46aac2966fc0b031382080b11
742f4026a6da89331b9d6e46ae6ae4e2ea697215
refs/heads/master
2020-07-06T01:04:41.299625
2019-08-30T15:07:14
2019-08-30T15:07:14
202,840,403
1
0
null
null
null
null
UTF-8
Python
false
false
6,709
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os import xgboost as xgb from time_series_detector.feature import feature_service from time_series_detector.common.tsd_errorcode import * from time_series_detector.common.tsd_common import * MODEL_PATH = os.path.join(os.path.dirname(__file__), '../model/') DEFAULT_MO...
[ "1300887184@qq.com" ]
1300887184@qq.com
2c29b174b7b67e66ceadb654d559bfcbe4557608
51c44775e9f4a3647bf2939bf924f0c0ccaa357e
/apps/check/urls.py
da17c7e6418d05d394b80b63171ef02d0cd2b96a
[]
no_license
citotob/sis_api
2f246b01399ce0c188ee88f77993cdd8b7a045e7
ca3dfd302fc479abc8d10878fc0bfb51e7ed76f5
refs/heads/master
2023-07-03T15:41:10.468401
2021-02-08T01:58:53
2021-02-08T01:58:53
299,157,660
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from . import views from rest_framework.routers import DefaultRouter load = views.checkAPI.as_view({ 'post': 'load', }) network = views.checkAPI.as_view({ 'post': 'network', }) database = views.checkAPI.as_vie...
[ "erdell_tog@yahoo.com" ]
erdell_tog@yahoo.com
f84fa74ce3d173d63d51b4b3a00adfea0600f532
0834884fd01d4d493d8059f525ae17f5fc7869a1
/ExtremeLearningMachine/ELM.py
2ff2fd3ebde36836d5cd45e2c575cac8357b90ff
[]
no_license
saviorabelo/artificial-neural-network
66bb057248f4df2703a3a2ba7abb8ba82fc4e617
42360c6f83a59aab94b20e32e1f683971b99d6b3
refs/heads/master
2020-07-05T08:45:26.307050
2019-12-13T18:14:07
2019-12-13T18:14:07
202,594,348
2
0
null
null
null
null
UTF-8
Python
false
false
10,334
py
import math import random import numpy as np from Utils.utils import Util as util from matplotlib import pyplot as plt from sklearn.metrics import accuracy_score as acc #TPR: (Sensitivity, hit rate, recall) from sklearn.metrics import recall_score as tpr #TNR=SPC: (Specificity) #PPV: Pos Pred Value (Precision) from skl...
[ "saviorabelo.ti@gmail.com" ]
saviorabelo.ti@gmail.com
3d787e6984f3eee88abe60dd5170ec3af6010e22
c6cd9829966c730e52ba932ff04b05c186c3af99
/udpserver.py
c14eb6b87daa9bfa2fcbed85a24e70c5792b7053
[]
no_license
fotopretty/ESP8266Server
ba3b9c980c35edd57a5c759225bfedfdb82c26e6
aca0baa6762e5230593a1fe3bf1379db89530a78
refs/heads/master
2021-05-29T12:19:18.611152
2015-09-16T17:03:40
2015-09-16T17:03:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
# This is a Python UDP server to display UDP messages sent by the ESP8266 Arduino Shield by http://www.doit.am/ # Listen to UDP port 9000 and print any message received. # Based on https://pymotw.com/2/socket/udp.html __author__ = 'Luppy' import socket import sys # Create a TCP/IP socket sock = socket.socket(sock...
[ "lupyuen@gmail.com" ]
lupyuen@gmail.com
db8d15fe436a1605c48b2d2a6915384b202132f1
c44a3227d1c2b3a892a9a52438a324e675485ff7
/odp/ui/admin/views/providers.py
0b97bea6fff0e6ea171b7e750a6c02b9312ef3de
[ "MIT" ]
permissive
SAEONData/Open-Data-Platform
4b87aece6a83befd82a67f97d4ae330380c1f947
50c52bf476fd5c82afdf44379805f8790bb20319
refs/heads/main
2022-11-07T00:30:38.697706
2022-11-04T15:09:37
2022-11-04T15:09:37
251,641,495
2
1
MIT
2022-09-20T12:35:56
2020-03-31T15:12:19
Python
UTF-8
Python
false
false
2,215
py
from flask import Blueprint, flash, redirect, render_template, request, url_for from odp.ui.admin.forms import ProviderForm from odplib.const import ODPScope from odplib.ui import api bp = Blueprint('providers', __name__) @bp.route('/') @api.client(ODPScope.PROVIDER_READ) def index(): page = request.args.get('p...
[ "52427991+marksparkza@users.noreply.github.com" ]
52427991+marksparkza@users.noreply.github.com
f2edfa2f0d98022cc3223e0db302d70a56f897a7
9b4db919100b8c64c0bc22930b9d4eb03cdc0b79
/app.py
400c1e080aa3a6a69ae94b079744afcdc8e4658c
[]
no_license
ToryQuinn/keyloggerGui
6c7845bf86d1004b51b13c7f7189984f1756292e
a90a0d3b55c757593fb2a796320555639e785aca
refs/heads/master
2022-12-23T18:46:30.778757
2020-09-04T03:51:11
2020-09-04T03:51:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,864
py
import keyboard from tkinter import * import argparse class Keylogger: def __init__(self, fontName="Helvetica", fontSize=99, fontWeight="normal", textColor="#ff00ff", backgroundColor="#6600CC"): self.tk = Tk() se...
[ "troy@awakesecurity.com" ]
troy@awakesecurity.com
5249901142f31f7c35f886b5c7193b60b5816526
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/kosmos-2/torchscale/examples/fairseq/tasks/data/lm_loader.py
6be575239088da94981dd64c5f831ab4cd96fc5f
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
13,974
py
import glob import os import torch import numpy as np import time import json import random import itertools import hydra import copy from omegaconf import DictConfig, OmegaConf from infinibatch import iterators from .basic_loader import BaseBatchGen from .utils import NativeCheckpointableIterator, Weigh...
[ "1083127130@qq.com" ]
1083127130@qq.com
ac678452167fdda6716d1bcbc3f21932495634e2
48de730b9ec1de64250704722a5e834d1e940573
/utils/wsi2patch_old.py
0d70b7a1ada4e7145b565befacea875f25d14d91
[]
no_license
hacylu/oral_epi_segmentation
aece7341d3d5ac9368ca962de286b8841bfe5e4f
78c8c4f6e50d09aa5a3cf607ffa91ee02cad9495
refs/heads/main
2023-08-02T03:14:16.877382
2021-09-03T07:52:04
2021-09-03T07:52:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,560
py
from glob import glob from multiprocessing import Pool from itertools import repeat import os import large_image from PIL import Image import cv2 def task_wsi2patch(ori_dir, mask_dir, tar_dir, params): src_paths = glob('%s/*.%s' % (ori_dir, params['src_ext'])) params['mask_dir'] = mask_dir params['tar_dir...
[ "hi@wuyu.xin" ]
hi@wuyu.xin
9b11a3c304c6e557a2827c112d8e6ec0dda2c721
d2b7cc1142dfa73a0bda91bfb03638aafa273473
/codernitydb3/lfu_cache.py
6b1cfe10c36b3928b0e2bb8c6402e004a7d460f0
[ "Apache-2.0" ]
permissive
nickmasster/codernitydb3
2fb13e8e317e2dade1c4814d4678e5245d3d3298
0799ae0a1e9c08613d8400ca6a9d8709a0ed27c1
refs/heads/master
2022-11-26T21:50:10.528013
2020-08-01T15:20:57
2020-08-01T15:20:57
278,128,533
10
6
null
null
null
null
UTF-8
Python
false
false
4,855
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 Nick M. (https://github.com/nickmasster) # Copyright 2011-2013 Codernity (http://codernity.com) # # 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 ...
[ "nickmasster@users.noreply.github.com" ]
nickmasster@users.noreply.github.com
b48f59ebc354e2761feb2ffecbad00c83bf5cb19
d7ef079b36a0a6cd0b72fd8358c3ccd8865ed9f1
/eggs/collective.dexteritytextindexer-2.1.1-py2.7.egg/collective/dexteritytextindexer/interfaces.py
3a4572203a5b461abf06158dbe0246809ebe53e6
[]
no_license
vcabral19/productsgovit
8e7d104645d9c49b6502a44c640c7fef11bbb9fb
1a1f7321573d031e872a358f4c3510af2c05564d
refs/heads/master
2020-06-21T16:33:46.235438
2016-11-28T18:12:24
2016-11-28T18:12:24
74,784,667
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
""" IDexterityTextIndexFieldConverter field converter adapter interface IDynamicTextIndexExtender dynmaic text extender adapter interface """ from zope.interface import Interface # Supermodel namespace and prefix INDEXER_NAMESPACE = 'http://namespaces.plone.org/supermodel/indexer' INDEXER_PREFIX = 'indexer...
[ "d828642@rede.sp" ]
d828642@rede.sp
1f165e08bb32294432aea68701e20b41b358efda
9574f7aa773e6b81377a26cb54d0860b0c985f76
/dxf/dxf_test.py
6ca76676d40691f9c42cbf7b6c590f6f61324c86
[]
no_license
ghilesdev/python
75fd8825669d1e8a63536f3020e10a65e317924a
3c2a98551900df2cb2b17d0df47b083e06bbc747
refs/heads/master
2020-12-20T05:56:00.207569
2020-02-17T23:08:29
2020-02-17T23:08:29
235,982,126
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
import dxfgrabber import matplotlib.pyplot as plt dxf = dxfgrabber.readfile("1.dxf") # an example on how to access the coordinates of a point found by the variable explorer # print(dxf.blocks._blocks['0']._entities[0].points[0]) # extracting the shapes as list shapes = [shape for shape in dxf.blocks._blocks] # cre...
[ "20175872@etud.univ-evry.fr" ]
20175872@etud.univ-evry.fr
1850c2a05a3509bc0adbc3fd4c4990cea20653f7
d2220846ac6c61ea5fa7a11bf24d058bfb296e68
/chord_practice.py
7618ab892486cfaaac2c3691e275fd59616ad11e
[]
no_license
PNeigel/Chord-Practice
0480baa9cf94bc1de82fdc3e2aee9ede39b3837f
3013bcab620368a5cf96d9756a7158b84c11c46d
refs/heads/master
2021-01-19T20:27:10.492072
2017-04-17T12:54:20
2017-04-17T12:54:20
88,507,127
1
0
null
null
null
null
UTF-8
Python
false
false
4,772
py
import graphics as g import time as time import numpy as np rootdict = {0 : "A", 1 : "B", 2 : "C", 3 : "D", 4 : "E", 5 : "F", 6 : "G", } intonationdict = {0: "", 1: "b", 2: "#" } modedict = {0: "", 1: "-" }...
[ "noreply@github.com" ]
noreply@github.com
4849689a602c195a848d7607e85a8f20df5a0537
53eead261d199fa15792539596b8b921d2841743
/assess/q9.py
dd18b9b9d21b69dcd6db4680426702d4fdd7e9a0
[]
no_license
Pratish1995/repoo
9d594e8e93de53e4e8bb12e4e400fb7d3630b65e
2f31e71f09d554ca3275d98a2e50508546cf05a9
refs/heads/master
2020-12-02T08:05:32.982899
2017-07-18T14:14:06
2017-07-18T14:14:06
96,767,724
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
import re def validate(s): x = True while x: if (len(p)<6 or len(p)>12): break elif not re.search("[a-z]",s): break elif not re.search("[0-9]",s): break elif not re.search("[A-Z]",s): break elif not re.search("[$#@]",s): break else: ...
[ "pratish.jain@quantiphi.com" ]
pratish.jain@quantiphi.com
51a5067c854b3664f8ea3cae774a82ffda609903
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoBTag/PerformanceDB/python/PoolBTagPerformanceDBMC36X.py
51f9ad82857168c4520d2aadbf7b5b494f03b156
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
112
py
from RecoBTag.PerformanceDB.measure.Pool_pf36 import * from RecoBTag.PerformanceDB.measure.Pool_calo36 import *
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
20ee34ee4d0b9896e8438c78886f307f126cded3
1980c3846af58e7c0d722cf3259f5b92f4675933
/Python/multipageSettings.py
42a73d3008e83ad09b76166d2c06ec5879e666d9
[]
no_license
MartiniDesignz/Wrestling-Glove
b3b40ef9cf1652bf72f75d8af93fe03a75b1327c
b89396885d20bf7194146c0d8d8472f4a9dd7062
refs/heads/master
2020-04-19T14:27:28.601251
2020-02-14T15:56:25
2020-02-14T15:56:25
168,245,198
1
0
null
null
null
null
UTF-8
Python
false
false
9,851
py
import tkinter from tkinter import* import ctypes#try to utilize*************************************************************************************************************************************************** #creating the window win = tkinter.Tk() #modify the window win.title("REFtech settings")#creating the main ...
[ "marti2rj@mail.uc.edu" ]
marti2rj@mail.uc.edu
038fbd532f9fd4dbb174c02e9e979f5807987c8e
9cbe84017abd74dd4863c60c3438420aeaa4cb5b
/OcCo_Torch/models/pointnet_util.py
223edb2e5970e591f491deb0d0fde065371aadb5
[ "MIT" ]
permissive
zebrajack/OcCo
3c7be8e4c46b61e0899c533c5c101dad56127a3f
c218a2bb446f91702cf8fa6f56bb3a1da406009f
refs/heads/master
2023-04-30T08:15:48.189980
2020-12-29T10:49:21
2020-12-29T10:49:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,576
py
# Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk # Ref: https://github.com/fxia22/pointnet.pytorch/pointnet/model.py import torch, torch.nn as nn, numpy as np, torch.nn.functional as F from torch.autograd import Variable def feature_transform_regularizer(trans): d = trans.size()[1] I = torch.eye(d)[None...
[ "hc.wang96@gmail.com" ]
hc.wang96@gmail.com
30fdaa673e08045fe54909f77171751270ba426c
59f07c3719ad16cb042313b0af3ec131cee9a804
/mop/utils/colorspace.py
9eda7efa99173b741d3d6a64f36c5a0432ab06bb
[ "MIT" ]
permissive
fsanges/master-of-puppets
2cb2d70a1be957fe4fe32227981e2a1644102b45
dc464021c7e69975fa9fcc06595cc91113768e5e
refs/heads/master
2022-02-13T19:21:41.198808
2019-08-13T22:32:22
2019-08-13T22:32:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,151
py
# # sRGB transform (Python 2, 3) # # Copyright (c) 2017 Project Nayuki. (MIT License) # https://www.nayuki.io/page/srgb-transform-library # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software wit...
[ "alexy.long@orange.fr" ]
alexy.long@orange.fr
b2bbfca51ce7febdc808a2023a68a3bf117e73a0
a3711b7c951665fb9d52ce6d492e1b24e6b49bf0
/Automation/zippedFileCreator.py
9c96949405b5d619d796b7ebca70aa8606b53567
[]
no_license
Halcyon312/AdvancedPythonTraining
72e1da4ec4c58a08273dc1bb0345f929993695e6
412b3073644baecb4ba0d0279097ad4594e38231
refs/heads/master
2023-08-03T18:58:00.064724
2023-06-13T20:43:10
2023-06-13T20:43:10
279,341,839
0
0
null
2020-07-13T15:31:24
2020-07-13T15:31:23
null
UTF-8
Python
false
false
855
py
import os from zipfile import ZipFile from time import sleep def main(): # Get directory of this script. #dirPath = path.dirname(path.realpath(__file__)) dirPath = os.getcwd() print(dirPath) numFilesToCreate = 10 createFiles(numFilesToCreate) sleep(2) zipFiles(dirPath) def createFile...
[ "zspink@nea.k12.ar.us" ]
zspink@nea.k12.ar.us
1a271585d8581d20466cbe3e69e307ed8abed6e6
49009fb7b14c634f7e2285de635639d9a00cdd24
/backuni/urls.py
2f2690ee6d3cd6d3c5975bbec98666320f09b610
[]
no_license
faezee77/djangoproject
9dc030295c194583fb3e01d124c4b98ecbffd21b
e239a9d672c723bc6d58b8e210390e7b7da0b19c
refs/heads/master
2023-06-22T03:36:16.243045
2021-06-05T10:54:47
2021-06-05T10:54:47
374,087,816
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
"""backuni 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...
[ "faezeeaghabozorgi@gmail.com" ]
faezeeaghabozorgi@gmail.com
6bc76ae6b520317ff2dfb20b138dbdebee09377f
ccc4545a4f88d1fbe06fa965475f287c6c125aec
/scripts/parade.py
bd09a9cc2fd4dc51090cf76a996c92ed2c445908
[]
no_license
ewencp/sltrace
13f401b1f54480cbdc1a010d076b14797f3889df
3ae4f9e60b61f6823976a62e82fd18566e00d570
refs/heads/master
2020-05-18T16:14:29.350890
2010-06-01T23:55:42
2010-06-01T23:55:42
471,019
1
1
null
null
null
null
UTF-8
Python
false
false
3,076
py
#!/usr/bin/python # # parade.py - instantiates a collection of sltrace.exe bots to # coordinate collection of trace data from Second Life across a large # number of simulators. The name refers to a parade (herd) of # elephants, which are known for their memory. # # There are two parameters to parade: # # --bots -- spe...
[ "ewencp@cs.stanford.edu" ]
ewencp@cs.stanford.edu
a11b2a7327974091502e55409a664b09beb69f3c
1e12499ae96664e11a148130425ff96947547866
/Basics/Ifelse.py
c1c7329e3f3577f5ca4b755f43db06040e698022
[]
no_license
sameerktiwari/PythonTraining
223e219055b284a52ac5cf7b3252de6119f082ad
4c446e24319582227dacff46be3f7ea779e5bfab
refs/heads/master
2021-08-23T20:36:05.995200
2017-12-06T12:37:53
2017-12-06T12:37:53
112,296,985
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
num1=input("Enter a number") if num1>0: print "Number is positive" elif num1<0: print "Number is negative" else: print "You have entered 0"
[ "sameer.tiwari@capgemini.com" ]
sameer.tiwari@capgemini.com
3cf46bf5c296a8daf9dca7ec85200589d369f328
e23f740a204aa6d2980051723952c8d8cbf0a613
/bin/mtl_test2.py
707dc28b4dca3aea5a469bb65f81788d0dc46b7f
[]
no_license
Woooooody/MTL_AMR_PARSING
abc2df16fe56255b5c1f116d8812edbb48a5e4b8
9ac1a05ff82e7db7341ffbd917a19e8b7ea489b9
refs/heads/master
2021-06-30T04:29:43.667541
2020-09-04T02:51:53
2020-09-04T02:51:53
141,286,326
0
0
null
null
null
null
UTF-8
Python
false
false
13,556
py
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import itertools import os import numpy as np import tensorflow as tf import thumt.data.dataset as dataset import thumt....
[ "wujinhang0729@gmail.com" ]
wujinhang0729@gmail.com
9e19072ff7971bc211783e2524be3902ccd8e5c3
39b8dddb1bda5e8055c661da060a9c71040c0ae3
/reinforcement/tensorflow/minigo/tests/test_shipname.py
93a9e7848d426fc5cb67bf8191c89a4eecd8e1c1
[ "Apache-2.0" ]
permissive
dagarcia-nvidia/mlperf_training
22e7c120bce338ec84b008b5cd64a3e53c2362e3
bad6f14e6f5a119bfffb3181a8a742874c441753
refs/heads/master
2022-12-11T03:28:22.641969
2019-02-27T19:05:59
2019-02-27T19:05:59
172,770,644
1
1
Apache-2.0
2022-12-08T02:29:51
2019-02-26T18:54:19
Jupyter Notebook
UTF-8
Python
false
false
1,119
py
# Copyright 2018 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 agreed to in writing, ...
[ "deepakn94@gmail.com" ]
deepakn94@gmail.com
d22b2a7823c9c338149f4a34403de8a7a658be7c
fb9b0f9c6fb593dfb8e23ee04454f8c0a37cb15d
/other/my_utils.py
aed590884365e768aa7a1f4fe7e6b25edb7a64f5
[]
no_license
dmishin/dmishin-pyscript
624f1efda94916780bf25c6bd554c75f43936170
494433c26daf826f4b914f81ceaa69dc2f35c350
refs/heads/master
2021-01-02T22:52:09.917804
2010-08-28T20:11:11
2010-08-28T20:11:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
def srepl(string, replacements): "Multiple replace all" if not replacements: return string orig, new = replacements[0] return new.join([srepl(s, replacements[1:]) for s in string.split(orig)]) def __test__srepl(): assert(srepl("", ()) == "") assert(srepl("ab", (("a","b"),("b","a"))) ==...
[ "shintyakov@gmail.com" ]
shintyakov@gmail.com
420eb58a93e081ddbe198dfb4f83ba00590c180f
b9e053fb07272253780284aaab573a578a2363c0
/MVC/Control/controlador_partida.py
5ce092cea482f025124a07c04777bb022d5c4830
[]
no_license
jrmartins89/APS
cfcf4c1eccdc6d9caf5e947f68d25eb21b912184
845b03a6a2dd0c7642248b33eda45b3b96ff7461
refs/heads/master
2023-08-31T21:23:18.947626
2021-09-19T06:53:57
2021-09-19T06:53:57
385,753,815
1
0
null
null
null
null
UTF-8
Python
false
false
844
py
from mvc.control.controlador_jogador import ControladorJogador from mvc.view.tela_partida import TelaPartida class ControladorPartida: def __init__(self): self._tela_partida = TelaPartida(self) self._controlador_jogador = ControladorJogador(self) self._partida = None def abre_tela_con...
[ "jribamarjunior89@gmail.com" ]
jribamarjunior89@gmail.com
6a82e3ae6b27e06fceaac8afb717db4d2afd1d3e
13d5d65558c2e3b8eff53b5c42ace8c04a64630a
/cracking-the-coding-interview/queue-using-two-stacks.py
a693ea3500d4bf438d66d7061937d1aa2f0d311b
[]
no_license
ddg00/hackerrank
47d061138febae20776220969839a6378445314e
7975919545a11bd36248e7018a1bf83168779149
refs/heads/master
2021-01-20T05:43:44.460029
2017-08-03T07:37:16
2017-08-03T07:37:16
89,801,219
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
import queue class MyQueue(object): def __init__(self): self.q = [] def peek(self): return self.q[0] def pop(self): self.q.pop(0) def put(self, value): self.q.extend([value]) queue = MyQueue() t = int(input()) for line in range(t): values = map(int, input().split...
[ "arya.ddg00@gmail.com" ]
arya.ddg00@gmail.com
9eada00291e92ba1f68d9cc92d349c53d4607a32
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/python2.7/test/badsyntax_future7.py
016f61f770519913d07d97611d89fa2688ab4a4f
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
82
py
/home/action/.parts/packages/python2/2.7.6/lib/python2.7/test/badsyntax_future7.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
dbae1a4ecbfd9457b35cda900b220b7c20141665
aaffe0817fad8779b18be56db0b4f17213fcf446
/credenz/asgi.py
24e4028c52571bedba0f82a8631fe25e18e3c576
[]
no_license
abhishekdhar30/Django_backend_basic
08ffb342c08e867545a5b34bdb0fa83ff0f197d6
68a0c2cc190e0297a2bd356f3b3e3518ffb1d999
refs/heads/master
2022-12-01T13:16:41.307259
2020-08-20T17:42:27
2020-08-20T17:42:27
289,069,722
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" ASGI config for credenz 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.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
[ "abhishekdhar1603@gmail.com" ]
abhishekdhar1603@gmail.com
8936f6a3992cf15aace3fb212b4ed78a4f0d46c1
45faee461099ad7c932add39473fcfdbd718e54c
/models.py
ca2af859b1ccd06ff72874bccda478fda6b295ba
[]
no_license
pradneshkolluru/NEO_project
3f5d534ce898d34a98c73caac4ea96a795308569
b4ea9dac31e2efc1c71e66ac459fa66b9016840b
refs/heads/main
2023-05-31T01:54:58.477370
2021-06-17T03:04:34
2021-06-17T03:04:34
377,688,931
0
0
null
null
null
null
UTF-8
Python
false
false
7,615
py
"""Represent models for near-Earth objects and their close approaches. The `NearEarthObject` class represents a near-Earth object. Each has a unique primary designation, an optional unique name, an optional diameter, and a flag for whether the object is potentially hazardous. The `CloseApproach` class represents a cl...
[ "noreply@github.com" ]
noreply@github.com
ddabea7784ef8342f76c1ca6530fde0cfab7b4f2
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3378.py
d9230c40d82e40ec840c98885d3db4d3250b8334
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
# -*- coding: utf-8 -*- """ Created on Sun Apr 09 06:47:06 2017 @author: rajbhagat For Code Jam - Faster Tidy numbers """ readfileopen=open("C:/Users/rajbh/Desktop/B-large.in",'r') writefileout=open("C:/Users/rajbh/Desktop/B-large.out",'w') caseno=0 for e in readfileopen: if caseno>0: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
ea6218c1634a2cb13b35332fc6034b51d034f60a
d10d83e06e689e597884cffbd8f4a8c62d051df0
/historical_games_shop/historical_games_shop/urls.py
419d900787a9030c0bbda8fff690e3b633458be2
[]
no_license
tchka/django
87d50aac5b929369c135596f0c66ab5029fd47ff
9a78076c6b36a92a44b082489994631719fff93a
refs/heads/master
2023-01-24T20:32:46.855065
2020-10-11T14:22:19
2020-10-11T14:22:19
296,548,908
0
0
null
2020-11-19T10:54:42
2020-09-18T07:37:43
CSS
UTF-8
Python
false
false
1,405
py
"""historical_games_shop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home...
[ "tchka777@gmail.com" ]
tchka777@gmail.com
306ee0e3f42da10e7a7187c2d79cea92ae6e8609
247b06de0f3c80d6a48f62cb3ba87272885baa3b
/Scripts/djangular/djangular/settings.py
f7fdd76b1b85327f80bc68ea08f27f262d23bb00
[]
no_license
jean-sotil-3pillarglobal/scrumboard-angular-djangorestframwork
b7382db6748b34d92442ebd8997d300cc9a6ec09
569de8ee6a164ac0cce163ccf865a7909378ab67
refs/heads/master
2023-04-30T13:13:01.281584
2016-11-18T23:36:12
2016-11-18T23:36:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,701
py
""" Django settings for djangular project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
[ "jean.sotil@gmail.com" ]
jean.sotil@gmail.com
c6ce294fabdf77481db2cb169457ccad73b12dca
53090d932232917d381aab960436e5e9c72962e5
/core/modules.py
4a56580a00ae9368061edc735348249d47d55b80
[]
no_license
gurayinan/propertyfinderQ5
62d3bc002432f4f4ab9db992fbc2f8260e7e708b
4682c43dca7fb7b4f536b3b85bffe55f89018a11
refs/heads/master
2021-01-20T07:07:06.305632
2017-05-01T20:20:17
2017-05-01T20:20:17
89,958,911
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
import datetime import time import unittest import os import sys from ConfigParser import ConfigParser from random import randint from appium import webdriver as app from functools import wraps from selenium import webdriver from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.suppor...
[ "gurayinan@Gurays-MacBook-Pro.local" ]
gurayinan@Gurays-MacBook-Pro.local
7b5aeb5a7d41e3f0ab07804cffd1010b539390d4
13ed4c57bbf6e4f887cc204a2449e92aeb47ec6c
/venv/jpg_to_png_converter.py
442d5c5e67b446d7d5245e493bcba880821774a8
[]
no_license
Punkrockechidna/image_convert
07b5ea6adc8c5296ed237013a83adb2eeab7fa73
b281c9e61182f2a8934d0e6ba07e73daf29575cc
refs/heads/master
2020-12-03T22:12:15.130738
2020-01-03T03:05:32
2020-01-03T03:05:32
231,502,230
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
import sys from pathlib import Path from PIL import Image # grab first arguement and second (folders) # jpg_folder = sys.argv[1] # png_folder = sys.argv[2] # print(jpg_folder) # print(png_folder) jpg_folder = 'pokedex' png_folder = 'converted' # check if second exists, create if not def find_folder(folder): # pr...
[ "dan.kaplan@ieleadership.org" ]
dan.kaplan@ieleadership.org
81a853644f657db310795ccd6bc3d7c7e4048b9e
eb08fc60c6e0e68d95a4cc42d4573875d09d83ef
/nEvenNumbers.py
cbb412a79c8f21c6b89697b8d45777cb1d740a9c
[]
no_license
1jyotsna1/Python-Programs-Basic-to-Advanced-
3d1b467b953c2401ebdf57a8faee276077da0003
ff8d8419201894de8c9421cc16ea6bb02d7ba292
refs/heads/master
2021-07-02T13:52:29.696051
2020-10-31T09:14:28
2020-10-31T09:14:28
173,432,448
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
n=int(input('Enter a number')) j=0 for i in range(0,n): if(i<n): #print(j) #j=j+2 print(i*2)
[ "noreply@github.com" ]
noreply@github.com
a272107be359ea29639480af2e1863ca86fab875
2a6740bad17aa5da1fcc5ab6cb5013193059e946
/udemy/formation_python/Exrecices/nombre myster/exo msyter4.py
e8a9279f92e0711872296fad8fd9b97fbde89ddf
[]
no_license
micka-sudo/cours
41b2b09daa690c2c6b24203fe12dd0834ab2364c
4d877aeb87d4fcd59c312dd9714e7b140713a2b4
refs/heads/master
2023-08-14T22:59:22.712008
2021-09-13T11:38:48
2021-09-13T11:38:48
405,946,954
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
# -*- coding: utf-8 -*- """ Created on Sat Feb 15 16:10:19 2020 @author: Shadow """ import random nombre_mystere = random.randint(0, 10) nombre = input("Quel est le nombre mystère ? ") if not nombre.isdigit(): print("SVP, entrez un nombre valide.") exit() nombre = int(nombre) if nombre > nombre_mystere: ...
[ "mickael.gerard.dev@gmail.com" ]
mickael.gerard.dev@gmail.com
e07e351a2ab395d5a0288f85f4d8e8f0dbcb21ce
83ee284f4da07a995918eff685eb02cb78e9a047
/OSMParser.py
fd45a18845dd31417a3f297fc2e9cfc8341316a2
[]
no_license
sarthak0415/osm-shp-graph
f3d952005cf2f4044bc17fcc8c1b8171aa342101
109b8f845f408500b58535d4e08e648a8a003de1
refs/heads/master
2021-05-11T11:37:23.028213
2018-01-18T07:13:19
2018-01-18T07:13:19
117,642,144
0
0
null
null
null
null
UTF-8
Python
false
false
8,126
py
## Modules # Elementary modules from math import radians, cos, sin, asin, sqrt import copy # Graph module import networkx # Specific modules import xml.sax # parse osm file from pathlib import Path # manage cached tiles def haversine(lon1, lat1, lon2, lat2, unit_m = True): """ Calculate the great circle d...
[ "sarthak0415@gmail.com" ]
sarthak0415@gmail.com
daf27f71cbc15575ee65fd0f02661c46889e6984
2efda4e99b5b9da5041d4984b71a2121561a29d3
/EwhaEverytimeEverywhere/board/views.py
4acb5691431bf2776659eac49a6cf82d7009ef6f
[]
no_license
yunaisme/Cyber_Graduation_Project
2ff31284ced20688cad9e4546fad2d3af2217cdf
5388fe8a3dce0c6053ff00522c50390e8a6160b1
refs/heads/main
2023-07-30T12:50:15.754026
2021-09-26T14:20:19
2021-09-26T14:20:19
397,037,621
0
0
null
2021-08-17T01:04:28
2021-08-17T01:04:27
null
UTF-8
Python
false
false
2,572
py
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect, get_object_or_404 from .forms import PostForm, CommentForm from .models import Post, Comment @login_required(login_url='login') def post_list(request): posts = Po...
[ "gegiraffe@gmail.com" ]
gegiraffe@gmail.com
8bce87db52839bfb325e37a18ea9b5a477384736
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_0/Python/sachinr20/b.py
1805d5abd977f454eca786173f8e9a14c75ab1cd
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,425
py
import sys def flip(st, count): #if count==len(st): # return st[::-1] l = count st2 = "" for i in range(count): if st[i]=='+': st2 = st2 + "-" else: st2 = st2 + "+" #print("st2new:"+st2) st2 = st2[::-1] return st2+st[count:] def handleit(line,...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
ff9c3674a4609d828ea0196b0265b773cf5ddbde
6ba73a9705e6a5cd1e8a86eb39997028a099d496
/k_means/k_means_cluster.py
3f62080014571cc3d3251262fcb080e89f6c50c7
[]
no_license
julijanna/Udacity-Data-Analyst-ML
b1e6b44db1a4c9beedadf4bc2078f862719c4586
4365e7a78eba2b3c90849056c61505080fbd1fb6
refs/heads/master
2021-01-01T16:23:16.194995
2019-05-08T13:39:39
2019-05-08T13:39:39
97,820,393
0
0
null
null
null
null
UTF-8
Python
false
false
3,023
py
#!/usr/bin/python """ Skeleton code for k-means clustering mini-project. """ import pickle import numpy import matplotlib.pyplot as plt import sys sys.path.append("../tools/") from feature_format import featureFormat, targetFeatureSplit def Draw(pred, features, poi, mark_poi=False, name="image.png", f1_n...
[ "malgorzata.kot@jobcloud.ch" ]
malgorzata.kot@jobcloud.ch
954d3f114385f250baccc530c75485c2e98fcc02
1f89e25e07d08b705369f3a0c878d548f602f538
/81 (Path sum; two ways).py
670fb43f5d001349741cfdf1fadd5b44a8984e92
[]
no_license
hanpengwang/ProjectEuler
acf3edb7dbd2d8f3c95d9852fabe9dc19ff75a0e
533bd61379cb9830c956570dd44b4deaebfeef1d
refs/heads/master
2022-10-06T11:36:19.559892
2020-06-06T21:53:10
2020-06-06T21:53:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 25 23:43:10 2020 @author: hanpengwang """ def minSum(matrix): for i in range(len(matrix[0]))[1:]: matrix[0][i] = matrix[0][i] + matrix[0][i-1] for i in range(len(matrix))[1:]: matrix[i][0] = matrix[i][0] + mat...
[ "hanpengwang@HanPengs-MacBook-Air.local" ]
hanpengwang@HanPengs-MacBook-Air.local
a31fdb2f9d06bad2699e37e5c3db7181812246ce
8e6b71f41e9ab01696e20b50bad53db60a4c22bd
/virtual/bin/isort
d73b724609d2486fa27f1ce85c8002047f6b244b
[ "MIT" ]
permissive
wanjikuciku/Piktures
858b94462ada74f032fb885bc518d3268b097cca
1325e6e0bf8f1399d99594431c6b634e573363f7
refs/heads/master
2022-12-16T17:01:53.934296
2019-03-05T06:56:23
2019-03-05T06:56:23
173,079,461
0
0
null
null
null
null
UTF-8
Python
false
false
264
#!/home/lorna/Documents/django-workout/Piktures2/virtual/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from isort.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "lorna.wanjiku56@gmail.com" ]
lorna.wanjiku56@gmail.com
5f75cba56f656a72d81a5600d0bf46f2bda918b0
8b03d916264b86eb73c519efeb953499d8f19638
/src/rank/__init__.py
ed62c23badbf8fbdf1e63e3ca93c694a031ee85e
[]
no_license
GuillaumeBadikian/recherche-info
ed01280b7a2f10dd835eb49b92d8ccb2cd393119
0cfb7358db8bb4e1b84bb9b8f7088af32317ac55
refs/heads/dev
2023-02-26T07:47:07.672615
2021-01-29T22:33:20
2021-01-29T22:33:20
312,830,894
0
0
null
2021-01-29T22:39:04
2020-11-14T14:16:13
Python
UTF-8
Python
false
false
628
py
from rank_bm25 import * import src.rank.bm25 as bm1 def bm25(corpus, req, k, b, d): bm = bm1.BM25(k1=k, b=b) bm.fit(corpus) return bm.search(req) def bm25l(corpus, req, k, b, d): bm = BM25L(corpus=corpus, k1=k, b=b, delta=d) return bm.get_scores(req) def bm25plus(corpus, req, k, b, d): b...
[ "guillaume.badikian@gmail.com" ]
guillaume.badikian@gmail.com
e156a23f256074198c75442c89991cde95c820b5
3aa6b4e220a45ca806b1364e909eae242558db23
/model/models.py
3ff3346ff878e6b05f8d1d9de2d0ac850ba50d38
[]
no_license
feiyang1235/myblog
d3f2aa1cf0dc32906a9c473d5ee5836da2cdce0e
f81f55b7c704d71f51c857935fad23bb55106fe6
refs/heads/master
2020-03-13T19:28:08.384296
2018-04-27T06:20:56
2018-04-27T06:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
921
py
# coding=utf-8 from sqlalchemy.orm import contains_eager, deferred from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, DateTime, Integer, String, Boolean, Text, ForeignKey, BigInteger, DATE from sqlalchemy.orm import relationship, backref from datetime import datetime DbBase = declar...
[ "windflysun@foxmail.com" ]
windflysun@foxmail.com
3ea597062d349f2995c62bb5d62cc9faf7d6bffe
ed21529844d95422e3375b7fe51f7775ab6c751c
/lkliondjango/oldman_blog_project/blog/migrations/0001_initial.py
e673c95370980a52673964f60e9066ec245bf289
[]
no_license
wlight96/likelionworkspace
d842af8b269fe72314508e1a99eb94cce70b659b
6634efd0105a0e93750b7a695f39907683257b32
refs/heads/main
2023-06-24T08:19:38.859740
2021-07-14T07:37:38
2021-07-14T07:37:38
366,376,720
0
1
null
null
null
null
UTF-8
Python
false
false
1,038
py
# Generated by Django 3.2.2 on 2021-05-11 15:37 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.BigAutoField(...
[ "wlight96@naver.com" ]
wlight96@naver.com
bdf35fd43669e99b30e709c13acdab423dcffbdd
e93276186dd7d0830cc17a90d2011da8c32c3058
/Python Programming A Concise Introduction/Exercises4_part1.py
65d7e89f2c0478bd52359c35d9eb20beab38aba1
[]
no_license
AkshayaSivakumar/LearningPython
014b20b1c86853f82f35a431738409fa477d3dc8
66300ba8a68ec6ba6a7a635f80016fdc2d2e3906
refs/heads/master
2021-07-17T15:53:52.462551
2021-05-20T17:01:24
2021-05-20T17:01:24
125,881,746
0
0
null
null
null
null
UTF-8
Python
false
false
15,340
py
# -Exercises4.py *- coding: utf-8 -*- """ LONG STRINGS """ #%% lstr1 = "A very long string can be tied together using " + \ "a backslash (also called the escape character)." lstr2 = ("A very long string can also be tied together using " "parentheses to enclose the various parts.") #%% """ B...
[ "noreply@github.com" ]
noreply@github.com
dc784ad9f8f002c1a90bc25194fb31cda435e55c
fc124dba378a82fedb2089237cbd8380f41a2995
/dbc/dbc2json.py
d03b8bf12238461f86aaabafcea0afc1cef6805d
[]
no_license
jrsa/wow_scripts
dc2b17588d20bd056e1b581401dc27a31b10133e
9b536b80128decf11121486d43985f6bd3cc469d
refs/heads/master
2021-01-01T15:38:32.392372
2018-08-25T15:58:02
2018-08-25T15:58:02
97,664,166
1
0
null
null
null
null
UTF-8
Python
false
false
668
py
#! /usr/bin/env python3 """ converts a DBC file to JSON format, using python 3s json module """ import sys import os.path import json import wow.simple_file as sfile from wow.dbc import DbcFile from wow.dbc.format_import import FormatImport try: fn = sys.argv[1] map_fn = sys.argv[2] except IndexError as e: print...
[ "jrsa@jrsa.co" ]
jrsa@jrsa.co
d4168e376905c3ccf748cc593f0e57c78cf8bc53
5cc5c6af05aa667ed8ab8d0d12845d8a597e0cff
/tests/test_task_list.py
6fd3e8c1b6ce139a75950bd1d96896e0dd1e1a73
[ "MIT" ]
permissive
tfkhim/auto-backup
58e07774e2bfc8b95cf8bfa169514108a1ca24e6
d6faed99ed4eed6bfd9b859b2fc5bc55d59d28a0
refs/heads/master
2023-02-23T08:30:30.514796
2022-11-05T12:32:28
2022-11-05T12:33:51
241,464,220
0
0
MIT
2023-02-08T04:25:49
2020-02-18T20:48:54
Python
UTF-8
Python
false
false
920
py
from unittest.mock import MagicMock, call import pytest from auto_backup.config import TaskList class MockTask(str): def is_active(self, tags): return self in tags @pytest.fixture def task_factory(): def mock_factory(config): return MockTask(config["name"]) return MagicMock(wraps=mock...
[ "9889638+tfkhim@users.noreply.github.com" ]
9889638+tfkhim@users.noreply.github.com
95502ab595a584f1de7be5054524ea97671baa2f
dcb984494ae1ae88192f0ba685f76a0dbc73dcdb
/venv/lib/python3.6/bisect.py
1f16dfa58a74cdbde010e65540d31c009ef9d94d
[]
no_license
hornLK/Django_LKproject
55393a7d92e5a4441df309c5d7c898c1e91e248f
c0ce7a524f2fc4c37b79deaab06c4abc08de7398
refs/heads/master
2021-04-30T14:52:36.223985
2018-03-30T04:04:12
2018-03-30T04:04:12
121,226,741
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
/usr/local/python36/lib/python3.6/bisect.py
[ "bjlkq546449541@gmail.com" ]
bjlkq546449541@gmail.com
97a9944271b7d91b192683ba190c0287a2a545fd
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY05-BOJ1260-DFS와BFS/joohyuk.py
db9bbd3aa34e66679027eda6a4ef5d38dca52708
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
1,020
py
import sys from collections import deque si = sys.stdin.readline graph_unsorted = [set() for _ in range(1001)] graph = [[]for _ in range(1001)] visited = [False for _ in range(1001)] def dfs(s): print(s, end=' ') for e in graph[s]: if not visited[e]: visited[e] = True dfs(e) ...
[ "noreply@github.com" ]
noreply@github.com
fea30315f327aae3ec003223a38e8fcabc6592f4
73606e2bb5a03a71a40117ef08f107e03b691270
/maeg/exploits/rop.py
ccec2b651c49fe488dc0d462710c61cc1fc8ce33
[]
no_license
Wan-YunPeng/maeg
aabd1c29eb4f14b569fda8994465c9f4e0d5339e
19f74717cd44a564035cbe36ae89e1ea3397334e
refs/heads/master
2020-07-03T07:16:47.949571
2017-01-01T13:11:32
2017-01-01T13:11:32
74,189,668
1
0
null
null
null
null
UTF-8
Python
false
false
4,084
py
from ..exploit import Exploit import logging from ..payload import Payload import os l = logging.getLogger("aegg.exploits.rop") l.setLevel('INFO') SCRIPT = ''' from pwn import * import sys binary = '$binary$' leak_symbol = '$leak_symbol$' symbol = '$symbol$' payload = $payload$ libc_path = '$libc$' leak_off = $leak_o...
[ "425324478@qq.com" ]
425324478@qq.com
46897c6dd8ea085f279114dadf75e9ec3adcfb5d
47d65705f7764864b9cf8d437adfc5834d7cbc1d
/backend/src/api.py
f1a3e612bb49b3a3a446f655591e291ff477c959
[]
no_license
SonicEdge1/Coffee-Shop
8de451aa81076dc139ed8be22fad5c2a224f76eb
3520293cf969fa6a2ca8105f3b81b3be54b933f0
refs/heads/main
2023-08-18T17:17:53.679220
2021-09-21T23:51:10
2021-09-21T23:51:10
407,685,424
0
0
null
null
null
null
UTF-8
Python
false
false
7,150
py
# Link to get JWT token # https://joes-coffee-shop.us.auth0.com/authorize?audience=CoffeeShopAPI&response_type=token&client_id=fjb33CnyG41x67vtWHdhTREa450KpVkh&redirect_uri=http://localhost:8080/login-results import json from flask import Flask, request, abort, jsonify from flask_cors import CORS from .database.model...
[ "joseph.bell.17@us.af.mil" ]
joseph.bell.17@us.af.mil
93f40d4918907f15aad52856cb8a80bb9202195c
e6252e7ad0e024cd20e0e0779347945b735dd64a
/myenv/restdemo.py
2c0d9453c08607d15e642c47b4412ccd350d5fee
[]
no_license
Icode4passion/FlaskApp_RestDemo_Calculator_WeightConvertor
97391a9c7ed1f2b6eab402169f52ac17e4e49c64
8865d0d98c070331e3ebcd70ecd5b7ad2dd9c2e2
refs/heads/master
2020-04-11T07:33:25.152968
2018-12-13T14:33:29
2018-12-13T14:33:29
161,614,605
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
from flask import Flask , jsonify , make_response , abort, render_template , request app = Flask(__name__) movies = [ { 'id' : 1, 'title': 'Batman', 'Author': 'Bob Kane', 'Director' : 'Christopher' }, { 'id' : 2, 'title': 'Superman', 'Author': 'Jerry Siegel', 'Director' : 'Richard Donner' }] @app.route('/m...
[ "yogeerama@gmail.com" ]
yogeerama@gmail.com
c24bb5cb56ddb6cbf644b89d09116e64ea01f40d
33421188df7d7dcf2ee9be0771b0f2fe1ffad4f5
/2011/gul-uc3m/python-avanzado/examples/iterators/iterators.py
fdf342711c46c679476ecaff0225276502f1e47f
[ "CC-BY-4.0" ]
permissive
Gustavo17/ponencias
c0482fc7a72d7d4d829a54b94775e77c81ca5d97
effb002b0300fe57d26776654b61a2396010da40
refs/heads/master
2021-01-13T09:18:13.837313
2014-11-21T04:58:11
2014-11-21T04:58:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
def generador(): for x in range(1,10): yield x class Iterador(object): def __iter__(self): for x in range(1,10): yield x class Iterador2(object): def __init__(self): self.max = 10 self.counter = 0 def __iter__(self): return self def next(self):...
[ "jespinog@gmail.com" ]
jespinog@gmail.com
b1973d33b3f3a94fd137449f2fe07c0feaafe84d
1830d10c03c51472150a67864815e471acbc4098
/intg/src/main/python/setup.py
5222d715365a32d8784aebf71e70bfd66616756e
[ "Apache-2.0", "BSD-3-Clause", "WTFPL", "MIT", "GPL-2.0-only" ]
permissive
andrewluotechnologies/ranger
ef7c2941592ab20e3f944dd76993b3b11723e145
41782aa8872a4788850441177103ce44034c3f0b
refs/heads/master
2023-03-07T16:58:20.140889
2023-02-17T06:48:07
2023-02-21T08:52:29
207,180,288
0
0
Apache-2.0
2019-09-08T22:14:47
2019-09-08T22:14:46
null
UTF-8
Python
false
false
1,744
py
#!/usr/bin/env python # # 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 "Li...
[ "madhan@apache.org" ]
madhan@apache.org
e94ec18c3712ed0a5a1d25c2bbba7c5428ea78be
d13f01014dd956714422beb84234ceea4933aeec
/download_html_with_selenium_chromedriver.py
b7934e9343a6d0f7c8cab52c6b11577630e4141a
[]
no_license
rishabh-malik/Web-Scraping-Python
1c1e5e765c534dd77dea9709b6977b6265396b0a
bf4bcb0931488a6b56e88e9abebc7a07a73afe70
refs/heads/master
2021-08-31T23:41:47.913273
2017-12-23T14:52:46
2017-12-23T14:52:46
115,188,990
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
from selenium import webdriver driver=webdriver.Chrome(executable_path=r'C:\Users\Rishabh Malik\Downloads\chromedriver_win32.zip') driver.get('http://python.org') #this will contain the page source html_doc=driver.page_source print(html_doc)
[ "rishabhmalik249@gmail.com" ]
rishabhmalik249@gmail.com
4b90bab90e54f9f366bf97d43b40c443b19a64a4
18231c95342952b9048b714dc34b6cd95a77ccd1
/app.py
b3435cb6152000ac6ff5287343b3bf46aa0ee764
[ "MIT" ]
permissive
pstauffer/alexa-restaurant
9a7bb6eacac060434a0b15a25802b6ae41cbff4a
617cafa4fd148148ce40e3a12668933e4fd0a2ab
refs/heads/master
2020-05-27T21:10:58.297582
2017-03-03T07:34:06
2017-03-03T07:34:06
83,606,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
from flask import Flask from flask_ask import Ask, statement, question import yaml import sys from random import randint def yml_loader(file): try: with open(file, 'r') as stream: return yaml.load(stream) except IOError: sys.exit(1) template = yml_loader('template.yml') app = Fl...
[ "pstauffer@confirm.ch" ]
pstauffer@confirm.ch
73f614c22372e2a731f449d54e5fd3669425ec1e
7440a984737e882865c4398adcba8e9f115d162e
/rabin-miller.py
28558d8dae8048f595daab9ad9405214333cce93
[]
no_license
sudoheader/100daysOfAlgorithms
da256022c710027cd615ff39b6f72e179ba76c65
dde39cfcce1077a170c66d4d75bfb23b4931865f
refs/heads/master
2021-09-04T03:10:30.913420
2018-01-15T04:01:03
2018-01-15T04:01:03
106,236,590
1
0
null
null
null
null
UTF-8
Python
false
false
944
py
from random import randrange # algorithm def rabin_miller(prime, tests): if prime < 5: return prime in [2, 3] # set: prime = q * 2**r + 1 q, r = prime - 1, 0 while not q & 1: q >>= 1 r += 1 # test repeatedly for _ in range(tests): a = randrange(2, prime - 1) ...
[ "rayn2427@gmail.com" ]
rayn2427@gmail.com
64bb9f225783b606da3d8267a0ac7d33b510a04b
2430b2a50efec6eebf27c0162b11d10d88f62729
/pyprob/__init__.py
57d07c2a883967767c0ab26beb5ea4593b133414
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
feynmanliang/pyprob
60d27e67c02e96f7a8116d9f1c5bdf1c374d908a
16e345fde1d4305138bc909b087c81ad0f668cc5
refs/heads/master
2022-11-28T16:28:19.921825
2020-05-25T22:28:45
2020-05-25T22:28:45
268,595,724
0
0
null
2020-06-01T18:05:21
2020-06-01T18:05:21
null
UTF-8
Python
false
false
336
py
__version__ = '1.1.3' from .util import TraceMode, PriorInflation, InferenceEngine, InferenceNetwork, ImportanceWeighting, Optimizer, LearningRateScheduler, ObserveEmbedding, set_verbosity, set_device, seed from .state import sample, observe, tag from .address_dictionary import AddressDictionary from .model import Mod...
[ "atilimgunes.baydin@gmail.com" ]
atilimgunes.baydin@gmail.com
2e200afda40db1b2ba2f8c1c790253b73ea4cd1a
abca9e32e4fb97c9433ce50720049e0a8f18d9d4
/qa/rpc-tests/listtransactions.py
fb874b52374b8e66ba30e39072a18d3dd624ae15
[ "MIT" ]
permissive
nikolake/minerium
b0829475f24033b81b184781308dbaef1db182d1
aa014119a70ba4997df1ab4ab05570a0b01f1590
refs/heads/master
2022-07-18T13:33:04.536700
2020-05-17T19:03:20
2020-05-17T19:03:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,190
py
#!/usr/bin/env python2 # Copyright (c) 2014-2020 The Bitcoin Core developers # Copyright (c) 2014-2020 The Minerium Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_fra...
[ "46746362+bunbunbunbunbunny@users.noreply.github.com" ]
46746362+bunbunbunbunbunny@users.noreply.github.com
cb0026bf57ccc9abc71541d4c3d1f690f344d7ae
47aaa3f1fa5764779e5246fa3b765adaaac15bd1
/distributed_jobman/parsers/config.py
f18760451974217f79da36fcfa3e1de8d8f31456
[]
no_license
bouthilx/distributed-jobman
a3ec4958001b052a8327416b4be268f55dea2bf7
d20aeda23bb9137445f754c8542d2f7e328a7fae
refs/heads/master
2021-01-24T21:12:47.077725
2016-02-18T16:02:32
2016-02-18T16:05:16
49,673,710
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
from ConfigParser import ConfigParser, Error import os p2_config = ConfigParser() p2_config.read(os.path.join(os.environ["HOME"], ".distributed_jobman.rc")) default_values = dict(cache_timeout=str(60 * 5)) keys = ["username", "password", "address", "name", "cache_timeout"] database = dict() for key in keys: val...
[ "xavier.bouthillier@umontreal.ca" ]
xavier.bouthillier@umontreal.ca
50fa309b350fdae74d5cfe5ff924bf0905df3612
be3966084e5139f9615892fc6655ee50ea977b61
/Sprint-1-Python_and_Descriptive_Statistics/Examples/magic_eight_ball.py
4d5ec211975379e4fc7678da3f0ff655dd0b1e1c
[]
no_license
dansmyers/Simulation
985acf6484b367ec42585ce1f98431416c3ebbbf
bebc5615e37a96ec4bc4503ff032f4c3aeb0d35d
refs/heads/master
2023-05-11T08:17:59.592464
2023-04-29T23:00:11
2023-04-29T23:00:11
146,478,233
5
2
null
null
null
null
UTF-8
Python
false
false
885
py
""" Magic Eight Ball: a fortune telling program Demonstrates conditionals, random choices, and import statements """ # The import statement is the same as in Java: load an external module # # You can also use the from...import... form if you want to load only # one function from a module from random import random # ...
[ "noreply@github.com" ]
noreply@github.com
52333cc2e65db038cbb4d42924cde56aee596bdb
a290925e8c3103bb84327f6f38f0b4ffd7945c1d
/dataugmentation/reverse_para_order.py
46b542bb4e9b7a02170208992335f7e00154d9dd
[]
no_license
enterpriseih/lightningHotpotQA
6db502747b2b7a876e7f32743b839c65f851ee49
b3a992f27a1c2b7881e6ab0c16132c20fb880f8d
refs/heads/master
2023-08-24T05:38:32.419496
2021-05-27T01:09:29
2021-05-27T01:09:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
import json import sys from tqdm import tqdm assert len(sys.argv) == 4 raw_data = json.load(open(sys.argv[1], 'r')) para_file = sys.argv[2] with open(para_file, 'r', encoding='utf-8') as reader: para_data = json.load(reader) ################################# reverse_output_file = sys.argv[3] ######################...
[ "guangtao.wang@jd.com" ]
guangtao.wang@jd.com
aff08cba5f2fe4041f38cf71095acfa7fcedf07e
8f3c2db104b4eb23d3e238b3b64a971ae2c0f487
/demo_GP/demo_func/demo_4D_case-3.py
57e1c307e2b1b02718e5e6133423fcd2fcec295f
[]
no_license
LinfuYang/A_GPR_M
e07567e9edb4b84b480dba6e77868aaaa0ca911e
a0ff43a9099310e8acb4502dba897e296bd4dac7
refs/heads/master
2020-04-29T14:33:12.559035
2019-03-13T01:40:40
2019-03-13T01:40:40
176,199,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
import numpy as np from demo_GP.AGPR import A_GPR from demo_GP.func_ND import func_4D from sklearn.metrics import mean_squared_error import matplotlib.pyplot as plt import warnings warnings.filterwarnings('ignore') list_mse_gp_con = [] plt.figure(figsize=(10, 5)) for it in np.array(range(100, 520, 20)): mean_mse_g...
[ "myEmail@example.co945511761@qq.com" ]
myEmail@example.co945511761@qq.com
4b316f37ed5143b7f8cbd0ec9cc890ae593b4628
71f94b8f776c09575bea5ca5892b2c9edda528f1
/onehalfopt.py
67744718e8b7b71a478b90e1cab8680a18347fe1
[]
no_license
shonali-ks/comparing-algo-to-solve-tsp
0f65a5be85594f0f75cb9d80569a46c5e03136de
2acdefc8f1c316318580be15714a43bc90822bf4
refs/heads/master
2022-11-10T16:32:40.396854
2020-06-21T18:42:47
2020-06-21T18:42:47
273,932,983
0
0
null
null
null
null
UTF-8
Python
false
false
6,698
py
import time def distance(x1, y1, x2, y2): return ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** (1.0 / 2.0) def build_graph(points): graph = {} for u in range(len(points)): for v in range(len(points)): if u != v: if u not in graph: graph[u] = {} ...
[ "kshonalis72@gmail.com" ]
kshonalis72@gmail.com
1b37ba3f30c56922728f7e1eb4ddadc50030692d
8b79738d497d6d6c0af7ff0adb92521c87edb4ea
/app/logic.py
48f1b00e4f76574824f8d04aeaf5f9f11dc0b949
[]
no_license
DamienDaco/ping_exfiltrator
a96f745a164f2e8cdd3b9aa018335875bdcfd7b1
7f81fd1a3b687c72c03c994b580cb6a3683c34e1
refs/heads/master
2021-09-01T14:23:01.390341
2017-12-27T12:40:04
2017-12-27T12:40:04
115,187,903
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
from app.multithreading import * from app.network_functions import * class Logic: def __init__(self, string_ip, selected_interface): super().__init__() print("Logic has been initialized") self.threads = [] # List for storing multiple threads self.identities = 0 ...
[ "dacodamien@gmail.com" ]
dacodamien@gmail.com
e504ebb5f478fb423b42fd1cbe28748625513ef9
c93a0a6dedc8ebf100dd15eefc897457410e2d06
/opsweb/resources/migrations/0008_cmdbmodel_dev_team.py
334ca0cdc4e2e901f6fa80d9ece75cf34c848bee
[]
no_license
sungy2014/WS-OPS
efaab4ca8d3c56352c685508fe5b273daaedc2bb
7563e40c130d0791ccacb259f7a71a9f276ca6c6
refs/heads/master
2020-03-11T12:25:42.030148
2018-04-11T12:44:02
2018-04-11T12:44:02
129,997,121
1
0
null
2018-04-18T03:14:03
2018-04-18T03:14:03
null
UTF-8
Python
false
false
564
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-03-22 14:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auth', '0008_alter_user_username_max_length'), ('resources', '0007_cmdbmodel_ansible...
[ "root@172-17-134-23.(none)" ]
root@172-17-134-23.(none)
7eba8f570b7af1fd4e912d31ca096771effd2c08
99e0fef58ec7d3985f7471d0ab021333f8ea8c95
/output_head_tables.py
7eedb6ba85940104fdb796ed0260cc5c87a52a95
[]
no_license
deBroglieeeen/get_pair_noun_in_corpus_2
176d6d1ea69a0947dbf7fe991525aafaab5d1e50
5667598604158c18f096c731f59780c83f79f8f7
refs/heads/main
2023-02-24T17:05:16.111928
2021-01-30T07:53:51
2021-01-30T07:53:51
326,991,591
0
0
null
2021-01-18T02:15:26
2021-01-05T12:26:49
Python
UTF-8
Python
false
false
229
py
import pandas as pd import scipy as sp import scipy.stats # コンマ区切りのテキストデータを読み込む data = pd.read_csv("output/df_sample2.tsv", sep='/t') data.head(15).to_csv('output/head_alldata_sample.csv')
[ "u825246d@ecs.osaka-u.ac.jp" ]
u825246d@ecs.osaka-u.ac.jp
f37475a030cf20a958aac41d321e139d6706ce3b
4a6f33d0665e3ef44f55602a385d7c2aebe3e095
/tryexc.py
9f433dc07f0d97ba4595c605f3fea62e83e100fb
[]
no_license
iloveyouchaofan/Pylearn
25f426cae4b2b8c3ac366b684819afc305a2d5fc
a628d12bd991e8e71611ea09859e6c0cb0069076
refs/heads/master
2020-03-27T23:29:50.592165
2018-09-11T00:39:47
2018-09-11T00:39:47
147,322,226
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
#tryexc.py ''' 1、内置错误 官方文档,标准库第5节 2、错误处理 try except finaly 3、错误捕获 首先要预判可能出现的错误类型 解释器层面是如何实现的? 自定义错误类型呢? ''' try: if True: raise LALAEr #制造一个错误!LALAEr不存在! ''' 抛出错误的信息分两个部分: 1、错误类型:NameError 2、错误描述:name 'e' is not defined 合起来就是完整的错误信息: NameError: name 'e' is not defined 其实, 错误类型是一个类 ...
[ "42942140+iloveyouchaofan@users.noreply.github.com" ]
42942140+iloveyouchaofan@users.noreply.github.com
ce15a2c788b6fc97e976ebdd0a17dcdda74f20b8
67b440e37a6a613a9bb11f47fee1e0cf9531001b
/scripts/dict/amber_model_building_water.py
167d4436fd4089249adf54e759f433ac3b4eeb20
[ "WTFPL" ]
permissive
09alpha/amber-in-the-dark
96d8b93136ce749161b7c4ae2942e1feb95dd8c6
5183737ef71e87ebc9dd2d2ea729c928052310e7
refs/heads/master
2020-06-12T18:58:48.708114
2019-06-28T01:50:48
2019-06-28T01:50:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,729
py
#---- # Водоснабжение (коррекция величин): metadict_model['-Городское водоснабжение (литр)'] = { '-Городское водоснабжение (кубометр)':1 / 1000, } metadict_model['-Сельское водоснабжение (литр)'] = { '-Сельское водоснабжение (кубометр)':1 / 1000, } metadict_model['-Городское водоснабж...
[ "celestia@safe-mail.net" ]
celestia@safe-mail.net
51d68dfea5891cefb0d83811d3e1cff7af52b92b
f72ecf85bc1d6b4014af4b35f7677adb7c3a77f3
/venv/lib/python3.7/heapq.py
c1d7b074887df5b805bb3d55fea8740954088e10
[]
no_license
PropeReferio/covid19dashapp
cef5a803a26a00fc5a7adca57625d7f3de8710f8
aea672aca23e0d6782080c966b24da6d826e1f91
refs/heads/master
2022-07-14T23:09:21.063273
2020-11-01T18:46:14
2020-11-01T18:46:14
253,976,374
0
0
null
2022-06-22T01:41:02
2020-04-08T03:32:05
Python
UTF-8
Python
false
false
41
py
/home/bo/anaconda3/lib/python3.7/heapq.py
[ "lemuel.b.stevens@gmail.com" ]
lemuel.b.stevens@gmail.com
21afa786207c839e34c3139bc37d9fcc7d7a2a4f
bb568304a4633cd8edf54bbb0613c874d47e3bd8
/setup.py
52d1996435229bb1f3ce768df951769e1fb478db
[ "MIT" ]
permissive
disktnk/ingredient-data
2a4ee0a970014b42bee321bd6d321dbf152f861d
fce7713f1f108784987a2c975be549189cacec57
refs/heads/master
2020-04-02T13:19:54.761452
2018-11-05T08:49:22
2018-11-05T08:49:22
154,476,950
0
0
MIT
2018-11-05T08:49:23
2018-10-24T09:46:59
Python
UTF-8
Python
false
false
516
py
from setuptools import setup setup( name='ingredient-data', version='0.2.0', description='summarize ingredients tool', author='Daisuke Tanaka', author_email='duaipp@gmail.com', url='https://github.com/disktnk/ingredient-data', packages=['src'], entry_points={ 'console_scripts':...
[ "duaipp@gmail.com" ]
duaipp@gmail.com
3a185094a42bcacc0f527c074fb277b40c0e85e6
5be61a1c1dbb7de2bdb062dbcf7be80e6f843d68
/opsi/tests/util.py
ed8a143be7ce782ccfb94de292ff75c6ae7871ad
[ "MIT", "LicenseRef-scancode-proprietary-license", "CC-BY-4.0" ]
permissive
opensight-cv/opensight
02cab11bce3e34f43e7e1242b101413c3f8a6fa7
1e10d31f389aa7f1bc9d337d12cb846d71cf0cc4
refs/heads/dev
2023-06-09T08:34:20.853956
2020-07-19T20:27:56
2020-07-19T20:27:56
192,662,627
51
12
MIT
2023-06-05T19:31:59
2019-06-19T05:12:08
Python
UTF-8
Python
false
false
523
py
from unittest.mock import MagicMock, patch import pytest def create_program(): from opsi.lifespan.lifespan import Lifespan from opsi.manager.program import Program lifespan = MagicMock(spec_set=Lifespan) program = Program(lifespan) return program # If mock_fifolock is imported in a test.py, #...
[ "5725958+dzil123@users.noreply.github.com" ]
5725958+dzil123@users.noreply.github.com
f7931575c366e22a71c78e7146d1397848ab5a87
92bf9ddd7b92e7ed73fa6989164700b2be3657b8
/Project1/download/google-cloud-sdk/.install/.backup/lib/surface/config/configurations/describe.py
0b368769e222fe9b76407d71ace98df3c1c32661
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/8220-lab
bc991424557ff46f325d4611a84d02560ba5a6cb
3f0ca82028962e5b1c0f4a2c4a2390ce6603e11c
refs/heads/master
2022-11-19T22:31:54.741707
2018-01-07T16:56:47
2018-01-07T16:56:47
282,337,970
0
0
null
2020-07-25T00:01:24
2020-07-25T00:01:23
null
UTF-8
Python
false
false
2,295
py
# Copyright 2015 Google Inc. 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 applicable law or ag...
[ "yitianl@g.clemson.edu" ]
yitianl@g.clemson.edu
df27033b79e4ad322e71e624389975cca3530201
100f5373c752b32daabb7888afd9228b3e4c685c
/model.py
5d03a837a96c8d208162e9e5e2a6532d76164f72
[ "MIT" ]
permissive
ergeda/emoji2vec
5a283402f96e06778fc2fba687cc5c7246393c77
cc13a09558ea9d6509cf6fffa2a70780e467bec6
refs/heads/master
2021-09-05T06:02:15.689957
2018-01-24T15:58:26
2018-01-24T15:58:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
from gensim.models import * from util import * class EmojiModel(): def __init__(self): self.model = Word2Vec.load('data/word2vec.bin') def predict(self, pos, neg='', emoji=True): pos = pos.lower().strip().split() neg = neg.lower().strip().split() print('query + {} - {}'.format(...
[ "jiayao@microsoft.com" ]
jiayao@microsoft.com
638ec4e21de9ed2ea174b77788965d9b76e33280
ffa143afa82b028398854511dfb4afce54f7294c
/SOFTWARE BACKEND/backEnd.py
4a9297b58ad13e97960f49448e725907283a634f
[]
no_license
mmb186/FlaskApp
60f5e577baae3f9c209468fc0f273648c84f51b9
3973390e9f517371f7f6bdfd4ce3b59d9bf5eb28
refs/heads/master
2021-05-10T07:33:20.154261
2018-02-25T02:15:34
2018-02-25T02:15:34
118,839,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
from flask import Flask, render_template, session, request from flask_socketio import SocketIO, send, emit #importing SocketIO class and send function. app = Flask(__name__) app.config['SECRET_KEY'] = 'mysecret' socketio = SocketIO(app) #instantiating the socketIO with the app @app.route('/') def index(): return...
[ "mmb186@mun.ca" ]
mmb186@mun.ca
24c5484f67c0ebe9391bd91e453f7b27f8619284
01b7cc0017c81c99d1da1c37c6a5dcb0bf4af9a5
/python/PythonBinding.py
d2d8ed69c64c69724515739b1392ad016908ff42
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lsst-camera-dh/jh-ccs-utils
8c366c2cf3883944373a2aed02ee328c823a5cc7
4948df295311dff95d2b7d8e11f9ba392cd6b933
refs/heads/master
2022-03-09T09:37:31.640529
2022-01-17T03:27:47
2022-01-17T03:27:47
87,144,848
0
0
NOASSERTION
2022-01-17T03:27:48
2017-04-04T03:38:53
Python
UTF-8
Python
false
false
4,898
py
""" Socket connection interface to CCS Jython interpreter. """ import sys import time import re import socket import threading import uuid __all__ = ['CcsJythonInterpreter', 'CcsException', 'CcsExecutionResult'] class CcsExecutionResult: """Results class.""" def __init__(self, thread): self.thread = ...
[ "jchiang@slac.stanford.edu" ]
jchiang@slac.stanford.edu
fefc6b5b50f9d3cd14e87ba33e017f7615c0e42f
bd9dd79ee4fb392585a2597067eb29aeb9004cca
/main.py
e9ee06291b0d260bcf4ee00e1e5993a54661f871
[]
no_license
suhachakka/blogz
8a06c42d529f46c856c44c8dd29f59a070108711
85979524a98cbe44d8990f2b1de9adcda5953454
refs/heads/master
2020-04-01T15:27:57.343114
2018-10-25T05:36:11
2018-10-25T05:36:11
153,338,145
0
0
null
null
null
null
UTF-8
Python
false
false
6,193
py
from flask import Flask,request,redirect,render_template,session,flash from flask_sqlalchemy import SQLAlchemy from hashutils import make_pw_hash, check_pw_hash import cgi app = Flask(__name__) app.config['DEBUG'] =True app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://blogz:mynewpass@localhost:8889/blogz' app....
[ "suhasinichakka@gmail.com" ]
suhasinichakka@gmail.com
30e1d63614fa8d56d2ca697cb2da652ee3a00995
e836275adf8adca9b77acdd3d25bac157592a995
/dyconnmap/cluster/__init__.py
958f031b8568d142c88bb25e94a002ca0a8d42f5
[ "BSD-3-Clause" ]
permissive
makism/dyconnmap
3de6f482d1370bf25ec3813ddf576b675ed99d9e
cbef247e635d55cb1489ba1e429d9d472b501b56
refs/heads/master
2023-08-03T19:30:40.779333
2022-03-14T18:24:16
2022-03-14T18:24:16
98,643,787
67
25
BSD-3-Clause
2023-07-24T04:49:03
2017-07-28T11:37:17
Python
UTF-8
Python
false
false
485
py
# -*- coding: utf-8 -*- """ """ # Author: Avraam Marimpis <avraam.marimpis@gmail.com> from .ng import NeuralGas from .mng import MergeNeuralGas from .rng import RelationalNeuralGas from .gng import GrowingNeuralGas from .som import SOM from .umatrix import umatrix from .validity import ray_turi, davies_bouldin __a...
[ "makhsm@gmail.com" ]
makhsm@gmail.com
348f350bbc3a9e093133840b2fe0f9b2fc99a73a
b0785656f89cf86f26c3da081995e03ccb5606b7
/prueba/urls.py
0db1cb15dd2b5e8dd006f5cd065cfa06269a620f
[]
no_license
PosadaKaren/my-first-blog
52c5cd854e371b34cb9a0d59de7262b298691f52
2be88bde06d2b21f4d5b0e2bc18c50b11b63ddaa
refs/heads/master
2021-09-27T19:18:07.966578
2018-11-10T22:03:39
2018-11-10T22:03:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
"""prueba URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "k_ar20@hotmail.com" ]
k_ar20@hotmail.com
2acd30788872af9f27d55b0415a838e701839909
e770bd84f9312557bfefbb049298ce2255f81e1a
/1800/iq_test_328_a.py
446c897b179e7283f7432349a666f2a994d41323
[]
no_license
Robson75/codeforces
a507a708a3537997b1593a42aa9a4b72cd3a42e0
327e12f0e90997ff2a26ed0085d18c1a62d8437b
refs/heads/master
2023-04-16T08:01:19.283013
2021-04-28T18:10:37
2021-04-28T18:10:37
326,046,207
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
class IqTest: pass def test_arithmetic(in_list): arithmetic = True current_nr = in_list[0] dif = in_list[1] - in_list[0] for nr in in_list[1:]: if nr - current_nr != dif: arithmetic = False else: current_nr = nr if arithmetic: next = nr + dif ...
[ "rsamuelsson@gmail.com" ]
rsamuelsson@gmail.com
a7ed9ed34b3e399bc48545d6a5e62d093e6a43aa
421551e6ed321a2707d319719c58d4f2f4073fa3
/opencv/addalpha/addalpha.py
110779efb9f6b6feb000bfd832b1193d694bffff
[ "MIT" ]
permissive
masamichiyagi/tools
60e57aa5923d45dff5bd65c8d5437fd687739654
d94f64d8feb287306f2fdf0ba4c85a27b7f9f7a3
refs/heads/master
2023-06-22T03:23:15.178017
2023-06-12T09:44:40
2023-06-12T09:44:40
81,729,647
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
# -*- coding: utf-8 -*- import os, sys, glob, cv2 import argparse import numpy as np # If you use PIL, you can remove comment. #from PIL import Image #from PIL import ImageEnhance # If you use matplotlib, you can remove comment. #from matplotlib import pylab as plt ################################################# #...
[ "yagi.masamichi@jp.fujitsu.com" ]
yagi.masamichi@jp.fujitsu.com
580b18797f6bcd128bf024691e448bb0b188ad18
52b5773617a1b972a905de4d692540d26ff74926
/.history/fish1_20200805130243.py
e999797ad429e042ebb73a7054817607af8ed019
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
def fish(A,B): # we place fish moving downwards to a downstream stack # then when its not empty we'll check with the empty at A[i] # if it eats that fish we deduct it from the alive fish and del from A # otherwise we shall pop from the down stream stack downStream = [] j = 0 aliveFish = ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
c8674dd07f9728c2aa55b1d99426f1a32d7c625e
36651f57a513f029b9c502d05d082e680b4e6488
/Pwn/Resignation/solve.py
362b6408f65550ad3058f2a42511e7962dfcbd93
[]
no_license
harris2001/CCSC2021
358c93c4402fedaedea08282ce2abf1af5a2b9eb
62806fc1ab2cd1297dfb7beb7cab374a72cb71e2
refs/heads/main
2023-05-08T16:20:01.133310
2021-06-02T00:54:01
2021-06-02T00:54:01
372,963,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,730
py
import struct from pwn import * import binascii #r = remote("192.168.125.11",51337) #print(r.recv()) pad = "A" * 32 #RET = struct.pack("<Q",0x000000400129) RET = 0x000000400129 RSP = struct.pack("<Q",0x00000040012a) RIP = struct.pack("<Q",0x7fffffffe4f0) RIP = "\xc0\xe4\xff\xff\xff\x7f\x00\x00" #shellcode = binascii....
[ "hh1u20@southampton.ac.uk" ]
hh1u20@southampton.ac.uk
04a4bbabe90bf39c826389d176b96f78de0d2215
dc02490dc1cdb0c04dfeb7e091842658437e4877
/numpy-100.py
85bc081a51c29dfadfd75dc15aa4ed77b9f6984d
[ "MIT" ]
permissive
2sang/numpy-100
0550a5ea9369888e410b22826f40d901c80269c1
de87ca984ca88cbc1dafbfda016ce56c74f833bb
refs/heads/master
2020-03-26T06:08:09.002218
2018-08-14T13:40:51
2018-08-14T13:40:51
144,590,927
0
0
null
2018-08-13T14:26:52
2018-08-13T14:26:52
null
UTF-8
Python
false
false
2,984
py
# 1 import numpy as np # 2 print(np.__version__) np.show_config() # 3 z = np.zeros((10)) print(z, z.shape) # 4 f32 = np.array([1, 2, 3], dtype=np.float32) print("f32.size: {}".format(f32.size)) print("f32.itemsize: {}".format(f32.itemsize)) print("memory size of f32: {}".format(f32.size * f32.itemsize)) f64 = np.ar...
[ "sangsulee92@gmail.com" ]
sangsulee92@gmail.com
f375a3bde00bd757aff3ef6fd037f9616457b90b
027412adaa08159dfeccfc5bacba7821ca58c0d9
/api/models/user.py
b94b46263f8fa14e79b8aeaf0ed9442f5588e153
[]
no_license
turboazot/rest-ecommerce
34882c049c16ad738eed065dfb5507a149dde286
7860a5768d564525a6e99eb8987d7a4019ce4bce
refs/heads/master
2023-08-21T18:53:25.348036
2021-10-12T06:47:30
2021-10-12T06:47:30
398,105,735
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
from api.extensions import db from sqlalchemy.orm import relationship class User(db.Model): __tablename__ = 'users' query = db.default_session.query_property() id = db.Column('id', db.String(36), primary_key=True) username = db.Column('username', db.String(127), unique=True) def __repr__(self): ...
[ "zntu1995@gmail.com" ]
zntu1995@gmail.com
7c6e4979f03a52c72f37bcf4462ef7d231bdaff2
57ff9c6970684f38d68e491f56ee5f921ad82c8a
/entertainment/migrations/0001_initial.py
e68a38c56708010fea1132b4d3c02c5617b4e34e
[]
no_license
simonasbuj/projectRat
fa7513cd7dded4988b28c9e7de4808dc73d8554c
60249241ff88e7a9427d57e99f7f5f5694c27a0e
refs/heads/master
2022-12-21T00:35:59.606216
2019-01-07T19:53:56
2019-01-07T19:53:56
132,229,629
0
0
null
2022-12-08T02:08:20
2018-05-05T08:35:46
JavaScript
UTF-8
Python
false
false
1,162
py
# Generated by Django 2.0.5 on 2018-10-03 17:36 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Wish', fields=[ ...
[ "esbeecorpuration@gmail.com" ]
esbeecorpuration@gmail.com