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
54a387c790984df183cb85b9bcb5b79d3f3a2050
cf0ebf5cc48849bc30936a0d09aa0d5f9be57c61
/colors_copy.py
53cc7a3a8b4fd47e35fef6ec30a23796c02662d2
[]
no_license
roman7khavrona/module7
c89f9d3c85f9d2e8951861f98b20f21ab93043c9
3be7c5af78991561e7560c27e647813a4e9708b9
refs/heads/master
2023-03-17T04:21:18.385690
2021-03-05T16:15:48
2021-03-05T16:15:48
343,238,448
0
0
null
null
null
null
UTF-8
Python
false
false
2,882
py
from graph import * from graph_io import load_graph, save_graph, write_dot from collections import Counter def color_graph(graph, D, I): for v in graph.vertices: v.colornum = 0 current_color_predefined = 1 for j in range(len(D)): D[j].colornum = current_color_predefined I[j].color...
[ "roman.khavrona@gmail.com" ]
roman.khavrona@gmail.com
d5045a0105886866a84b8dc9fa6f7683d3dd690c
7cd85c478b6e0b9952e32071f327f5acadef9ea6
/apps/foxes_app/migrations/0001_initial.py
5177404b726c018b09dbf6b100ab9003a53c8304
[]
no_license
thecrimsonvixen/python_belt
35bc0515837436e6b16e3dcfa0247668f560f4b2
4c122793f9b7184db2fc7f19ee83462014071ca1
refs/heads/master
2020-03-07T10:39:36.364107
2018-03-30T14:36:31
2018-03-30T14:36:31
127,436,058
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-29 22:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', ...
[ "ashmateja@gmail.com" ]
ashmateja@gmail.com
0551b3619713216024433be5479332a373b4d700
3a082751e9f53913979d8a0102a57c515ed181bf
/face detection in video.py
cdb9a7f2591201c613b7113aa4c0f20d8322b7fe
[ "MIT" ]
permissive
Omkar-Atugade/Face-Detection-with-OpenCV
fabdcf721975aff00aac5433a852d0e1931c6fe8
55387b7aabea3e5c8697aa9f51a5f4e3bdfa883f
refs/heads/master
2022-12-09T13:57:51.838253
2020-08-22T07:05:49
2020-08-22T07:05:49
289,171,411
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
import cv2 face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') cap = cv2.VideoCapture(0) while True : _, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.1, 4) for (x, y, w, h) in faces: cv2....
[ "noreply@github.com" ]
noreply@github.com
7bb26aa80818a9ed70dcae325f932f5178923f9a
2a4ad073755ff447926e44b7c2e0b56b5ded37d2
/NowCoder/36S_两个链表的第一个公共结点.py
52164b5ccc6a09928f661889ab429d8a262f6a87
[]
no_license
wcb2213/Learning_notes
3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c
d481e1754c15c91557027bee872f4d97da3c0fca
refs/heads/master
2021-07-06T15:54:56.199655
2020-09-04T14:05:50
2020-09-04T14:05:50
174,832,296
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
#!/usr/bin/env/ python # -*- coding:utf-8 -*- # Created by: Vanish # Created on: 2019/3/22 # 24ms # 输入两个链表,找出它们的第一个公共结点。 # 公共节点具有相同的地址 # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def FindFirstCommonNode(self, pHead1, pHead2): # write cod...
[ "wcb2213@163.com" ]
wcb2213@163.com
a111d6668265a5b441e1c1cef192578655aa1dc5
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_999.py
c6ccb75a3445f789e1b54569ddab2f820db51ace
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
60
py
# How to bind a TextField to an IBOutlet()? setStringValue_
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
8f142f162efc358061fc7988e08d09bbfb9f83bd
88bafb7a554956e6386eeffc6f346db8f0effe8f
/myCode/train_seq.py
19840eb71c01fe8190a4bfe1d09f52ca307840e2
[]
no_license
Rain-Y/QGExp
74eb4d9888c83022ed19eb7de1ea3e31b2241a9e
f7f4efb35e167dd813d806054ab2e777c92c8dce
refs/heads/master
2020-03-28T17:03:13.326070
2018-09-14T08:14:49
2018-09-14T08:14:49
148,754,052
0
0
null
null
null
null
UTF-8
Python
false
false
6,238
py
# -*- coding: utf-8 -*- from __future__ import print_function, division """ Script for training the autoencoder. """ import tensorflow as tf import logging import numpy as np import argparse import utils import seq def show_parameter_count(variables): """ Count and print how many parameters there are. ...
[ "yyl277078178@163.com" ]
yyl277078178@163.com
c4f2197218adccf1a70cb6f49fb40b76ba9ba488
081b54b77d99869ddd483847fe511db201e6b8f9
/p141/p141a_1s.py
a9677fb2d9824425b0ebfa149b3b0c5612a8f47e
[]
no_license
guigui2993/Euler
6e43eb7a6d810b861187d5d87f9142998e9c1e4c
3e594a23ef5cec93372037c772d675cb5a6618c7
refs/heads/master
2022-11-06T14:51:38.101296
2022-10-24T06:50:15
2022-10-24T06:50:15
72,674,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
import Euler import math lim = 10000 """ sq = {} for i in range(lim2*lim2): sq[i*i] = i """ print("Square loaded") """ print("p,r,d,a,Euler.factorization(r),Euler.factorization(a*a)") for p in [2,3,5,7,11,13,17,19,23,29,31,37,43]: for rr in range(1,lim): r = rr*p for d in range(r+1,lim): ...
[ "guigui2993@gmail.com" ]
guigui2993@gmail.com
6f1a830bc220f8c88cdf036061c5262e8c24d3b7
491ff9f022ad923be3702b9dc54f3dd223e2c418
/angel/angel/urls.py
458c4fe426929bdd26cd762168499eb2fbc1e355
[]
no_license
AS005204/angel
7e64fbec7834b09504c65e7da269814dfe90fa2a
bbb3e6a03dadaec78f19fa902bc2066c8eb44176
refs/heads/master
2023-06-06T13:17:29.086370
2021-06-22T13:48:33
2021-06-22T13:48:33
299,588,879
0
0
null
null
null
null
UTF-8
Python
false
false
1,149
py
from django.contrib import admin from django.urls import path from django.conf.urls import include, url from django.urls import include from django.views.generic import RedirectView from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView from managment...
[ "ksusha1234578@gmail.com" ]
ksusha1234578@gmail.com
7a090d44aa627baf5017b8174068214fd713d8a7
2d6aafcb0926b386243fa2de14745e88984af745
/mirgecom/utils.py
5c5cb3f3ad26df18f7891af4e6cba4ee0ca71b42
[ "X11", "MIT" ]
permissive
kaushikcfd/mirgecom
750007dfd918f9c1600eb2e81c7666d6ee4c15af
47f144782258eae2b1fb39520e96f414ae176ff4
refs/heads/main
2023-09-05T23:39:27.929740
2021-10-21T00:23:39
2021-10-21T00:23:39
353,848,748
0
0
NOASSERTION
2021-04-01T23:10:52
2021-04-01T23:10:52
null
UTF-8
Python
false
false
3,552
py
"""Useful bits and bobs. .. autofunction:: asdict_shallow """ __copyright__ = """ Copyright (C) 2020 University of Illinois Board of Trustees """ __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
[ "noreply@github.com" ]
noreply@github.com
5d31fe8c1ff2ce7e114fb3a1a8d1b47bf514d9f5
666c6eeb6ac477bf4ac93917f33d9bdc2e0c9337
/scn/src/centroidtracker.py
1ec9092059639d8877520800354bbbfb927c0d58
[ "MIT" ]
permissive
LucReveyron/SCN
1a844d75ed7958610bb12043062c77b1069246b3
3eec425975e093edfa86a96d11607e199446e76e
refs/heads/main
2023-06-04T12:09:38.897269
2021-06-20T08:55:05
2021-06-20T08:55:05
358,511,143
0
0
null
null
null
null
UTF-8
Python
false
false
5,026
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tracking based on centroid distances evolution mostly inspire from : https://github.com/Neoanarika/object-tracking-detection/blob/master/centroidtracker.py """ from scipy.spatial import distance as dist from collections import OrderedDict import numpy as np class...
[ "lucreveyron@MacBook-Pro-de-Luc.local" ]
lucreveyron@MacBook-Pro-de-Luc.local
d2e724651959af6b3b9bbfed7c6ca532e920040d
c9d5ca04f42226d3c6b10f2318aebacfb43cfda7
/tests/test_algebra/test_vector.py
3ff9a7d064ee6f944d468e6db8a6a538ef3349e5
[ "MIT" ]
permissive
ioztelli/ezdxf
cfb81deb7b666fa4e0ed32f1b0753fbe5faa57ee
59605dc34c44fe4ad3a8162d6520a3b4776582b4
refs/heads/master
2020-04-21T18:37:37.022364
2018-11-28T12:56:19
2018-11-28T12:56:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,141
py
import sys import pytest import math from ezdxf.algebra.vector import Vector, is_close PY3 = sys.version_info.major > 2 def test_init_no_params(): v = Vector() assert v == (0, 0, 0) assert v == Vector() def test_init_one_param(): v = Vector((2, 3)) assert v == (2, 3) # z is 0. v = Vector((...
[ "mozman@gmx.at" ]
mozman@gmx.at
1bb53ab09c450a0c0714ed9d09f43cabce573f0b
50adb49fed426f53e98143b05e67f06b0f02a6f4
/models/submodules/sampling.py
8dbe96f75549cbf577c0644923c3696192045a03
[]
no_license
ryokan0123/image_captioning
accdcd62d2a6091d09cb68f80886cf77c66f24ab
ccbce08e77b0fe4426426b0186e276ba8c29eda1
refs/heads/master
2023-07-20T07:42:05.946905
2020-07-29T04:09:50
2020-07-29T04:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
import torch import torch.nn.functional as F def sampling_from_logits(logits: torch.Tensor, temperature: float = 1.0, top_k: int = None, top_p: float = None): """ Parameters ---------- logits : torch.Tensor (batch_size, num_cl...
[ "ryou0634@gmail.com" ]
ryou0634@gmail.com
997ba9f4cbb150c724ffa9ede9abcafe264fc874
fe22f594742a6bbba6c2f2ca6d0615662b3fdb3b
/AppLanding/populate_AppLanding.py
50aa5438c1d25deaa12b9043bd78f45143573663
[]
no_license
Reeshoon/Construction-and-Raw-Materials-Solutions-Full-Website
46a965f9b5f2b52899366ebdb959709c0d0d2c38
5658a5940a97724350cb2a68bb331fcad36281c1
refs/heads/master
2022-12-21T00:18:26.075087
2020-09-17T08:25:36
2020-09-17T08:25:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,264
py
import os # Configure settings for project # Need to run this before calling models from application! from django.db import connection import cx_Oracle import re os.environ.setdefault('DJANGO_SETTINGS_MODULE','AppLanding.settings') import django # Import settings django.setup() import random from basic_app.models imp...
[ "reeshoon@gmail.com" ]
reeshoon@gmail.com
880b50410677bb12241d40fc857e40af2031a198
e7268197a7940c35ba9fa2146234fd5811b42196
/fake_csv/main/migrations/0014_auto_20210905_1836.py
00561c990fd7f2a8040528cfcc06e56f3ab78ac7
[]
no_license
Sergeynonnisnon/fake_csv_site
4ba485040d597c7311167d7b537ed7e6df04d0f2
47dbe51da3ad0d0d1e68cf663ee01577ab1b32d0
refs/heads/master
2023-07-18T15:22:43.429560
2021-09-06T16:35:40
2021-09-06T16:35:40
403,601,800
0
0
null
null
null
null
UTF-8
Python
false
false
1,549
py
# Generated by Django 3.2.6 on 2021-09-05 18:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main', '0013...
[ "nonnisnon@gmail.com" ]
nonnisnon@gmail.com
2d74971b02860138baad3393d31c73349ad8ba12
a0aa38bde0f6cb0d5d6e689e1cbd00a0d063b135
/ext_libs/geopy-1.23.0/test/geocoders/openmapquest.py
375fb05aa60a9384a8946d6a0b2e402a306bc8b3
[ "MIT" ]
permissive
Inncee81/oam_qgis3_express
3bfe215283debe3f06bbf90679e87363371f4276
b32e6020f6e6c4790456a3fb7748aa518d193590
refs/heads/master
2023-04-19T12:47:33.685880
2021-05-07T10:00:48
2021-05-07T10:00:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
import unittest import pytest from geopy.exc import ConfigurationError from geopy.geocoders import OpenMapQuest from test.geocoders.nominatim import BaseNominatimTestCase from test.geocoders.util import GeocoderTestBase, env class OpenMapQuestNoNetTestCase(GeocoderTestBase): def test_user_agent_custom(self): ...
[ "yoji.salut@gmail.com" ]
yoji.salut@gmail.com
e5bf2c4d60588cfbf3b0c1a633455874473c44ef
24861b20c960f67198d865f8798523d76b1b864d
/solutions/217. Contains Duplicate.py
3351cdabefaf33f81098afdaba8808f86d47b174
[]
no_license
Abhigujamagdi/Leetcoderecord
37c15b0253f27ac7d573c9078aa4ab9f7ff684d0
89f0ebdd5711916b4e1d9d1b9e5aa8231c25bfd2
refs/heads/main
2023-05-29T09:47:57.915480
2021-06-09T22:18:37
2021-06-09T22:18:37
339,869,138
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
class Solution:    def containsDuplicate(self, nums: List[int]) -> bool:        dict = Counter(nums)        for value in dict.values():            if value > 1:                return True                    return False        
[ "61365651+Abhigujamagdi@users.noreply.github.com" ]
61365651+Abhigujamagdi@users.noreply.github.com
67f75373baf9b9c5e9920da1ae7dfbb350ad42f7
349f5bfac9b147c62ff38217e72dd6614ec70f87
/ribopy/cli/info.py
1f3678a36b38ea12136d8c6c041987170a197a30
[ "MIT" ]
permissive
ribosomeprofiling/ribopy
0c76a2f588b08b954ae462f81d018f9e26fe07f1
380421e202f25a9829b36c1c1d5a8bf333d9188f
refs/heads/master
2022-10-26T12:35:02.596001
2022-10-18T20:08:01
2022-10-18T20:08:01
203,284,628
4
3
MIT
2022-01-13T19:23:31
2019-08-20T02:28:27
Python
UTF-8
Python
false
false
402
py
from .main import * import click from ..info import ribo_file_info ########################################################### @cli.command() @click.argument('ribofile', type=click.Path(exists=True )) def info(ribofile): """ Displays a summary information about the given ribo file """ ...
[ "hakan.ozadam@utexas.edu" ]
hakan.ozadam@utexas.edu
c61cf247eba9ce1336dc710157a88f1dfd273321
0c083ada4d8017de273a2aa81ff067adbbbf8e72
/torchtoolbox/tools/utils.py
fee47637e5075c4f8c48c2a488dfdbb25970dcee
[ "BSD-3-Clause" ]
permissive
zhjpqq/torch-toolbox
aa14e62e19405154ba19adfdf18e77046630ba58
cae8f2ec162f9893df0dad9788fde2c20cf89e5c
refs/heads/master
2020-07-29T05:24:45.386328
2019-09-19T10:31:53
2019-09-19T10:31:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
# -*- coding: utf-8 -*- # @Author : DevinYang(pistonyang@gmail.com) __all__ = [] import os def check_dir(*path): """Check dir(s) exist or not, if not make one(them). Args: path: full path(s) to check. """ for p in path: if not os.path.exists(p): os.mkdir(p)
[ "pistonyang@gmail.com" ]
pistonyang@gmail.com
f23f1f92ebec803ab3cfd711f847c4a7e60f5e61
cf652cb90f9d6b22b5943e7d025af631214a904d
/contrib/build-wine/deterministic.spec
01dff8d60d15b6e08d3e971bbaa7ad2890eb9531
[ "MIT" ]
permissive
ddude1/TestLite
02919c68013d2ede9195d618d94260b842a5e292
3f3c00e4ef03dd9b23b99b02f9a8895da8d65aef
refs/heads/master
2022-12-11T12:22:25.029101
2018-06-13T14:11:51
2018-06-13T14:11:51
136,489,568
0
0
MIT
2022-09-23T21:47:03
2018-06-07T14:31:31
Python
UTF-8
Python
false
false
3,262
spec
# -*- mode: python -*- import sys for i, x in enumerate(sys.argv): if x == '--name': cmdline_name = sys.argv[i+1] break else: raise BaseException('no name') hiddenimports = [ 'lib', 'lib.base_wizard', 'lib.plot', 'lib.qrscanner', 'lib.websockets', 'gui.qt', 'mnemo...
[ "32743542+ddude1@users.noreply.github.com" ]
32743542+ddude1@users.noreply.github.com
15cac5b8ff1d059ffcea8b8a345f57ef9bfe4714
3a8d6082d0a24bcfd567f961883bdab799cec5a1
/processors.py
566d793bc95ed7ac1ee903ed3bc5b39108f32459
[]
no_license
rothos/chebsite
b5d2ae3fc427d4e755634153e8965ebe8a27c83f
17501ca64fc81562868cfd2154d79b284b737b9b
refs/heads/master
2022-01-19T17:07:28.310495
2015-06-05T15:31:34
2015-06-05T15:31:39
20,063,703
0
0
null
2019-07-10T19:28:35
2014-05-22T14:18:04
Matlab
UTF-8
Python
false
false
5,161
py
from __future__ import unicode_literals from io import open from textwrap import dedent import os, yaml, jinja2, markdown, re #----------------------------------------------------------------------------- def get_yaml_frontmatter(fn): """Return the YAML frontmatter of a Markdown document.""" with open(fn, 'r',...
[ "hrothgar@maths.ox.ac.uk" ]
hrothgar@maths.ox.ac.uk
dbcf95b0d080fee2d361e96609f6ccd1e049734e
bf2e239a5082c8837b4347c2edc17c7f0ba0b12e
/Topics/Class instances/Movie night/main.py
6d9dc629c2e100956d2772d20eed79ead8ecc22a
[]
no_license
lymanreed/Coffee_Machine
fc97672479e2d7a0898f3f566de8f36d50c2bb2c
e307447faf9c788008ed97cc36e9d59a3c135555
refs/heads/master
2023-07-24T11:26:35.367575
2021-09-05T11:59:26
2021-09-05T11:59:26
403,296,533
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
class Movie: def __init__(self, title, director, year): self.title = title self.director = director self.year = year # objects of the class Movie titanic = Movie("Titanic", "James Cameron", "1997") star_wars = Movie("Star Wars", "George Lucas", "1977") fight_club = Movie("Fight Club", "Da...
[ "lymanreed@gmail.com" ]
lymanreed@gmail.com
501c240ac633175bc8de39a407a2749cf7447154
8c509776f07a16d7bb3faa551d59e1e0d22dc198
/myportfolio/blog/urls.py
0f64a60c475d6427761a30d3df3cb9b7b3ab7da0
[]
no_license
NumbShell/Python-Django
bfba6b6042b8c7f69bb4df8aa79148eb1ff2eb04
fb62cce4550b1af04349a213bb3b3f99cea7d8c7
refs/heads/master
2020-12-24T10:32:01.584571
2016-11-09T13:39:43
2016-11-09T13:39:43
73,156,701
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from django.conf.urls import url, include from django.views.generic import ListView, DetailView from blog.models import Post urlpatterns = [ url(r'^$', ListView.as_view(queryset=Post.objects.all().order_by("-date")[:25], template_name="blog/blog.html")), url(r'^(?P<pk>\d+)$', De...
[ "noreply@github.com" ]
noreply@github.com
085642486ae150a68e0906d01e852d22de44f6a2
ac5663ea8561477d97957c7d851e05bf0d9afa2f
/venv/bin/pdf2txt.py
33303c3f9bddf6f4a0c6aabd96193797f29b104d
[ "Apache-2.0" ]
permissive
xiayufeilucy/deloitte-digital-competition
5a8cd46eb2874dfd5eccd2ba4fd702a7002b2c4f
af4fc18cbf713c9c7f0e3ec175ef50b6ef211d6c
refs/heads/master
2022-12-10T20:51:46.191386
2019-07-31T13:56:16
2019-07-31T13:56:16
199,681,877
0
1
null
2022-11-29T21:36:18
2019-07-30T15:44:54
Python
UTF-8
Python
false
false
6,067
py
#!/Users/xiayufeilucy/Desktop/deloitte-digital-competition/venv/bin/python """ Converts PDF text content (though not images containing text) to plain text, html, xml or "tags". """ import argparse import logging import six import sys import pdfminer.settings pdfminer.settings.STRICT = False import pdfminer.high_level ...
[ "yufeix@wharton.upenn.edu" ]
yufeix@wharton.upenn.edu
cbf50825c142fbfee7d7ed9f0cf3425065de1eee
b95b57348e4f33bc96769f5e30662c163a8e5d70
/examples/empty_project/setting.py
b847c155ca06ec690493c2cff0548c8ea1f1fd22
[ "MIT" ]
permissive
ladder1984/globefish
18dd6e54e3706f029b90ff9ef5a251a0ebf47927
923cbf3f67584406a3095237c873efa52296345a
refs/heads/master
2021-01-17T16:46:15.755120
2018-06-05T06:09:51
2018-06-05T06:09:51
46,862,842
10
3
null
null
null
null
UTF-8
Python
false
false
164
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) STATIC_URL = '/static/' TEMPLATE_DIRS = 'templates'
[ "ladder1984@gmail.com" ]
ladder1984@gmail.com
55033d323fb8ad7c545fa8fe99e0349542e1ccc9
5c57f08c430b981a7bd5f7d896accee54c5ba1d9
/Auditorium.py
46f4c1d5037f76f668da6840bbd9d86362e87900
[]
no_license
shahin-shuvo/Booking_System
cfc74697d8100eed77bbb95a7512f2b8f24e3b86
630f4f510696f68999d37adcb2fca48f9d8b36cd
refs/heads/master
2020-03-06T18:38:55.293003
2018-05-04T19:39:33
2018-05-04T19:39:33
127,011,255
0
1
null
2018-03-27T16:56:33
2018-03-27T15:52:41
Python
UTF-8
Python
false
false
3,032
py
import base64 import time from datetime import datetime, date from json import dumps from flask import Flask, render_template, request, session, make_response username = "Guest" class auditorium_book_class: def __init__(self, mysql): self.mysql = mysql def auditorium_final(self): date_curre...
[ "shahinshuvo96@gmail.com" ]
shahinshuvo96@gmail.com
656b194e471f9282be8dd625c206c14516ceaa91
104c5febd5300511b148716f91b21459bbb42977
/main_app/migrations/0009_auto_20210208_0114.py
531d0af30e4e41a14429a7fd557c67e362d66ab8
[]
no_license
cassjacques/TatShop
75a22ddf0a1f9604b2e8cc37ca2c09dea01eaddf
150ae10a394bc0917fd5ed76be705ae63c5f6e97
refs/heads/master
2023-07-23T09:47:46.967674
2023-07-10T19:26:42
2023-07-10T19:26:42
347,862,338
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
# Generated by Django 3.1.6 on 2021-02-08 01:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main_app', '0008_auto_20210208_0039'), ] operations = [ migrations.RenameField( model_name='artist', old_name='flash', ...
[ "75631685+cassjacques@users.noreply.github.com" ]
75631685+cassjacques@users.noreply.github.com
fbb8c00202fa4ff0094ed26fa723f47ebe2ba950
913a2afce0fe97bd62687d0cbe320f97ad42e571
/ZeeDAnalysis/share/ZeeDAnalysis_jobOptions.py
1bee8ac2050fe250f35e41724b74999f01577a11
[]
no_license
kgasniko/ZeeD2p76
028f5d4be09f0928c71c4972a877ef90be6af80a
0bafb5767078bce5bfca31409d77d5491012417a
refs/heads/master
2020-04-06T03:31:55.595961
2017-11-22T10:16:35
2017-11-22T10:16:35
61,799,124
0
0
null
null
null
null
UTF-8
Python
false
false
7,517
py
# Helper------------------------------------------------------------------------ include("ZeeDAnalysis/ZeeDAnalysis_Helper.py") ZeeDOutputLevel=ERROR ZeeDEvtMax=-1 ZeeDCalcJets=False ZeeDTruthJets=False ZeeDUseTrigger=True ZeeDDoTriggerMatching=True ZeeDreadType=2 #ZeeDOneBinMuonSF = False #ZeeDChargedMuonSD= True #Zee...
[ "ksugasnikova@gmail.com" ]
ksugasnikova@gmail.com
813d9e7eb3e70db2105ade643565e501ba212086
9424fe99abdb012b9b3212ee89591da0afa711f6
/fpga_ssd_backup/tools/op_tools/ssd_get_free_blocks.py
653e3242e1c8b9029f979d5c65a5feb378d34241
[]
no_license
zweiustc/python_tools
8663a90a6137112c8f856dd27856b8d00c405bbd
84093e9ea6a5789e4b7925f233a6ea7b38b15d8e
refs/heads/master
2021-01-13T17:32:45.938338
2017-02-17T12:46:13
2017-02-17T12:46:13
29,893,331
1
1
null
null
null
null
UTF-8
Python
false
false
840
py
import os, sys import math ssd_phy_blocks_per_channel = 8192 ssd_channel = 44 def ssd_free_blocks(): channel = 0 free_blocks = [None] * ssd_channel while channel < ssd_channel: res = [] command = 'ssd_read_table -c ' + str(channel) + ' -t 1 | grep \'invalid physical block\'' result...
[ "zweiustc@gmail.com" ]
zweiustc@gmail.com
559915567c4d11e68c5b74458e4abfc13f435a18
865d3a83d03bf785b919ee319314fea1dc123e40
/delete_0.py
0897a49ec83a64af4c51b8af94570c5f0e545795
[]
no_license
hustzxd/bmp_crop
2e6a90bbb5e625172ebe665cb2eecef71a04bd15
e5087c911f98937489dc47d515dda61d58b0d352
refs/heads/master
2021-01-22T03:30:09.526436
2017-06-26T14:15:36
2017-06-26T14:15:36
92,379,986
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
import sys import os def delete_bmp(dir0): files = os.listdir(dir0) count = 0 for f in files: if count % 2 != 0: os.remove(os.path.join(dir0, f)) count += 1 count %= 2 else: count += 1 count %= 2 if __name__ == '__main__': i...
[ "2227820226@qq.com" ]
2227820226@qq.com
7e9bc3874f0bd008a5af693521cc9665ca59c5c6
b81e134d6f884ab8ec0d22fcdf6fc98bb71a1830
/week_5/even_indexes.py
40eb0bf35fe2be492e6b7c2c5f2286c6f7c8d502
[]
no_license
babzan/python_course
c2b16309e3bd718000f135109ec1e4aa7daa6085
9faf14f7570ead2c1af7d14e68123fbee941e515
refs/heads/main
2023-04-19T11:20:42.087437
2021-05-08T17:56:05
2021-05-08T17:56:05
343,699,127
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
################################# # # # BABAK HUSEYNOV # # # ################################# a = input().split()[::2] print(' '.join(a))
[ "babekius@gmail.com" ]
babekius@gmail.com
b31c0573601ee8fe2cd94345a09c2c12c1848384
933d4507652e777eb537b8e034247df7870fbcc7
/test/config/test_filter.py
a23bf8d17f08bb8fcea1659ce3644f2e95069e61
[ "MIT" ]
permissive
GrafeasGroup/tor_worker
bedbfee44216d0b1d1648f948f592fa047fc95a1
b17981f45323c182c2526749250018450d034ef7
refs/heads/master
2021-05-09T11:49:32.327761
2018-06-05T03:16:47
2018-06-05T03:18:47
118,999,710
1
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
from tor_worker.config import PostConstraintSet import unittest class FilterTest(unittest.TestCase): """ """ def setUp(self): pass def test_no_domains_in_settings(self): settings = { 'bypass_domain_filter': False, 'filters': { 'domains': { ...
[ "opensource@thelonelyghost.com" ]
opensource@thelonelyghost.com
b84c667b302b4e28e6ce26b80a0f1100b53915e8
8666443cad9dca0893ff9eb79b08136b767402e1
/Hogeschool Utrecht/Programming/Python Scripts/Week 3/Les 2/pe 6_4.py
7d0c25936137d9c8b85f928fbc327d639cd2dde6
[]
no_license
dylanrozendom/Programming
31f747e9226f2e028cea8ddd8757c2fcdd157804
39a40e676bf717c1e8519f3d5c2ec623257cf7ba
refs/heads/master
2021-05-16T05:49:02.921291
2017-10-09T13:07:45
2017-10-09T13:07:45
103,263,180
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
studentencijfers = [ [95, 92, 86 ], [66, 75, 54], [89, 72, 100],[34, 0, 0] ] def gemiddelde_per_student(studentencijfers): for student in studentencijfers: antw = (sum(int(i) for i in student) / 3) print(antw) def gemiddelde_van_alle_studenten(studentencijfers): for student in studentencijfers...
[ "dylan.rozendom@student.hu.nl" ]
dylan.rozendom@student.hu.nl
354f84a91bfa9fb50948ba4a5b0b9fca0a5a2e8d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_95/784.py
c996bf19a378d7bdffef6baad4ca8a6bd272cf74
[]
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
660
py
f = file('cipher') string_mapping = [] char_mapping = {} x = int(f.readline()) for i in range(x): string_mapping.append([f.readline()]) for i in range(x): string_mapping[i].append(f.readline()) for i in range(x): for j in range(len(string_mapping[i][0])): x1 = string_mapping[i][0][j] x2 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
92efc8c5c47bc50740070bd64a9cbe610be09fc5
5b6b7eae9cf75803b4e855d75eec42638ac2d9c3
/myKNearestAlgoClassifier.py
35d83f0b4478cfb124c9aaaf89f418380938009b
[]
no_license
shaybanerjee/MachineLearning
973e412b9a00cbbe7a165009b48c06603b80406e
df1800f748bf444542e9c319866f6bb519410786
refs/heads/master
2020-03-07T18:28:56.405966
2018-05-27T16:42:18
2018-05-27T16:42:18
127,639,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
import numpy as np from math import sqrt import matplotlib.pyplot as plt from matplotlib import style from collections import Counter import warnings dataset = {'k':[[1,2],[2,3],[3,1]], 'r':[[6,5],[7,7],[8,6]]} new_features = [5,7] # for i in dataset: # for ii in dataset[i]: # plt.scatter(ii[0], ii[1], s=...
[ "shayon.banerjee@ibm.com" ]
shayon.banerjee@ibm.com
55e705dfe0e11bc045a55ecd85bc6dc9f54a1d2b
455cab19b8c1b7fa43d97e93137834431ab479b1
/hw0/1a.py
d88e062b989e94269b9eb3674a8829010c0dbae4
[]
no_license
janeon/hsieh-stat339
f5c731503d17798be4bd18e33601e9060c7d5b88
8927e45da48b2a867e10cd94ac138b76c0767843
refs/heads/master
2021-01-03T04:30:39.101070
2020-02-12T04:04:58
2020-02-12T04:04:58
239,923,085
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = np.floor(x) plt.xlabel('x axis') plt.ylabel('y axis') print(type(plt.step(x, y))) plt.show()
[ "jhsieh@oberlin.edu" ]
jhsieh@oberlin.edu
7fb02313ef3c764eb8ef18097575342a6eb7585a
9cb9eecda1f49289fef35cb3710580006b066ddc
/Python/mark_occurrences/markup.py
28546724e847b96060ebcf01321f9891c2c84bc6
[]
no_license
nealgavin/Learing-experience
6caed4600e2d859a3a8c00703c69276d6d33f428
b0c2c8b8631409eefcec64046ae1af6a3db7ee7a
refs/heads/master
2021-01-25T05:21:59.562069
2014-10-08T11:28:23
2014-10-08T11:28:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,321
py
#coding=utf-8 import sys,re from handlers import * from util import * from rules import * class Parser: """ 语法分析器读取文本文档,规则,并且控制 """ def __init__(self,handler): self.handler = handler self.rules = [] self.filters = [] def addRule(self,rule): self.rules.append(rule) def addFilter(self,pattern,name): def ...
[ "nealgavin@126.com" ]
nealgavin@126.com
d33b3037fde836e894042e37c0f8e0e6ac05213c
8696f5e3bfa35dc158cf484934fb355c88995eab
/plot_HadISST_CMIP5_sea_ice_extent.py
ba1fe4308514416829088202229ea415c8b23598
[]
no_license
SMR3/CREDIBLE_SIC
f68ce15f35e3f0efbb4ea3ea4baf176218640fa2
963fd95988428fb2157925437ce27b9d6d7a796a
refs/heads/master
2021-01-12T18:20:31.374796
2016-09-27T13:01:09
2016-09-27T13:01:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,128
py
#! /usr/bin/env python ############################################################################# # # Program : plot_HadISST_CMIP5_sea_ice_extent.py # Author : Neil Massey # Purpose : # Inputs : # Output : in the output directory: # # # Date : 11/06/15 # #############################...
[ "nrmassey@yahoo.co.uk" ]
nrmassey@yahoo.co.uk
bdc46c801ff7e6fbad8a9e2280696fd33081ec01
795aaf4cb7a2c3bdaf1034c45b3e8072a9082214
/actions/insert.py
abcdb6488ca88e7c3d3f8ac9c3db96d5d1c39674
[]
no_license
phdkiran/zendesk
0abff67e94a7862242fd3cfba7e5c96e3f0a727d
644ad8bc0262b0c05c818ad593fdb22930b81d5b
refs/heads/master
2021-01-11T02:59:10.320921
2016-10-14T03:32:45
2016-10-14T03:32:45
70,870,428
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
from lib.actions import BaseAction from zenpy.lib.api_objects import Ticket from zenpy.lib.exception import APIException class AddTicket(BaseAction): def run(self, subject, description): try: newTicket = Ticket(subject=subject, description=description) response = self.client.ticket...
[ "phxkiran@gmail.com" ]
phxkiran@gmail.com
765f9e9adbec063cf4de449b97c0a40bc24bbb3d
12700a4c95feb0755e3bf4bb7f532f4684c62e77
/graph.py
cabe56e219323dead2fdbaf45aaff248a6985536
[]
no_license
NolanCarbin/Pathfinding-Builder
754b1804ffd43f30271f28ecece08317b31767b4
b6ac9a1109d919b139ed8ea7d5ebb5ccc95852d4
refs/heads/main
2023-07-16T14:46:17.774254
2021-08-27T19:05:30
2021-08-27T19:05:30
377,263,941
0
0
null
null
null
null
UTF-8
Python
false
false
1,940
py
def initNodeList(app): nodeList = [] for row in range(app.rows): for col in range(app.cols): if (row, col) not in app.wallNodes: nodeList.append((row,col)) return nodeList #interval for using cells is 1 def createAdjacencyList(L, interval): def isEdge(row1, col1, ro...
[ "nolan2556@gmail.com" ]
nolan2556@gmail.com
67478ebc3d95f581efd04b7e8f9785e8c7356d45
7afcf3cf0f55ecc255aabdda3b90c44528f53b50
/Crawler/ai/ai/ai/items.py
ed1681a61ab48cf04819544016e5a09308405564
[]
no_license
entscheidsuche/scraper
368c6ac8fd14e15116c26f936f32d2ed0acac2ae
b9fafd3f1c2600a78471d4e4c466250ab11a8f33
refs/heads/master
2023-04-05T22:09:20.270314
2021-04-18T19:29:24
2021-04-18T19:29:24
264,894,732
0
1
null
null
null
null
UTF-8
Python
false
false
390
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class AiItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() name = scrapy.Field() link = scrapy.Fiel...
[ "joern@erbguth.net" ]
joern@erbguth.net
0742552a226a6f4d790b072a1d538cdf860cafcf
dbcfc6fd7070cb8a8520ffe4596d780d424f1899
/background.py
f9d44d40efa8a411964831f903b2682775890b71
[]
no_license
JaySi98/Python_Space_Invaders
b4f9a315feebfc41aa8c04da79b1d59e3b69e031
6a27dc824a0bb8708df7adcd8c7df26c7a673e67
refs/heads/master
2020-08-08T04:54:52.747403
2019-10-08T18:27:42
2019-10-08T18:27:42
213,716,992
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
import pygame from pygame.sprite import Sprite class Background(Sprite): def __init__(self, settings): pygame.sprite.Sprite.__init__(self) self.image = pygame.image.load(settings.screen_path) self.rect = self.image.get_rect()
[ "jakub.szkiladz@wp.pl" ]
jakub.szkiladz@wp.pl
2c630ea507341a23dde066a866069c34907e14b4
57809b8b125fb9588f1bab8344d7d9cbbe7b5a5e
/tests/integrations/test_urls.py
6d8ea06d731f88a010626fb826d7fb1ed2750cbf
[ "MIT" ]
permissive
fossevents/fossevents.in
a538f4a4c4644080990711b11780b944a979f293
66aa04829ce0b422169fc57984e1092a0ecd573f
refs/heads/master
2021-09-24T20:53:26.353654
2021-09-16T07:51:39
2021-09-16T07:51:39
33,480,943
17
34
MIT
2021-06-10T20:38:18
2015-04-06T12:31:08
Python
UTF-8
Python
false
false
308
py
import pytest pytestmark = pytest.mark.django_db def test_admin_interface(client): public_urls = [ '/admin/login/', '/', '/about/', '/privacy/', ] for url in public_urls: response = client.get('/admin/login/') assert response.status_code == 200
[ "me+github@saurabh-kumar.com" ]
me+github@saurabh-kumar.com
d5e9ddbf4cd946d176d9f9410b47c88c0bc6f578
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/feature/vt/gui/task/ForceApplyMarkupItemTask.pyi
a0d1f4c08ef41ab1d8ca046c6f84079e18d142a4
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
1,499
pyi
import ghidra.feature.vt.gui.task import ghidra.util.task import java.lang class ForceApplyMarkupItemTask(ghidra.feature.vt.gui.task.ApplyMarkupItemTask): def __init__(self, __a0: ghidra.feature.vt.api.main.VTSession, __a1: java.util.Collection, __a2: ghidra.framework.options.ToolOptions): ... def addT...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
142ccc3476b5fe4d85457ed9a3a7efabeb4b1b2c
2aa8e56c8001f5ab7476b2159bad284666b54df8
/setup.py
f2b328edae5a0e5f0b140fea332c45e07cb5041b
[]
no_license
ssh0/12-4_history-dependent_rw
d1f5fd3e1fe09e3ffc351e7fb6d8d50b8e10c3bf
ab1d59cdb51182e95e472e9eb834ee65c2aab5a8
refs/heads/master
2020-05-19T14:44:48.673794
2015-05-29T12:21:26
2015-05-29T12:21:26
24,186,628
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
#! /usr/bin/env python # -*- coding:utf-8 -*- # # written by Shotaro Fujimoto, June 2014. from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules = [Extension("HistoryDependentRWc", ["HistoryDependentRWc.pyx"])] setup( name='HistoryDependentRW...
[ "shotaro@shotaro-Fujitsu@fuji.waseda.jp" ]
shotaro@shotaro-Fujitsu@fuji.waseda.jp
fcd8f4b935de79b3970106ec58f17b968edefb80
a46897f8610749db614e53208c39b2f0308011b3
/usage_report.py
391c50d21343498a8efc1599eae83b780b32f90b
[]
no_license
seidelj/uprogram-math
4bd269c2a2fe4218529f4369555cbd51e04b4363
4a73ec6db1de48624046abe321d483f094e6ee1c
refs/heads/master
2021-01-19T03:25:19.077484
2016-10-15T01:15:47
2016-10-15T01:15:47
52,285,302
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
import website.wsgi from request.models import Request from mathtutor.models import Student import csv csvFile = open("access.csv", 'w') writer = csv.writer(csvFile, csv.excel) columns = [f.name for f in Request._meta.get_fields()] writer.writerow(columns) for r in Request.objects.all(): if r.user_id: row ...
[ "seidel.jp@gmail.com" ]
seidel.jp@gmail.com
290788da9c02368ec2297cca7a6283e7fc5b95a1
9f6e256b96f20fb4f9e13c42066b49d43d22f47f
/docs/extensions/details.py
231d1c55eabc4bda563a504930f732a7da5cf3f3
[ "MIT" ]
permissive
bijij/Donphan
4daa75fee451e6b911e4e24f2c14c27b56102ee3
c583332d290473c19a8cdd9f7c14cf17a7d17de1
refs/heads/master
2023-08-16T21:32:35.382536
2023-08-13T11:52:15
2023-08-13T11:52:15
188,970,855
19
3
NOASSERTION
2022-12-22T15:23:47
2019-05-28T06:49:48
Python
UTF-8
Python
false
false
1,708
py
from docutils.parsers.rst import Directive from docutils.parsers.rst import states, directives from docutils.parsers.rst.roles import set_classes from docutils import nodes class details(nodes.General, nodes.Element): pass class summary(nodes.General, nodes.Element): pass def visit_details_node(self, node...
[ "josh.ja.butt@gmail.com" ]
josh.ja.butt@gmail.com
a3e82a1f2efc481e4336c6020234f9bf90f84a93
f11600b9a256bf6a2b584d127faddc27a0f0b474
/normal/809.py
4bae6be20deb773c0675bd27ac9141f4cb83b3b5
[]
no_license
longhao54/leetcode
9c1f0ce4ca505ec33640dd9b334bae906acd2db5
d156c6a13c89727f80ed6244cae40574395ecf34
refs/heads/master
2022-10-24T07:40:47.242861
2022-10-20T08:50:52
2022-10-20T08:50:52
196,952,603
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
class Solution(object): def expressiveWords(self, S, words): def RLE(S): return zip(*[(k, len(list(grp))) for k, grp in itertools.groupby(S)]) R, count = RLE(S) ans = 0 for word in words: R2, count2 = RLE(word) if R2 != R:...
[ "jinlha@jiedaibao.com" ]
jinlha@jiedaibao.com
8fb4a24b711bcdae4fa0519ce8c042f6ac491c4b
cc9ad8c32cc4da9d7e26cb7624ad7757d09c18d5
/mainapp/admin.py
5c943858cdb5fc2818ae919829d32077439e4768
[]
no_license
farxodjan1999/E-commerce
222277c1f6c52ea200c7ca002e1b919a396854a1
92eff71aa37259daae967c3a7c57d10d659d8683
refs/heads/master
2023-07-10T12:44:52.881622
2021-08-08T09:16:34
2021-08-08T09:16:34
393,778,418
2
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
from django.forms import ModelChoiceField, ModelForm from django.contrib import admin from .models import * class SmartphoneAdminForm(ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) instance = kwargs.get('instance') if not instance.sd: self.f...
[ "farxodjan1999@gmail.com" ]
farxodjan1999@gmail.com
352a4229534a72aefe03888b1936f51cf27ea3c6
fb3f7ff5fed57d6485270fc964635fc6bf179888
/recruitingAPI/APIrest/serializers.py
184e4cb7eb26d0a5afef72be44fa3d3b6bc6b790
[]
no_license
saad-ahmed98/DjangoAPIRest
884bcccb2f580360cde63e1f9ecfb1e78cbc8f2b
8e9c13eff5a9681eac3cf652abc8820c35b0750c
refs/heads/main
2023-02-24T04:42:43.752535
2021-01-28T16:09:08
2021-01-28T16:09:08
333,502,004
0
0
null
null
null
null
UTF-8
Python
false
false
2,040
py
'''serializers pour manipuler du json sur l'api''' from rest_framework import serializers from .models import Participant,Activity,Attendance,Event class ParticipantAttendanceSerializer(serializers.ModelSerializer): '''serializer utilisé pour afficher le participant d'une attendance''' class Meta: mod...
[ "saad-el-din.ahmed@etu.unice.fr" ]
saad-el-din.ahmed@etu.unice.fr
73f72b2fbf3fe238120653ea56665dfd3c418321
ceed902770402cae3abdade9d291335dc18b5f9c
/users/migrations/0008_auto_20211006_1820.py
b300d6720df6fe1a6a28d875ad1ca8a388e15f1a
[]
no_license
HooriaHIC/sounds
cde87c6db8773370652794142bdfd98676fe681a
04d654834c80e692ce88ea839c7843ac62ae49bf
refs/heads/master
2023-08-04T20:11:56.249691
2021-10-06T13:29:54
2021-10-06T13:29:54
228,182,002
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
# Generated by Django 2.2.4 on 2021-10-06 13:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0007_auto_20211006_1800'), ] operations = [ migrations.AlterField( model_name='profile', name='image', ...
[ "hooria.hic@gmail.com" ]
hooria.hic@gmail.com
97b66ec66601e7dac985abea57463a29631f1788
eb9d6231fb779d8e91713ac31648b86b3e97459a
/Training/movietrainer.py
1c698d5b489aafb7257127878fdfade6a8cacdb7
[]
no_license
souravc83/MovieMetR
ad721c3544557a47628b636589ccb9e3d42c832f
392b320b1ef6ac4a3499eb66e42171374f85625c
refs/heads/master
2020-05-27T14:33:43.752727
2015-11-15T07:36:32
2015-11-15T07:36:32
24,505,190
1
0
null
null
null
null
UTF-8
Python
false
false
15,297
py
#global imports from __future__ import division import pickle import pandas as pd import os import numpy as np import matplotlib.pyplot as plt import re from sklearn.linear_model import LinearRegression import sklearn.linear_model as linear_model from sklearn.cross_validation import train_test_split import sqlite3 impo...
[ "souravc83@gmail.com" ]
souravc83@gmail.com
acda0d5b9c05929afc5ffdc1de26b43418ed9450
b7bc6d01ed03a72444bb4ebe405e5401a868aed9
/hackathon104/urls.py
407632c31f03a770d06a2400be90342051bbe981
[]
no_license
ofAlpaca/104hackathon-2017
d973122832c423ce2a2b7a0df5e717206f63dded
9ab46e98457c6f2b56f77766b7dd734c8dd687c5
refs/heads/master
2021-01-19T13:37:32.347971
2017-08-20T08:36:17
2017-08-20T08:36:17
100,848,703
0
0
null
null
null
null
UTF-8
Python
false
false
1,012
py
"""hackathon104 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') Cla...
[ "frank70199@gmial.com" ]
frank70199@gmial.com
251ae683107d8f644605095904a75c115421879d
8985a13232fc5ca9e0da954c9002d79ffa2b2c65
/src/mtchain/beast/site_scons/site_tools/Protoc.py
a36ee812fee98e7a3da52404881d9382908f0a50
[]
no_license
finpal/finpal-basic
429b5871da8167c7adb38af43c64f4f8012901aa
3675542b1c95982321d03cb7bb3d4d204d6f71c9
refs/heads/main
2023-02-04T13:13:35.198917
2020-12-21T16:18:01
2020-12-21T16:18:01
323,375,890
0
1
null
null
null
null
UTF-8
Python
false
false
3,468
py
# # Copyright (c) 2009 Scott Stafford # # 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 without restriction, including # without limitation the rights to use, copy, modify, merge, publ...
[ "finpal6@outlook.com" ]
finpal6@outlook.com
bebd389e3c0c7607cfbd19130241ff6b59d97f43
95ddb60a08e8039cacd277db0b5c712c66492056
/ml-book-abhishek/chap-categorical-variables/src/ohe_logreg_us_adult_dataset.py
daefd81160e215eb4bd8371f2bbe919453d25215
[]
no_license
rameshjes/machine-learning-study
4f1c231e107719548fa2b52a1528d2e46cdeb72c
f0959b001e296c0dc80deb6ba830dced5b454bcb
refs/heads/master
2023-01-31T19:59:26.377214
2020-12-17T11:49:15
2020-12-17T11:49:15
122,756,653
0
0
null
null
null
null
UTF-8
Python
false
false
2,830
py
# Apply Logisitc Regression on One-Hot Encoded features # Note that, features has to normalized/converted to standard form e.g one hot encoding # dataset used: us_adult_dataset import pandas as pd from sklearn import linear_model from sklearn import metrics from sklearn import preprocessing def run(fold): df =...
[ "rameshkjes@gmail.com" ]
rameshkjes@gmail.com
566430d6408c4043b198fd0bf8b7b62bdb08e899
665add8c434df0445294931aac7098e8a0fa605b
/ver1/ch10/echoClient.py
2d9a1570d99f6a3819cc5cd98efcebde98e3e02a
[]
no_license
swkim01/RaspberryPiWithIOT
f43cef567ca48f2ce9deec0cba87fa801dcbcbe2
d4b5c9aeb09490429a551f357d3c83ab04deed82
refs/heads/master
2023-04-14T20:04:33.924243
2023-04-12T05:15:32
2023-04-12T05:15:32
48,477,439
4
14
null
null
null
null
UTF-8
Python
false
false
340
py
import socket import sys HOST, PORT = "<arduino ip>", 7 data = " ".join(sys.argv[1:]) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: sock.connect((HOST, PORT)) sock.sendall(data + '\n') received = sock.recv(1024) finally: sock.close() print "Sent: {}".format(data) print "Received: {...
[ "swkim01@gmail.com" ]
swkim01@gmail.com
c4dae2d58da8f29eacf1744564d8c1d490614f4b
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1484496_0/Python/zifmia/equalsums.py
070fef3e61ff34fceaa4a7e4767191dd421f5cee
[]
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,104
py
# google code jam 2012 round 1b # equal sums import itertools def numlist(s, n, v): answer ="" for i in range(n): if (1<<i & v): answer += " " + str(s[i]) return answer[1:] + "\n" f = open("c:\\users\\James\\Downloads\\C-small-attempt0.in", "r") #f = open("equ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
17dd1dfa08c75cbef333ad95c13333ffad288d3b
325bee18d3a8b5de183118d02c480e562f6acba8
/HongKong/HCK_l/build/lib/HCK_l/settings.py
5039699bcf1b52e9bf5fae7767ce72cd5c06eca0
[]
no_license
waynecanfly/spiderItem
fc07af6921493fcfc21437c464c6433d247abad3
1960efaad0d995e83e8cf85e58e1db029e49fa56
refs/heads/master
2022-11-14T16:35:42.855901
2019-10-25T03:43:57
2019-10-25T03:43:57
193,424,274
4
0
null
2022-11-04T19:16:15
2019-06-24T03:00:51
Python
UTF-8
Python
false
false
4,260
py
# -*- coding: utf-8 -*- # Scrapy settings for ChinaSpider project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/la...
[ "1370153124@qq.com" ]
1370153124@qq.com
a8704b9e5e7ca855d2e1e3057ca0ac0e3f500dea
1292c7ba30246279cfd67b389178e5fb9e7cdcbd
/homework11/hw1.py
5753d3b4a520476bfb05fa103b6dcd910ccc9c12
[]
no_license
spiridonovfed/homework-repository
00a077fc5f8812f148b805cc25ec178647503f34
57c2226142b86192cbf15eb2b19bfc053dbc934d
refs/heads/master
2023-06-08T17:24:49.082301
2021-06-28T08:10:00
2021-06-28T08:10:00
357,466,503
0
0
null
2021-06-28T08:10:01
2021-04-13T07:43:57
Python
UTF-8
Python
false
false
1,205
py
""" Vasya implemented nonoptimal Enum classes. Remove duplications in variables declarations using metaclasses. from enum import Enum class ColorsEnum(Enum): RED = "RED" BLUE = "BLUE" ORANGE = "ORANGE" BLACK = "BLACK" class SizesEnum(Enum): XL = "XL" L = "L" M = "M" S = "S" XS =...
[ "spiridonovfed@yandex.ru" ]
spiridonovfed@yandex.ru
8b560b566066acbdd819a2ef0c8b5ea135bfd711
c0457920b1202154eb056f83740d458dbdb71b1e
/simulations/ps_estimation.py
9e5074fa610afd3a6129a4bad7695c7ad615a450
[]
no_license
mikesitwell/simulations_21cm
2a5b139107e27a9efb70d6e3e2b14e6e4faf773e
616bf3e5ab52814cb9727c34790ff449d9d3ff73
refs/heads/master
2020-04-05T23:13:09.770329
2013-03-31T05:19:50
2013-03-31T05:19:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,335
py
import numpy as np from cosmoutils import radialprofile def make_nd_at_ind(arr, nd, ind): sl = ([np.newaxis]*ind) + [slice(None)] + ([np.newaxis]) * (nd - ind - 1) return arr[sl] def blackman_nd(shape): nd = len(shape) b = np.ones(shape) for i, l in enumerate(shape): b *= make...
[ "jrs65@cita.utoronto.ca" ]
jrs65@cita.utoronto.ca
8b3538ad3cfd11dfb423b95da253abaf6ea09ee2
e7272e2e1e2da1e60dee1e4dad7154d339a83a9d
/migrations/versions/31888642621b_.py
e731df004f6c06b046a4ae8901b23a7f1051b43f
[]
no_license
Shumpei-Kikuta/rental_app
2cdfbb349293b798697c11b3a71b4d199272760d
e2c1cf4cfe467a8dd3b9aa692fb13ccdc15cac83
refs/heads/master
2020-03-22T22:57:11.677838
2018-09-19T13:13:16
2018-09-19T13:13:16
140,780,864
0
0
null
2018-07-26T03:45:04
2018-07-13T01:22:07
HTML
UTF-8
Python
false
false
1,209
py
"""empty message Revision ID: 31888642621b Revises: e1adc6885ee7 Create Date: 2018-07-01 16:59:23.157768 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '31888642621b' down_revision = 'e1adc6885ee7' branch_labels = None depends_on = None def upgrade(): # ...
[ "shunpei-kikuta775@g.ecc.u-tokyo.ac.jp" ]
shunpei-kikuta775@g.ecc.u-tokyo.ac.jp
f2fbce7067105633b31cb36fa825b2faf890fb4d
f5ade2b2196097715944722d3aa32540e76678f8
/async_web_serve/websocket_funcs.py
7eb9503da12b90e22bfc881f5e2222380da55024
[]
no_license
goatchurchprime/jupyter_micropython_developer_notebooks
746e8f5225596ef51839aa668b1d8403422e5140
c2802decabd27328911d7cfdc50f721b91673093
refs/heads/master
2023-01-22T03:30:35.074187
2023-01-08T18:16:26
2023-01-08T18:16:26
105,647,652
36
5
null
2020-02-14T12:53:05
2017-10-03T12:12:45
Jupyter Notebook
UTF-8
Python
false
false
3,106
py
import time, ustruct, uhashlib, ubinascii from syslog import log, elog, powid import uasyncio async def initiatewebsocket(w, secwebsocketkey): guid = b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11" acc = uhashlib.sha1(secwebsocketkey + guid).digest() acc = ubinascii.b2a_base64(acc).strip() await w.awrite(b"HTT...
[ "julian@goatchurch.org.uk" ]
julian@goatchurch.org.uk
9c2542c3e02a55a41cbb65011437b7d046dbc278
927645240024f3cbaed08ef64dcc52ab874d254c
/tutorial/snippets/views.py
a31c8c59e697b7f25034de6cd75107a5bf04d9ba
[]
no_license
banideus/PhytonInTheGuabece
3e7c949fcb80f3897e34c3e51e3c6e383bf9a2a2
796c18e4f5699e94d65b405c99cd60c9772e62cb
refs/heads/master
2021-08-17T15:20:50.549228
2018-11-21T20:02:22
2018-11-21T20:02:22
147,129,755
0
0
null
null
null
null
UTF-8
Python
false
false
1,740
py
from django.shortcuts import render # Create your views here. from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from snippets.models import Snippet from snippets.seriali...
[ "noreply@github.com" ]
noreply@github.com
7f50c46f4ce207a8376c967a53b3092bb952dd18
413c111ecfc84ef1d9457caf7c48605964a39e88
/left-pad.py
c4d2cdd2ce4a8434ee2d1a280ce0addfdebb9433
[]
no_license
yan-yf/lintcode
43d927738422710cfffc75cafdd5c8c432e24714
cd68bcb6665c8900a8a518c5cfa97ca6c6d25403
refs/heads/master
2021-01-12T00:23:18.583276
2017-01-16T09:50:22
2017-01-16T09:50:22
78,716,770
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
# coding:utf-8 ''' @Copyright:LintCode @Author: yfyan @Problem: http://www.lintcode.com/problem/left-pad @Language: Python @Datetime: 17-01-16 09:48 ''' '''样例 leftpad("foo", 5) >> " foo" leftpad("foobar", 6) >> "foobar" leftpad("1", 2, "0") >> "01" ''' class StringUtils: # @param {string} originalStr the st...
[ "noreply@github.com" ]
noreply@github.com
6e6dc4a8e14f7924476451082d5ade680f544d88
f9ff745b7d825e685a196b1e24ccd14d9d744b6a
/tests/test_ratelimit.py
dcbcdf58b3966440416d76b18ece521b15cccde4
[]
no_license
lv10wizard/ig-highlights-bot
ce061275acaca9108bd27da3017ec492832d3934
e551d68f51f222c58428029df1eda7838825101f
refs/heads/master
2021-05-16T05:38:38.934210
2018-04-07T03:34:22
2018-04-07T03:34:22
103,170,792
3
0
null
null
null
null
UTF-8
Python
false
false
2,612
py
import ctypes import os import multiprocessing import time import pytest from src import ratelimit _EVENT_TYPE = type(multiprocessing.Event()) _FLOAT_VALUE_TYPE = type(multiprocessing.Value(ctypes.c_float)) def _set_path(tmpdir_factory): # override the reset time save location ratelimit.Flag._PATH = str(tm...
[ "lv10wizard@gmail.com" ]
lv10wizard@gmail.com
976b6f40f74fe705396ec1586f10765ac82dc20a
ec9590c45c34d3314869cb65712143cbeb70372d
/samples/use_management_resource.py
fc631a1b88bbdf7009690ee8ee7897acf69bed66
[ "MIT" ]
permissive
areed1192/sigma-azure-management
522cee4d858ad7dfbcd8277ddfa15c89ccc0b74f
65edeac081e9e2b1ba85d2aa262e73e5f89ae5ca
refs/heads/master
2022-12-18T07:54:27.659804
2020-09-20T23:22:42
2020-09-20T23:22:42
288,521,057
3
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
from pprint import pprint from configparser import ConfigParser from azure.mgmt.resource import ResourceManagementClient from azure.common.credentials import ServicePrincipalCredentials # These are only imported for Type Hinting and Intellisense. from azure.mgmt.resource.resources.models import ResourceGroup from azu...
[ "alexreed1192@gmail.com" ]
alexreed1192@gmail.com
3ee38e56dbc5fd7ee935ef1c4b6bc3eb7c3e8d41
9296896cb6cdc68a27052a36a8fbed48aaf7fac9
/aanim/state.py
e178a422403d16b8489fc71fbf9a50269a72a687
[]
no_license
francolq/algo2
28da0cdb35a8d6c32121dc6a4b9747eb4c4a7171
ea4940b7d42cf9ae29a57bcc238e475b9427621c
refs/heads/master
2022-07-14T03:55:35.473395
2020-05-13T01:02:41
2020-05-13T01:02:41
263,446,665
2
1
null
null
null
null
UTF-8
Python
false
false
1,992
py
from manimlib.imports import * from aanim.code import code_text class State(VGroup): def __init__(self, vars_values): VGroup.__init__(self) self.var_dict = var_dict = {} for i, (name, value) in enumerate(vars_values): # values to the right #var = algorithms.code(...
[ "francolq@famaf.unc.edu.ar" ]
francolq@famaf.unc.edu.ar
8bb4854ec24022f52a2df6207dfc24c350a06e1b
60bd19d83c96e0bcb915af89c7d058a6024bff30
/train.py
7df09d54689cc81d1f7316853099ed1f58e8c9d1
[]
no_license
Sharon-Kerubo/Adaline
66b7c1896655c430c61c58300f23176e14d25cce
f1bafc6986f85df2c981b07fbe5e2d45b9b98fe6
refs/heads/main
2023-03-23T17:54:26.059731
2021-03-10T07:01:14
2021-03-10T07:01:14
345,945,540
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
from adaline import Adaline import numpy as np from sklearn.preprocessing import StandardScaler def accuracy(y_true, y_pred): accuracy = np.sum(y_true == np.around(y_pred)) / len(y_true) return accuracy with open('pimadiabetes.data.txt') as f: data = np.array(list(list(map(lambda x: float(x), line.strip()...
[ "sharonkerubo0@gmail.com" ]
sharonkerubo0@gmail.com
12871556a0e36bbd57a48656d63a5f2ddf1e7148
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02971/s422675559.py
7dd04b9ba5d06549a8b4edc20b71a6777dca8037
[]
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
319
py
N = int(input()) A = [] dicA = {} for i in range(N): tmp = int(input()) dicA[tmp] = dicA.get(tmp, 0) + 1 A.append(tmp) sortA = sorted(dicA.items(), key=lambda x: x[0], reverse=True) for ai in A: if ai != sortA[0][0] or sortA[0][1] != 1: print(sortA[0][0]) else: print(sortA[1][0])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
57f0d041bccb6ba09565693c1809036786a29bdb
6e1c73340e1e2618825fec0222b4e580365804bf
/lowestPayment.py
80b6f8b80dc773e243bc284f05fd1e57e8b4f001
[]
no_license
hiddencreative/Learning-Python
7c011b45059a7251be0fbb23c7e1d703d8a2b795
89b78c51e016a956d05b9a75f7afc499b04afec9
refs/heads/master
2021-05-30T10:32:15.618677
2016-02-12T03:22:55
2016-02-12T03:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
balance = 320000 annualInterestRate = 0.2 monthlyInterestRate = annualInterestRate/12 low = balance/12.0 high = (balance*((1+monthlyInterestRate)**12))/12.0 minimumPay = 0 newBalance = balance while balance > 0.02 or balance < -0.02: balance = newBalance minimumPay = (low + high)/2 for x in range(0,12): ...
[ "josef@josefweiss.com" ]
josef@josefweiss.com
219d7fb05dac74e68699dd8fff506549327cd718
3771735a8fc390006f908e6df842564cc7c2cb14
/bidirection_databroker/server.py
67ae6a6a0af0579a289d2d1c4be61c1393df71a5
[]
no_license
atb033/gRPC-ws
b41f386a6276ba623fe05d7becb01306090e8e7c
844f44a37d3236162757210d3f9a6c9e7234757d
refs/heads/main
2023-04-21T22:54:27.949875
2021-05-10T09:45:04
2021-05-10T09:45:04
366,322,124
1
0
null
2021-05-11T09:11:23
2021-05-11T09:11:22
null
UTF-8
Python
false
false
1,334
py
import grpc from concurrent import futures from threading import Thread from generated import broker_pb2 as msg from generated import broker_pb2_grpc as Server port = 8061 class BrokerServiceServicer(Server.BrokerServiceServicer): def ProcessRequest(self, request_iterator): for request in request_iterato...
[ "ragesh.ramachandran.ipa.fraunhofer.de" ]
ragesh.ramachandran.ipa.fraunhofer.de
b5f782d0e836f8b937f8807e14096b0de58bfc9d
625f2f86f2b2e07cb35204d9b3232427bf462a09
/data/HIRun2017XeXe/HIMinimumBias8_XeXeRun2017_13Dec2017_v1/crabConfig.py
a76697fdc398c13f30d11cc6b40845df50ba5548
[]
no_license
ttrk/production
abb84c423a076fd9966276b7ed4350936c755e0b
f8a64c9c38de215802799365f0f7a99e1ee78276
refs/heads/master
2023-02-08T23:48:56.355141
2023-01-26T08:46:22
2023-01-26T08:46:22
52,877,406
0
2
null
null
null
null
UTF-8
Python
false
false
1,798
py
from WMCore.Configuration import Configuration config = Configuration() config.section_('General') config.General.requestName = 'HIMinimumBias8_XeXeRun2017_13Dec2017_v1' config.General.transferLogs = False config.section_('JobType') config.JobType.pluginName = 'Analysis' config.JobType.psetName = 'runForestAOD_XeXe_...
[ "tatark@mit.edu" ]
tatark@mit.edu
fdceddac8b2317eb441c5dca723f844cabe40fd8
d1ee1d6769eb8e675a9a8d6a59123d43ef027b20
/2020/day09/solve.py
aeefac97883dbf46099a9e134fe70391ea48a746
[ "Apache-2.0" ]
permissive
greenbender/aoc
d2a900657b380de0eb8dd52f12cadf154cb76eb6
73ab64a642372879dc764a092a7a5010b4740a18
refs/heads/master
2022-12-26T12:32:41.402117
2022-12-14T12:24:23
2022-12-14T12:24:23
160,273,566
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
import sys import itertools n = list(map(int, sys.stdin)) def part1(pl): for i in range(pl, len(n)): p, c, found = n[i-pl:i], n[i], False for a, b in itertools.combinations(p, 2): if c == a + b: found = True break if not found: prin...
[ "byron.platt@gmail.com" ]
byron.platt@gmail.com
dbe0f3a250a616f28e26acaaec935ce83ac6e110
35958e3f69b7854960385cd83914ab9013829027
/typedemo/blog/models.py
2bc23727a111636963cdae31b03e8474445a5a53
[]
no_license
qwebeijing147/typeDemo
9e78edc611afb196a6370aa684d4155c62239329
e02a34d590d90547ac05b1f131197f663fe52dd3
refs/heads/master
2020-07-28T20:08:54.525295
2019-09-19T13:25:00
2019-09-19T13:25:00
209,522,178
0
0
null
null
null
null
UTF-8
Python
false
false
2,188
py
from django.contrib.auth.models import User from django.db import models class Category(models.Model): STATUS_NORMAL = 1 STATUS_DELETE = 0 STATUS_ITEMS = ( (STATUS_NORMAL, '正常'), (STATUS_DELETE, '删除'), ) name = models.CharField(max_length=50, verbose_name="名称") status = models.PositiveIntegerField(default=...
[ "qwebeijing147@163.com" ]
qwebeijing147@163.com
d4e311483171542088cdcb9281941ff5d0ced735
3b51c0a0963da1dd54793b11255d860ad4aa86df
/twitter/migrations/0006_alter_contact_email.py
fa4c60dec06ae3b72d81c74edad40e0120692769
[]
no_license
Rajeswari-0209/twitter_clone
ca91f443d0a886295957ab335ffc205f3347c874
5a2118a5125ecd4a655200c306664293b5931d64
refs/heads/main
2023-06-06T04:53:48.649938
2021-06-25T02:09:12
2021-06-25T02:09:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
# Generated by Django 3.2.1 on 2021-06-13 23:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('twitter', '0005_contact'), ] operations = [ migrations.AlterField( model_name='contact', name='email', f...
[ "hrajpal@ebrevia.com" ]
hrajpal@ebrevia.com
ce5f4c08a0a3cfa3e137f1438e367247a5c55207
d8bdbf4ac9433184c4b7e66ab2106358546b2c5e
/21_extract_full_name.py
f9b9ea8505ffba12c01d59c0729a45f2385a7b9a
[]
no_license
eckesm/18_python_ds_practice
b89f7596d31ed4b3ef5c4c507144ee9c667e1f1b
6812042f769f944324b291837e16c3060a6a20d6
refs/heads/master
2023-03-01T08:30:30.937359
2021-02-09T18:18:50
2021-02-09T18:18:50
337,466,860
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
def extract_full_names(people): """Return list of names, extracting from first+last keys in people dicts. - people: list of dictionaries, each with 'first' and 'last' keys for first and last names Returns list of space-separated first and last names. >>> names = [ ... {'...
[ "eckesm@gmail.com" ]
eckesm@gmail.com
da6f6d588376de5606ba2018f9528a1a07aefa85
411de938a876524179f60d23ba0364d2b0e99997
/myapp/migrations/0001_initial.py
d0b1b2efbba6e43d79f50d0a623ea00d36788a99
[]
no_license
ruku786/Demo
5b43e0f4bdff6d32df4c53eb4d26bc9c8175b5dd
7668be9869386414bb2f78c5e24bcfdd15900047
refs/heads/master
2023-01-23T23:33:06.604688
2020-11-23T10:34:56
2020-11-23T10:34:56
315,278,977
0
0
null
null
null
null
UTF-8
Python
false
false
166,954
py
# Generated by Django 3.0.6 on 2020-11-20 14:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AssetsAssetgroup', fields=[ ('id', models.A...
[ "ruksharparveen527@gmail.com" ]
ruksharparveen527@gmail.com
8eb4ac57dcdfbf68a129e8122cdcdd5ffca2da9e
2b2ff5abcf9788a7065dad8f55ed43c7652df759
/OurData/tools/create_video_image_list.py
5fac4de691415bb625ea5cc35825f51e23caec30
[ "MIT" ]
permissive
wuyuMk7/GazeFollowing
0beea4eddfac86c32d14df3dfe1a176030f697fb
3d3b568273282c5d7fb1e9bd4964e1c25ed64bac
refs/heads/master
2022-06-28T20:11:26.156008
2020-05-05T19:17:59
2020-05-05T19:17:59
260,306,890
0
0
MIT
2020-04-30T20:02:51
2020-04-30T20:02:50
null
UTF-8
Python
false
false
2,846
py
import os import json import cv2 import argparse parser = argparse.ArgumentParser() parser.add_argument('--Images_dir', type=str, help='path of extracted video frames', required=True) parser.add_argument('--Video_annotation_dir', type=str, help='path of gaze...
[ "yuzh@shanghaitech.edu.cn" ]
yuzh@shanghaitech.edu.cn
bfaafbda37bde40a3a6997e9321c3c6840d6a8c7
0a04ba4ad4d40fc9d61dc9fffb164f21a4a3d88e
/flask_fundamentals/hello_flask1/hello.py
33c979c276464d0b353cb42cacf8b5f8ad14a8d1
[]
no_license
maxcausevic/flask
22bef058dac133c3f7eafa140ef547215fabd66d
94b4d5927898d9e19560c0073734606a60c8c622
refs/heads/main
2023-03-14T17:35:14.533236
2021-03-12T19:53:03
2021-03-12T19:53:03
346,732,420
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
from flask import Flask, render_template # Import Flask to allow us to create our app app = Flask(__name__) # Create a new instance of the Flask class called "app" @app.route('/') # The "@" decorator associates this route with the function immediately def hello_world(): print('in the hello function') ...
[ "maxine@fitmaxpersonaltraining.com" ]
maxine@fitmaxpersonaltraining.com
7eaf49d148aa58027caa28f31e6e76f17a0ff2b6
9047aec2400933376e71fdc24d087d2ad35b4d45
/backspaceCompare_844.py
f6c3023e89203770ef31770cbe358b34b2512ed7
[]
no_license
sasankyadavalli/leetcode
a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9
555931bc5a74e0031726070be90c945da9cb3251
refs/heads/master
2021-02-07T12:12:06.938562
2020-07-28T18:25:10
2020-07-28T18:25:10
244,024,453
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
class Solution: def backspaceCompare(self, S: str, T: str) -> bool: stack1 = [] stack2 = [] for ele in S: if ele is not '#': stack1.append(ele) elif ele is '#' and len(stack1) != 0: stack1.pop() for ele in T: ...
[ "yadavallisasank@gmail.com" ]
yadavallisasank@gmail.com
eb7f3732d68d0ba91bf0f2b4ee78b03243864baf
932396a30c5a0739b7df9b1ea9266ce62c6dd332
/system/systeminfo.py
b5749bc89d4346535c3bf0318897c264a80e6e67
[]
no_license
olegantonyan/rmpd_client
8fa2cf3bd88454c0ef493bc65c970e2dcea341ac
9664050746f31ebf5d7ea4f34708b89e06678116
refs/heads/master
2020-07-08T16:38:59.986888
2018-09-01T06:46:26
2018-09-01T06:46:26
203,725,080
0
1
null
2019-11-02T21:09:21
2019-08-22T06:03:59
CSS
UTF-8
Python
false
false
1,146
py
# -*- coding: utf-8 -*- import platform import os import version def linux_disto(): return platform.linux_distribution() def user_agent(): return "rmpd {v} ({s}, {m}, {p}, {cpu}, python {py}, {di} {div})".format(v=version.VERSION, ...
[ "oleg.b.antonyan@gmail.com" ]
oleg.b.antonyan@gmail.com
ef0987a0652ef41f63c860fbe7ac7bef0ab33aec
b0bbf3822a427627d3f2cb196d83ec8e9a4fa3af
/08/class.py
abffe5e2f02d9b2803eea41173a5234fa9dc1713
[]
no_license
wu0792/PythonIntroduction
a8c7b93ecaffc0d1a5b27995a3a3681b9d21cb5c
3fa3ce795b8f1f551aa8f3101ff959eace66e77c
refs/heads/master
2021-04-26T22:25:38.891668
2018-03-06T14:21:41
2018-03-06T14:21:41
124,089,040
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
class Person: pass class Student: def __init__(self, name): self.name = name def say_hi(self): print('hello, i\'m {0}'.format(self.name)) # p = Person() # print(Person) # print(p) stu = Student('LiLei') stu.say_hi()
[ "wu0792@163.com" ]
wu0792@163.com
7f5501ebf6a86c2f8667fcacc94dbacad75faf67
f890f59a084a1c2784d07307d4dce5641378443b
/Ex1/solutions.py
e3a3ea1816079ba716a497ecedb630f6c2dd7e8a
[]
no_license
Pahan-Madusha/MLExercises
6b298bae586033f25c5fff68a80e2e504bd305d0
38c8776df191077b95931abb6310f0e60d69220d
refs/heads/master
2021-01-16T19:59:51.939085
2017-09-27T15:07:43
2017-09-27T15:07:43
100,193,019
0
0
null
null
null
null
UTF-8
Python
false
false
4,427
py
import numpy as np import matplotlib.pyplot as plt import unittest #################### # Polynomial class # #################### class Polynomial(): def __init__(self, coefficients): self.coefficients = coefficients def calculateVal(self, x_value): value = 0 for i in range(0, len(self...
[ "pahan.224@gmail.com" ]
pahan.224@gmail.com
a00a336b458cdfe951a1052848a4ff5dfd0f3950
f379ca439b288988795eecc12cb5d2cbe111e932
/rare_items/urls.py
16a4d535ef1728bb76b8b62b60bcd93b50a85ad1
[]
no_license
Code-Institute-Submissions/store
1e1c597596aaeab43335a4d931b5961315ed1f90
8c8c3fa93831b3341122c45bdd92f9222229de08
refs/heads/master
2022-04-23T13:10:25.674773
2020-04-12T14:23:41
2020-04-12T14:23:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
# import our base url pattern from django.conf.urls import url # import all_machinery function to be used in our url pattern from .views import rare_items urlpatterns = [ url(r'^$', rare_items, name='rare'), ]
[ "jjdug@hotmail.com" ]
jjdug@hotmail.com
dad411bffc16500070001c574f41de71acd9b11e
52243c4a05a296e7c042663b5942faa47eb66aee
/server_cherrypy/api_active_learning.py
97ca910b59a5b7f5e5c030ac4f496a49c7460aa1
[ "MIT" ]
permissive
joaoppadua/Pesquisas
fbe0311b59340c041732d6d1f7f4862fa6c53198
808d8b0ef9e432e05a4f284ce18778ed8b3acd96
refs/heads/master
2023-07-16T02:50:30.846205
2021-09-03T13:34:54
2021-09-03T13:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
import cherrypy, json, pymongo, sys, os from os.path import abspath from jinja2 import Environment, FileSystemLoader from mongoURI import mongoURI sys.path.append(os.path.dirname(os.path.dirname(os.getcwd()))) from pesquisas.common.active_learning_logreg import active_learning_logreg env = Environment(loader=FileSyst...
[ "danilopcarlotti@gmail.com" ]
danilopcarlotti@gmail.com
19c9d76745524f90ca545674d5046fe7c9b745f1
c96b1e43e3e3e08af3237602fb50727245ffb48b
/eda.py
9823ec3def45612ce6cfa71b12e73f7555bfb7d9
[]
no_license
Yiqing-Tao/homemade_tools
92e9aaac7dd1b2f7f7aaf417ec2b230cf9592c1a
6fe30c0f4318a7684fc70275b313c9cfaa553f1f
refs/heads/master
2021-01-20T10:55:21.586781
2016-11-28T07:20:53
2016-11-28T07:20:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
from IPython.core.pylabtools import figsize import matplotlib.pyplot as plt import pandas as pd def quick_eda(df): print df.info() numlist = [] objlist = ['ref_date','categoryid'] for c in df.columns: if c in objlist: continue if c.endswith('id') or c.endswith('date'):continue ...
[ "pengyupatrik@hotmail.com" ]
pengyupatrik@hotmail.com
52dd2ff5cbfda97b6d634e773f2cb4e15d2da6d7
eaaf2def404a37cb0950b9d14f867da7f0f07562
/utils/load_util.py
b0c30c5aaa4183aef22cdc782fb0c1634b10cb50
[]
no_license
user815886724/MTRNet
e563e61c6af8c4774af9821d8909817211d3c0cf
f4841a98aa39ce872e17fc312f2184ffa73cf020
refs/heads/main
2023-08-14T07:39:33.703807
2021-10-11T03:20:12
2021-10-11T03:20:12
405,018,829
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
import os from utils.data_util import DataLoaderTrain, DataLoaderVal, DataLoaderTest def get_training_data(file_dir, img_option, input_dir='input', gt_dir='groundtruth'): assert os.path.exists(file_dir) return DataLoaderTrain(file_dir, input_dir=input_dir, gt_dir=gt_dir, img_options=img_option) def get_valida...
[ "815886724@qq.com" ]
815886724@qq.com
424a8c63f22eefb54c5221d8cfb4aa10a2feb26f
16c576ac9c029e2801ba0cb0245b8e9471bb35f9
/MoveDogFiles.py
f5c04e63bbcd1c9ab4fd7af75955a1cd982987aa
[]
no_license
yaskyj/dog-breeds
216809e106bee3f9fd8a0de4a3810cb820f24986
df9d094301c31698e2e24991f3b282f34b5fc9c4
refs/heads/master
2021-09-03T01:46:06.723331
2018-01-04T17:09:10
2018-01-04T17:09:10
116,197,941
0
0
null
null
null
null
UTF-8
Python
false
false
1,642
py
import pandas as pd import os files = pd.read_csv('labels.csv') # Create folders for each breed breeds = files['breed'].sort_values().unique() for i in breeds: directory = './train/train/' + i if not os.path.exists(directory): os.makedirs(directory) for i in breeds: directory = './train/test/' + ...
[ "yaskyj@yahoo.com" ]
yaskyj@yahoo.com
b5cbeba61d11e2629bc40aa6bc681b081fd162ef
28e19a643dc5f11c2e55f4e1fa3e54dc69438538
/orders/models.py
f1513c60f8db16c933bffcc5f0fff979ed5b099d
[]
no_license
Bajju123/BajjuDevelopment
f293367d3b0277bde3994625d0f5161579b201e9
489c950c5f9f94bb22bbec9a0b28148e580c1db1
refs/heads/master
2020-08-11T00:14:48.630427
2019-10-11T13:59:06
2019-10-11T13:59:06
214,451,617
0
0
null
2019-10-11T14:08:52
2019-10-11T14:04:02
CSS
UTF-8
Python
false
false
1,438
py
from django.db import models from shop.models import Product, Profile class Order(models.Model): user_name = models.ForeignKey(Profile, on_delete=models.SET_NULL, null=True) fullname = models.CharField(max_length=50) email = models.EmailField() address = models.CharField(max_length=250) postal_cod...
[ "smithsuthar0@gmail.com" ]
smithsuthar0@gmail.com
7815b828fc2c5f9cbd18aafcd1bc815a372ff344
51c43c096556227c09f72c1bcdc6d40d51237301
/mysite/urls.py
64b27fefcef21c00b13cc52a73d3c022ff5c3225
[]
no_license
LukasDeco/contactmanagerlite
f1399212497b7afc770daca8e12206130946f0ac
519d4050803604099cb32aa9317bd321aa294731
refs/heads/master
2020-03-23T14:51:03.498105
2018-08-23T03:50:18
2018-08-23T03:50:18
141,703,599
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based ...
[ "ldeconantsesznak@gmail.com" ]
ldeconantsesznak@gmail.com
ad250762cd2811f50b3ebeceddf2b8d8510bad4e
970a551652a327e37705d94d81a6edf8164acb58
/contactsbin/getcontactsSparse3.py
af5e7f26f3698ebad698b44518478d83637220e6
[]
no_license
clarewest/scripts
d489d1a211f20fcf02178b97f5d7211db293697c
433e843eba65340b10613c51d7a024eb19d14f5d
refs/heads/main
2023-02-16T00:42:05.807244
2021-01-04T11:01:49
2021-01-04T11:01:49
326,651,189
0
0
null
null
null
null
UTF-8
Python
false
false
3,836
py
#!/usr/bin/env python import os import sys from sys import stdout from Bio.PDB import PDBParser, CaPPBuilder, is_aa from math import sqrt,pow # This function takes an input PDB code and returns a structure # object. def pdb_buildstructure(pdbfile): pdb_parser = PDBParser(PERMISSIVE=1) # The PERMISSIVE instruction ...
[ "clare.west@dtc.ox.ac.uk" ]
clare.west@dtc.ox.ac.uk
0b122455553b1d5c0614d0183858f920694f6dc5
2aba62d66c2c622bdc148cef451da76cae5fd76c
/exercise/learn_python_dm2039/ch30/ch30_20.py
f11c7b32c43ba44bccbacd5ec9de108cb47809c9
[]
no_license
NTUT-109AB8011/crawler
6a76de2ab1848ebc8365e071e76c08ca7348be62
a703ec741b48d3af615a757fed7607b1f8eb66a6
refs/heads/master
2023-03-26T22:39:59.527175
2021-03-30T03:29:22
2021-03-30T03:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
# ch30_20.py import threading class MyThread(threading.Thread): # 這是threading.Thread的子類別 def __init__(self): threading.Thread.__init__(self) # 建立執行緒 def run(self): # 定義執行緒的工作 print(threading.Thread.getName(self)) print("Happy Python") ...
[ "terranandes@gmail.com" ]
terranandes@gmail.com
6e4fd6a7a77cc9ee2325311645dcf552746df93b
e02cda18b1a28a7660e34db660ede24443c7acf8
/connector.py
ba299e79653676c2f9c43d6b59b2f1f3401a37a0
[]
no_license
vishwashrisairam/hack404
6d10951e07e8e1cd50e0451695990e0ab2befd2f
f010de35fd5568f8e6bd77e4d7b7e17405c7b98f
refs/heads/master
2021-01-10T01:27:22.753683
2016-03-12T09:53:50
2016-03-12T09:53:50
53,203,449
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
from mongoengine import connect connect("fireacc",host="mongodb://harsh:vadajasd@ds023428.mlab.com:23428/fireacc") print "successfully connected to mongo"
[ "vishwashrisairam@gmail.com" ]
vishwashrisairam@gmail.com
c7b8beb1319cb4eeb50b22fa842d424c6e7d0a59
968782e1bb981848f12d52d1a388eaf94cf32ea7
/mainRunnerApplyMachineLearning.py
f41be8988b1cc0c740476666fdcc396e22732ca7
[]
no_license
mitchell-mays/ZillowItsNoHoax
5ecc4b2dbfa7a3e8e72327f8decbb16e2964b3ef
889fdbb63d0f536859068eb89cb9c6349e3841a3
refs/heads/master
2020-12-02T18:09:08.813121
2017-07-09T22:30:52
2017-07-09T22:30:52
96,483,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,329
py
import FeedForwardNeuralNetwork import numpy processed_data_path = "D://Documents//kaggle//Zillow//processed//data.npy" processed_class_path = "D://Documents//kaggle//Zillow//processed//class.npy" iterations = 10000 data = numpy.load(processed_data_path) labels = numpy.load(processed_class_path) folds = 10 chunk = ...
[ "mitchell-mays" ]
mitchell-mays
94e6f85feed1a46b410bebfb564b98dda778a7b7
fd03af6c60d7f08e67025968d07fddb19b090b71
/input.py
4bbf55e0080cfa442b119186accb5d6d01bc7b2a
[]
no_license
idhamfurqon/basic-python
e1708d5ef099f6c35763d19e6a5549cd126500cc
9cfdfab9cd6767868621bec72d18bdf3ebc2074e
refs/heads/main
2023-04-11T18:10:47.707772
2021-04-27T10:11:22
2021-04-27T10:11:22
359,084,053
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
name = int(input()) print("Your name is :" + name) x = 15 y = 10 print(x + y)
[ "ifurqon97@gmail.com" ]
ifurqon97@gmail.com
c16371c485ee97f76a3c00d379dfed1bfee6c442
d01f670c77bec37ea69fcb543e9c2013db84fa6e
/test/unit/analysis/timeseries_cleaning_test.py
6895c0d38689d44eb19d302778e7ef3ffb4af815
[ "MIT", "CC-BY-4.0" ]
permissive
kevinsung/pudl
08b20d711420c9fa5a80da5ff0f0591879d37331
fe2086a12282b84523883a474bad9905a4b662e5
refs/heads/main
2023-07-12T19:23:34.216604
2021-08-16T18:56:58
2021-08-16T18:56:58
383,209,440
0
0
MIT
2021-07-05T16:56:10
2021-07-05T16:56:09
null
UTF-8
Python
false
false
3,152
py
"""Tests for timeseries anomalies detection and imputation.""" from typing import Tuple import numpy as np import pudl.analysis.timeseries_cleaning def simulate_series( n: int = 10, periods: int = 20, frequency: int = 24, amplitude_range: Tuple[float, float] = (0.0, 1.0), offset_range: Tuple[flo...
[ "ethan.welty@gmail.com" ]
ethan.welty@gmail.com
3b3f737f8d1f6ef1ca1e83144646c6217512b654
b8af0f8801286f80bf4a58e915878e53dcc2e9b1
/file_uploader/core/parse.py
f3574f88dd7c6f363607381fb8e7d1542a3f5def
[]
no_license
WaleedMeselhy/simple-file-uploader-with-django
4a2fc8adc0b005ee65ccbf527ae7cda01e6251a7
7fba415bd48c157296fa61a8fe5cf1b7201a2066
refs/heads/master
2023-01-23T00:27:20.440090
2020-12-01T20:55:13
2020-12-01T20:55:13
317,614,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
import os from background_task import background from elasticsearch import Elasticsearch from core.models import File import textract import logging import logging.config es = Elasticsearch([os.environ["ELASTICSEARCH_HOST"]]) logging_config = { "version": 1, "disable_existing_loggers": False, "formatter...
[ "waleed_meselhy@eng.asu.edu.eg" ]
waleed_meselhy@eng.asu.edu.eg
1e862a1482bac70c31b292f846c297325b4e6e92
fa124fdbf36327bf8e74bbc7f00ce448c1e7939a
/src/com/rwanda/mch/exception/unknown_record_error.py
4081f209728b76a9337837f854d44302c81d785f
[]
no_license
pivotaccess2007/mch
039f17cdb16b434c0a25504cc81b7db81e5da988
523d1cd706296744e17e85683b5dbedbc05dd9e6
refs/heads/master
2020-03-30T16:33:44.451275
2018-10-03T13:23:00
2018-10-03T13:23:00
151,414,990
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 ## ## ## @author UWANTWALI ZIGAMA Didier ## d.zigama@pivotaccess.com/zigdidier@gmail.com ## __author__="Zigama Didier" __date__ ="$Nov 22, 2017 1:29:30 PM$" class UnknownRecordError(Exception): def __init__(self, params): self.params = params
[ "zigdidier@gmail.com" ]
zigdidier@gmail.com
5cafdd728435a05556477ceef0e84f1ac035f66f
1146dd7f4d124d3ef2b272e90016ad6b84b544c1
/AIMD_SlidingWindow_StopAndWait/timeout_calculator.py
ebd1aa17793336902fb55db593c64ce202220c2e
[]
no_license
MKagesawa/Networking_Simulation
bb1dce29c230e8fbc4389e878911eb4f327594ed
56e14a51122a17b35c65ae16f18d16f06d039b26
refs/heads/master
2020-04-03T13:25:29.023726
2018-12-21T20:45:10
2018-12-21T20:45:10
155,284,294
6
0
null
null
null
null
UTF-8
Python
false
false
2,568
py
MIN_TIMEOUT = 100 # minimum possible timeout MAX_TIMEOUT = 10000 # maximum possible timeout class TimeoutCalculator: """ Timeout Calculator maintains the mean RTT and RTT variance. Data members of this class include alpha, beta and K (which have the same meaning as discussed in the lectures) """ def __in...
[ "mk5986@nyu.edu" ]
mk5986@nyu.edu
94c943cfdb8de19f1ea1a645f66e81401d400364
6ba7cf21cca753125228209689423fb0ecf806f3
/ai/minitaur/minitaur.py
99d9f468f3ec1d53f3d24b791fe1ce55991482d1
[]
no_license
YabingHu/minitaur-simulation
b19ecb227bcaf43f5e230c6d90e11c7323baf038
34f16b1bff885e990e34019663c0a7272afdf2ec
refs/heads/master
2021-01-04T14:37:46.963775
2018-09-23T01:07:25
2018-09-23T01:07:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,298
py
import numpy as np from gym.envs.mujoco import mujoco_env from gym import utils def mass_center(model, sim): mass = np.expand_dims(model.body_mass, 1) xpos = sim.data.xipos return (np.sum(mass * xpos, 0) / np.sum(mass))[0] class MinitaurEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self): ...
[ "siekmanj@oregonstate.edu" ]
siekmanj@oregonstate.edu
a6358975bdabc5ed0ff790b61be6ac36d483e25c
bef7ebad09c98375b206c99ee1383625d5a626f3
/naas/naas/settings.py
e025b8ef98438851adf831ce54d6c4ce78965cce
[]
no_license
Atul-Panigrahy/SELAB
017144f61321635507bb835807375ae53dd2a271
16e0018cf9f8f7f3f708b57141c23783c3e7a1dd
refs/heads/master
2022-04-04T07:40:40.830021
2020-01-14T05:20:51
2020-01-14T05:20:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,966
py
""" Django settings for naas project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impor...
[ "302harsh@gmail.com" ]
302harsh@gmail.com