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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c4ab902447233183571e97e6d274b9e8136d331 | 52aafee78631a0a404a3ad189b8f836f459ad862 | /django_src/setup.py | 11de0c185b980c57f520484737f1ef4d5f8db7fb | [
"BSD-3-Clause"
] | permissive | TriangleWaves/django_lims | 7c802bcdf552f53a1ab6bd489b2e2ba9ae15891a | 7a03add90abf8a0cc742a4319a7a6ff1d04fcdd7 | refs/heads/main | 2023-08-14T10:06:11.999152 | 2021-06-01T19:00:38 | 2021-06-01T19:00:38 | 351,540,032 | 0 | 1 | null | 2021-06-01T19:00:39 | 2021-03-25T18:39:36 | Python | UTF-8 | Python | false | false | 4,328 | py | from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES
import os
import sys
class osx_install_data(install_data):
# On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../
# which is wrong. Python 2... | [
"81380712+TriangleWaves@users.noreply.github.com"
] | 81380712+TriangleWaves@users.noreply.github.com |
effd21c6d2612ccff953a19a890cc50fdb359d64 | e4367f0779fff8b988e22779c64cf9b279943d81 | /F_biparty/gg.py | 58643861d43f0fac3b7718fa454b34739a409f2f | [] | no_license | exeex/final-exercise | 304d6bad1303734bc9449b777252087208728d01 | 2b2546e1ff5155288e1fec73958c9830652e454c | refs/heads/master | 2020-04-15T06:22:47.027662 | 2019-01-08T10:33:17 | 2019-01-08T10:33:17 | 164,458,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | import numpy as np
x0 =[
[1, 2],
[2, 1], ]
x1 = [
[4, 4],
[1, 2],
[2, 3],
[3, 4],
[4, 1], ]
x2 = [
[3, 3],
[1, 2],
[1, 3],
[2, 3], ]
def read_input(x):
a = np.zeros((20, 20))
max_nb = 0
for link in x:
max_nb = link[0] if link[0] > max_nb else max_nb
... | [
"noreply@github.com"
] | noreply@github.com |
d08ca6e1f8c977b0f0fea4949846772e878a0a0b | 6117e1761a67095b542c1c59fe4dd98217f7c7ae | /cocovis_custom.py | 01abcb06b6cf8deddfa54fbb72bfb78f26de6dc8 | [] | no_license | keatingr/solo | 73bdb5fa8dc0c08300d419d45a5a365b63d27753 | fac1ee486e747c27e588c7cfc6355479b30621de | refs/heads/master | 2022-04-09T00:01:35.258984 | 2020-03-18T03:56:52 | 2020-03-18T03:56:52 | 245,478,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | """
Visualize an image and its coco annotated segmentation map
"""
from pycocotools.coco import COCO
import numpy as np
import skimage.io as io
import matplotlib.pyplot as plt
import pylab
pylab.rcParams['figure.figsize'] = (8.0, 10.0)
#%%
annFile='./solo.json'
#%%
# initialize COCO api for instance annotations
co... | [
"mark_noreply@noreply.com"
] | mark_noreply@noreply.com |
c51093ec5b4ed90b3cea19845b329fe5d2142562 | 8b760b7cf705dfb24b59cfe9078766764eefcf9e | /QGIS/1_Prep_VHR.py | c6a7c33ae194e5d092db37e0e80351b9624c969f | [] | no_license | diptanshu-singh/sample | 641e538cc2024d6b90e0f5f723fc9aba17ab2ba3 | 99ba83c1bcaf339a7b26cc9d2d249de5fd0e61f3 | refs/heads/master | 2020-04-01T16:51:33.171051 | 2016-10-17T17:28:35 | 2016-10-17T17:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,888 | py | ##RapidEye_Tile=vector
##Threshold=number .4
##Landcover_Map=raster
##Change_Map=raster
##Strata_Values=string 3;4;5
##No_Data_Values=string 0;255
##Output=output vector
from osgeo import ogr, osr
import numpy as np
import gdal
import os
#import sys
from qgis.core import *
from qgis.utils import iface
from PyQt4.QtCor... | [
"bullocke@bu.edu"
] | bullocke@bu.edu |
50f6e323bd840efde3d19e36d3ba0a7754aeba61 | e81b0ee5e5fda8d811dbb17a80c6c19754490e08 | /claim_extractor/extractors/legacy/channel4.py | f7c2950bc3b2734d946c69265fd0340468317bf7 | [] | no_license | claimskg/claimskg-extractor | dd8c2b00f11cc2a7469f8a9c82c665bd8b836433 | 523e9aa44b37832203a432b548ba682563ee1237 | refs/heads/master | 2022-09-24T12:52:25.507320 | 2022-02-22T10:02:01 | 2022-02-22T10:02:01 | 147,321,353 | 18 | 11 | null | 2022-02-21T16:03:08 | 2018-09-04T09:28:00 | Jupyter Notebook | UTF-8 | Python | false | false | 4,426 | py | # -*- coding: utf-8 -*-
import datetime
import pandas as pd
import requests
from bs4 import BeautifulSoup
from dateparser.search import search_dates
from claim_extractor import Claim
def get_all_claims(criteria):
headers = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.... | [
"twk.theainur@gmail.com"
] | twk.theainur@gmail.com |
d812e31d2169e0df7cd04a3858f33a5a9ca23207 | 1a40b3c993fac119cc369d4a21595c9627f79454 | /HomeCooksGalore/HCG/migrations/0004_auto_20170515_1324.py | f68fb7fc979b55d1f033395df1667c8c3c054659 | [] | no_license | tusharsircar95/HomeCooksGalore | 8a859954c07da38f8800afb4e6703bc756187491 | 8eb6d0bb0fc4037ef55ad3f60f8c53d0833eb7b2 | refs/heads/master | 2021-03-16T06:40:42.875246 | 2017-07-26T04:02:40 | 2017-07-26T04:02:40 | 91,578,388 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-15 07:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HCG', '0003_dish_dishcoverimage'),
]
operations = [
migration... | [
"noreply@github.com"
] | noreply@github.com |
d423f34e8c373ec11fdfd0833b33d93abcd4b663 | 36ec27c8cc7e18718655596306311bca344c8963 | /corona_start.py | a8e7f27431f3ecf8ad8d9c8c2c7e57ba4b60e7fe | [] | no_license | maxuw/covid_stats | 04aabf8c0306f81ecdedc8a588aeb2bfbfac663f | 6366ce63068e3243b95d55d4ea26d481bd96b728 | refs/heads/master | 2022-12-03T03:06:30.461105 | 2020-08-23T09:05:56 | 2020-08-23T09:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | #- importing libraries
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
#- function index dates
def convert_dates_to_python(df):
new_index = []
new_index[0:4] = df.index[0:4]
new_index[4:] = pd.to_datetime(df.index[4:])
new_index[4:] = [x.date() for x in new_index[4:]]
#prin... | [
"m.jackl@student.uw.edu.pl"
] | m.jackl@student.uw.edu.pl |
af6f8fa01e3dd3c3a068bcce200fc48515571e7f | c237d854f2fc78a7583f2bf0528355c8b14912f8 | /tests/test_example.py | 099b0812c779fffcc65bb463803178d1b6192432 | [
"MIT"
] | permissive | azridev/flask-dashboard-shards | da072e7406e9be3b85f31a9dff6167a0d87a7496 | c6833e6d55c7dd065b4c6e9b677288e9fe9aa344 | refs/heads/master | 2021-05-19T09:08:00.079436 | 2020-03-26T19:04:00 | 2020-03-26T19:04:00 | 251,620,836 | 0 | 1 | MIT | 2020-03-31T14:04:41 | 2020-03-31T14:04:40 | null | UTF-8 | Python | false | false | 584 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from tests.test_base import check_pages, check_blueprints
@check_pages('/', '/home/index')
def test_pages(base_client):
# do something
base_client.post('/', data={})
# the pages are tested (GET request: 200) afterwards ... | [
"developer@rosoftware.ro"
] | developer@rosoftware.ro |
dd0fcfed1ffc0216514293aa41a3b1f80f7c5803 | 2ad082cf86270413127b2d248a597b3c2dde9f1c | /magnum/tests/unit/conductor/handlers/test_conductor_listener.py | 316facbe72084da6827e6b8b1b46b62d0d29b092 | [
"Apache-2.0"
] | permissive | Tennyson53/magnum | 91fdeff8e2bf86b02900d91d25a169cc79c68294 | 13ba9607568423df1a213ae04b0cb5b9b524d0b1 | refs/heads/master | 2020-04-08T12:29:25.296217 | 2015-10-19T06:00:00 | 2015-10-19T06:00:00 | 42,226,196 | 3 | 1 | null | 2015-09-10T06:18:52 | 2015-09-10T06:18:51 | null | UTF-8 | Python | false | false | 888 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"hongbin034@gmail.com"
] | hongbin034@gmail.com |
c19fa02dd797506fc8a85b9bbe6cc97be5b3be45 | 1632a494eda04f2afc20fe3788453a073765f7a0 | /websocket_io/views/index.py | 4214b1ceaec74a3a3c21725b2cae35b6c55a3dd3 | [] | no_license | KevinWMatthews/python-flask-websocket_io | cb54ed3ff158f9b92f1f86aa76288760921c485d | ce80e12bf13a07155147b5134ec91973f1b0a6d8 | refs/heads/master | 2021-01-11T16:16:45.841982 | 2017-01-25T20:06:40 | 2017-01-25T20:06:40 | 80,052,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from flask import render_template, Blueprint, abort
from jinja2 import TemplateNotFound
from websocket_io import app
default_view = Blueprint('index', __name__)
@app.route('/', defaults = {'page': 'index'})
@app.route('/<page>')
def show(page):
try:
return render_template('%s.html' % page)
except Temp... | [
"kmatthews@cyberdata.net"
] | kmatthews@cyberdata.net |
2b1842fadbcf04dd669b39ebe389b4d3dea0bc55 | 16c0ba8c04f52790828e7b3640fe10ffc498baf1 | /django/django_projects/app00/better/forms.py | 983e8d54730a18ccb13d574c05a58cb25feab91a | [] | no_license | JulienPoncelet/Web_1-Framework_1 | 73b29121f42107b417f7be69e399a63f7dd38fd9 | b18fdc95cfcd499bfbe7d1424edbfdbd138d03be | refs/heads/master | 2021-01-18T09:49:12.273756 | 2014-04-20T16:18:41 | 2014-04-20T16:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django import forms
from django.forms import PasswordInput
class UserForm(forms.Form):
Login = forms.CharField(max_length = 16, required = True)
Password = forms.CharField(max_length = 16, required = True, widget = PasswordInput())
Password_bis = forms.CharField(max_length = 16, required = True, widget = Passw... | [
"jponcele@e2r7p3.42.fr"
] | jponcele@e2r7p3.42.fr |
ce7f68d218a1e0618b8c64c647d2630b922988ab | 5d5b20d80109b300df88e2fd4ee8954e05e275ce | /middleware/common/name.py | 63e0da6e2fb3cecb2d36077a8afdf89a574cc68a | [] | no_license | jiaweit2/msa-middleware | f7e247f8fe1a4e33fd0d1adfbd964a3cd79f2546 | fc5e6592fad723cae61bd551a01b23ff367277f9 | refs/heads/main | 2023-04-12T22:04:08.955585 | 2021-04-22T20:48:24 | 2021-04-22T20:48:24 | 319,446,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | # -*- coding: utf-8 -*-
"""Module describing name
"""
import time
import pickle
class Name(object):
def __init__(self, name):
if name and name[0] != '/':
name = '/'+name
while '//' in name:
name = name.replace('//', '/')
self.name_... | [
"jiaweit2@illinois.edu"
] | jiaweit2@illinois.edu |
4825299ada1c314576b5b7d6ef81e6e9a85796e6 | 14c8434f6a4f09b84bc7dae3b6b225e7e13b156d | /app/errors.py | abd12d1d19f7af2be57ad88f68ab3f628692e411 | [] | no_license | mingming2513953126/flack | 07299d5cc62aa4ced0734f2b00db587a24261d69 | dbc793c0908629ae7fee87250f2e0f4456e76f33 | refs/heads/master | 2021-05-10T09:11:24.354831 | 2018-01-25T13:38:02 | 2018-01-25T13:38:02 | 118,917,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # encoding: utf-8
'''
@author: lileilei
@file: errors.py
@time: 2017/5/22 20:50
'''
from flask import render_template,jsonify,request
| [
"2513953126@qq.com"
] | 2513953126@qq.com |
26c50f94fd6c3db1508baaa22dd11fc7e43d5d8a | 4c61e3bdc99c32d540151af51da1bee71d6ee524 | /Code/Extra_Practice/anagram_checker_practice.py | 0f75cd7ea43bbadc4cec2af1e5ba7530ce070330 | [] | no_license | AnniePawl/Data-Structures-Intro | 0a02dabacddeaafddf6bf17fb86cf450e2bed923 | d6ce172c9d3e530293d691ca7d887cd6b1dc5b0a | refs/heads/master | 2020-08-23T17:15:17.163050 | 2019-10-30T21:28:53 | 2019-10-30T21:28:53 | 216,670,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # ANAGRAM CHECKER
import sys
def anagram_checker(input1, input2):
"""Checks if two commandline argument are anagrams"""
sorted_input1 = sorted(input1)
sorted_input2 = sorted(input2)
if sorted_input1 == sorted_input2:
return True
return False
if __name__ == '__main__':
input1 = sys.... | [
"annampawl@gmail.com"
] | annampawl@gmail.com |
88fa931dfa536fba871aeb84907237c5763eedfe | dcb46d745386fed52d4b7eaff142cbe8fdff4ab3 | /Day 06/customsprocessorp2.py | dce1f940c0e4b6da1c0c63150d7de05fce0002f3 | [] | no_license | kdedwards/2020-Advent | f8baa35e505e27056319c1fed5b5cd5d2fa492e2 | ab7c9e47f08a6073b05f16e3f8d52259d951b00c | refs/heads/master | 2023-02-11T09:49:03.890841 | 2021-01-05T03:35:48 | 2021-01-05T03:35:48 | 319,322,576 | 0 | 0 | null | 2020-12-31T07:18:00 | 2020-12-07T13:06:01 | Python | UTF-8 | Python | false | false | 1,077 | py | with open("customsanswers.dat") as customsData:
customsAnswersRaw = customsData.readlines()
answerGroups = []
thisAnswerGroup = []
for line in customsAnswersRaw:
if(line == '\n'):
answerGroups.append(thisAnswerGroup)
thisAnswerGroup = []
else:
thisAnswerGroup.extend(line.replace('\... | [
"kdedwards@gmail.com"
] | kdedwards@gmail.com |
44efa30e73995fd142bc76d65381f4b6e594a08c | c24294dcb5b3a58f6871c08793601758529d0fb9 | /instruments/old_python/old/generator_loading_edits.py | 8b88e426e629cd8ed1d86f60ba99a1a8044c3c23 | [] | no_license | murchlab/analyzer | ac8ece35b42be92caef34f7b8ea3a3c26980c537 | 9971d1d88a65025907963518b3f4a969a443e26a | refs/heads/master | 2022-02-02T08:18:59.208359 | 2022-01-20T17:56:35 | 2022-01-20T17:56:35 | 238,325,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,306 | py | import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import time
import tewx
SAMPLE_RATE = 1E9 # Gig samples/sec
class Pulse:
'''
DESCRIPTION: an object to contain all pulse parameters.
If using SSM, self.ssm_bool= True
Parameters for Non-Hermitian qubit
... | [
"55456910+xingrui-song@users.noreply.github.com"
] | 55456910+xingrui-song@users.noreply.github.com |
687f83de97a7d8de22247e2874d8e2f141b5d0e0 | 6bf8dd42f5ae15c65c6aec8900acfa665fa71568 | /src/main/python/views/time_series_integration_view.py | 0c7604c107caee0e02748b93ec64e3cc182806f8 | [] | no_license | craigdickinson/DataLab | e76cd70521acedba1c8d8174d94b82236fa5fd57 | 78cae181f85a3cd2b6b6c1f1a57f62bbe5fbbda4 | refs/heads/master | 2022-12-14T04:11:57.866884 | 2020-02-07T21:08:37 | 2020-02-07T21:08:37 | 216,533,209 | 1 | 0 | null | 2022-11-22T04:20:18 | 2019-10-21T09:47:13 | Python | UTF-8 | Python | false | false | 19,899 | py | """Acceleration and angular rate conversion to displacement and angle setup tab and edit dialog."""
__author__ = "Craig Dickinson"
import logging
import sys
from PyQt5 import QtWidgets
from core.control import Control
from core.logger_properties import LoggerProperties
class TimeSeriesIntegrationSetupTab(QtWidget... | [
"craig.dickinson@2hoffshore.com"
] | craig.dickinson@2hoffshore.com |
35d99c94d8fbf0df2eb3e6cc2c0ef0d44c95e3dd | 6b3e8b4291c67195ad51e356ba46602a15d5fe38 | /test_v2/core/test_config.py | 311cc073a68e5459dfd6c8c248fdf2f4f5fda633 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | csaybar/raster-vision | 4f5bb1125d4fb3ae5c455db603d8fb749221dd74 | 617ca15f64e3b8a391432306a743f7d0dfff352f | refs/heads/master | 2021-02-26T19:02:53.752971 | 2020-02-27T17:25:31 | 2020-02-27T17:25:31 | 245,547,406 | 2 | 1 | NOASSERTION | 2020-03-07T01:24:09 | 2020-03-07T01:24:08 | null | UTF-8 | Python | false | false | 3,493 | py | from typing import List
import unittest
import copy
from pydantic.error_wrappers import ValidationError
from rastervision2.pipeline.config import (Config, register_config, build_config,
upgrade_config, Upgrader)
class AConfig(Config):
x: str = 'x'
@register_config('a... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
ce4380b5ead7baf3ced8900e300b1b950166c35e | d240c2790443f45de041ae25446997c5b84bae74 | /ppdai/ppdai_train_mlc.py | 023d8a612a2ffa91bb3875b8b9c61f2a89c090ad | [] | no_license | MingYates/QMATCH | 336ac89848830765ae05988e0aaed112d3951595 | 76b520ebbfce2b0c04a991480dfbb98025b9dbb4 | refs/heads/master | 2020-03-27T15:49:26.199647 | 2018-08-30T12:47:55 | 2018-08-30T12:47:55 | 146,741,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | # -*- coding: utf-8 -*-
import numpy as np
import pickle
from ppdai_utils import *
# read train pair
data = []
import csv
trainfile = '/files/faust/COMPETITION/ppdai/train.csv'
with open(trainfile) as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
data.append((row['q1'], row['q2'], row['l... | [
"mingyates@163.com"
] | mingyates@163.com |
d992dc6e406ab8fbad3aebc90fc1b8a3592c3027 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /sdk/servicebus/azure-servicebus/examples/async_examples/example_queue_send_receive_batch_async.py | 2ae76d4e5a94a9d9b0c3c20ade55f474df3daa07 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,914 | py | # ------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------------------------------------------------------------------------
import asyn... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
cf64ede3ff33b6e4776e5e0b349c1111dd97ae1f | cb2ac8ecab578c52024b23934db7426299485a15 | /lostnotice/migrations/0001_initial.py | f81740a30623096a14a653d34eb796a7669cc253 | [] | no_license | spfrank01/lostNoticeApp | 2d074aee2f9fba9dfa02fef7a1e863c868ae4f1e | 04ac9da320196ac7397d907defaab172a5d64fd4 | refs/heads/master | 2019-04-09T04:34:32.359374 | 2017-07-10T17:23:48 | 2017-07-10T17:23:48 | 89,140,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-27 15:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FindOwne... | [
"s5801012630149@email.kmutnb.ac.th"
] | s5801012630149@email.kmutnb.ac.th |
ec3a12aecc415b369b93adf89cec1892773eea61 | d592fe644a7b8f4903db8396778f5044d04b455d | /localllibrary/localllibrary/urls.py | cf1615061242f2c4e68bf2285d638d0b658922b4 | [] | no_license | asisgtm/django_projects | 5dfeee16403596b519fe0ed2e7f34c4ed78f83a8 | a5c25444f168c127bfe78959f5d90d4b50109511 | refs/heads/master | 2022-11-13T01:39:55.608196 | 2020-07-14T06:00:47 | 2020-07-14T06:00:47 | 276,322,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | """localllibrary URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"mayakomantra@gmail.com"
] | mayakomantra@gmail.com |
672af7c8425274fa8e16002a8c1fe86797d349c2 | fa9d6939abdf7f37f344f2db897f1398f34def72 | /app/app/urls.py | e9f1bdcfca0fd171d83d1163d9477352bc65ac10 | [] | no_license | ManuelVict/pruebaBmovilHosptital | 2fc903b7e6f8de35bae49b9b32f042cbf60e2176 | 2bba55f6e6b3c7610e300fcc039fc2c63f00e1a7 | refs/heads/main | 2023-06-03T06:35:16.869945 | 2021-06-20T21:17:57 | 2021-06-20T21:17:57 | 378,738,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | """app 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-b... | [
"manuelvictmont@gmail.com"
] | manuelvictmont@gmail.com |
ffbb2b82498d42910dd39e8bd061fbd2996a4e5f | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/mgglez/lesson02/codingbat_exercises_not_graded/codingbat_list1.py | e258d0f76bf0c604cb1e98fa2b80ae820ff4594d | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 1,465 | py | # ---------------------------------------------------------------------------- #
# Title: Lesson 2
# Description: Python Push-ups Part 2 - Coding Bat List-1
# ChangeLog (Who,When,What):
# Mercedes Gonzalez Gonzalez,01-01-2021, Activity 2.1 - Python Push-ups Part 2
# -----------------------------------------------------... | [
"mgglez@uw.edu"
] | mgglez@uw.edu |
7eda5a97fad289072f82478d7329261d232f6497 | d7587eab1e2ca838daad1ce1c8c58ed1ce9dd529 | /parse_database/viewparser.py | a85579fa62e6d0e505f9e88765d1d35c3751bf82 | [] | no_license | rcarbal/Log-Analysis | 6cce51464bba8cb76558f765790472a3a18ece5a | 8bacebbda009e79247f7ab19e1f3658d525aa3d6 | refs/heads/master | 2020-05-24T19:24:08.359852 | 2019-06-08T22:05:52 | 2019-06-08T22:05:52 | 187,433,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | class View:
def print_parsed_data(self, data):
print(data)
def start_log_analisys(self):
print("\nStarting Log Analysis\n")
def finish_log_analisys(self):
print("Log Anaysis_Ended")
def print_top_articles(self, pop_articles):
print("\nThe most popular articles off all... | [
"rcarbaleq2@gmail.com"
] | rcarbaleq2@gmail.com |
c902fa836f00dd2580c13082a26b279fe7eea3ac | e50a4781388ef7682a935986f2abae6fa85f879a | /MM2021/com-train/solution_ours/reno/run_all.py | 65fb1cffb7df772890b0ff1896c1de4bea648027 | [] | no_license | wojxhr/CG-trans-optimization | 2912156320db958e8aa6f797619acf59931be231 | 2b476b1291b972d22ec8e825eae21cbf4a597653 | refs/heads/master | 2023-08-24T23:05:31.526477 | 2021-10-22T03:01:29 | 2021-10-22T03:01:29 | 419,938,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | from simple_emulator import SimpleEmulator, create_emulator
# We provided some function of plotting to make you analyze result easily in utils.py
from simple_emulator import analyze_emulator, plot_rate
from simple_emulator import constant
from simple_emulator import cal_qoe
import os
import importlib
import random
def... | [
"391777866@qq.com"
] | 391777866@qq.com |
17462dd260e51ea711a24764afea07d4cfa5ac9d | 73dfbad8620dd50a7cf6929ab5d46533972e63e0 | /cern_pymad_io_tfs.py | 4fe226c4f2d32d21e5f5cde49f255220e80076eb | [] | no_license | TMsangohan/TimberExtraction | 4aa8f99c8d800ba4d50561ba748071e9c14af447 | e3c9319058133be4d57e3b622bbe571ab74ee7cf | refs/heads/master | 2020-12-24T20:52:29.108554 | 2016-06-06T15:55:27 | 2016-06-06T15:55:27 | 59,478,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | import numpy
import os
from cern_pymad_domain_tfs import TfsTable, TfsSummary
import collections
def tfs(inputfile):
table,params=tfsDict(inputfile)
return TfsTable(table), TfsSummary(params)
def tfsDict(inputfile):
'''
.. py:function:: tfsDict(inputfile)
Read a tfs table and returns table/su... | [
"tomtommertens2@gmail.com"
] | tomtommertens2@gmail.com |
675f1e36ac0bfd64eeaaf88e02f30302b153caa7 | f090176c40a451bb7fd1ff1b74b2201d4fd1674e | /Lab2_Section_Body_Rotation/venv/Scripts/rst2html.py | 0f553ff15595435d5f142e86292bbd0afc65cb77 | [] | no_license | Zhavoronkova-Alina/CS_Labs_SPBPU_2019 | da9078a4817cfc1148d1b2187e01866f42c3322d | 22c16785f7fbd493a1a3ebd7671b34a4e3f4692c | refs/heads/master | 2022-04-09T19:08:03.297712 | 2020-03-13T22:20:51 | 2020-03-13T22:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!D:\alina\Documents\GitHub\CS_Labs_SPBPU_2019\Lab2_Section_Body_Rotation\venv\Scripts\python.exe
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, produc... | [
"alina010299@mail.ru"
] | alina010299@mail.ru |
827a73252485f27fc102934828a12fce3417fcd8 | 3007aa870cf7d61b97a2e473a0b0f0288acffdbc | /src/backend/tests/test_auth.py | b57bf25407158ca8fe989eaf08b25485f58dba07 | [] | no_license | svetazol/online-store | b2e26c86c7c9b649c921fec167e2887fb15736cf | 6f9d55e2c4268e1d64687ac4b54b7cdf1d1557ff | refs/heads/master | 2023-04-27T00:30:11.159047 | 2021-05-29T13:20:38 | 2021-05-29T13:20:38 | 338,033,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from aiohttp.test_utils import TestClient as _TestClient
async def test_signup_view(database, client: _TestClient):
valid_form = {
'login': 'Joe',
'password': '123',
'confirmed_password': '123'
}
resp = await client.post('/signup', data=valid_form)
assert resp.status == 200
... | [
"s_zolotorevich@wargaming.net"
] | s_zolotorevich@wargaming.net |
52558978759df376076b22883319d8630be32cd7 | 0daacf3275ec3a3af6f6a93cc17694ee2d869c0e | /day_6_part_2/day_6_part_2.py | 95ef1c93e0f5ca773cb95663da077f7c3203c31f | [] | no_license | garethellis0/Advent-Of-Code | 9cb2cc1db71d30278010cb26a7fd79842b85d82a | 125729362c0207ec4ec39a98bb9d68837b5ff517 | refs/heads/master | 2020-12-25T15:09:09.612053 | 2016-06-12T21:45:58 | 2016-06-12T21:45:58 | 60,990,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | class Instruction:
def __init__(self, command, x1, y1, x2, y2):
self.command = command
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
def toggle_light_state(lights, x, y):
# Toggles the light state of a light at a given coordinate
lights[x][y] += 2
return l... | [
"gareth.ellis0@gmail.com"
] | gareth.ellis0@gmail.com |
460b37b52c5f3a1e2be60fa83d12adf3397830e8 | f3609fab850acec9926588f212f175c52efab9e9 | /cubeapp/migrations/0003_realobject_description.py | 12c532fec9988088496d8fb8dd94369f1355bbfa | [] | no_license | adamchainz/cubeapp | ced6d3e92e7eb3284343684c8daf4ad6672acd99 | 6790f66b64a90924c96189b0f618767592bdfa30 | refs/heads/master | 2023-07-07T14:43:50.140164 | 2018-10-22T07:26:14 | 2018-10-22T07:26:14 | 158,301,814 | 0 | 0 | null | 2018-11-19T23:09:33 | 2018-11-19T23:09:32 | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 2.1.2 on 2018-10-15 07:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cubeapp', '0002_auto_20181014_1933'),
]
operations = [
migrations.AddField(
model_name='realobject',
name='descripti... | [
"adamurban98@gmail.com"
] | adamurban98@gmail.com |
42c5306ecf2da84b440acd121e8c105de69c03a1 | 5543e3958dcd258e1409333fd5ca62f53ebb9238 | /python_challenges/reverse_string.py | 19f7e24c0dd5a2a59a977b9b9e0a54cb0fb62f4e | [
"MIT"
] | permissive | bruckhaus/challenges | 3c1bb61673bbaf3882b98413f873cfa0f5831572 | c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f | refs/heads/master | 2021-05-24T04:03:21.813428 | 2020-11-28T09:29:39 | 2020-11-28T09:29:39 | 20,837,063 | 3 | 2 | MIT | 2020-11-28T09:29:40 | 2014-06-14T17:01:57 | Java | UTF-8 | Python | false | false | 253 | py | __author__ = 'tilmannbruckhaus'
def reverse_string(input_string):
output = input_string[::-1]
return output
if __name__ == '__main__':
s = 'This is my TEST String!'
print "The reverse of string [", s, "] is [", reverse_string(s), "]"
| [
"Tilmann.Bruckhaus@gmail.com"
] | Tilmann.Bruckhaus@gmail.com |
3f6fcd229481fd294d13fb14d270eb7d6b8ed24d | d39fc7d274d7ee32984bfc66215767ab9d45e540 | /PyBank/main.py | 837ae834c6e15ac2f10e939202e14fbf36e29ef9 | [] | no_license | rayraysheng/python-challenge | 72f679abc18646f900d7f54fd9625b9aa8bfc63c | 1f7973c59ba6b65ab8468d9947ffa7576a6e70f5 | refs/heads/master | 2021-08-22T05:49:11.778081 | 2017-11-29T11:57:05 | 2017-11-29T11:57:05 | 111,487,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | import os
import csv
# I've set up an input_files folder and an output_files folder
# The input_files folder will hold the input .csv files
# The program will create a summary with each input file
# The summary .txt files will be written to the output_files folder
# Work on each file in the input_files folder
for fil... | [
"shengyumeng@gmail.com"
] | shengyumeng@gmail.com |
ea008a111eb96f82d895e7a7759d586f208564d1 | cfdd6d24f7139d057d13afe32f1dc1de64b33c3f | /src/pyglow/hwm.py | e22259c414fd80d93573e3a9615abd94fc3376fd | [
"MIT"
] | permissive | timduly4/pyglow | cec15d7afe7f90dc5f2f019626f63622da4c3de0 | 1988757f3b6a4bd5ed98266a3fb1dc64f2513fc5 | refs/heads/master | 2023-05-10T19:02:52.777677 | 2023-05-02T19:07:51 | 2023-05-02T19:07:51 | 12,006,247 | 105 | 60 | MIT | 2023-05-02T19:09:55 | 2013-08-09T17:06:55 | Fortran | UTF-8 | Python | false | false | 5,426 | py | import os
import numpy as np
from .constants import DIR_FILE, nan
from hwm93py import gws5 as hwm93
from hwm07py import hwmqt as hwm07
from hwm14py import hwm14
class HWM(object):
def __init__(self):
""" Constructor for HWM representation """
self.u = nan
self.v = nan
self.hwm_v... | [
"noreply@github.com"
] | noreply@github.com |
178d236b16edb59773f2d956483fddf3e8aea02a | 08b97fb36469978c7fe8042f37d77add1503a4bf | /bin/ipython3 | 5e70a0f960220ac17440af5655a3e51b24b6f38f | [] | no_license | paulo123araujo/analise-dados-enem-2018 | 8f4ca2337ef2d4adcf4af9aead86e15a72727d66 | f9a7e69f393270bfcc62fd45bd4ef474689734cd | refs/heads/master | 2022-10-31T08:37:02.317217 | 2020-06-20T01:34:51 | 2020-06-20T01:34:51 | 273,607,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/home/paulo/Desktop/data-science/analise-dados-enem-2018/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"paulofelipe_jau7654@hotmail.com"
] | paulofelipe_jau7654@hotmail.com | |
1914279c444a4989c7875067c4cd3578efa327a8 | 2af7c00dc2c5cea5de7b84d3f171377b4fdf736f | /python/filip/filip.py | 61aa69edb66b737e96a71c84c658746ab8c2e1f2 | [] | no_license | theteamaker/kattis | cdd7af11210aa4969a79cd1b04a94b66a396e9bd | 23af278618df6ab538a6df66268d0a2925b0e01b | refs/heads/master | 2020-12-18T18:07:59.611355 | 2020-12-07T02:22:27 | 2020-12-07T02:22:27 | 235,479,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import sys
inputList = []
compareList = []
while len(inputList) < 1:
for i in sys.stdin:
inputList = i.split(" ")
inputList = [s.rstrip() for s in inputList]
break
def numReverser(ogNumber):
listOfNumbers = []
for i in range(len(ogNumber)):
listOfNumbers.append(ogNumber[i]... | [
"kingwashboard@gmail.com"
] | kingwashboard@gmail.com |
39f6bbe448e0b702e4d457126f98b9c0d32f2f15 | 0ca1701a601c88bc9ff8fc3a70f814364ab8d7e3 | /python_workflow/python/client/tests/test_filter.py | bfbcebbbd4b43dce22d1ccfd9ecb11d087474ef6 | [] | no_license | lmichel/vodml-lite-mapping | fb56c6877c7bff1894c3e8d8add9a2357b33cb35 | 90cbfa6ece8d96b32c43351b4e3609e337a98ec0 | refs/heads/master | 2021-07-08T20:49:51.788080 | 2020-07-15T09:51:03 | 2020-07-15T09:51:03 | 155,096,857 | 0 | 1 | null | 2020-07-15T09:24:18 | 2018-10-28T17:28:38 | Python | UTF-8 | Python | false | false | 1,438 | py | '''
Created on 22 juin 2020
@author: laurentmichel
'''
import unittest
import os
import json
from client.translator.json_mapping_builder import JsonMappingBuilder
from client.translator.instance_from_votable import InstanceFromVotable
from client.tests import logger
from utils.dict_utils import DictUtils
class TestIn... | [
"laurent.michel@astro.unistra.fr"
] | laurent.michel@astro.unistra.fr |
f2746e2381a95d740cf3cd4036e8a08a7bb02ad3 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/aldryn/django-simple-sso/simple_sso/sso_server/server.py | aa568278cfa75a6e2015dc8bf8be3712ae4e86da | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 6,308 | py | # -*- coding: utf-8 -*-
import urlparse
from django.conf.urls import patterns, url
from django.contrib import admin
from django.contrib.admin.options import ModelAdmin
from django.core.urlresolvers import reverse
from django.http import (HttpResponseForbidden, HttpResponseBadRequest, HttpResponseRedirect, QueryDict)
fr... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
9b8431d7737cacffa0ed1d8e3cddda206887f45a | a730c7082485faa77aacd7d65f667b03d9cae2b1 | /migrations/versions/820433883d5d_.py | 63dd84bbea0c6e1d0253706f49f0bc62b24e0dc5 | [] | no_license | perwagner/pwn_gameoflife | 852332bc5c8bc383056b56442be0f8c0ec5e82de | 2176865fa38d4cde5bb1002d1dd28c60712e08bc | refs/heads/master | 2022-10-03T09:19:36.646410 | 2020-10-10T07:36:51 | 2020-10-10T07:36:51 | 216,119,425 | 0 | 0 | null | 2022-09-16T18:11:12 | 2019-10-18T23:04:55 | Python | UTF-8 | Python | false | false | 671 | py | """empty message
Revision ID: 820433883d5d
Revises: 2ec3f4bbf368
Create Date: 2019-10-20 11:02:30.558409
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '820433883d5d'
down_revision = '2ec3f4bbf368'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"perwagnernielsen@gmail.com"
] | perwagnernielsen@gmail.com |
164e5493f6758c339a9e2ad856a3766537c455d0 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=65/params.py | 1784956005fe6b3ad3c6eecf934f47a007d14984 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.662643',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 65,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
d32be4c5c1aa79bae358160228b4b8ad3f289a4f | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/mobilenetv2_coco_384x288.py | b7b54f086ffee4d0e83d3a2fe04f5cf10f68a7ec | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 4,196 | py | _base_ = ['../../../../_base_/datasets/coco.py']
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optim... | [
"noreply@github.com"
] | noreply@github.com |
1d29dee387b69c8558912e9c4fd3c2013e88be9a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2550.py | 28c00dfbc78318b375a16931dd8cc2af6d52486d | [] | 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 | 512 | py | #!/usr/bin/env python
import sys
from math import sqrt
def pal(x):
x = str(x)
return x == x[::-1]
if __name__ == "__main__":
t = int(sys.stdin.readline())
for case in range(1, t+1):
count = 0
i, j = [long(c) for c in sys.stdin.readline().split(" ")]
for n in range(i, j+1):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4a2ded5c95ba70c01e2a765d8b3d8926f8c3fe29 | 5b6540708f15b2bf4dea0def02616e8e2ffa3959 | /10_passwordGenerator/passwordGenerator.py | 82b96467b4f6fca40590f0ee90a4f768fb2a207d | [] | no_license | raufkarakas/PythonExercises | dbb6f26c73cde76affdd5a0e12108b9764f2c3b4 | df435c9f3b7d21cb7d89be9093636b156f2217b8 | refs/heads/master | 2016-09-11T13:00:04.116415 | 2015-07-14T20:48:25 | 2015-07-14T20:48:25 | 38,538,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | __author__ = 'rkarakas'
import random
import string
def passwordGenerator(length, method):
password = ""
characterPool = string.ascii_letters
if method == 1:
characterPool += string.digits
elif method == 2:
characterPool += string.digits
characterPool += string.punctuation
... | [
"raufkarakas@gmail.com"
] | raufkarakas@gmail.com |
14397fd7d43c0fec589ab90b3be4cf83ca04e4fb | 5ab4ed1e8eb7f942db03eb06a56f2dc0fb8056f8 | /code/process_results/2020/05/7_8_finetune_sparse_facto_grid_lr.py | d90ab7d2fb6fdab6387af977bfd1f0472876558a | [
"MIT"
] | permissive | lucgiffon/psm-nets | b4f443ff47f4b423c3494ff944ef0dae68badd9d | dec43c26281febf6e5c8b8f42bfb78098ae7101d | refs/heads/main | 2023-05-04T17:56:11.122144 | 2021-05-28T16:31:34 | 2021-05-28T16:31:34 | 337,717,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,794 | py | from collections import defaultdict
import keras.backend as K
import pickle
import pathlib
import pandas as pd
import scipy.special
import scipy.stats
from keras.models import Model
import gc
import palmnet.hunt
from palmnet.core.faustizer import Faustizer
from palmnet.core.layer_replacer_faust import LayerReplacerFau... | [
"luc.giffon@lis-lab.fr"
] | luc.giffon@lis-lab.fr |
8a21d26e76fc837d84efc579c3770b2126f1f6af | d5ebbe11f62578af92cc2657df41ded5f59a2fb0 | /myFrame/test.py | 49d4f813dc816074ef13f9619c4739d93339bbf4 | [] | no_license | yiique/myFrame | c9c14681ec292cf5db129365145b56ff7d57f443 | 3f3dbe9b340859387a8714b5a98dcb6806d60076 | refs/heads/master | 2020-12-24T12:47:15.818803 | 2016-11-07T05:37:30 | 2016-11-07T05:37:30 | 67,511,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
#return [b"Hello World"] # python3
return ["Hello World"]
| [
"liushuman@liushumandeMBP.lan"
] | liushuman@liushumandeMBP.lan |
def81b4bb2ba8dff9ad51d114552a52a85046402 | b3f6d423a058dbf5c2bcb88eec4036e9ccede35e | /venv_old/Lib/site-packages/pymavlink/dialects/v20/autoquad.py | 0a67a6ded54e153458bba2b01e77ca43a6e6d6fc | [] | no_license | ERicBastida/BEcopter | 8fe4f35724dfcf585dc058af0bdf22b62fca5dc3 | e6071fb29feb86d0732a932c45d38532129ecbbe | refs/heads/master | 2020-03-18T01:50:23.923440 | 2018-10-25T14:56:06 | 2018-10-25T14:56:06 | 134,162,181 | 0 | 0 | null | 2018-10-24T16:22:02 | 2018-05-20T15:24:27 | null | UTF-8 | Python | false | false | 992,779 | py | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: autoquad.xml,common.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
from __future__ import print_function
from builtins import range
from builtins import object
import struct, array, time, json, os, sys, platform
from ...g... | [
"emb_mario@hotmail.com"
] | emb_mario@hotmail.com |
de06873e9ac5e35c2c78389c58693ec007c55023 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/sklearn/feature_selection/tests/test_feature_select.py | d58dd44faa8189c222dc572ef2799ff1e0cec20c | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,540 | py | """
Todo: cross-check the F-value with stats model
"""
import itertools
import warnings
import numpy as np
from scipy import stats, sparse
import pytest
from sklearn.utils._testing import assert_almost_equal
from sklearn.utils._testing import assert_array_equal
from sklearn.utils._testing import assert_ar... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
6357f1bd09258e62dd0025f8e951d747a4d8a5c9 | 87894ccd1c2c4aa6dd8fc59e7a4ceec4358e97f8 | /shared/misc/fix-rules.py | 2c3416da1e0f7ad2e609b6a75da66730aee7513b | [
"BSD-3-Clause"
] | permissive | fkhadra/scap-security-guide | 4f09e26589dc29577e3bde30b6ee31c6cae98c74 | 2ba78385dba40eb9f00542975ad166ece671e889 | refs/heads/master | 2023-04-27T07:25:47.970384 | 2018-06-08T20:00:11 | 2018-06-08T20:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,382 | py | #!/usr/bin/env python2
import sys
import os
import jinja2
# Put shared python modules in path
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
"modules"))
from ssgcommon import required_yaml_key
import ssgcommon
def has_empty_identifier(yaml_file, produc... | [
"ascheel@redhat.com"
] | ascheel@redhat.com |
6f91b03566136db683a3d86141888b7a9833cd10 | 69c33fcad69a2e61cc60209401215530d033e712 | /Python/Python Basics/61.bug.py | 7042666dc52065c03ab0862676b4ab06c3b63872 | [] | no_license | KULDEEPMALIKM41/Practices | 7659b895ea959c7df2cdbc79c0b982b36f2bde63 | 193abe262ff281a384aac7895bb66dc39ee6e88d | refs/heads/master | 2023-08-17T11:01:11.694282 | 2021-09-30T08:12:41 | 2021-09-30T08:12:41 | 289,527,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | i=1
while i<11:
print(i,end='') #indentation error
i+=1 | [
"Kuldeepmalikm41@gmail.com"
] | Kuldeepmalikm41@gmail.com |
2fdee872e07185a565e9e9da20a9ca5dab3dde8a | fc4eb0b7ffe2c0f2f7d578355cb7f4725005f40b | /kafkaComponents/producer.py | fab595241e57046cdca3c6e05abdb03f46a2b13c | [] | no_license | WaleedAKhan/WAMI | 5d6a22bdd1bd5e9865a1b2b4693aab00b6fd60a1 | 64984caffa4145654b8459298917e30fbfbbbdbf | refs/heads/master | 2020-04-28T12:59:18.644271 | 2019-05-02T13:55:19 | 2019-05-02T13:55:19 | 175,293,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | import twitter
import json
from kafka import KafkaProducer
from kafka.client import SimpleClient
from kafka.consumer import SimpleConsumer
from kafka.producer import SimpleProducer
#client = SimpleClient("localhost:9092")
#producer = SimpleProducer(client)
producer = KafkaProducer(value_serializer=lambda v: json.dump... | [
"wkhan@wkhan.com"
] | wkhan@wkhan.com |
1bc5bfe0093dafca4e694e1f48a3517bedeab02c | 5cd6a7fa7be3b00ff63e60935bc1be9fa1cfebf4 | /projects/mid_atlantic/study/plot_FigS3_Distance_v_Depth_By_State.py | 32b02836b5905138d01abb24b202eb0527cf62b4 | [
"MIT"
] | permissive | EnergyModels/caes | 214e1c7cded4498f33670da7eeebccbaa665e930 | 5e994c198657226925161db1980ebfa704d0c90b | refs/heads/master | 2023-08-23T15:05:53.594530 | 2021-11-06T01:00:57 | 2021-11-06T01:00:57 | 261,201,284 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,026 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset
df = pd.read_csv('all_analysis.csv')
# f, a = plt.subplots(2,1)
# a = a.ravel()
#
# sns.scatterplot(data=df, x='NEAR_DIST',y='feasible_fr', hue='NEAR_FC', ax=a[0])
... | [
"jab6ft@virginia.edu"
] | jab6ft@virginia.edu |
a932f56ccdaa2f7a20185a3e05e0b8bd78a019c7 | 1ec6fe8811cb2b21b68eca7d75ac6b3c88e0f8ba | /Week_05/G20200389010182/write_to_mysql.py | 160f78ec8d3fe2b0c9b00e033f9c9b0d433af34a | [] | no_license | hopeqpy/Python000-class01 | 5f0aa8f3aaba7da97819ec073fd9d16c0cd902e8 | 73b8f8606c5cce0ea8982aed3705ad4cfc70cc70 | refs/heads/master | 2022-06-26T13:36:58.766271 | 2020-05-07T07:24:24 | 2020-05-07T07:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import pymysql
import pandas as pd
from sqlalchemy import create_engine
conn = create_engine('mysql+pymysql://root:root@localhost:3306/test',encoding='utf8')
df1 = pd.read_csv('book.csv')
# pd.io.sql.to_sql(df, 'shuping', conn, if_exists = 'replace')
# ALTER DATABASE skills CHARACTER SET = utf8mb4 COLLATE = utf8mb4_... | [
"chuanwj@163.com"
] | chuanwj@163.com |
d6e3c866e4c2dee2198877c7ca12e01faf377365 | 29b83640a5563e0a409c7ca72dd46b915bb25089 | /setup.py | caca3d93b1e7cb7b59e55e1f18840850a12bd706 | [] | no_license | ArjanPronk/tiktok-api | d18dfae55c9a7c805b9524ca9909447fe1f388c2 | 9f720ad5791414c25db16cdec1221c5aa7f32c70 | refs/heads/master | 2020-11-27T03:50:03.233267 | 2019-12-20T15:55:36 | 2019-12-20T15:55:36 | 229,293,166 | 0 | 0 | null | 2019-12-20T15:53:38 | 2019-12-20T15:53:37 | null | UTF-8 | Python | false | false | 1,257 | py | from codecs import open
from os import path
from setuptools import find_packages, setup
setup(
name="tiktok-api",
version="0.10.3",
description="Tiktok Api.",
# description="tiktok api",
author="Steffan Jensen",
author_email="brominercom2@gmail.com",
license="Apache Software License 2.0",
... | [
"noreply@github.com"
] | noreply@github.com |
ac3142959ea8cad01113bded21db613df639e564 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/326A/test_cdf_326A.py | 64e36fcaf81aaefde3dcff7e62890268fa2c84a8 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import unittest
from unittest.mock import patch
from cdf_326A import CodeforcesTask326ASolution
class TestCDF326A(unittest.TestCase):
if __name__ == "__main__":
unittest.main()
| [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
b1aeb27d52fb9e199f756150fd1144e856437728 | 8f014951337cb776ae383b7b0193ead4d7bb7892 | /Python/Machine Learning intro/DecisionTreeClassifier/main.py | ac61404d559dec171d1830f69a2aacf17f1a5e5a | [] | no_license | frankcbw/miscellaneous | d26823ecca2e73a0297ab67bf4f82a366a687d2c | 6e12bb562141682c84ca1b176d26bde85a22145c | refs/heads/master | 2023-02-16T03:53:03.185120 | 2021-01-12T01:38:41 | 2021-01-12T01:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """
CSC311 Assignment_1 Q2 main
"""
from sklearn.tree import export_graphviz
from DecisionTreeClassifier.load_data import load_data
from DecisionTreeClassifier.select_model import select_model
from DecisionTreeClassifier.compute_information_gain import compute_information_gain
if __name__ == "__main__":
features, ... | [
"frankchen0717@gmail.com"
] | frankchen0717@gmail.com |
1d616197582dd22b64ec5698a1002ce7bf525ac4 | 0c482c3e1468bc9444ce5faea1e45bfce1ee2433 | /Atmoscare_Web/final_test 拷貝/atmoscare/settings.py | b4d931392dbbad74b09287cbe1ba7053cade28d1 | [] | no_license | qo45p/Atomosphere- | 49112e02321eb8ac60d16ce1ae4f36313eb1f57b | 6750a8f6633a170b15787f6d57d1fec373ad8ee6 | refs/heads/master | 2020-05-14T23:39:01.100901 | 2019-04-18T02:35:04 | 2019-04-18T02:35:04 | 182,000,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,425 | py | # -*- coding: utf-8 -*-
"""
Django settings for atmoscare project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/s... | [
"smilewish1030@gmail.com"
] | smilewish1030@gmail.com |
e9defd4ba632168dbf3f64d8b13304ef8887e1cb | f5c1885a794a8a3ca5e145cbf97df7ae07360ed3 | /api/app.py | 35d33e599b156cf54296ae63794f7e5d6356c768 | [] | no_license | comarasj/spotipy | 17e41c2211534a6703c6386286e44d0b5eacf22e | 510c15e290ed8c7b251db95d6bfa91b464f21d22 | refs/heads/master | 2023-02-05T00:41:54.560446 | 2020-04-25T04:29:58 | 2020-04-25T04:29:58 | 171,753,825 | 0 | 1 | null | 2023-01-23T22:22:09 | 2019-02-20T21:42:42 | Python | UTF-8 | Python | false | false | 686 | py | from flask import Flask, request, redirect, render_template, flash, Blueprint
app = Flask(__name__)
app.secret_key = 'development key'
#Blueprints
from blueprints.artist.artist import artist
from blueprints.recommended.recommended import recommended
from blueprints.recent.recent import recent
app.register_blueprint( ... | [
"comarasj@mail.uc.edu"
] | comarasj@mail.uc.edu |
52d1c28922e88cb117653d8f324d56c3787b6b40 | a573a1f4ca6ceec4cecbf730971a0d803f302e53 | /Lane Finding Project/Finding_White_Color.py | 47140958e339e7939b28957e29bbce735be8b141 | [] | no_license | BruceChanJianLe/SelfDrivingCars | 1a96fbf454c96e5eefae685ee7d4f5777fa2d10c | f0052f9ec6ca38a5b8ac6eee1589a95cf5e95ca8 | refs/heads/master | 2020-06-15T03:59:31.798411 | 2019-07-05T07:03:01 | 2019-07-05T07:03:01 | 195,197,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import cv2
import numpy as np
# Load the image
img = cv2.imread('Finding_White_Color.jpg')
# Print the associated information in the loaded image
print(f'This image is of type: {type(img)}, with dimension of: {img.shape}')
# Obtain the size of the image
img_height = img.shape[0]
img_width = img.shape[1]
# Make a d... | [
"jianle001@e.ntu.edu.sg"
] | jianle001@e.ntu.edu.sg |
4bb93dc738f95e826f73590895bf89db9e617dd8 | 73eb45fc2b9e3cf321e35743ea7d442bb9a9e521 | /signature-extraction/ASG/ASG.py | 86133b97dcb85eea9387f70c2d2a43c712375a7b | [
"Apache-2.0"
] | permissive | fasguard/fasguard | 1bc097a5f20b567368a533b5c430b61025a325c5 | e24ed8264e65d24a4e3a3ef79224f30ca570ae4e | refs/heads/master | 2021-05-04T11:43:03.760628 | 2017-09-18T21:00:39 | 2017-09-18T21:00:39 | 43,983,230 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,632 | py | #!/usr/bin/env python2.7
"""
SYNOPSIS
This is the actual Automatic Signature Generator (ASG) that takes a STIX/
CybOX XML file from the detector as input and produces Suricata (Snort) rules.
DESCRIPTION
We first use the DetectorEvent class to receive XML from the detector and
transform it into an internal representa... | [
"rhansen@bbn.com"
] | rhansen@bbn.com |
69453aa15355f0072ca02b83b6c7f4e7ff305250 | 2407690f9e04b517096a826cd63634b346e1770f | /Cleanup20160624/Main Code 9/constants.py | 403be24d7accf48ebf191c38e5dd202279818ebb | [] | no_license | tylerlau07/romance_nominal_change | b9a94ff6b47056ed0f858a5fe61ec48dcce835c8 | 1c33aaf2cba7b045f162bde9008d65b53925098a | refs/heads/master | 2020-05-21T16:45:44.633613 | 2016-09-30T06:45:25 | 2016-09-30T06:45:25 | 61,847,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,877 | py | # -*- coding: utf-8 -*-
# Author: Tyler Lau
# Main Code 9
from math import log
from math import ceil
from numpy import identity
import functions
##########
# Corpus #
##########
corpus_file = "../Corpus Preparation/latin_corpus.txt"
##############
# Parameters #
##############
# Trial number
trial = "21"
# Gener... | [
"tyler.lau.07@gmail.com"
] | tyler.lau.07@gmail.com |
19e3a5906d5b2c087307460428df0f10cb0f1dc3 | 8da169c8e1c325ac326f81d366bb5f75179e2e30 | /project/public/asset/matrix/duplicate.py | 564dfd1cba4b3445844209ec937b66bea70e5d0f | [
"Apache-2.0"
] | permissive | XLab-Tongji/Xlab-k8s-gpu | 644b2ebb865a2341862f6b8aebe37547624b5172 | b258f9610d2416a047f8f9545b1d6f66a7e88df3 | refs/heads/master | 2022-11-11T23:01:43.312765 | 2020-06-30T09:19:40 | 2020-06-30T09:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import pandas as pd
csv=pd.read_csv('./kddcup.newtestdata_10_percent_unlabeled.csv',low_memory=False,error_bad_lines=False)#读取csv中的数据
df = pd.DataFrame(csv)
print(df.shape)#打印行数
f=df.drop_duplicates(keep=False)#去重
print(f.shape)#打印去重后的行数
f.to_csv('./duplicated kddcup.newtestdata_10_percent_unlabeled.csv',index=No... | [
"vodkasoul@icloud.com"
] | vodkasoul@icloud.com |
edfff1660685d7183157e9c4eabb87fc68c573dc | b3f1197e21fb676fd69c95f96e0ac5ae1538ef16 | /practice/sample9.py | 5b2493d9ed43b1d6e19ea70291695eae7dca789b | [] | no_license | hyunbeen/python--training | 15572e6af000503ef039d468d25909e6bf2767a4 | e3fbb6a28e3d89bbf01a1fae040ef28df6babbf7 | refs/heads/master | 2020-12-15T08:36:33.836430 | 2020-01-20T08:28:17 | 2020-01-20T08:28:17 | 235,048,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | dict = {"1":1,"2":2}
print(dict) | [
"bigpig93@naver.com"
] | bigpig93@naver.com |
e1114b1b68f20fa2b3397825e10101d919a04ac2 | bb301b3de3e4e18123f75029098ec8cee918126d | /validar_resultados.py | b02f8c80520a0cfa9cff4570d33723b488ad76e1 | [
"MIT"
] | permissive | weybsonalves/menorcaminhosp | f646789b20ed512830cac04c615087aa13171d17 | 9923b92b4ec338ebf470a1fdaaba670bc3bc2963 | refs/heads/main | 2023-04-10T11:27:48.312500 | 2021-04-11T22:27:35 | 2021-04-11T22:27:35 | 356,981,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from random import randint
from graph_utils import make_graph, dijkstra, bellmanford
def validate(graph):
vertexes = list(graph.adjacency_list.keys())
for _ in range(1000):
i = randint(0, len(vertexes)-1)
j = randint(0, len(vertexes)-1)
if dijkstra(graph, vertexes[i], vertexes[j]) != b... | [
"was5@cin.ufpe.br"
] | was5@cin.ufpe.br |
5008d77f3a9df8ec23514360f2c0b0d0c23f6ba1 | 6c2a621395672f42a5270ff48c97a5bed2a3faf1 | /find()方法.py | 05fcb399a57852835ba7ceb3cf4cf9ccd0abc69b | [] | no_license | pzy636588/wodedaima | be7cfefe68128f8cbd3e907349bed250082a3b77 | 411bc424c8f0725e724b8af82e8800995f11cf1d | refs/heads/master | 2020-12-20T16:09:44.878792 | 2020-04-28T04:15:41 | 2020-04-28T04:15:41 | 236,131,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #str.find(sub[,start[,end])
str1='@minggj @就打飞机空间'
print('字符串"',str1,'" 中*符号首次出现的位置索引为:',str1.find('*'))
str1='@minggj @就打飞机空间'
print('字符串"',str1,'" 中@符号首次出现的位置索引为:',str1.find('@')) | [
"13530696246@163.com"
] | 13530696246@163.com |
c627d11901172be613f2a3cb21b1e77eb5b47eed | cb29705c7b41cb011469e9e92f4b6f7d263ef502 | /blogit/admin.py | 26e26bb32744ff851dbcb63803ce92c874524c09 | [
"MIT"
] | permissive | jimmcgaw/gleaner | 4d3496a86f15bdf7af71dfbb07211fc47b56f9f1 | 15ca6de907d45009e551e53c55ed16e2a62c6c93 | refs/heads/master | 2016-09-13T01:48:39.575616 | 2016-06-05T18:49:21 | 2016-06-05T18:49:21 | 59,175,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from django.db import models as dmodels
from blogit import models
#get the models from myproject.models]
mods = [x for x in models.__dict__.values() if issubclass(type(x), dmodels.base.ModelBase)]
admins = []
#for each ... | [
"jpmcgaw@gmail.com"
] | jpmcgaw@gmail.com |
9ff38e693a8bc09d379d83944d781fe48d5d98d3 | 52fe4ec6ac7d591d969851250da86b7a2cd7373c | /carcare/migrations/0006_deliverymodel_user.py | 2786d9bfde797b2fa6d5c363523fbb4e9da0da5c | [] | no_license | Narongded/Carecare | 2b2753f4f5793782d88fb9babf8bcfc45779c194 | 7b71be056f88d63324afe37f4d1cc0647020e85c | refs/heads/main | 2023-04-11T10:00:31.160255 | 2021-04-22T15:25:02 | 2021-04-22T15:25:02 | 360,565,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Generated by Django 2.1.7 on 2019-05-02 20:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('carcare', '0005_remove_d... | [
"32951598+Narongded@users.noreply.github.com"
] | 32951598+Narongded@users.noreply.github.com |
3cc9b135372b24193ee4847ccbc1dce57229d2fe | 25ac8a638fa333a454a0859e1cf05ff650dc1376 | /h.py | d5e529a0cc53b0af62991c07583b167fe288e8b2 | [] | no_license | Prativa98/master_academy | 9ec809c6e2aca834a69586699721e3af1c03f7d2 | 9d6281be4d3d5386bcee9b0eaca3916c9159e38c | refs/heads/main | 2023-05-28T14:33:28.404206 | 2021-06-13T10:53:29 | 2021-06-13T10:53:29 | 376,513,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | print("hello")
print("hello bangladesh") | [
"ihprativa@gmail.com"
] | ihprativa@gmail.com |
80f37d189ca2d33e501cdf16817001a8c6d4908c | aceb92d46c82c24e0e5c814a1586b765bfff84d4 | /venv/SeleniumSessions/BackAndForward8a.py | 535a2a7e4f173396b1b49670c334f0687dde2be2 | [] | no_license | AnjaliAdlakha/SeleniumPythonSessions | c271001559c6f31c02e66628c45e95f2dde2f0dd | b56c9ed7c7ecc09fe9b2f707a5720bd33f6e73ea | refs/heads/master | 2023-06-04T13:21:09.628034 | 2021-06-23T00:03:55 | 2021-06-23T00:03:55 | 379,429,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
import time
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.implicitly_wait(10)
driver.get('https://amazon.in')
driver.find_... | [
"75857615+anjalihans2020@users.noreply.github.com"
] | 75857615+anjalihans2020@users.noreply.github.com |
a14c03bc628896e88a3a715353f4b5c93d9778c3 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part13-introduction-data-visualization/No07-Using-legend.py | bd1fef91573279e954aa0db684577e0a61040372 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #Using legend()
'''
Legends are useful for distinguishing between multiple datasets displayed on common axes. The relevant data are created using specific line colors or markers in various plot commands. Using the keyword argument label in the plotting function associates a string to use in a legend.
For example, here... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
ac4f97b353097716f47914b595314277c40a43fb | 199c8528bb115302c0c7e72acd980fa8865920eb | /refactor/after_refactor.py | 8320493dd7accbc405d28bc66e599647f6c8455d | [] | no_license | sorvihead/patterns-python | 81281413dacaebf49bed8d2d4595a9532e6939a5 | 000785af961140872ee1a01d09a16900e901d031 | refs/heads/master | 2020-09-10T23:25:34.181652 | 2020-02-26T23:47:07 | 2020-02-26T23:47:07 | 221,864,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
По умолчанию при старте программы опорные точки отсутствуют и программа находится в состоянии паузы
(движение кривой выключено). Для добавления точек сделайте несколько кликов левой кнопкой мыши. Отрисовка
кривой произойдет, когда точек на экране станет больше двух. Кн... | [
"novoid86@yandex.ru"
] | novoid86@yandex.ru |
72385aef0f88fb44670c62fe09108881b5ca1cdd | a934a51f68592785a7aed1eeb31e5be45dd087d3 | /Learning/Network_process_WA/Day1/2020_Jul23/subprocess_old/run_ls01.py | ba2d553ef730e9191baf52a2201f2e782ccafa17 | [] | no_license | nsshayan/Python | 9bf0dcb9a6890419873428a2dde7a802e715be2b | 0cf5420eecac3505071326c90b28bd942205ea54 | refs/heads/master | 2021-06-03T18:41:06.203334 | 2020-09-28T07:28:48 | 2020-09-28T07:28:48 | 35,269,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from subprocess import Popen
#p = Popen("echo $PATH", shell=True)
with open("ls.out", "w") as lsout:
p = Popen(["ls", "-l", "/usr"], stdout=lsout)
ret = p.wait()
print("ls exited with code =", ret)
| [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
9894d2f9702f015e3d66e504a84b16a9cb4f8c7a | abc9f71b38ff9b797cfc64986309f7421325417a | /subsystems/odometry.py | f37753ef4ac96df60a47bc307f90b1c090c0708d | [] | no_license | FRC1458/PyRobotCode | a2cad56708f8d2f0c16a20a02c2657d69639139a | b0a3a58c5805954096742cdace0dc55c7d58aece | refs/heads/master | 2020-07-11T15:13:16.313003 | 2019-09-17T06:18:55 | 2019-09-17T06:18:55 | 204,580,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | from math import cos, sin, pi
from wpilib import Encoder
from navx import AHRS
# TODO Check angle constrain function
def constrain_angle(x):
return (x + pi) % (2 * pi) - pi
class Pose2D(object):
def __init__(self, x, y, theta):
self.x = x
self.y = y
self.theta = constrain_angle(thet... | [
"ndp1234567890@gmail.com"
] | ndp1234567890@gmail.com |
30965eb40de98acf331d58db74af0f8f602f227d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03085/s149035990.py | 1c1c597445598c94f69ba81db215767cac8dae30 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # A - Double Helix
# A:アデニン T:チミン G:グアニン C:シトシン
# 対になる組み合わせ A-T G-C
# 標準入力
base = input()
# print(base)
# 条件分岐し、結果を answer に代入
if base == 'A':
# print('T')
answer = 'T'
elif base == 'T':
# print('A')
answer = 'A'
elif base == 'G':
# print('C')
answer = 'C'
elif base == 'C':
# print('G')
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
27dd36a05f8ec411c38a2ef81d20935aef743fed | ce058047e9c20d7e70a98d2f5d897f0a7efd5409 | /srs/reg/migrations/0001_initial.py | ba793fe4f16b5980a626bc59c88919ff1eb4fbfb | [
"MIT"
] | permissive | Ramguru94/python_django_school | e3e7bc60adaa7eea2c307199c78db9ef4be7d575 | bedaba575f8986fd17aaf7dcb920769224a9fc07 | refs/heads/master | 2020-08-27T20:12:27.270816 | 2019-10-27T17:08:18 | 2019-10-27T17:08:18 | 217,478,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # Generated by Django 2.2.6 on 2019-10-27 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RegisterUser',
fields=[
('id', models.AutoF... | [
"raamguruvishnu94@gmail.com"
] | raamguruvishnu94@gmail.com |
e46e39a01e13cb2eea5a6f5add4fb61accae3bf1 | c99be9a7a55c6dc3dade46147f116ee6729a19d1 | /tikzplotlib/__about__.py | 4d3b2067e4529f6a610d20626f3fcbed193b58ca | [
"MIT"
] | permissive | theRealSuperMario/tikzplotlib | 3001cbe11856b1e7d87aa308c0ef99bbd28d1bec | 3c1e08e78cb87ecf4b475f506244813bf99ac705 | refs/heads/master | 2020-12-11T09:36:37.399842 | 2020-11-01T10:27:21 | 2020-11-01T10:27:21 | 233,809,790 | 2 | 0 | MIT | 2020-01-14T09:54:53 | 2020-01-14T09:54:53 | null | UTF-8 | Python | false | false | 221 | py | try:
# Python 3.8
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
try:
__version__ = metadata.version("tikzplotlib")
except Exception:
__version__ = "unknown"
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
4747034fb6d4867271d8e2d367412c1bd6a0ad5e | 64782f990f274fc4c1203a3ac174e06a83ee1b07 | /DDEs_models_test/hoppensteadtWaltman.py | 7509957fc02448ea89e31109d7437672a33fff94 | [
"BSD-2-Clause",
"MIT",
"Qhull",
"BSD-3-Clause",
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jrmejansen/scipy | bd5d0d00428715474fcb1c17e24c63e8d201270f | 77f4f5172f8e718de96b89bf3f015a8729a7613c | refs/heads/master | 2021-07-19T09:06:13.767541 | 2020-12-26T14:07:09 | 2020-12-26T14:07:09 | 229,077,589 | 1 | 0 | BSD-3-Clause | 2020-12-26T14:07:11 | 2019-12-19T14:59:45 | Python | UTF-8 | Python | false | false | 2,982 | py | from scipy.integrate import solve_dde
import matplotlib.pyplot as plt
import numpy as np
from jitcdde import jitcdde
from jitcdde import y as y_jit
from jitcdde import t as t_jit
import warnings
warnings.simplefilter("ignore")
"""
The Hoppensteadt-Waltman model (Example 5 from Oberle et al 1981
Numerical Treatment of... | [
"jrme.jansen@gamil.com"
] | jrme.jansen@gamil.com |
8905a4ce955d4e3c54e1f913c7fffe893dfcb4ae | ad49a4290ea5eb2d465c9b8d39b6baae942f83bc | /company.py | 742054d13bc2da0fdde95f034c9b6fc1c2274683 | [] | no_license | soobin93/scrapping-alba-jobs | f41f1728437553db8d36aeb770df87209593603b | 63a0ab2a8abf80bb49dabcd144b9d05d4ab16bf8 | refs/heads/master | 2023-02-03T08:43:16.764558 | 2020-12-21T15:18:53 | 2020-12-21T15:18:53 | 323,372,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import requests
from bs4 import BeautifulSoup
URL = "http://www.alba.co.kr"
def extract_companies():
response = requests.get(URL)
soup = BeautifulSoup(response.text, "html.parser")
super_brands = soup.find("div", {"id": "MainSuperBrand"})
company_container = super_brands.find("ul", {"class": "goodsBo... | [
"ssbin93@gmail.com"
] | ssbin93@gmail.com |
802701e44809d3532bfe2c447dd3a04e2ee0dd5a | 82f65143c125e6e8fb41bc89775630a246c0d465 | /torchcmh/dataset/base/quadruplet.py | c5fb189446447690851e742a33c6de44ddbbc529 | [
"MIT"
] | permissive | ZCyueternal/deep-cross-modal-hashing | bab0d9bf43591349fa2fa85d78bd20496088782d | 9784397c1076c81b43ebd856cb24b8a67cf8f41e | refs/heads/master | 2023-08-18T00:04:32.514805 | 2021-10-07T08:14:30 | 2021-10-07T08:14:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,033 | py | # -*- coding: utf-8 -*-
# @Time : 2019/7/10
# @Author : Godder
# @Github : https://github.com/WangGodder
from .base import CrossModalTrainBase
import numpy as np
import torch
def calc_neighbor(label1, label2):
# calculate the similar matrix
Sim = label1.matmul(label2.transpose(0, 1)) > 0
return Sim.f... | [
"wangxinzhi1997@vip.qq.com"
] | wangxinzhi1997@vip.qq.com |
ac3da4ddaec41acd4f789b5188f844ab20ee99c4 | 5166385cd0f32e7a262af5c8e916dc061baa70f7 | /profiles_api/migrations/0001_initial.py | e30396664602d53b59444b7151b64d101711a3ff | [
"MIT"
] | permissive | Mohd-Saddam/profile-rest-api | 32fd68f05c237048df468ea10e2f13dc2db90d84 | e80178d7ab9a0842fc5bf5ea8191ee80586b1a2e | refs/heads/master | 2022-05-04T19:10:53.464543 | 2020-07-09T08:10:04 | 2020-07-09T08:10:04 | 247,447,132 | 0 | 0 | MIT | 2022-04-22T23:07:11 | 2020-03-15T10:48:02 | Python | UTF-8 | Python | false | false | 1,705 | py | # Generated by Django 2.2 on 2020-05-21 10:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='UserProfile',
... | [
"msaddam2786@gmail.com"
] | msaddam2786@gmail.com |
1e33395d87fe083db02435d22c5cbe4fbcfd41d6 | 26a9a079a544e33286a1cd6c3b0eab5216c1f6dd | /createTablePlayerMeta.py | d20ee7fc63ea0f4a01beff45dfc20806eccdd61b | [] | no_license | jabarimyles/bts2 | f7f268150fa411508b7b6c0cd2692387b58afe22 | 72d7ed2c173d2ea1ad098a5fa8f4d5219c218355 | refs/heads/main | 2023-04-27T23:26:28.484536 | 2021-05-19T00:43:59 | 2021-05-19T00:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py |
#-- Base packages
import os
import pdb
#-- Pypi packages
import pandas as pd
pd.set_option('display.max_columns', 100)
from baseball_scraper import statcast
# takes potential input of particular players (matchups for prod)
def get_player_meta(table_dict={}):
if table_dict == {}:
orig_data = pd.read_csv('... | [
"noreply@github.com"
] | noreply@github.com |
ad137dcf652e2988817767f054eca20926ee6d91 | f1121c7b44153e87ab4a110a33648ae70ea20970 | /app.py | a45f2e56043ab60598c0777380ec39f0a72fc90f | [] | no_license | doped-semiconductor/imageEncryptionGUIApp | 018f1b69151c6bd243925b66e3a72d523325a59c | 13dc831c941325a5e62af9644f79d23ee83834d5 | refs/heads/master | 2023-02-05T22:14:17.599842 | 2021-01-02T05:17:10 | 2021-01-02T05:17:10 | 326,114,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from tkinter import Tk, Frame, Button, Canvas, NW, N, S, E, W, PhotoImage, TOP, BOTTOM, LEFT, RIGHT
from tkinter.filedialog import askopenfile
from PIL import ImageTk,Image
class ImageEncApp:
def __init__(self, master):
self.master = master
master.title("Encryption")
self.create_basic_layou... | [
"getsreya@gmail.com"
] | getsreya@gmail.com |
99f2714c3fba9228c05928fad3b4c365ac9aa7b1 | 356151747d2a6c65429e48592385166ab48c334c | /backend/customer/threads/order_now/th_get_menu.py | 5e181b84ea83adbffe87077606958d72b475afed | [] | no_license | therealrahulsahu/se_project | c82b2d9d467decd30a24388f66427c7805c23252 | c9f9fd5594191ab7dce0504ca0ab3025aa26a0c1 | refs/heads/master | 2020-06-25T02:51:30.355677 | 2020-04-20T13:01:36 | 2020-04-20T13:01:36 | 199,175,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from PyQt5.QtCore import QThread, pyqtSignal
class ThreadGetMenu(QThread):
signal = pyqtSignal('PyQt_PyObject')
def __init__(self, parent_class):
super().__init__()
self.parent_class = parent_class
def run(self):
if self.check_for_veg():
food_query = {
... | [
"43601158+therealrahulsahu@users.noreply.github.com"
] | 43601158+therealrahulsahu@users.noreply.github.com |
257f43d1ad758ad82fa725fac44517dad1c463b9 | b63ae9d939f83c38607ff44baa59f88945eab416 | /agents/batch.py | adfdc676d59a0b704e8dc759570045b2bb8d4bd8 | [] | no_license | nosyndicate/ContinuousControl-Tensorflow | c6c6438613e51b38087e6d8788f80fb6dcb8ac42 | c24d8940936d23b9f3f62cf8c4096d91656b89fa | refs/heads/master | 2020-09-21T17:53:11.613155 | 2017-02-07T20:22:52 | 2017-02-07T20:22:52 | 67,618,852 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | class BatchPolopt(RLAlgorithm):
def __init__(
self,
env,
policy,
baseline,
scope=None,
n_itr=500,
start_itr=0,
batch_size=5000,
max_path_length=500,
discount=0.99,
gae_lambda=1,
... | [
"nosyndicate@gmail.com"
] | nosyndicate@gmail.com |
f5287122ca297433c1b6b1e2f5db68c67c93ae78 | 5685760a7e3aec97f81df87a4f5ff075029864bf | /src/at/uibk/epc/clustering/kmedoids/kmedoids_clustering_per_England.py | b687370f3083595a78194c42867c73a8d6318114 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | angelapopa/thesis-practical-part-python | 71cd308ac349198db8bff2905220cbb13428122e | cce51c1dff5130247903dcbadae57c07e2e60d65 | refs/heads/master | 2023-04-10T12:55:48.734878 | 2021-04-19T14:44:50 | 2021-04-19T14:44:50 | 272,254,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | from db_data_per_country import getRawData
from kmedoids_clustering_per_country import kmedoids_clustering
from sklearn_extra.cluster import KMedoids
from sklearn.preprocessing import StandardScaler
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
from pathlib import Path
# limit 40.000... | [
"angela.popa@student.uibk.ac.at"
] | angela.popa@student.uibk.ac.at |
2a525f8adfe353e0fb617ccf19a80dea1f75d9f2 | ada5553e4020137b9ea05869029684e2b73c6515 | /pbm_api/pbm_bonds/models.py | 626b5eeb25a7034ae28d8b7d0754e6ad24fa9adc | [] | no_license | rizwanbutt314/pbm_backend | f99a7851f16bb49456f52907b9d5f4b9ffdebc75 | 4b6baeefa5806e6f0b7efd86ffb434f990427116 | refs/heads/master | 2022-04-30T17:04:18.263758 | 2019-11-28T06:51:43 | 2019-11-28T06:51:43 | 210,325,223 | 0 | 0 | null | 2022-04-22T22:37:29 | 2019-09-23T10:15:07 | Python | UTF-8 | Python | false | false | 3,938 | py | import datetime
from django.db import models
class BondCategory(models.Model):
category = models.CharField(
max_length=255,
unique=True,
help_text="Name of Bond e.g. 750 or 200 etc")
first_prize = models.CharField(
max_length=255,
help_text="First prize in Rs.")
sec... | [
"rizwanbutt314@gmail.com"
] | rizwanbutt314@gmail.com |
6819a55c9040d653a368d00ae6959883a972af63 | 503513cf9b4430458947da8e07e4dd50bb22d18c | /GeneratorFunctionAndObject.py | fda10272d840f89ec3796f0029c6bfa09f14a415 | [] | no_license | maxwagner440/python_generators | b640ad014b33933085258240dbc9e3cacb5ab2f8 | 709dfed3140f2f1b0cf7e220ef728a606c161b6d | refs/heads/main | 2023-07-02T13:19:31.991011 | 2021-07-27T14:33:14 | 2021-07-27T14:33:14 | 390,012,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | ########################
## Generator Function ##
########################
def even_int_func(n):
result = []
for i in range(n):
if i % 2 == 0:
result.append(i)
return result
results = even_int_func(10)
## will print out the integers ##
print(results)
###########################... | [
"noreply@github.com"
] | noreply@github.com |
23721ad4bfebf2e752102dfd7da2d6e58554374c | 6a0ae86bca2d2ece6c92efd5594c0e3b1777ead7 | /EDBRCommon/python/datasets/test_RSGZZ600_cff.py | aa4a12968a86fc2923e54c5b230e1e8a80ccf6d0 | [] | no_license | wangmengmeng/ExoDiBosonResonances | c4b5d277f744e1b1986df9317ac60b46d202a29f | bf5d2e79f59ad25c7a11e7f97552e2bf6a283428 | refs/heads/master | 2016-09-06T14:54:53.245508 | 2014-06-05T15:02:37 | 2014-06-05T15:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | import FWCore.ParameterSet.Config as cms
readFiles = cms.untracked.vstring()
source = cms.Source("PoolSource",
noEventSort = cms.untracked.bool(True),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
9c9d2224936eaf991b77c3147e9c3e77350b573b | e6fab6f6b0415c94fafc3d88c72ac0221b4c8043 | /merge.py | 3c4cec09ba0149024dbfa095369c620d804b3125 | [] | no_license | sfc-quantan/sort_algorithm | d168d08d1a404e3bb93d07d13fe13861e121729d | dab880d258acaddd0ea4a02982c5389265f7d9ba | refs/heads/master | 2021-01-21T08:05:54.942763 | 2017-09-24T23:26:50 | 2017-09-24T23:26:50 | 101,953,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | import random
from parser_n import parse
def merge2(a):
a =[a[i:i+2] for i in range(0,len(a),2)]
return a
def merge(array): # line1
mid = len(array) # line2
if mid > 1: # line3
left = merge(arr... | [
"quantan@ht.sfc.keio.ac.jp"
] | quantan@ht.sfc.keio.ac.jp |
40d149d8c61831532ac9fe9d2499e42926f1330e | 688ddbf29fdeeb048b9397ee24407ce326875dcb | /investigator/migrations/0004_auto_20170530_0923.py | e582f840b0e7d3069102b458814e24600eb190ef | [] | no_license | anishsaha12/rapidsignnow | 7f656c3146c31eaa6940d6f16f0d1372d8c81a2e | 16ad8c6326817e2df0419d84f1229b9afdc0a214 | refs/heads/master | 2022-04-30T07:30:50.458929 | 2018-09-01T12:58:24 | 2018-09-01T12:58:24 | 139,947,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('investigator', '0003_investigator_rates'),
]
operations = [
migrations.AddField(
model_name='investigator',
... | [
"anish.saha@42hertz.com"
] | anish.saha@42hertz.com |
2c1287dcb22aba0e962ed781f9ccfe15fbc8cd09 | 64172a04fda7a585c4d111b779f30ecda58cef19 | /16.py | 5a388a7fc24d60538ff1a986ce1b3717197269ab | [] | no_license | pi7807pa/super-funicular | 983b4ee13f399bf299233d50af38020d01dd692d | 0d5c9ab95ec1b2ff08983e66588a89d96394b97a | refs/heads/master | 2021-01-17T18:07:18.786383 | 2017-06-27T09:55:00 | 2017-06-27T09:55:00 | 95,541,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #16th Program
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
| [
"pi7807pa@gmail.com"
] | pi7807pa@gmail.com |
4fb655f2d240906d9de3c076a510820cb7f6f02e | bc57038da93bbcc6ff7f9034bc87ed39e95496a1 | /example/multi-run/run.py | fc5a97eb976dcebf5279c790d2b2878d6b62e45c | [] | no_license | haiyufirefish/ns3-ai | 5e542b59b63765dcd0574237f11545122ca1aeda | 5c00de628029146629027fffa803c885a1bb4a08 | refs/heads/master | 2023-04-15T13:04:17.741288 | 2021-04-26T17:59:42 | 2021-04-26T17:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from py_interface import *
from ctypes import *
import sys
import ns3_util
import time
class Env(Structure):
_pack_ = 1
_fields_ = [
('a', c_int),
('b', c_int)
]
class Act(Structure):
_pack_ = 1
_fields_ = [
('c', c_int)
]
ns3Settings = {'a': '20', 'b': '30'}
exp = Exp... | [
"haoyin@uw.edu"
] | haoyin@uw.edu |
664a0baff5829d1c6a0ce4bf3f098bafd1cb63d0 | 3fa9700725c3c58fde3d0be2cd502858780f7c97 | /hw3/utils/replay_buffer.py | f930ef8e91ebd19fc5cdf2c5f5ff71d864117da7 | [
"MIT"
] | permissive | CTinRay/ADLxMLDS2017 | dbbc74b56cc31527a07f0ba0892507f74d0f5a1d | 9c5e2955c9c0d8408715f987ad4ba4ce895b2edc | refs/heads/master | 2021-03-22T03:03:17.028228 | 2018-01-07T14:59:48 | 2018-01-07T14:59:48 | 106,155,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | import pdb
import numpy as np
class ReplayBuffer:
def __init__(self, size, alpha=1):
self.states0 = np.array([None] * size)
self.states1 = np.array([None] * size)
self.rewards = np.zeros(size, dtype=np.float32)
self.actions = np.zeros(size, dtype=int)
self.dones = np.zeros(... | [
"b03902072@ntu.edu.tw"
] | b03902072@ntu.edu.tw |
66b63fd8bd38481454862f9cb1eeed6473fff4ca | 6549e0f52793ec2a763e73492b9dc5c6bacb63b5 | /guest_api/serializers.py | e63d4c73c07e83536b7a96cb0788686e9acc2fbb | [] | no_license | Hardikpoudel/Django-Hotel | ecf3f97356543956a2570affb24516fc60f3c98f | aebd8a8150b4309f48b53bc551463be2e323aab2 | refs/heads/main | 2023-05-14T17:00:15.831882 | 2021-06-02T16:55:32 | 2021-06-02T16:55:32 | 339,623,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from rest_framework import serializers
from guest.models import guest
class guestSerializer(serializers.ModelSerializer):
class Meta:
model = guest
fields = '__all__'
| [
"hardikpoudel25@gmail.com"
] | hardikpoudel25@gmail.com |
8aa721207ee800c741e83e6e7d8d77e4213cfa6f | b2ebc3803f056e19cf5bce8f4f592baa89b014ef | /usresident.py | 06fd3edc06af57fbd84a9daf61c01f67ff0d4b9a | [] | no_license | caiespin/edx_Introduction_to_Computer_Science_Using_Python | 7121afd27eafbd560306c745deaa29bedc3fadc2 | effa88eff6a45f91ab4c0dfbcdb06d1623e1dcf4 | refs/heads/master | 2020-08-07T04:46:35.707116 | 2019-10-07T05:28:06 | 2019-10-07T05:28:06 | 213,301,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | ## DO NOT MODIFY THE IMPLEMENTATION OF THE Person CLASS ##
class Person(object):
def __init__(self, name):
#create a person with name name
self.name = name
try:
firstBlank = name.rindex(' ')
self.lastName = name[firstBlank+1:]
except:
self.lastName... | [
"caiespin@ucsc.edu"
] | caiespin@ucsc.edu |
149150cf593dd2e09119bd451e110aa046ff5cd7 | 7caf1d687d4191a5507aad6534caaed6a8100542 | /timentor/views.py | 79db861399b622eaa811bd2bb5e5d563f71ed8f8 | [] | no_license | takutotacos/timentor | 32d58159c9beff460028da3a3275c4351de53956 | c9b8d791067a3b94336dc7a11479095030be6e57 | refs/heads/master | 2021-01-12T05:01:55.952951 | 2017-01-05T21:23:18 | 2017-01-05T21:23:18 | 77,829,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.urls import reverse
from django.views import generic
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decorators import login_required
from django.views.decorators.http im... | [
"s.takuto0214@gmail.com"
] | s.takuto0214@gmail.com |
7a47ff1141dbe143b2bd25caa9a648e3e2ec8d11 | bde42563906f89eb2b1eb54fbc30d98cec98a1da | /archived_websites.py | 110e8f0c24d9719d3aa13ae474f3cc51fe08bfdf | [] | no_license | lapl-digitization/sc-workflow-scripts | 198a7a9e1483a1d73d17bfd426ed28d3e852368c | c6b31496df5b2f3cc94c32a2870d383998a9b8dc | refs/heads/master | 2023-03-22T18:01:48.123019 | 2021-03-12T17:55:11 | 2021-03-12T17:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,355 | py | import csv
from asnake.client import ASnakeClient
from asnake.aspace import ASpace
#This script has been modified from a script created by Noah Huffman at Duke. It can be used to add archival objects as children to different resources or archival objects.
#The script adds title, level, some date metadata, exten... | [
"noreply@github.com"
] | noreply@github.com |
328ecc8c6a133314695a3f5e71fe57df6876cc9c | bdb206758815fa598285e05c23d81829f3ad60a9 | /addons/at2166/controllers/controllers.py | 4e907a688dc832b0d2a90c58e410c59f80a51a82 | [] | no_license | kulius/odoo10_test | 75a9645fbd64ba5fd6901fb441f2e7141f610032 | 5a01107e2337fd0bbe35d87d53a0fe12eff7c59e | refs/heads/master | 2021-07-26T15:05:58.074345 | 2017-11-08T09:04:11 | 2017-11-08T09:04:11 | 109,943,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
from odoo import http
# class At2166(http.Controller):
# @http.route('/at2166/at2166/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/at2166/at2166/objects/', auth='public')
# def list(self, **kw):
# return http.request.render('... | [
"kulius@gmail.com"
] | kulius@gmail.com |
a9057e32cb12b0a2fa829f5489ec474f6efc01a3 | 7fa0ec5b7bba8b45ecf5890a7d346c4f79f3cd65 | /src/MyCalculator.py | bcd957d19061c7e932d67e6556b6d753d47bbaee | [] | no_license | tivole/Ti_SimpleCalculator | 3aa1aa5e056e6dedcbc5804c212b432f8e930a2a | dbeb73ce8647e7c161b80955c72b1beef46e533e | refs/heads/master | 2020-07-04T03:52:35.880647 | 2019-09-13T14:24:48 | 2019-09-13T14:24:48 | 202,146,258 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | from PyQt5 import QtWidgets, QtGui
from calculator_ui import Ui_MainWindow
class CalculatorWindow(QtWidgets.QMainWindow, Ui_MainWindow):
FirstNumber = None
UserIsTypingSecondNumber = False
def __init__(self):
super().__init__()
self.setupUi(self)
self.setWindowIcon(QtGui.QIcon('im... | [
"tivole@localhost.localdomain"
] | tivole@localhost.localdomain |
dddff59acc7e38efe8dbcebd0b1f610d0fb996bd | 9c96829cffbbff055e81b7888e6108799b394bc8 | /joke.py | 47d099d7f20e5aafa88cdc207027f8d22bbbb9a4 | [] | no_license | prosvirakov/joke | b42008acf13784ac28dabd1166789bbe45eda7b5 | d524c6f92e32a4673821b8f3621d35e16feea037 | refs/heads/main | 2023-02-27T01:23:15.168964 | 2021-01-24T10:42:53 | 2021-01-24T10:42:53 | 332,422,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import pygame as pg
FPS = 30
pg.init()
skreen = pg.display.set_mode((640, 480))
clock = pg.time.clock()
running = True
while running:
clock.tick(FPS)
for event in pg.event.get():
if event.type == QUIT:
running = False
pg.quit()
| [
"noreply@github.com"
] | noreply@github.com |
3c6fbbd40a445a027d4f85a15efb5f1a5fe41108 | d225ac649a6959f1cb27f506b91518329442c17e | /code by chapter/Chapter 2/ch2_trav_sale.py | 9f3933eed006998f005531f16441b19d80fb29e4 | [] | no_license | ShengjieXu667/modeling-master | 1827f3ace6c7c329a8594816edd74ff45938c6ca | 73c6f35813bf19b758e915e06fe48d0990c2423e | refs/heads/master | 2023-08-21T19:45:09.968560 | 2021-10-15T10:06:56 | 2021-10-15T10:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 18 19:49:42 2021
@author: tom verguts
The travelling salesperson, with some help from Hopfield
"""
import numpy as np
import tensorflow as tf
d12, d13, d23 = 1, 4, 4
d = np.array([[0, d12, d13], [d12, 0, d23], [d13, d23, 0]]) # distances
g = 3 #... | [
"tom.verguts@ugent.be"
] | tom.verguts@ugent.be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.