hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
3854404645df1ee8b4c9ba0ed9c43ee957209e02
649
exs
Elixir
graphql/test/views/error_view_test.exs
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
graphql/test/views/error_view_test.exs
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
graphql/test/views/error_view_test.exs
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
defmodule GOTStats.GraphQL.ErrorViewTest do use GOTStats.GraphQL.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(GOTStats.GraphQL.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found...
29.5
66
0.662558
385441c02f30d1eea261e1cc806d1675b9151bef
110
exs
Elixir
test/absinthe/integration/execution/introspection/schema_types.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/introspection/schema_types.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
test/absinthe/integration/execution/introspection/schema_types.exs
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
# Handled in a custom assertion match # See `Absinthe.IntegrationTest.assert_integration/2` :custom_assertion
27.5
53
0.827273
3854b32f9f3bfa95f39a46c51885a77b7f501754
1,779
exs
Elixir
mix.exs
ThisisGurwinder/commanded-swarm-registry
d43d89134d35eeb1636b7a2d5e7094fa34ebcbc4
[ "MIT" ]
null
null
null
mix.exs
ThisisGurwinder/commanded-swarm-registry
d43d89134d35eeb1636b7a2d5e7094fa34ebcbc4
[ "MIT" ]
null
null
null
mix.exs
ThisisGurwinder/commanded-swarm-registry
d43d89134d35eeb1636b7a2d5e7094fa34ebcbc4
[ "MIT" ]
null
null
null
defmodule Commanded.Registration.SwarmRegistry.Mixfile do use Mix.Project @version "0.2.0" def project do [ app: :commanded_swarm_registry, version: @version, elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), ...
22.2375
106
0.573356
3854b4553368fecadc152a62b168e6102307308a
1,171
ex
Elixir
apps/rex_web/lib/constants.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
null
null
null
apps/rex_web/lib/constants.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
16
2020-05-18T20:06:29.000Z
2020-06-08T14:32:11.000Z
apps/rex_web/lib/constants.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
null
null
null
defmodule Constants do @moduledoc """ An alternative to use @constant_name value approach to defined reusable constants in elixir. This module offers an approach to define these in a module that can be shared with other modules. They are implemented with macros so they can be used in guards and matches ...
22.519231
75
0.671221
3854dc1be211b3423be6ac847966ca6404a227f4
1,608
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/optional_color.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/slides/lib/google_api/slides/v1/model/optional_color.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/optional_color.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.5
163
0.741294
3854eacc3151cf86c24151f21d1c061171c6891c
1,193
ex
Elixir
apps/badger_data/lib/badger_data/workers/export_worker.ex
andyl/logstore
763580ce6f75b2735adfc919b80c37ed5064a04e
[ "MIT" ]
null
null
null
apps/badger_data/lib/badger_data/workers/export_worker.ex
andyl/logstore
763580ce6f75b2735adfc919b80c37ed5064a04e
[ "MIT" ]
9
2021-03-09T20:25:18.000Z
2021-05-27T12:58:03.000Z
apps/badger_data/lib/badger_data/workers/export_worker.ex
andyl/badger
763580ce6f75b2735adfc919b80c37ed5064a04e
[ "MIT" ]
null
null
null
defmodule BadgerData.Workers.ExportWorker do use Oban.Worker, queue: :serial alias BadgerData.Api.{User, View, Site, Token} @impl Oban.Worker def perform(job) do elapsed = job.args["elapsed"] view = View.view_get(job.args["view_id"]) token = Token.token_get(view.token_id) site = Site.site_get...
25.382979
76
0.618609
3854eddc2219a51b3fbac6f3e9e0407af431c13a
1,666
ex
Elixir
clients/books/lib/google_api/books/v1/model/volume2.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/books/lib/google_api/books/v1/model/volume2.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/books/lib/google_api/books/v1/model/volume2.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.433962
104
0.694478
385526a689f8d79bebdc386de8e463fa2d86eaec
1,537
exs
Elixir
test/resource/actions/update_test.exs
zimt28/ash
ea4c0e78b58762dfb947af2fa9649b25bfdc78cf
[ "MIT" ]
null
null
null
test/resource/actions/update_test.exs
zimt28/ash
ea4c0e78b58762dfb947af2fa9649b25bfdc78cf
[ "MIT" ]
null
null
null
test/resource/actions/update_test.exs
zimt28/ash
ea4c0e78b58762dfb947af2fa9649b25bfdc78cf
[ "MIT" ]
null
null
null
defmodule Ash.Test.Dsl.Resource.Actions.UpdateTest do use ExUnit.Case, async: true defmacrop defposts(do: body) do quote do defmodule Post do use Ash.Resource, data_layer: Ash.DataLayer.Ets attributes do uuid_primary_key :id end unquote(body) en...
22.602941
118
0.517892
3855455f1884a3ac8ba23c12b27f9316381b3e17
4,479
ex
Elixir
lib/mix/tasks/ecto.migrate.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2021-02-24T13:06:18.000Z
2021-02-24T13:06:18.000Z
lib/mix/tasks/ecto.migrate.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2020-06-29T20:59:38.000Z
2020-06-29T20:59:38.000Z
lib/mix/tasks/ecto.migrate.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2019-05-31T02:43:25.000Z
2019-05-31T02:43:25.000Z
defmodule Mix.Tasks.Ecto.Migrate do use Mix.Task import Mix.Ecto import Mix.EctoSQL @shortdoc "Runs the repository migrations" @aliases [ n: :step, r: :repo ] @switches [ all: :boolean, step: :integer, to: :integer, quiet: :boolean, prefix: :string, pool_size: :integer, ...
31.542254
100
0.666443
38554821e5fbb284c43ee8011cd7987e9ca6e466
7,102
ex
Elixir
lib/pigeon/apns/jwt_config.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
1
2021-09-05T13:34:21.000Z
2021-09-05T13:34:21.000Z
lib/pigeon/apns/jwt_config.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
null
null
null
lib/pigeon/apns/jwt_config.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
null
null
null
defmodule Pigeon.APNS.JWTConfig do @moduledoc """ Configuration for APNS Workers using JWT. """ defstruct key: nil, key_identifier: nil, name: nil, ping_period: 600_000, port: 443, team_id: nil, uri: nil alias Pigeon.APNS.ConfigParser ...
29.106557
89
0.632498
3855646c1694e09bbc5a7d54b95f51ef6968027b
161
exs
Elixir
GettingStarted/Exceptions.exs
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
GettingStarted/Exceptions.exs
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
GettingStarted/Exceptions.exs
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
defmodule Exc do def do_stuff do err = try do 5 / 0 rescue ArithmeticError -> "Can't divide by zero" end IO.puts err end end
10.733333
47
0.571429
38556aee4bcae7a12478f0f96508f1b92b5c1956
429
ex
Elixir
lib/lifx/type.ex
kevsmith/lifx_protocol
eaeb02b4ef2896722c2549ce1f1fc253373980ac
[ "Apache-2.0" ]
1
2017-09-06T08:01:45.000Z
2017-09-06T08:01:45.000Z
lib/lifx/type.ex
kevsmith/lifx_protocol
eaeb02b4ef2896722c2549ce1f1fc253373980ac
[ "Apache-2.0" ]
null
null
null
lib/lifx/type.ex
kevsmith/lifx_protocol
eaeb02b4ef2896722c2549ce1f1fc253373980ac
[ "Apache-2.0" ]
null
null
null
defmodule Lifx.Type do @external_resource Path.join([__DIR__, 'type_ids.txt']) for line <- File.stream!(@external_resource, [], :line) do [id, module] = line |> String.split(",") |> Enum.map(&String.trim(&1)) id = String.to_integer(id) module = String.to_atom("Elixir.#{module}") def id_from_name(u...
28.6
74
0.662005
3855815abe9a99e4264e745be777231cb215c201
1,187
exs
Elixir
mix.exs
ncloudioj/iconic
20dac2e8f9e737292d1caccf0ded3b51abe63a97
[ "Apache-2.0" ]
2
2017-10-30T18:16:25.000Z
2021-02-09T09:29:24.000Z
mix.exs
ncloudioj/iconic
20dac2e8f9e737292d1caccf0ded3b51abe63a97
[ "Apache-2.0" ]
null
null
null
mix.exs
ncloudioj/iconic
20dac2e8f9e737292d1caccf0ded3b51abe63a97
[ "Apache-2.0" ]
null
null
null
defmodule Iconic.Mixfile do use Mix.Project def project do [ app: :iconic, version: "0.1.1", elixir: "~> 1.5", build_embeded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), name: "Iconic", deps: deps(), ...
22.826923
138
0.559393
38559b63398208d354c77bb10e49fccf5ccf6a96
46,254
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/api/projects.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/datastore/lib/google_api/datastore/v1/api/projects.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/api/projects.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
47.488706
196
0.630021
3855c2aac999ba305f9df9ca1be78f0ba54665b7
255
ex
Elixir
lib/kvstore.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
defmodule KVstore do use Application def start(_type, _args) do table_name = Application.get_env(:kvstore, :storage_name) KVstore.Supervisor.start_link([name: KVstore.Supervisor, table_name: table_name]) end end
28.333333
89
0.678431
3855e148f0c077bef2bd23794877c2cc8ee0a4a2
67
ex
Elixir
ds_backend/lib/ds_backend_web/views/layout_view.ex
ohr486/d-screen
5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7
[ "MIT" ]
null
null
null
ds_backend/lib/ds_backend_web/views/layout_view.ex
ohr486/d-screen
5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7
[ "MIT" ]
null
null
null
ds_backend/lib/ds_backend_web/views/layout_view.ex
ohr486/d-screen
5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7
[ "MIT" ]
null
null
null
defmodule DsBackendWeb.LayoutView do use DsBackendWeb, :view end
16.75
36
0.820896
3855e40c3b3a3248efcb8b00c688c4f0e57aebe6
482
ex
Elixir
lib/grovepi/registry/pin.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
null
null
null
lib/grovepi/registry/pin.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
null
null
null
lib/grovepi/registry/pin.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
null
null
null
defmodule GrovePi.Registry.Pin do @moduledoc false @spec start_link(atom) :: Supervisor.on_start() def start_link(prefix, opts \\ []) do opts = Keyword.put(opts, :id, :pin_registry) |> Keyword.put(:keys, :unique) |> Keyword.put(:name, registry(prefix)) Registry.start_link(opts) end ...
21.909091
49
0.647303
38560b8bd2aa475985fd19c3a381461945ccc2ea
1,372
ex
Elixir
apps/rig_outbound_gateway/lib/rig_outbound_gateway.ex
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
apps/rig_outbound_gateway/lib/rig_outbound_gateway.ex
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
apps/rig_outbound_gateway/lib/rig_outbound_gateway.ex
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
defmodule RigOutboundGateway do @moduledoc """ Handles message delivery. """ use Rig.Config, [:message_user_field] require Logger alias Phoenix.Channel.Server, as: PhoenixChannelServer @pubsub_server Rig.PubSub def handle_raw(raw, parse, send, ack) do case parse.(raw) do {:ok, payload} -> h...
24.070175
83
0.631195
385628904d0f03cc6a720a264107eaf0485b72aa
608
exs
Elixir
test/support/schema.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
4
2020-09-17T15:55:21.000Z
2022-02-11T22:11:55.000Z
test/support/schema.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
null
null
null
test/support/schema.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
1
2022-03-07T20:22:23.000Z
2022-03-07T20:22:23.000Z
defmodule Current.Test.Actor do use Ecto.Schema schema "actors" do field(:name, :string) has_many(:credits, Current.Test.Credit) has_many(:movies, through: [:credits, :movie]) end end defmodule Current.Test.Movie do use Ecto.Schema schema "movies" do field(:title, :string) field(:year,...
19
50
0.692434
38563358f00bd4765bd27fe4274e923ad763dabc
1,345
ex
Elixir
lib/teiserver_web/controllers/general/general_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver_web/controllers/general/general_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver_web/controllers/general/general_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule TeiserverWeb.General.GeneralController do use CentralWeb, :controller alias Teiserver.Client plug(:add_breadcrumb, name: 'Teiserver', url: '/teiserver') plug(AssignPlug, sidemenu_active: "teiserver" ) plug(Teiserver.ServerUserPlug) @spec index(Plug.Conn.t(), Map.t()) :: Plug.Conn.t() d...
31.27907
91
0.690706
38563fb814dc3845838adf6d73aeb62719a2e49b
8,824
ex
Elixir
lib/teslamate/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
1
2020-05-17T05:05:22.000Z
2020-05-17T05:05:22.000Z
lib/teslamate/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
null
null
null
lib/teslamate/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
null
null
null
defmodule TeslaMate.Log do @moduledoc """ The Log context. """ require Logger import Ecto.Query, warn: false import __MODULE__.Functions, only: [duration_min: 2] alias TeslaMate.{Repo, Locations, Mapping} ## Car alias TeslaMate.Log.Car def list_cars do Repo.all(Car) end def get_car!(i...
26.261905
98
0.603694
385649c52f98724fa325c007d4d72e82bb5c8fc0
677
ex
Elixir
lib/hl7/2.4/segments/pdc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/pdc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/pdc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.PDC do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, manufacturer_distributor: DataTypes.Xon, country: DataTypes.Ce, brand_name: nil, device_family_name: nil, generic_name: DataTypes.Ce, ...
25.074074
46
0.685377
385653ef5ede4de2f4704cc9fc4940b0be9128c2
79
exs
Elixir
config/config.exs
the-mikedavis/snipe
3aae23bd1216aa2006ee1964e1482328731e2589
[ "MIT" ]
null
null
null
config/config.exs
the-mikedavis/snipe
3aae23bd1216aa2006ee1964e1482328731e2589
[ "MIT" ]
null
null
null
config/config.exs
the-mikedavis/snipe
3aae23bd1216aa2006ee1964e1482328731e2589
[ "MIT" ]
null
null
null
use Mix.Config config :logger, level: :info import_config "#{Mix.env()}.exs"
13.166667
32
0.696203
38567128225a6f4c54beeb79a57305492de83994
1,351
ex
Elixir
lib/wong_bejo_web/endpoint.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
lib/wong_bejo_web/endpoint.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
lib/wong_bejo_web/endpoint.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
defmodule WongBejoWeb.Endpoint do use Phoenix.Endpoint, otp_app: :wong_bejo socket "/socket", WongBejoWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying your s...
28.744681
96
0.716506
3856768058eaaf13ba5746b981db5abd87744739
5,554
ex
Elixir
lib/cloudinary/transformation/effect/vectorize.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
1
2021-05-23T09:17:44.000Z
2021-05-23T09:17:44.000Z
lib/cloudinary/transformation/effect/vectorize.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
44
2020-05-15T03:36:36.000Z
2022-03-23T21:39:11.000Z
lib/cloudinary/transformation/effect/vectorize.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
null
null
null
defmodule Cloudinary.Transformation.Effect.Vectorize do @moduledoc false defguardp is_colors(colors) when colors in 2..30 defguardp is_detail(detail) when (detail <= 1 and detail >= 0) or detail in 2..1000 defguardp is_despeckle(despeckl) when (despeckl <= 1 and despeckl >= 0) or despeckl in 2..100 defguardp ...
39.112676
97
0.651602
385680da3eaccd40885f786c4e19da5c83a1efde
4,301
exs
Elixir
apps/artemis/test/artemis/contexts/tag/update_tag_test.exs
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/test/artemis/contexts/tag/update_tag_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/test/artemis/contexts/tag/update_tag_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.UpdateTagTest do use Artemis.DataCase import Artemis.Factories alias Artemis.UpdateTag describe "call!" do test "raises an exception when id not found" do invalid_id = 50_000_000 params = params_for(:tag) assert_raise Artemis.Context.Error, fn -> UpdateTag.cal...
24.299435
79
0.614276
385689d0a54b58056c71941ca4b3e77b940b6e52
461
ex
Elixir
lib/gemfire/supervisor.ex
julienmarie/elixir-gemfire
b3aecb8b4fb8f5fc2a56fe02f530ce87bc903593
[ "MIT" ]
1
2016-08-01T22:49:00.000Z
2016-08-01T22:49:00.000Z
lib/gemfire/supervisor.ex
julienmarie/elixir-gemfire
b3aecb8b4fb8f5fc2a56fe02f530ce87bc903593
[ "MIT" ]
null
null
null
lib/gemfire/supervisor.ex
julienmarie/elixir-gemfire
b3aecb8b4fb8f5fc2a56fe02f530ce87bc903593
[ "MIT" ]
1
2019-08-14T12:42:50.000Z
2019-08-14T12:42:50.000Z
defmodule Gemfire.Supervisor do @moduledoc false use Supervisor def start_link() do Supervisor.start_link(__MODULE__, []) end def init(arg) do poolboy_config = [ {:name, {:local, :gemclient}}, {:worker_module, Gemfire.Client}, {:size, 10}, {:max_overflow, 1} ...
19.208333
57
0.611714
3856b2e232b1812d0c6a57594077acc77081cdf7
2,193
ex
Elixir
lib/glimesh_web/controllers/user_payments_controller.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/controllers/user_payments_controller.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/controllers/user_payments_controller.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserPaymentsController do use GlimeshWeb, :controller alias Glimesh.Accounts alias Glimesh.Payments def index(conn, _params) do user = conn.assigns.current_user params = Plug.Conn.Query.encode(%{ "client_id" => Application.get_env(:stripity_stripe, :connect_client_i...
31.328571
94
0.645691
3856c03fccfba970195915a6543e46788e061123
1,857
exs
Elixir
wasmcloud_host/mix.exs
adobe-platform/wasmcloud-otp
bcfcdf9814bc529e67c954eacabdc9a05c772cfa
[ "Apache-2.0" ]
null
null
null
wasmcloud_host/mix.exs
adobe-platform/wasmcloud-otp
bcfcdf9814bc529e67c954eacabdc9a05c772cfa
[ "Apache-2.0" ]
null
null
null
wasmcloud_host/mix.exs
adobe-platform/wasmcloud-otp
bcfcdf9814bc529e67c954eacabdc9a05c772cfa
[ "Apache-2.0" ]
null
null
null
defmodule WasmcloudHost.MixProject do use Mix.Project @app_vsn "0.50.2" def project do [ app: :wasmcloud_host, version: @app_vsn, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, ...
27.308824
84
0.583199
3856d1f052c4e3a50dc3e59e3245868089500655
1,226
exs
Elixir
mix.exs
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
null
null
null
mix.exs
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
null
null
null
mix.exs
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
null
null
null
defmodule Absinthe.Plug.Mixfile do use Mix.Project @version "1.4.5" def project do [ app: :absinthe_plug, version: @version, elixir: "~> 1.3", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), package: ...
24.52
79
0.564437
3857256f85dbf6c9a614822db4abe94fbe8b3859
345
ex
Elixir
lib/yggdrasil/publisher/adapter/graphql.ex
etherharvest/yggdrasil_graphql
95eef1f55857242744709b0890b70d8e3d5bb578
[ "MIT" ]
3
2020-02-21T11:10:55.000Z
2021-03-22T09:59:57.000Z
lib/yggdrasil/publisher/adapter/graphql.ex
etherharvest/yggdrasil_graphql
95eef1f55857242744709b0890b70d8e3d5bb578
[ "MIT" ]
null
null
null
lib/yggdrasil/publisher/adapter/graphql.ex
etherharvest/yggdrasil_graphql
95eef1f55857242744709b0890b70d8e3d5bb578
[ "MIT" ]
null
null
null
defmodule Yggdrasil.Publisher.Adapter.GraphQL do @moduledoc false use Yggdrasil.Publisher.Adapter @doc false def start_link(_, _) do raise "Cannot start #{__MODULE__} because it does not exist" end @doc false def publish(_, _, _, _ \\ []) do raise "Cannot publish using #{__MODULE__} because if d...
23
72
0.707246
38573d7e2e47f1d0dc43f5336565402b8bde6e5b
76
ex
Elixir
lib/ex_jagaimo_blog_web/views/landing_view.ex
JasonTrue/ex_jagaimo_blog
e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9
[ "MIT" ]
1
2021-06-19T04:19:06.000Z
2021-06-19T04:19:06.000Z
lib/ex_jagaimo_blog_web/views/landing_view.ex
JasonTrue/ex_jagaimo_blog
e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9
[ "MIT" ]
1
2021-06-19T04:21:52.000Z
2021-06-19T04:21:52.000Z
lib/ex_jagaimo_blog_web/views/landing_view.ex
JasonTrue/ex_jagaimo_blog
e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9
[ "MIT" ]
null
null
null
defmodule ExJagaimoBlogWeb.LandingView do use ExJagaimoBlogWeb, :view end
19
41
0.842105
38574f3d2cd88df78d92356c9e1e7863ef222a9a
137
exs
Elixir
config/runtime.exs
bitcrowd/bitcrowd_ecto
6e2d41d7dbe1fa1398b545c12385cde2db94285c
[ "Apache-2.0" ]
2
2022-01-11T08:03:49.000Z
2022-02-11T10:25:30.000Z
config/runtime.exs
bitcrowd/bitcrowd_ecto
6e2d41d7dbe1fa1398b545c12385cde2db94285c
[ "Apache-2.0" ]
3
2022-02-03T21:28:14.000Z
2022-03-25T09:03:15.000Z
config/runtime.exs
bitcrowd/bitcrowd_ecto
6e2d41d7dbe1fa1398b545c12385cde2db94285c
[ "Apache-2.0" ]
null
null
null
import Config if database_url = System.get_env("DATABASE_URL") do config :bitcrowd_ecto, BitcrowdEcto.TestRepo, url: database_url end
22.833333
65
0.80292
385772a60abe89dc447f24aa6ee19cbbe8e44fe5
3,556
exs
Elixir
test/chat_api_web/controllers/message_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
2
2020-09-21T07:27:13.000Z
2021-12-20T13:23:56.000Z
test/chat_api_web/controllers/message_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/message_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
1
2021-08-29T14:10:18.000Z
2021-08-29T14:10:18.000Z
defmodule ChatApiWeb.MessageControllerTest do use ChatApiWeb.ConnCase alias ChatApi.Messages alias ChatApi.Messages.Message alias ChatApi.Accounts @update_attrs %{ body: "some updated body" } @invalid_attrs %{body: nil} def valid_create_attrs do {:ok, account} = Accounts.create_account(%{comp...
28.910569
99
0.642857
3857865cbc5e728fba52ed0c9c4ff5b1e6914830
156
ex
Elixir
raspberry_phoenix/web/controllers/page_controller.ex
raymondboswel/raspberry_phoenix
ec0594c765db4405f2ec1f876ef9f76e685fcea4
[ "Apache-2.0" ]
null
null
null
raspberry_phoenix/web/controllers/page_controller.ex
raymondboswel/raspberry_phoenix
ec0594c765db4405f2ec1f876ef9f76e685fcea4
[ "Apache-2.0" ]
null
null
null
raspberry_phoenix/web/controllers/page_controller.ex
raymondboswel/raspberry_phoenix
ec0594c765db4405f2ec1f876ef9f76e685fcea4
[ "Apache-2.0" ]
null
null
null
defmodule RaspberryPhoenix.PageController do use RaspberryPhoenix.Web, :controller def index(conn, _params) do render conn, "index.html" end end
19.5
44
0.762821
38579098cf2bedd667c861aabeec7c2dbe882ea7
1,801
ex
Elixir
clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.596491
185
0.748473
3857afa3823155bab3938058afa00adabcc04d18
415
exs
Elixir
test/tirexs/index/settings/set_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
384
2015-03-09T05:03:42.000Z
2022-02-27T00:45:58.000Z
test/tirexs/index/settings/set_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
144
2015-03-06T11:19:49.000Z
2021-06-11T11:26:39.000Z
test/tirexs/index/settings/set_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
97
2015-03-21T13:58:38.000Z
2022-01-07T14:40:49.000Z
Code.require_file "../../../../test_helper.exs", __ENV__.file defmodule Tirexs.Index.Settings.SetTest do use ExUnit.Case import Tirexs.Index.Settings test "settings w/ set" do index = [name: "bear_test"] settings do set number_of_replicas: 3, auto_expand_replicas: 5 end expected = [num...
20.75
63
0.696386
38581bcc7c645e57c493afa0b9fbd3e667ea083d
374
exs
Elixir
apps/banking_api/priv/repo/migrations/20210414215634_user_migration.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
1
2021-06-10T03:29:16.000Z
2021-06-10T03:29:16.000Z
apps/banking_api/priv/repo/migrations/20210414215634_user_migration.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
null
null
null
apps/banking_api/priv/repo/migrations/20210414215634_user_migration.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
null
null
null
defmodule BankingApi.Repo.Migrations.UserMigration do use Ecto.Migration def change do create table(:users, primary_key: false) do add :id, :uuid, primary_key: true add :name, :string add :surname, :string add :email, :string add :password_hash, :string timestamps() end...
20.777778
53
0.65508
3858270091f49a0e435efbe523f4b52c8248a893
639
ex
Elixir
lib/bolt/usw_supervisor.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/usw_supervisor.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/usw_supervisor.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.USWSupervisor do @moduledoc """ Supervises processes of the Uncomplicated Spam Wall. """ use Supervisor def start_link(args) do Supervisor.start_link(__MODULE__, args, name: __MODULE__) end @impl true def init(_args) do children = [ # A lock that ensures that USW does not...
24.576923
76
0.699531
3858400e703efa70b9d04b5d1ca6148eb36987eb
291
ex
Elixir
lib/thumbifier/error/not_found.ex
sysdia-solutions/thumbifier
b2b71571bb8a33159e5d90ecb5ea3931eafdd62b
[ "MIT" ]
4
2016-10-16T22:22:52.000Z
2019-05-24T13:44:15.000Z
lib/thumbifier/error/not_found.ex
sysdia-solutions/thumbifier
b2b71571bb8a33159e5d90ecb5ea3931eafdd62b
[ "MIT" ]
1
2016-10-21T00:16:16.000Z
2017-09-24T02:24:23.000Z
lib/thumbifier/error/not_found.ex
sysdia-solutions/thumbifier
b2b71571bb8a33159e5d90ecb5ea3931eafdd62b
[ "MIT" ]
null
null
null
defmodule Thumbifier.Error.NotFound do defstruct resource: "", id: "", message: "" end defimpl Poison.Encoder, for: Thumbifier.Error.NotFound do def encode(error, _options) do %{message: "#{error.resource} '#{error.id}' can not be found"} |> Poison.Encoder.encode([]) end end
26.454545
66
0.687285
3858988ab01e929d6d1a5750fd6c763ae3d02697
1,921
exs
Elixir
config/dev.exs
lorenzosinisi/webkontist
6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f
[ "MIT" ]
null
null
null
config/dev.exs
lorenzosinisi/webkontist
6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f
[ "MIT" ]
1
2021-05-10T13:24:52.000Z
2021-05-10T13:24:52.000Z
config/dev.exs
lorenzosinisi/webkontist
6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. config :webkontist, WebKontistWeb.Endpoint, http: [port...
28.25
68
0.68506
3858aef72db10198253c9e757a1c3978238b3896
12,898
exs
Elixir
apps/graphql/test/mutations/account_mutations_test.exs
asamoal/plural
5b336f27cb2d775560e35e5323192c42d62e72f5
[ "Apache-2.0" ]
null
null
null
apps/graphql/test/mutations/account_mutations_test.exs
asamoal/plural
5b336f27cb2d775560e35e5323192c42d62e72f5
[ "Apache-2.0" ]
null
null
null
apps/graphql/test/mutations/account_mutations_test.exs
asamoal/plural
5b336f27cb2d775560e35e5323192c42d62e72f5
[ "Apache-2.0" ]
null
null
null
defmodule GraphQl.AccountMutationTest do use Core.SchemaCase, async: true use Mimic import GraphQl.TestHelpers describe "createServiceAccount" do setup [:setup_root_user] test "it can create service accounts", %{user: user} do group = insert(:group, account: user.account) {:ok, %{data: %{"...
30.856459
117
0.55055
3858b5c4aac7fd99d09b827131c4e5ef3760169a
3,627
exs
Elixir
test/test_helper.exs
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
8
2020-05-29T03:22:02.000Z
2022-03-18T12:16:49.000Z
test/test_helper.exs
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
4
2020-07-06T08:11:18.000Z
2020-08-14T11:10:10.000Z
test/test_helper.exs
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
4
2020-05-26T02:47:00.000Z
2021-05-03T15:26:12.000Z
ExUnit.start() Faker.start() defmodule Singer do @moduledoc """ Sample model module for unit test. """ use RatchetWrench.Model schema do uuid(:singer_id) pk([:singer_id]) attributes( singer_id: {"STRING", nil}, first_name: {"STRING", nil}, last_name: {"STRING", nil}, ins...
18.792746
67
0.599669
3858cf032201ee75399b91f250891ad801548be1
1,829
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/search_developer_metadata_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sheets/lib/google_api/sheets/v4/model/search_developer_metadata_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/search_developer_metadata_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
36.58
161
0.757244
38594f86f1d0538daaea9abbd0b81213a6892e67
12,470
ex
Elixir
host_core/lib/host_core/actors/actor_module.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/actors/actor_module.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/actors/actor_module.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
null
null
null
defmodule HostCore.Actors.ActorModule do @moduledoc false # Do not automatically restart this process use GenServer, restart: :transient alias HostCore.CloudEvent @op_health_check "Actor.HealthRequest" @thirty_seconds 30_000 require Logger alias HostCore.WebAssembly.Imports defmodule State do @...
26.308017
101
0.62502
38595bdf479d91e8bd93eeeb7b063842a3f71ce0
2,505
exs
Elixir
test/assoc_test.exs
yukster/ex_audit
b38f4fe4fdb9d13005a64b2e62d896d9489d326a
[ "MIT" ]
null
null
null
test/assoc_test.exs
yukster/ex_audit
b38f4fe4fdb9d13005a64b2e62d896d9489d326a
[ "MIT" ]
null
null
null
test/assoc_test.exs
yukster/ex_audit
b38f4fe4fdb9d13005a64b2e62d896d9489d326a
[ "MIT" ]
null
null
null
defmodule AssocTest do use ExUnit.Case import Ecto.Query alias ExAudit.Test.{Repo, Version, BlogPost, Comment, Util, User, UserGroup} test "comment lifecycle tracked" do user = Util.create_user() ExAudit.track(actor_id: user.id) params = %{ title: "Controversial post", author_id: us...
23.194444
80
0.583633
3859740b26144ecad7f02d687c86f5707b563e4f
8,743
exs
Elixir
lib/ex_unit/test/ex_unit/capture_io_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/ex_unit/test/ex_unit/capture_io_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/capture_io_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule ExUnit.CaptureIOTest do use ExUnit.Case defmodule GetUntil do def until_new_line(_, :eof, _) do {:done, :eof, []} end def until_new_line(this_far, chars, stop_char) do case Enum.split_while(chars, fn(c) -> c != stop_char end) do ...
24.628169
114
0.53723
38599e90cea547c548a0a7343aa33d0daa5d93e8
3,343
exs
Elixir
test/rpc_test.exs
kkondaurov/connected_nodes_dashboard
16b4815277cecd77734b90f7be89e3749aa5d627
[ "Apache-2.0" ]
2
2022-02-01T07:59:45.000Z
2022-02-01T19:35:53.000Z
test/rpc_test.exs
kkondaurov/connected_nodes_dashboard
16b4815277cecd77734b90f7be89e3749aa5d627
[ "Apache-2.0" ]
null
null
null
test/rpc_test.exs
kkondaurov/connected_nodes_dashboard
16b4815277cecd77734b90f7be89e3749aa5d627
[ "Apache-2.0" ]
null
null
null
defmodule ConnectedNodesDashboard.RpcTest do use ExUnit.Case, async: false import ConnectedNodesDashboard.NodeTestHelper alias ConnectedNodesDashboard.RPC @host "127.0.0.1" describe "collect_node_info/3" do test "returns basic information about the current node" do current_node = Node.self() ...
30.117117
89
0.59647
38599f105049db338762088927f47ca80f92050e
149
ex
Elixir
lib/mathmatical_web/controllers/page_controller.ex
shawnonthenet/mathmatical
d0f8d9e77dc71edfdc88776daca973fcd9cd106b
[ "Apache-2.0" ]
null
null
null
lib/mathmatical_web/controllers/page_controller.ex
shawnonthenet/mathmatical
d0f8d9e77dc71edfdc88776daca973fcd9cd106b
[ "Apache-2.0" ]
null
null
null
lib/mathmatical_web/controllers/page_controller.ex
shawnonthenet/mathmatical
d0f8d9e77dc71edfdc88776daca973fcd9cd106b
[ "Apache-2.0" ]
null
null
null
defmodule MathmaticalWeb.PageController do use MathmaticalWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
18.625
42
0.751678
3859c825799e39d8b6e2d6e04c59c2ce9dd4f5c5
2,138
ex
Elixir
lib/open_pantry/food_selection/stock.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
41
2017-10-04T00:33:46.000Z
2021-04-09T01:33:34.000Z
lib/open_pantry/food_selection/stock.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
74
2017-09-20T03:36:17.000Z
2018-11-20T20:46:16.000Z
lib/open_pantry/food_selection/stock.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
12
2017-10-04T10:02:49.000Z
2021-12-28T22:57:20.000Z
defmodule OpenPantry.FoodSelection.Stock do use Ecto.Schema use Arc.Ecto.Schema import Ecto.Query use OpenPantry.SharedRepo alias OpenPantry.Repo alias OpenPantry.FoodSelection.Food alias OpenPantry.Meal alias OpenPantry.Offer alias OpenPantry.Facility alias OpenPantry.StockDistribution schema "st...
28.891892
89
0.697848
3859cbf3424da26428bd5533741bfd5836912612
300
exs
Elixir
project-euler-1/3s-and-5s.exs
bapti/learning-elixir
99273cb8fe05c97db28b02e4b3c0482420b5d18c
[ "MIT" ]
null
null
null
project-euler-1/3s-and-5s.exs
bapti/learning-elixir
99273cb8fe05c97db28b02e4b3c0482420b5d18c
[ "MIT" ]
null
null
null
project-euler-1/3s-and-5s.exs
bapti/learning-elixir
99273cb8fe05c97db28b02e4b3c0482420b5d18c
[ "MIT" ]
null
null
null
#If we list all the natural numbers below 10 that are multiples of #3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. # Find the sum of all the multiples of 3 or 5 below 1000. sum = 1..999 |> Enum.filter( fn x -> rem(x, 3) == 0 or rem(x, 5) == 0 end ) |> Enum.sum IO.puts(sum)
27.272727
66
0.633333
385a02decfcb126718cfefe9933f5bbccb326c26
1,748
ex
Elixir
lib/xgps/broadcaster.ex
mholtman/xgps
b660df067800d38658e13faa87dc60027425cf66
[ "MIT" ]
20
2016-12-05T18:34:36.000Z
2021-12-21T13:32:44.000Z
lib/xgps/broadcaster.ex
mholtman/xgps
b660df067800d38658e13faa87dc60027425cf66
[ "MIT" ]
1
2016-10-16T07:09:02.000Z
2016-10-16T07:09:02.000Z
lib/xgps/broadcaster.ex
mholtman/xgps
b660df067800d38658e13faa87dc60027425cf66
[ "MIT" ]
5
2017-03-04T00:18:50.000Z
2021-01-15T12:26:54.000Z
alias Experimental.{GenStage} defmodule XGPS.Broadcaster do @moduledoc """ Heavily inspired (almost a copy) from the GenEvent-replacement example from GenStage-repo at: https://github.com/elixir-lang/gen_stage """ use GenStage @doc """ Starts the broadcaster. """ def start_link() do GenStage.s...
29.133333
95
0.688215
385a0f485acbfa5d26bcc2aac4bb671b470e310d
727
exs
Elixir
mix.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
mix.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
mix.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
defmodule ElixirPlayground.Mixfile do use Mix.Project def project do [app: :elixir_playground, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help ...
22.030303
77
0.616231
385a14d27bf78c3c20207f4294b19ddec50487b1
16,237
exs
Elixir
test/properties_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
test/properties_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
test/properties_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
defmodule Surface.PropertiesTest do use Surface.ConnCase, async: true defmodule StringProp do use Surface.Component prop label, :string def render(assigns) do ~H""" {{ @label }} """ end end defmodule AtomProp do use Surface.Component prop as, :atom def render(...
22.709091
140
0.490793
385a70a43a54520444bd79222fabd64e1d114697
446
ex
Elixir
lib/elixir/lib/kernel/parallel_require.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/elixir/lib/kernel/parallel_require.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_require.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule Kernel.ParallelRequire do # TODO: Deprecate on Elixir v1.8 @moduledoc false def files(files, callbacks \\ []) def files(files, callback) when is_function(callback, 1) do files(files, each_file: callback) end def files(files, options) when is_list(options) do case Kernel.ParallelCompiler...
24.777778
61
0.67713
385a75f1c86793bc457d2a99757f138e1e921e59
7,481
exs
Elixir
lib/elixir/test/elixir/protocol_test.exs
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/protocol_test.exs
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/protocol_test.exs
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule ProtocolTest do use ExUnit.Case, async: true defprotocol Sample do @type t :: any @doc "Blank" @spec blank(t) :: boolean def blank(thing) end defprotocol WithAny do @fallback_to_any true @doc "Blank" def blank(thing) end ...
27.707407
104
0.656329
385a9a636c51e00a09049135959528b39604445e
336
ex
Elixir
lib/ibanity/application.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
3
2018-11-17T18:12:15.000Z
2020-12-09T06:26:59.000Z
lib/ibanity/application.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
2
2018-12-12T14:14:56.000Z
2019-07-01T14:13:57.000Z
lib/ibanity/application.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
null
null
null
defmodule Ibanity.Application do @moduledoc false use Application import Supervisor.Spec def start(_type, _args) do children = [ worker(Ibanity.Configuration, [Application.get_all_env(:ibanity)]) ] opts = [strategy: :one_for_one, name: Ibanity.Supervisor] Supervisor.start_link(children, ...
22.4
72
0.720238
385b193eedfea1fb806a65625fe87494a2e4f4b7
65,514
ex
Elixir
lib/ecto/query/planner.ex
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/planner.ex
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/planner.ex
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Planner do # Normalizes a query and its parameters. @moduledoc false alias Ecto.Query.{BooleanExpr, DynamicExpr, FromExpr, JoinExpr, QueryExpr, SelectExpr} if map_size(%Ecto.Query{}) != 21 do raise "Ecto.Query match out of date in builder" end @parent_as __MODULE__ @doc """ ...
37.266212
147
0.631468
385b1f1247a7701a1c9bd9fc8dc5ab4b95b46bdc
894
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.111111
74
0.761745
385b2570ab52b4cbd2568ef722c819f843e188fe
6,140
exs
Elixir
test/oli_web/controllers/institution_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
test/oli_web/controllers/institution_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
test/oli_web/controllers/institution_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule OliWeb.InstitutionControllerTest do use OliWeb.ConnCase import ExUnit.CaptureLog alias Oli.Repo alias Oli.Accounts alias Oli.Accounts.Author alias Oli.Institutions alias Oli.Lti.Tool.Registration alias Oli.Lti.Tool.Deployment alias Oli.Institutions.PendingRegistration @create_attrs %{ ...
33.010753
99
0.683062
385b362f9e0c428b120239fbd066bf137997969a
5,765
exs
Elixir
test/joken_config_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
421
2015-01-06T12:06:00.000Z
2018-11-17T09:12:27.000Z
test/joken_config_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
178
2015-02-24T15:40:25.000Z
2018-11-06T16:32:27.000Z
test/joken_config_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
71
2015-02-24T00:52:34.000Z
2018-10-30T17:34:59.000Z
defmodule Joken.Config.Test do use ExUnit.Case, async: true use ExUnitProperties alias Joken.{Config, CurrentTime.Mock, Error} setup do {:ok, _pid} = start_supervised(Mock) :ok end describe "Joken.Config.default_claims/1" do property "any given issuer will be validated" do check all(issu...
29.564103
96
0.590286
385b40e0b90b7384bde57a90d575750be82c0ced
10,994
ex
Elixir
lib/phoenix/digester.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
lib/phoenix/digester.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
lib/phoenix/digester.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
defmodule Phoenix.Digester do @digested_file_regex ~r/(-[a-fA-F\d]{32})/ @manifest_version 1 @empty_manifest %{ "version" => 1, "digests" => %{}, "latest" => %{} } defp now() do :calendar.datetime_to_gregorian_seconds(:calendar.universal_time()) end @moduledoc false @doc """ Digests...
28.931579
98
0.656267
385b47b5d5fd24ebc00ff5fe595852e03fc05cc2
1,925
ex
Elixir
clients/games_management/lib/google_api/games_management/v1management/model/scores_reset_multiple_for_all_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/games_management/lib/google_api/games_management/v1management/model/scores_reset_multiple_for_all_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/scores_reset_multiple_for_all_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
35
228
0.748571
385b81db3f1f0dd19940c6653df7799d901e83b5
1,787
exs
Elixir
test/instream/connection/timeout_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
test/instream/connection/timeout_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
test/instream/connection/timeout_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
defmodule Instream.Connection.TimeoutTest do use ExUnit.Case, async: true defmodule InetsConnection do use Instream.Connection, otp_app: :instream, config: [ loggers: [] ] end defmodule InetsHandler do require Record Record.defrecord(:mod, Record.extract(:mod, from_lib: ...
21.27381
88
0.618914
385b83f8f60135567b0c95ff6ddf1556ee5f2fad
2,153
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.87037
194
0.725499
385b9eb6250f4e4999a34984ba0692b45b465c65
433
ex
Elixir
lib/stripe_mock_web/plug/set_client_ip.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
4
2019-06-04T20:35:21.000Z
2021-09-02T04:04:21.000Z
lib/stripe_mock_web/plug/set_client_ip.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
2
2020-02-04T17:38:12.000Z
2021-04-29T06:59:06.000Z
lib/stripe_mock_web/plug/set_client_ip.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
null
null
null
defmodule StripeMockWeb.Plug.SetClientIP do @moduledoc """ Sets the client IP address in the params via an extremely frowned upon method. """ def init(options), do: options def call(%{params: params} = conn, _arg) do params = Map.put(params, "client_ip", get_ip(conn)) %{conn | params: params} end ...
24.055556
80
0.637413
385ba83ad39933c56eddc6f4d61e422e65a87067
1,280
ex
Elixir
implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/cleanup.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/cleanup.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/cleanup.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.CloudNode.Cleanup do @moduledoc """ Worker and topic cleanup helpers. """ alias Ockam.CloudNode.Cleanup.Kafka.TopicCleanup alias Ockam.CloudNode.Cleanup.WorkerCleanup require Logger @doc """ Cleanup idle forwarding workers, idle stream workers and optionally kafka topics Arguments:...
34.594595
99
0.746875
385baa079b09635393630130ccc5a72bb35d5d70
360
ex
Elixir
lib/zen_ex/help_center/entities/category.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
lib/zen_ex/help_center/entities/category.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
lib/zen_ex/help_center/entities/category.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
defmodule ZenEx.HelpCenter.Entity.Category do @derive Jason.Encoder defstruct [ :id, :name, :description, :locale, :source_locale, :url, :html_url, :outdated, :position, :translation_ids, :created_at, :updated_at ] @moduledoc """ Category entity corresponding t...
16.363636
62
0.641667
385bb169c1f046b76b2ea9ff792c78d3ac7e331d
3,678
ex
Elixir
clients/reseller/lib/google_api/reseller/v1/model/customer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/reseller/lib/google_api/reseller/v1/model/customer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/reseller/lib/google_api/reseller/v1/model/customer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
54.088235
353
0.722132
385bb3741ed42fc90e8548f04b7a8b23216d115c
120
ex
Elixir
languages/elixir/exercises/concept/name-badge/lib/name_badge.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
200
2019-12-12T13:50:59.000Z
2022-02-20T22:38:42.000Z
languages/elixir/exercises/concept/name-badge/lib/name_badge.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1,938
2019-12-12T08:07:10.000Z
2021-01-29T12:56:13.000Z
languages/elixir/exercises/concept/name-badge/lib/name_badge.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
239
2019-12-12T14:09:08.000Z
2022-03-18T00:04:07.000Z
defmodule NameBadge do def print(id, name, department) do raise "Please implement the print/3 function" end end
20
49
0.741667
385bc50ec936a20e27a6d9b8816331939362b7c9
313
exs
Elixir
config/config.exs
apdunston/mix_test_notify
07fe9c04ef800cdb2cc4dce565fb08ac6eb3f73a
[ "MIT" ]
6
2016-08-02T19:14:23.000Z
2020-05-25T21:47:26.000Z
config/config.exs
apdunston/mix_test_notify
07fe9c04ef800cdb2cc4dce565fb08ac6eb3f73a
[ "MIT" ]
1
2016-08-11T18:19:22.000Z
2016-08-11T18:19:36.000Z
config/config.exs
apdunston/mix_test_notify
07fe9c04ef800cdb2cc4dce565fb08ac6eb3f73a
[ "MIT" ]
null
null
null
use Mix.Config # Sample configuration: config :mix_test_notify, :sound, true # config :mix_test_notify, :win_sound, "Blow" # config :mix_test_notify, :fail_sound, "Basso" # config :mix_test_notify, :win_title, "Win" # config :mix_test_notify, :fail_title, "Fail" config :mix_test_watch, tasks: ["test.notify"]
26.083333
47
0.747604
385bcf50ae9e64aabc4d47eb88df0b4175430a73
1,230
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/json_object.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/json_object.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/json_object.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
27.333333
77
0.752033
385bd5f9a094626c587c2f59c1b2b79d659f070f
109
ex
Elixir
lib/party_hub/repo.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
2
2020-05-22T15:45:53.000Z
2020-06-07T21:07:03.000Z
lib/party_hub/repo.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
1
2021-03-10T16:36:46.000Z
2021-03-10T16:36:46.000Z
lib/party_hub/repo.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
null
null
null
defmodule PartyHub.Repo do use Ecto.Repo, otp_app: :party_hub, adapter: Ecto.Adapters.Postgres end
18.166667
35
0.733945
385be30f2d6c1121494a8949faa0f172e55163e7
263
exs
Elixir
priv/repo/migrations/20160217074443_add_company_field_contact_id.exs
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
1
2016-02-04T17:16:54.000Z
2016-02-04T17:16:54.000Z
priv/repo/migrations/20160217074443_add_company_field_contact_id.exs
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20160217074443_add_company_field_contact_id.exs
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
null
null
null
defmodule BasicBooks.Repo.Migrations.AddCompanyFieldContactId do use Ecto.Migration def change do alter table(:companies) do add :contact_id, references(:contacts, on_delete: :nothing) end create index(:companies, [:contact_id]) end end
21.916667
65
0.73384
385be8a8a15e99f86d3b75d29ee774231fa61dfe
2,035
exs
Elixir
config/prod.exs
AkioCode/elxpro-blog
236984915851b91058e091414deb70c5e8fed72a
[ "MIT" ]
null
null
null
config/prod.exs
AkioCode/elxpro-blog
236984915851b91058e091414deb70c5e8fed72a
[ "MIT" ]
4
2021-08-11T03:19:33.000Z
2021-09-26T01:29:58.000Z
config/prod.exs
AkioCode/elxpro-blog
236984915851b91058e091414deb70c5e8fed72a
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
36.339286
66
0.716953
385c09c95f8c5fb20908143bf599e9f5c4fb9efe
1,852
exs
Elixir
apps/ello_serve/test/ello_serve/version_store/redis_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/test/ello_serve/version_store/redis_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/test/ello_serve/version_store/redis_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.VersionStore.RedisTest do use ExUnit.Case, async: false alias Ello.Serve.VersionStore.{Redis, Memory} setup do Application.put_env(:ello_serve, :version_store_adapter, Redis) on_exit fn() -> Redis.Client.command(["DEL", "ello_serve:webapp:versions"]) Redis.Client.command(...
45.170732
84
0.670086
385c7267aec9ce0b1f9758e98680512352c5a197
1,644
ex
Elixir
kousa/lib/beef/rooms.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
1
2021-02-15T21:19:44.000Z
2021-02-15T21:19:44.000Z
kousa/lib/beef/rooms.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
null
null
null
kousa/lib/beef/rooms.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
null
null
null
defmodule Beef.Rooms do @moduledoc """ Empty context module for Rooms """ # ACCESS functions defdelegate get_room_status(user_id), to: Beef.Access.Rooms defdelegate can_join_room(room_id, user_id), to: Beef.Access.Rooms defdelegate get_top_public_rooms(user_id, offset \\ 0), to: Beef.Access.Rooms defde...
53.032258
100
0.802311
385c97d73c91d9e68bfd5b1b50a432341b4979ca
1,938
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.236364
203
0.739938
385c9c9e76262868f9246ae0bc5a1c8e5527b8a6
1,780
exs
Elixir
test/test_helper.exs
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
test/test_helper.exs
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
test/test_helper.exs
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
ExUnit.start() defmodule PlymioVekilHelperTest do alias Plymio.Vekil.Forom.Form, as: FOROMFORM @vekil_form_example1 [ x_add_1: quote(do: x = x + 1), x_mul_x: quote(do: x = x * x), x_sub_1: quote(do: x = x - 1), x_f...
34.230769
92
0.545506
385cab54ff3656b46da2e6a792ffa8896c465b53
1,817
ex
Elixir
lib/complete_binary_tree/complete_binary_tree.ex
msmykowski/random_access_list
06167cdce53e6916d79c0e639b8837dedec86471
[ "MIT" ]
3
2020-11-16T23:38:08.000Z
2020-12-15T12:33:37.000Z
lib/complete_binary_tree/complete_binary_tree.ex
msmykowski/random_access_list
06167cdce53e6916d79c0e639b8837dedec86471
[ "MIT" ]
1
2020-11-17T17:49:44.000Z
2020-11-17T17:49:44.000Z
lib/complete_binary_tree/complete_binary_tree.ex
msmykowski/random_access_list
06167cdce53e6916d79c0e639b8837dedec86471
[ "MIT" ]
null
null
null
defmodule CompleteBinaryTree do alias CompleteBinaryTree.{Leaf, Node} def new(list) do new(list, length(list)) end defp new([head], _size) do Leaf.new(head) end defp new([head | tail], size) do if skew_binary_number?(size) do subtree_size = div(length(tail), 2) {left_subtree, righ...
25.591549
97
0.578976
385cc86fcfe3f0f32667c014a86fb2e95974ce73
227
exs
Elixir
test/test_helper.exs
wsmoak/my_app_7191136
f8812eec5214c77dee07a1ea78b07cf3ad9e80bd
[ "MIT" ]
2
2015-08-04T02:04:56.000Z
2016-06-18T00:43:10.000Z
test/test_helper.exs
wsmoak/my_app_7191136
f8812eec5214c77dee07a1ea78b07cf3ad9e80bd
[ "MIT" ]
null
null
null
test/test_helper.exs
wsmoak/my_app_7191136
f8812eec5214c77dee07a1ea78b07cf3ad9e80bd
[ "MIT" ]
null
null
null
ExUnit.start # Create the database, run migrations, and start the test transaction. Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(MyApp_7191136.Repo)
32.428571
70
0.757709
385ce3ec1a91941b82d85e0672cb613542b82f11
1,582
exs
Elixir
test/integration/server0_p_10_p_1_test.exs
tigertext/kafka_ex_tc
1f03132d3635281483b323751a60efa3b87586ef
[ "MIT" ]
null
null
null
test/integration/server0_p_10_p_1_test.exs
tigertext/kafka_ex_tc
1f03132d3635281483b323751a60efa3b87586ef
[ "MIT" ]
null
null
null
test/integration/server0_p_10_p_1_test.exs
tigertext/kafka_ex_tc
1f03132d3635281483b323751a60efa3b87586ef
[ "MIT" ]
null
null
null
defmodule KafkaEx.Server0P10P1.Test do use ExUnit.Case @moduletag :server_0_p_10_and_later # specific to this server version because we want to test that the api_versions list is exact @moduletag :server_0_p_10_p_1 @tag :api_version test "can retrieve api versions" do # note this checks against the v...
21.378378
95
0.457649
385d0fef5a675c20cd14b9e6ded4be69b3682848
365
exs
Elixir
string_calc/test/string_calc/day01_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_calc/test/string_calc/day01_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_calc/test/string_calc/day01_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
defmodule StringCalc.Day01Test do use ExUnit.Case, async: true alias StringCalc.Day01, as: StringCalc test "compute negative number", do: assert StringCalc.compute("-1.0") == -1 test "compute addition", do: assert StringCalc.compute("2.0+3.0") == 2 + 3 test "compute subtraction" do assert Stri...
22.8125
49
0.673973
385d1296d1d19d21ce88fd0a7a260b109d406d7b
595
exs
Elixir
test/ja_nested_params_test.exs
bundsol/ja_nested_params
3832f11674cce62c5de6442baa02e9e2b2971245
[ "BSD-3-Clause" ]
null
null
null
test/ja_nested_params_test.exs
bundsol/ja_nested_params
3832f11674cce62c5de6442baa02e9e2b2971245
[ "BSD-3-Clause" ]
null
null
null
test/ja_nested_params_test.exs
bundsol/ja_nested_params
3832f11674cce62c5de6442baa02e9e2b2971245
[ "BSD-3-Clause" ]
null
null
null
defmodule JaNestedParamsTest do use ExUnit.Case doctest JaNestedParams alias JaNestedParamsTest.OrderJson alias JaNestedParams import JaNestedParamsTest.Expected, only: [expected_result: 0] alias JaNestedParamsTest.SeedObject setup do sample = %{updater: SeedObject.renee, ...
22.037037
68
0.697479
385d1d5ce295da9bafae3d022ddc66d661acc8e8
3,423
ex
Elixir
lib/everex/oauth.ex
jwarlander/everex
559a18e45054abd7d2adfeb3ef060f79b58308e9
[ "Apache-2.0" ]
11
2015-02-22T17:42:03.000Z
2018-09-23T07:48:57.000Z
lib/everex/oauth.ex
jwarlander/everex
559a18e45054abd7d2adfeb3ef060f79b58308e9
[ "Apache-2.0" ]
38
2015-03-11T16:13:27.000Z
2021-08-02T07:14:50.000Z
lib/everex/oauth.ex
jwarlander/everex
559a18e45054abd7d2adfeb3ef060f79b58308e9
[ "Apache-2.0" ]
4
2015-05-20T01:33:33.000Z
2020-06-09T04:44:46.000Z
defmodule Everex.OAuth.Client do @production_server "www.evernote.com" @sandbox_server "sandbox.evernote.com" defstruct server: nil defmodule Request do defstruct url: nil, headers: nil, params: nil end def new(opts \\ []) do srv = case opts[:sandbox] do true -> @sandbox_server _else...
26.952756
77
0.658195
385d2bfa06cac78cc53a39f718fa6eee6e704a64
3,501
ex
Elixir
lib/ecto/adapters/sql/connection.ex
thenrio/ecto_sql
151ff5076098a85c8cd415ca613bb1cb7dd290a5
[ "Apache-2.0" ]
4
2019-06-26T22:43:55.000Z
2020-01-19T17:37:07.000Z
lib/ecto/adapters/sql/connection.ex
thenrio/ecto_sql
151ff5076098a85c8cd415ca613bb1cb7dd290a5
[ "Apache-2.0" ]
3
2019-07-15T06:54:40.000Z
2020-02-09T16:36:44.000Z
lib/ecto/adapters/sql/connection.ex
thenrio/ecto_sql
151ff5076098a85c8cd415ca613bb1cb7dd290a5
[ "Apache-2.0" ]
15
2019-01-15T18:17:44.000Z
2020-01-12T03:52:35.000Z
defmodule Ecto.Adapters.SQL.Connection do @moduledoc """ Specifies the behaviour to be implemented by all SQL connections. """ @typedoc "The query name" @type name :: String.t @typedoc "The SQL statement" @type statement :: String.t @typedoc "The cached query which is a DBConnection Query" @type ca...
29.669492
97
0.641245
385d89ff1f9e96fdbc7c75482793ac4b5db199d0
901
ex
Elixir
lib/bugsnex/logger.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
11
2016-05-04T14:23:26.000Z
2020-04-30T16:53:32.000Z
lib/bugsnex/logger.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
27
2016-04-19T10:25:41.000Z
2020-09-11T09:27:39.000Z
lib/bugsnex/logger.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
4
2017-03-16T16:14:47.000Z
2019-08-30T14:36:26.000Z
defmodule Bugsnex.Logger do import Bugsnex.Util @behaviour :gen_event def init([]), do: {:ok, []} def handle_call({:configure, new_keys}, _state) do {:ok, :ok, new_keys} end def handle_event({_level, group_leader, _event}, state) when node(group_leader) != node() do {:ok, state} end def hand...
23.710526
94
0.641509
385d9488eb26b452cda8479e6cbaa1b20ace0a3e
721
exs
Elixir
test/lfu_cache_test.exs
SteffenBauer/arc_cache
a95c24d415ce4050f53ae948a6cc8c70dd193c36
[ "MIT" ]
1
2016-12-10T18:56:40.000Z
2016-12-10T18:56:40.000Z
test/lfu_cache_test.exs
SteffenBauer/arc_cache
a95c24d415ce4050f53ae948a6cc8c70dd193c36
[ "MIT" ]
null
null
null
test/lfu_cache_test.exs
SteffenBauer/arc_cache
a95c24d415ce4050f53ae948a6cc8c70dd193c36
[ "MIT" ]
null
null
null
defmodule LfuCacheTest do use ExUnit.Case test "basic usage" do assert {:ok, _} = LfuCache.start_link(:lfutest1, 10) assert nil == LfuCache.get(:lfutest1, 1) assert :ok == LfuCache.put(:lfutest1, 1, "entry1") assert "entry1" == LfuCache.get(:lfutest1, 1) assert nil == ...
40.055556
63
0.600555
385daf1a42d3acc5e7718ae18f45be8446ae8fb5
136
exs
Elixir
config/config.exs
V-Sekai/vsona-discord-bot
a3c0bd1aab3f7b57261719610b52aea375f9142f
[ "MIT" ]
null
null
null
config/config.exs
V-Sekai/vsona-discord-bot
a3c0bd1aab3f7b57261719610b52aea375f9142f
[ "MIT" ]
null
null
null
config/config.exs
V-Sekai/vsona-discord-bot
a3c0bd1aab3f7b57261719610b52aea375f9142f
[ "MIT" ]
null
null
null
use Mix.Config config :nostrum, token: System.get_env("DISCORD_API_TOKEN"), num_shards: 1 config :logger, level: :debug # :warn
15.111111
45
0.713235
385dcaf00f65b43135c6df38d027dcafff63d0a5
724
ex
Elixir
lib/deparam/types/array.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
lib/deparam/types/array.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
lib/deparam/types/array.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
defmodule Deparam.Types.Array do @behaviour Deparam.Type alias Deparam.Type @impl true def coerce([], %{modifier: :non_empty}), do: :error def coerce(values, %{args: []} = context) when is_list(values) do coerce(values, %{context | args: [:any]}) end def coerce(values, %{args: [element_type]}) whe...
21.939394
69
0.582873
385df94f99fb8569e8c4bf89a6c5cb5a75b403c1
3,601
ex
Elixir
lib/absinthe/type/scalar.ex
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
lib/absinthe/type/scalar.ex
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
lib/absinthe/type/scalar.ex
se-apc/absinthe
a95f8d7658091f99e2ebf5af659bfcfaecc97423
[ "MIT" ]
null
null
null
defmodule Absinthe.Type.Scalar do @moduledoc """ Represents a primitive value. GraphQL responses take the form of a hierarchical tree; the leaves on these trees are scalars. Also see `Absinthe.Type.Object`. ## Built-In Scalars The following built-in scalar types are defined: * `:boolean` - Represen...
37.905263
336
0.6787
385dfd5ff885cb965e108ad6da966d0729d4d4c6
1,988
ex
Elixir
protein-translation/lib/protein_translation.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
protein-translation/lib/protein_translation.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
protein-translation/lib/protein_translation.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
defmodule ProteinTranslation do @doc """ Given an RNA string, return a list of proteins specified by codons, in order. """ @spec of_rna(String.t()) :: {atom, list(String.t())} def of_rna(rna) do # Split our codons by 3 characters codon_list = Stream.unfold(rna, fn item -> String.split_at(item, 3...
29.235294
144
0.546781
385e05d84f1c380d71c0e85a010cf7d19ae4ad11
306
exs
Elixir
test/test_helper.exs
zackkitzmiller/httpoison
40580cd02561f8d938a254f2b294811e97e6f824
[ "MIT" ]
1
2019-10-11T01:45:40.000Z
2019-10-11T01:45:40.000Z
test/test_helper.exs
hiro-riveros/httpoison
5c81424fd84f61b7cc69210bee396dc93244eb5b
[ "MIT" ]
null
null
null
test/test_helper.exs
hiro-riveros/httpoison
5c81424fd84f61b7cc69210bee396dc93244eb5b
[ "MIT" ]
null
null
null
Application.ensure_all_started(:mimic) {:ok, _} = :application.ensure_all_started(:httparrot) Mimic.copy(:hackney) ExUnit.start() defmodule PathHelpers do def fixture_path do Path.expand("fixtures", __DIR__) end def fixture_path(file_path) do Path.join(fixture_path(), file_path) end end
20.4
54
0.751634
385e087f1babf1fde5a7eaa6f0b3220fc01bfd3a
257
ex
Elixir
lib/salty/shorthash_siphashx24.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
23
2017-07-04T19:29:43.000Z
2021-02-16T19:44:38.000Z
lib/salty/shorthash_siphashx24.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
16
2017-08-13T15:31:25.000Z
2019-06-19T14:44:13.000Z
lib/salty/shorthash_siphashx24.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
19
2017-08-10T19:01:49.000Z
2021-06-20T01:34:59.000Z
defmodule Salty.Shorthash.Siphashx24 do use Salty.Shorthash def bytes do C.shorthash_siphashx24_BYTES() end def keybytes do C.shorthash_siphashx24_KEYBYTES() end def hash(data, key) do C.shorthash_siphashx24(data, key) end end
15.117647
39
0.731518
385e7e067b1d772c9cbcf40c42b32842fc8702bd
2,451
exs
Elixir
mix.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
mix.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
mix.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.MixProject do use Mix.Project def project do [ app: :militerm, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
28.172414
86
0.532028
385e9802ac6c38408bdc3f86ce4b6d67af80d2ed
296
exs
Elixir
priv/repo/migrations/20220202194033_create_battles_table.exs
vbertazzo/expokefight
19b6bd39af43e17c3ee14eab845cb24fb71d6d80
[ "MIT" ]
null
null
null
priv/repo/migrations/20220202194033_create_battles_table.exs
vbertazzo/expokefight
19b6bd39af43e17c3ee14eab845cb24fb71d6d80
[ "MIT" ]
null
null
null
priv/repo/migrations/20220202194033_create_battles_table.exs
vbertazzo/expokefight
19b6bd39af43e17c3ee14eab845cb24fb71d6d80
[ "MIT" ]
null
null
null
defmodule Expokefight.Repo.Migrations.CreateBattlesTable do use Ecto.Migration def change do create table(:battles) do add :victorious_id, references(:pokemons, type: :binary_id) add :defeated_id, references(:pokemons, type: :binary_id) timestamps() end end end
22.769231
65
0.716216
385ebef2eaef924671c0a28d846e9700da25cc6e
3,600
ex
Elixir
lib/transfusion/message.ex
doomspork/transfusion
2c144a1cf5e93750358f8d307b4d9ad3d81b9b82
[ "MIT" ]
4
2017-07-04T03:40:35.000Z
2021-01-19T05:39:26.000Z
lib/transfusion/message.ex
doomspork/transfusion
2c144a1cf5e93750358f8d307b4d9ad3d81b9b82
[ "MIT" ]
3
2017-07-05T00:50:53.000Z
2017-07-23T07:42:32.000Z
lib/transfusion/message.ex
doomspork/transfusion
2c144a1cf5e93750358f8d307b4d9ad3d81b9b82
[ "MIT" ]
null
null
null
defmodule Transfusion.Message do @moduledoc """ """ defmacro __using__(opts \\ []) do quote do @before_compile Transfusion.Message import Transfusion.Message Module.register_attribute(__MODULE__, :fields, accumulate: true, persist: false) Module.register_attribute(__MODULE__, :route...
21.818182
90
0.583889
385ed58676fc5a1154dcf30be5a375e7e6465586
1,771
exs
Elixir
example/mix.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
null
null
null
example/mix.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
null
null
null
example/mix.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
null
null
null
defmodule PhoenixDatatablesExample.Mixfile do use Mix.Project def project do [ app: :phoenix_datatables_example, version: "0.0.1", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, ...
27.671875
79
0.588933
385efac764a73669c872d062be3147e8abc17998
471
exs
Elixir
priv/repo/migrations/20190212022434_create_podcasts.exs
jeyemwey/radiator-spark
2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d
[ "MIT" ]
null
null
null
priv/repo/migrations/20190212022434_create_podcasts.exs
jeyemwey/radiator-spark
2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d
[ "MIT" ]
null
null
null
priv/repo/migrations/20190212022434_create_podcasts.exs
jeyemwey/radiator-spark
2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d
[ "MIT" ]
null
null
null
defmodule Radiator.Repo.Migrations.CreatePodcasts do use Ecto.Migration def change do create table(:podcasts) do add :title, :string add :subtitle, :string add :description, :string add :image, :string add :author, :string add :owner_name, :string add :owner_email, :st...
22.428571
52
0.647558
385f031cc82f31b8840f434681700635ee1a9184
496
exs
Elixir
ch-07/listsAndRecursion-3.exs
marekdano/programming-elixir-exercises
96bc49069d6585368eaf5a9371a1e8cc5e84443f
[ "Unlicense" ]
null
null
null
ch-07/listsAndRecursion-3.exs
marekdano/programming-elixir-exercises
96bc49069d6585368eaf5a9371a1e8cc5e84443f
[ "Unlicense" ]
null
null
null
ch-07/listsAndRecursion-3.exs
marekdano/programming-elixir-exercises
96bc49069d6585368eaf5a9371a1e8cc5e84443f
[ "Unlicense" ]
null
null
null
# An Elixir single quoted string is actually a list of individual character codes. # Write a function caesar(list, n) that adds n to each element of the list, # but wrapping if the addition results in a character greater than z. defmodule MyList do def caesar([], _n), do: [] def caesar([ head | tail ], n) when ...
38.153846
83
0.655242